Average Rate of Change Calculator

Compute [f(b)−f(a)]/(b−a) for a function.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter a function and an interval to get the slope of the secant line across it. For f(x) = x² on [1, 3], the average rate of change is (9 − 1) ÷ 2 = 4.

How to use

1
Step 1
Type f(x), for example x^2.
2
Step 2
Enter a and b.
3
Step 3
Press Calculate.

How it works

The average rate of change is the change in output divided by the change in input, which equals the slope of the line through (a, f(a)) and (b, f(b)). As b moves toward a, it approaches the derivative.

(f(b) − f(a)) ÷ (b − a)

Worked example

A cubic with a linear term

Input
f(x) = x^3 − 2*x on [0, 2]
Output
2
Walkthrough
f(0) = 0 and f(2) = 8 − 4 = 4, so the rate is (4 − 0) ÷ (2 − 0) = 2.

Limitations

  • a and b must be different numbers.
  • Write products with *, like 2*x.

Questions

What is the average rate of change of x² from 1 to 3?
The average rate of change is 4, since (3² − 1²) ÷ (3 − 1) = 8 ÷ 2.
What is the average rate of change of x³ − 2x from 0 to 2?
The average rate of change is 2, since f(2) = 4, f(0) = 0 and (4 − 0) ÷ 2 = 2.
Is it the same as the derivative?
No. It is the slope across an interval; the derivative is the slope at one point.

Features

  • Any function of x
  • Secant slope
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Finding a percentage

    Khan Academy

    Percentage basics used across many calculator pages.

    Watch on YouTube
  • Variables, expressions, and equations

    Khan Academy

    Expression language for scientific and expression calculators.

    Watch on YouTube