Average Rate of Change Calculator (Free, with Graph)

CalculusFreeNo sign-up

An average rate of change calculator divides the change in output by the change in input: (f(b) − f(a)) / (b − a). For f(x) = x² from x = 1 to x = 4, f(1) = 1 and f(4) = 16, so the rate is (16 − 1) / (4 − 1) = 15 / 3 = 5. That is the slope of the secant line.

Average rate of change: what do you have?
Use x as the variable: x^2 for x², 3x for 3·x, sqrt(x), 2^x, sin(x) (radians), ln(x), abs(x). a and b can be fractions or pi/2.
Try:
Average rate of change of f on [1, 4]
5increasing on average

The average rate of change of f(x) = x² from x = 1 to x = 4 is 5. On average, f increases by 5 for each 1 unit increase in x.

(f(b) − f(a)) / (b − a)= (16 − 1) / (4 − 1) = 15 / 3 = 5
f(a) = f(1)1
f(b) = f(4)16
Δy = f(b) − f(a)15
Δx = b − a3
Secant liney = 5x − 4
Instantaneous rate at a, f'(1)2
Instantaneous rate at b, f'(4)8
Mean value point c (f'(c) = 5)x ≈ 2.5
12345101520Δx = 3Δy = 15(1, 1)(4, 16)
f(x)secant line, slope 5tangent at c (same slope)
Show steps
  1. Evaluate f at the start: f(1) = 1² = 1.
  2. Evaluate f at the end: f(4) = 4² = 16.
  3. Change in output: Δy = f(b) − f(a) = 16 − 1 = 15. Change in input: Δx = b − a = 4 − 1 = 3.
  4. Divide: average rate of change = Δy / Δx = 15 / 3 = 5.
  5. This is the slope of the secant line through (1, 1) and (4, 16): y = 5x − 4.
  6. Compare with the instantaneous rate (the derivative): f'(1) ≈ 2 and f'(4) ≈ 8. The average rate 5 sits between how fast f changes at the two ends. By the Mean Value Theorem the tangent slope equals the average rate at x ≈ 2.5.

Average Rate of Change Calculator (Free, with Graph)
Embed this calculator on your site

Free to use on class pages, blogs and course pages. Copy the code below and paste it into your page:

How to use the average rate of change calculator

  1. Choose what you have: a Function and an interval [a, b], Two points, or a Table of x and y values.
  2. Type the function with x as the variable, for example x^2 + 3x, sqrt(x), 2^x or sin(x). The endpoints can be whole numbers, fractions or values such as pi/2. For points and tables you can add units, such as miles and hour.
  3. Read the rate as an exact fraction and a decimal, with f(a), f(b), Δy, Δx and the secant line equation.
  4. Look at the graph: the curve, the secant line, the Δx and Δy legs and, for functions, the tangent line where the instantaneous rate equals the average rate.
  5. Open Show steps to see each substitution. In table mode you also get the rate on every interval and a check for a constant rate.

The average rate of change formula

Average rate of change = (f(b) − f(a)) / (b − a) = Δy / Δx. Here a and b are the start and end x-values, f(a) and f(b) are the outputs there, Δy is the change in output and Δx is the change in input. Between two points (x₁, y₁) and (x₂, y₂), the same formula reads (y₂ − y₁) / (x₂ − x₁).

Geometrically, the average rate of change is the slope of the secant line through (a, f(a)) and (b, f(b)). Its unit is “output units per input unit”, such as miles per hour or dollars per week. A positive rate means the function rose overall on the interval, a negative rate means it fell, and 0 means it ended where it started.

Worked examples

Example 1: a cubic function on an interval

Find the average rate of change of f(x) = 2x³ on [0, 2]. First f(0) = 2 · 0³ = 0 and f(2) = 2 · 2³ = 16. Then (16 − 0) / (2 − 0) = 16 / 2 = 8. On average, f rises by 8 for each unit of x, even though it rises slowly near 0 and quickly near 2.

Example 2: between two points

For the points (−1, 6) and (3, −2): Δy = −2 − 6 = −8 and Δx = 3 − (−1) = 4, so the rate is −8 / 4 = −2. The output drops 2 units for every unit increase in x.

Example 3: from a table of data

A plant’s height is measured each day.

Day 0 1 2 3 4 5
Height (cm) 2 4 7 11 14 17

From day 0 to day 5, the average rate is (17 − 2) / (5 − 0) = 15 / 5 = 3 cm per day. The day-by-day rates are 2, 3, 4, 3 and 3 cm per day. They are not all equal, so the growth is not linear, and 3 cm per day is the overall average.

Example 4: a fraction answer

For f(x) = √x on [1, 9]: f(1) = 1 and f(9) = 3, so the rate is (3 − 1) / (9 − 1) = 2/8 = 1/4. Average rates are often fractions; keep them exact unless a decimal is asked for.

Average rate of change for common functions

f(x) Interval Average rate of change
3x − 2 any [a, b] 3 (a line has a constant rate)
x² [1, 4] (16 − 1)/3 = 5
x³ [0, 2] (8 − 0)/2 = 4
2ˣ [0, 3] (8 − 1)/3 = 7/3
1/x [1, 4] (1/4 − 1)/3 = −1/4
sin x [0, π/2] 1/(π/2) = 2/π ≈ 0.6366

Average rate of change vs. instantaneous rate of change

The average rate describes a whole interval. The instantaneous rate describes a single point: it is the derivative f′(x), the slope of the tangent line. You can see the link in the difference quotient (f(a + h) − f(a)) / h, which is the average rate on [a, a + h]. As h shrinks toward 0, the secant line turns into the tangent line and the average rate becomes f′(a). Try it with the difference quotient calculator and the derivative calculator.

For f(x) = x² on [1, 4], f′(x) = 2x, so the instantaneous rate is 2 at x = 1 and 8 at x = 4, while the average rate is 5. The Mean Value Theorem says a smooth function has at least one point c between a and b where f′(c) equals the average rate. Here 2c = 5 gives c = 2.5, and the calculator draws that tangent line.

Average rate of change and slope

For a straight line, the average rate of change is the slope, and it is the same on every interval. That is why a constant average rate of change means the graph is a straight line. For a curve, the average rate depends on the interval you pick. The table mode checks this for you: equal rates on every interval mean the data are linear.

Common mistakes

  • Mixing the order of subtraction. If you use f(b) − f(a) on top, use b − a on the bottom. Reversing only one of them flips the sign.
  • Dividing the wrong way. The rate is Δy / Δx, output over input, not Δx / Δy.
  • Subtracting x-values instead of outputs. The top is f(b) − f(a), not b − a and not f(b) − a.
  • Losing a negative sign. Use parentheses: 3 − (−1) = 4, and (−1)² = 1, not −1.
  • Rounding too early. Keep fractions such as 7/3 exact until the end.
  • Dropping units. “3” is incomplete. “3 cm per day” answers the question.

Checking your homework

Solve the problem by hand, then compare. Before you calculate, estimate: if f goes from 1 to 16 over 3 units, the rate must be about 5. If your answer differs from the calculator’s, open the steps and find the first line where the two disagree. It is usually a sign error in f(a) or the order of subtraction.

Average rate of change practice quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. What is the average rate of change of f(x) = x² on [2, 5]?

Found a mistake? Let us know!

2. What is the average rate of change between (2, 9) and (6, 1)?

Found a mistake? Let us know!

3. f(x) = 3x + 7. What is its average rate of change on [−10, 40]?

Found a mistake? Let us know!

4. A car is 30 miles from home at 1 pm and 150 miles from home at 3 pm. What is its average speed?

Found a mistake? Let us know!

5. What is the average rate of change of f(x) = 1/x on [1, 2]?

Found a mistake? Let us know!

6. What is the average rate of change of f(x) = x³ − x on [−1, 2]?

Found a mistake? Let us know!

7. A table shows y = 12 at x = 3 and y = 4 at x = 7. What is the average rate of change from x = 3 to x = 7?

Found a mistake? Let us know!

8. For f(x) = x² on [0, 6], at which x does the tangent slope equal the average rate of change?

Found a mistake? Let us know!

9. What is the average rate of change of f(x) = √x on [4, 16]?

Found a mistake? Let us know!

10. The average rate of change of f on [a, b] equals the slope of which line?

Found a mistake? Let us know!

Frequently asked questions

What is the average rate of change formula?

Average rate of change = (f(b) − f(a)) / (b − a), the change in output divided by the change in input. For f(x) = x² from x = 1 to x = 4, it is (16 − 1) / (4 − 1) = 5.

How do you calculate the average rate of change over an interval?

Evaluate the function at both endpoints, subtract the outputs, subtract the inputs in the same order, and divide. For 2x³ on [0, 2]: (16 − 0) / (2 − 0) = 8.

How do you calculate the average rate of change from a table?

Pick the two rows that match the interval, then divide the change in the y-column by the change in the x-column. A plant that grows from 2 cm on day 0 to 17 cm on day 5 grows at an average of 15 / 5 = 3 cm per day. Include the units in your answer.

How do you calculate the average rate of change between two points?

Use (y₂ − y₁) / (x₂ − x₁). For (−1, 6) and (3, −2), that is (−2 − 6) / (3 − (−1)) = −8 / 4 = −2.

Can the average rate of change be a fraction?

Yes. For √x on [1, 9], the rate is (3 − 1) / (9 − 1) = 2/8 = 1/4. It can also be negative or zero.

What is the average rate of change formula in calculus?

In calculus it is the slope of the secant line, (f(b) − f(a)) / (b − a), often written with h = b − a as (f(a + h) − f(a)) / h. Taking the limit as h approaches 0 gives the derivative, the instantaneous rate of change.

Related calculators

More calculus calculators

Browse all 458 calculators

Related to This Article

What people say about "Average Rate of Change Calculator: Function, Points, Table"?

No one replied yet.

Leave a Reply