Skip to content

Average Rate of Change Calculator

Average rate of change of a function between two points, with the secant line equation and the steps.

Your details

I know

Use x as the variable: + − * / ^, sqrt, ln, log, exp, sin, cos, tan (radians), pi, e. Implicit products like 3x work.

Results update as you type

Average rate of change

4

f(a)
1
f(b)
9
Change in output Δy
8
Change in input Δx
2
Secant line
y = 4x − 3
Total relative change
800%

On average the function increases on this interval.

Step-by-step solution
  1. Change in output: Δy = f(b) − f(a) = 9 − 1 = 8
  2. Change in input: Δx = b − a = 3 − 1 = 2
  3. Average rate of change: Δy / Δx = 8 / 2 = 4
  4. Secant line through both points: y = 4(x − 1) + 1 ⇒ y = 4x − 3

The average rate of change tells you how fast a quantity changes, on average, over an interval. Between two inputs aa and bb, it is the change in the output divided by the change in the input: f(b)−f(a)b−a\dfrac{f(b) - f(a)}{b - a}. Geometrically, it is the slope of the secant line joining the points (a,f(a))(a, f(a)) and (b,f(b))(b, f(b)) on the graph.

The idea appears everywhere. Distance over time is an average velocity; a price that went from 1.20 to 2.00 over eight years rose at an average of 0.10 per year; a temperature curve, a population count or a company’s revenue can all be summarised by how much they changed per unit of time. In calculus, the average rate of change is the difference quotient whose limit, as bb approaches aa, defines the derivative.

This calculator works in two ways. Type a function such as x^2, 4.9x^2 or sin(x) with an interval [a,b][a, b], and it evaluates f(a)f(a) and f(b)f(b) for you. Or enter two points from a table or a graph. You get the rate, Δy\Delta y, Δx\Delta x, the equation of the secant line, the total change as a percentage, and the steps.

How to use this calculator

  1. Choose The function f(x) if you have a formula, or Two points if you have data.
  2. For a function, type it with xx as the variable (3x3x, x^3 - x, sqrt(x), exp(-x)…; trigonometric functions use radians), then enter aa and bb.
  3. For data, enter the two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2), for example (year, price).
  4. Read the average rate of change, in output units per input unit (metres per second, dollars per year…), and the secant line.

The formula

For a function ff on the interval [a,b][a, b]:

average rate of change=ΔyΔx=f(b)−f(a)b−a\text{average rate of change} = \frac{\Delta y}{\Delta x} = \frac{f(b) - f(a)}{b - a}

For two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2), it is y2−y1x2−x1\dfrac{y_2 - y_1}{x_2 - x_1}, the same formula as a slope. The order of the points does not matter, as long as you keep it consistent in the numerator and the denominator.

The secant line through the two points has that slope:

y=m (x−a)+f(a),m=f(b)−f(a)b−ay = m\,(x - a) + f(a), \qquad m = \frac{f(b) - f(a)}{b - a}

Writing b=a+hb = a + h gives the difference quotient f(a+h)−f(a)h\dfrac{f(a + h) - f(a)}{h}. Its limit as h→0h \to 0, when it exists, is the instantaneous rate of change f′(a)f'(a).

The rate is undefined when a=ba = b (division by zero).

Worked example

A parabola. For f(x)=x2f(x) = x^2 on [1,3][1, 3]: f(1)=1f(1) = 1, f(3)=9f(3) = 9, so the average rate of change is $\dfrac{9 - 1}{3 - 1} = $ 4. The secant line is y = 4x − 3. Note that the derivative 2x2x equals 4 at x=2x = 2, the midpoint: for a parabola, the secant slope always matches the tangent slope at the midpoint.

Average velocity. A stone falls s(t)=4.9t2s(t) = 4.9t^2 metres after tt seconds. Between t=1t = 1 and t=3t = 3 it goes from 4.9 m to 44.1 m, an average velocity of 19.6 m/s.

From data. A loaf cost 1.20 in 2015 and 2.00 in 2023: 2.00−1.202023−2015=0.1\dfrac{2.00 - 1.20}{2023 - 2015} = 0.1 per year on average, a total rise of 66.67%.

A square root. f(x)=x−2xf(x) = x - 2\sqrt{x} on [1,9][1, 9]: f(1)=−1f(1) = -1, f(9)=3f(9) = 3, rate =4/8=0.5= 4/8 = 0.5.

Sine. sin⁡x\sin x on [0,π/2][0, \pi/2]: 1−0π/2=2π≈0.63662\dfrac{1 - 0}{\pi/2} = \dfrac{2}{\pi} \approx 0.63662.

Average rate of change versus instantaneous rate

An average hides what happens in between. For f(x)=x3−xf(x) = x^3 - x on [−1,1][-1, 1], f(−1)=f(1)=0f(-1) = f(1) = 0, so the average rate of change is 0, yet the function rises, falls and rises again inside the interval. A car that covers 120 km in 2 hours averages 60 km/h, whatever the speedometer showed at each moment.

The instantaneous rate of change, or derivative, is what you get by shrinking the interval. Try f(x)=x2f(x) = x^2 with a=2a = 2 and b=2.1b = 2.1, then b=2.01b = 2.01, then b=2.001b = 2.001: the rates 4.1, 4.01, 4.001 approach f′(2)=4f'(2) = 4. The mean value theorem guarantees that, for a smooth function, the average rate on [a,b][a, b] equals the instantaneous rate at some point between aa and bb.

Units and sign

The units of the average rate of change are always output units per input unit: metres per second, euros per month, degrees per hour, people per year. A positive rate means the output increased overall, a negative one that it decreased, and zero that it ended where it started. When the input is time and the output a position, the rate is an average velocity. For a percentage view of the same change, see the percentage calculator; for growth by a constant percentage, see exponential growth.

Frequently asked questions

How do you calculate the average rate of change?

Subtract the starting output from the ending output, then divide by the difference of the inputs: (f(b) − f(a)) / (b − a). For f(x) = x² on [1, 3], that is (9 − 1) / 2 = 4.

Is the average rate of change the same as the slope?

Yes, it is the slope of the secant line through (a, f(a)) and (b, f(b)). For a straight line it is the same on every interval; for a curve it depends on the interval chosen.

What is the difference between average and instantaneous rate of change?

The average rate covers a whole interval; the instantaneous rate is its limit as the interval shrinks to a single point, which is the derivative. For x² at x = 2, the average rates on ever smaller intervals approach 4.

Can the average rate of change be negative or zero?

Yes. Negative means the function decreased overall on the interval; zero means f(a) = f(b), even if the function went up and down in between.

What units does the average rate of change have?

Output units divided by input units: metres per second for distance against time, dollars per year for a price against time, and so on.

Sources

Last updated:

More Math calculators

People also use