Average Rate of Change Calculator
Use ^ for powers, like x^2. See “How to Type a Function” below for roots, fractions and more.
Fractions like 3/4 work too.
Paste from a sheet or a textbook. Comma, space or tab between numbers. Rows are sorted by x.
How to Use the Average Rate of Change Calculator
Pick the tab that matches your problem: Function for f(x) and an interval [a, b], Two Points for (x₁, y₁) and (x₂, y₂), or Table for a list of x, y values. Fill in the boxes and press Calculate. A “Try one” example only fills the boxes, so you can edit it first.
Units are optional. For sin, cos and tan, pick Radians or Degrees to match your class.
How to Type a Function
| To write | Type | Example |
|---|---|---|
| Power (x²) | ^ | x^2 |
| Negative power (x⁻²) | ^ with brackets | x^(-2) |
| Power with more than one term (2ˣ⁺¹) | ^ with brackets | 2^(x+1) |
| Fraction (x + 1 over x − 2) | / with brackets on top and bottom | (x+1)/(x-2) |
| Multiply | * or nothing | 3x, 2(x+1), 3*x |
| Square root (√x) | sqrt( ) | sqrt(x+4) |
| Cube root (∛x) | ^(1/3) | x^(1/3), for x ≥ 0 |
| Absolute value (|x|) | abs( ) | abs(x-3) |
| π | pi | sin(pi*x) |
| e and eˣ | e or exp( ) | e^x or exp(x) |
| Natural log (ln) | ln( ) | ln(x) |
| Log base 10 | log( ) | log(x) |
| Trig | sin( ), cos( ), tan( ) | cos(2x) |
| Inverse trig | asin( ), acos( ), atan( ) | atan(x) |
| Very small or large numbers | e notation | 1e-6 = 0.000001 |
- -x^2 means −(x²). For (−x)², type (-x)^2.
- 2^x+1 means 2ˣ + 1. For 2ˣ⁺¹, type 2^(x+1).
- 1/2x means (1/2)·x. For 1 over 2x, type 1/(2x).
- The a and b boxes take the same input, so pi/2 or -3/4 work there too.
- Spaces and capital letters don’t matter.
Average Rate of Change Formula
A = [f(b) − f(a)] ÷ (b − a)
It is the slope of the secant line, the straight line through (a, f(a)) and (b, f(b)). With two plain points it reads (y₂ − y₁) ÷ (x₂ − x₁), which is the slope formula. That is why a straight line has the same average rate of change on every interval.
When the inputs have units, the rate is measured in y units per x unit. Miles per hour, dollars per year and degrees per minute are all average rates of change.
How to Find the Average Rate of Change
From a Function
- Write down a and b. The interval [a, b] tells you where to start and stop.
- Find f(a) and f(b). Put each number in parentheses before you plug it in.
- Subtract in the same order on top and bottom: f(b) − f(a) over b − a.
- Simplify and add the units.
Example: f(x) = x² on [−2, 3]. f(3) = (3)² = 9 and f(−2) = (−2)² = 4. So A = (9 − 4) ÷ (3 − (−2)) = 5 ÷ 5 = 1.
From a Graph
Read the y-value where the curve sits at x = a and at x = b. Those two points go straight into the formula. Draw a line through them: its slope is your answer, and it is a quick way to check your sign.
From a Table
Use the first and last rows of the interval you were asked about, not the rows in between. It works the same way as finding slope from a table. To compare stretches, find the rate for each pair of rows.
Example: a car’s odometer reads 0 miles at 0 hours, 30 at 1, 90 at 2, 150 at 4 and 160 at 5. Over [0, 5], A = (160 − 0) ÷ (5 − 0) = 32 miles per hour. Over [1, 4], A = (150 − 30) ÷ (4 − 1) = 40 miles per hour. The fastest stretch was hour 1 to hour 2, at 60 miles per hour.
What the Answer Tells You
| Result | Meaning | Example |
|---|---|---|
| Positive | Output went up overall | Savings grew $120 per month |
| Negative | Output went down overall | A tank lost 2.5 gallons per hour |
| Zero | Output ended where it started | Not the same as “nothing changed” (mistake 5) |
| Larger absolute value | Faster change (same units) | A rate of −10 changes faster than +2 |
6 Mistakes That Give the Wrong Answer
1. Dropping the Parentheses on a Negative Number
For f(x) = x² and a = −2, typing −2^2 into a phone calculator gives −4, because it squares 2 first. The right value is (−2)² = 4. This one slip turns the example above from 1 into 2.6.
Fix: wrap every plugged-in value in parentheses, like (−2)².
2. Flipping the Order on Only One Part
Writing f(b) − f(a) on top but a − b on the bottom flips the sign. You get −1 instead of 1, and a growing quantity looks like it is shrinking.
Fix: whatever comes first on top comes first on the bottom. (f(a) − f(b)) ÷ (a − b) is also correct.
3. Averaging the Rates Instead of the Totals
You drive 60 miles to a city at 30 mph and back at 60 mph. Most people say the average speed was 45 mph. It was 40: 120 miles in 3 hours. The slow leg took twice as long, so it counts twice as much.
Fix: divide the total change in y by the total change in x. Never average the step rates from a table unless the x steps are equal.
4. Using the Wrong Angle Mode
For sin(x) on [0, 90], the answer is about 0.0111 in degree mode but about 0.0099 in radian mode, and the two mean different things. Calculus problems almost always mean radians.
Fix: if the interval uses π, use radians.
5. Reading a Zero as “No Change”
sin(x) on [0, π] has an average rate of change of 0. But the curve climbs to 1 and comes back down. The average only compares the two ends.
Fix: look at the graph or the table steps before you write “the function stayed constant”.
6. Ignoring a Gap in the Function
For f(x) = 1/x on [−1, 1], the average rate of change between the endpoints is (1 − (−1)) ÷ 2 = 1, and that number is correct. But 1/x is undefined at x = 0, so the curve breaks in between. The Mean Value Theorem does not apply, and you can’t assume the function changed smoothly from one end to the other.
Fix: check that the function is defined on the whole interval before you describe the change in between or use the Mean Value Theorem.
Average vs Instantaneous Rate of Change
The average rate of change uses two points and gives the slope of a secant line. The instantaneous rate of change uses one point and gives the slope of the tangent line, which is the derivative f′(x).
| Average | Instantaneous | |
|---|---|---|
| Needs | Two x-values | One x-value |
| Line | Secant | Tangent |
| Tool | Algebra (the formula above) | Calculus (the derivative) |
| Car example | Trip average: 60 mph | Speedometer right now: 72 mph |
If f is continuous on [a, b] and differentiable between a and b, at least one point between a and b has an instantaneous rate equal to the average rate. That is the Mean Value Theorem: f′(c) = [f(b) − f(a)] ÷ (b − a) for some c between a and b. AP Calculus questions call this point “the value of c”.
As b moves closer to a, the secant line turns into the tangent line. That is how the derivative is defined.
No function, just a table or a graph? You can estimate the instantaneous rate at a point. Use the average rate over the smallest interval around that point. For example, with values at x = 1.9 and x = 2.1, [f(2.1) − f(1.9)] ÷ 0.2 estimates the rate at x = 2.
Average Rate of Change vs Average Value
These two sound alike but answer different questions. The average rate of change is how fast f changed: [f(b) − f(a)] ÷ (b − a). The average value is the typical height of f: the integral of f from a to b, divided by (b − a).
For x² on [0, 3], both happen to equal 3. On [1, 3] they split: the rate is 4, but the average value is 13/3 ≈ 4.33.
Frequently Asked Questions
Is average rate of change the same as slope?
Yes. It is the slope of the line through the two endpoints. For a straight line it equals the line’s slope on any interval. For a curve it changes with the interval you pick.
How do you find the average rate of change over an interval?
Find f at both ends of the interval, subtract the start value from the end value, then divide by the length of the interval (b − a).
Can the average rate of change be negative?
Yes. A negative answer means the output was lower at the end than at the start, like a cooling cup of coffee losing 3 °F per minute.
What are the units of average rate of change?
Units of y divided by units of x. If y is in dollars and x is in years, the answer is in dollars per year.
What is the average rate of change also called?
It is written Δy/Δx and is also called the slope of the secant line. In calculus it shows up as the difference quotient, [f(x + h) − f(x)] ÷ h. That is the same formula with a = x and b = x + h, so b − a = h.
Is average rate of change the same as percent change?
No. The rate is an amount per x unit, like $50 per year. Percent change compares the change to the starting value, like +10%.
What if f(a) or f(b) is undefined?
Then there is no average rate of change on that interval. For example, √x on [−1, 4] fails because √(−1) is not a real number.
Sources: OpenStax Precalculus 2e, 1.3 Rates of Change and Behavior of Graphs; OpenStax Calculus Volume 1, 4.4 The Mean Value Theorem.