Average Rate of Change Calculator

Calculate the average rate of change (f(b)−f(a))/(b−a) for common functions. Includes secant line slope, comparison with instantaneous rate, interval table, and visual diagram.

Average Rate of Change Calculator

f(a)
1.0000
Function value at a = 1
f(b)
9.0000
Function value at b = 3
Average Rate of Change
4.0000
(f(b) − f(a)) / (b − a) = (9.00 − 1.00) / (3.00 − 1.00)
Secant Line
y = 4.0000x + -3.0000
Equation of the line through (a, f(a)) and (b, f(b))
f′(a) — Instantaneous at a
2.0000
Derivative (instantaneous rate) at the left endpoint
f′(b) — Instantaneous at b
6.0000
Derivative (instantaneous rate) at the right endpoint
f′(midpoint)
4.0000
Instantaneous rate at midpoint x = 2.00 (by MVT, equals avg rate somewhere in interval)
Δf / Δx
8.0000 / 2.0000
Change in function value over change in x
Function Curve & Secant Line
Blue = f(x), Red dashed = secant line, Green = endpoints
Rate Comparison
f′(a) at x=1.002.0000
Average rate of change4.0000
f′(mid) at x=2.004.0000
f′(b) at x=3.006.0000

Rate of Change by Sub-interval

#x₀x₁f(x₀)f(x₁)Avg Rate
11.0001.4001.00001.96002.4000
21.4001.8001.96003.24003.2000
31.8002.2003.24004.84004.0000
42.2002.6004.84006.76004.8000
52.6003.0006.76009.00005.6000
Planning notes, formulas, and examples

About the Average Rate of Change Calculator

The average rate of change of a function over an interval [a, b] is the slope of the secant line connecting the two points (a, f(a)) and (b, f(b)). The formula is simply (f(b) − f(a)) / (b − a), often called the difference quotient. This concept is the bridge between algebra and calculus — as the interval shrinks to zero, the average rate of change becomes the instantaneous rate of change, which is the derivative. In everyday terms, average rate of change tells you how fast something is changing on average: speed is the average rate of change of position, growth rate is the average rate of change of population, and slope is the average rate of change of elevation. This calculator supports common function types including linear, quadratic, cubic, square root, exponential, logarithmic, and trigonometric functions. Enter an interval, pick a function type, and see the average rate of change, the secant line equation, and a comparison table showing how the rate varies across sub-intervals. Preset examples cover textbook classics, and the visual diagram shows the function curve with the secant line overlaid. Ideal for calculus students, teachers building examples, or anyone who needs to quantify change over an interval.

When This Page Helps

Evaluating functions at two points and computing the difference quotient is straightforward for simple functions, but this calculator goes further — it computes the secant line equation, compares average vs. instantaneous rates at both endpoints and the midpoint, and breaks the interval into sub-intervals to show how the rate changes locally. This makes it ideal for calculus students learning derivative concepts, teachers building visual demonstrations, or anyone who needs to quantify how fast a function is changing over a specific interval.

How to Use the Inputs

  1. Select a function type from the dropdown (x², x³, √x, eˣ, ln(x), sin, cos, 1/x, or 2x+1).
  2. Enter the left endpoint a and right endpoint b of your interval.
  3. Click a preset like "x² on [1,3]" or "eˣ on [0,1]" for common examples.
  4. View the average rate of change (secant slope), secant line equation, and instantaneous rates at endpoints.
  5. Set the number of sub-intervals to see how the rate varies across the interval in the breakdown table.
  6. Examine the graph showing the function curve with the secant line overlaid.
  7. Adjust Decimal Precision to control how many decimal places are displayed.
Formula used
Average Rate of Change = (f(b) − f(a)) / (b − a) Secant Line: y − f(a) = m(x − a), where m = average rate of change

Example Calculation

Result: 4

For f(x) = x² on [1, 3]: f(1)=1, f(3)=9. Average rate = (9−1)/(3−1) = 8/2 = 4. Secant line: y = 4x − 3.

Tips & Best Practices

  • Check that all inputs use the same scale and assumptions before trusting the result.
  • Compare the answer with the worked example or a rough estimate to catch entry mistakes.

From Secant Lines to Derivatives

The average rate of change is the slope of the secant line connecting two points (a, f(a)) and (b, f(b)) on a curve. As you shrink the interval by bringing b closer to a, the secant line approaches the tangent line, and the average rate of change approaches the derivative f'(a). This limiting process is the fundamental idea behind differential calculus. The difference quotient (f(b) − f(a)) / (b − a) appears in the formal definition of the derivative as lim(h→0) [f(a+h) − f(a)] / h.

Real-World Interpretations

Average rate of change has direct physical meaning in many contexts. In physics, the average velocity is the average rate of change of position: Δx/Δt. In economics, the average marginal cost over a production range is (C(b) − C(a))/(b − a). In biology, population growth rate over a period is the average rate of change of population. Temperature change over time, stock price movement over a quarter, and fuel consumption per mile are all average rates of change.

Mean Value Theorem Connection

The Mean Value Theorem guarantees that for a continuous, differentiable function on [a, b], there exists at least one point c in (a, b) where the instantaneous rate f'(c) exactly equals the average rate over the whole interval. This theorem is the bridge between average and instantaneous behavior and is one of the most important results in calculus. This calculator shows the instantaneous rates at the endpoints and midpoint, helping you visualize where the function's local rate matches the overall average.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • It is the slope of the secant line between two points on a function, calculated as (f(b)−f(a))/(b−a).