Average Rate of Change Calculator

The average rate of change is one of the most useful concepts for understanding how a quantity evolves over an interval. It answers the question: on average, how fast is this function changing between two x values? You calculate it by finding the difference in function output divided by the difference in input, a formula that is identical to the slope of the straight line connecting the two points on the graph, which is called the secant line. This idea bridges the gap between simple linear relationships, where the rate of change is always the same, and the instantaneous rate of change at a single point, which is the derivative from differential calculus. As the interval shrinks the average rate of change approaches the derivative, so understanding AROC is the natural first step before tackling limits and differentiation. This calculator takes any function of x written in standard notation, for example x^2, and two x values x1 and x2. It returns the average rate of change, the equation of the secant line in y = mx + c form, the rise, the run, and the two function values f(x1) and f(x2). Use standard operators +, -, *, / and ^ for powers, plus Math functions like sin, cos, exp, log, sqrt, and abs. The default example shows f(x) = x^2 from x = 1 to x = 3 with AROC = 4 and secant line y = 4x - 3.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Premium Homes: got a section? Let's build your eco home on it.
Advertise on this page
4
average rate of change (AROC)
Secant liney = 4x - 3
f(x1)1
f(x2)9
Rise / Run8 / 2

AROC = (f(x2) - f(x1)) / (x2 - x1). Use ^ for powers and * for multiplication.

How it works

The calculator evaluates f(x1) and f(x2), then computes the average rate of change as (f(x2) - f(x1)) / (x2 - x1). The rise is f(x2) - f(x1) and the run is x2 - x1. The secant line passes through (x1, f(x1)) with slope equal to the AROC. Using point-slope form, y - f(x1) = AROC * (x - x1), which rearranges to y = AROC * x + (f(x1) - AROC * x1). The y-intercept c = f(x1) - AROC * x1 is shown in the equation. If x1 = x2 the AROC is undefined because you cannot divide by zero.

Worked example

For f(x) = x^2, x1 = 1, x2 = 3: f(1) = 1 and f(3) = 9. The rise is 9 - 1 = 8 and the run is 3 - 1 = 2, giving AROC = 8 / 2 = 4. The secant line equation is y = 4x + (1 - 4 * 1) = y = 4x - 3. At x = 1, y = 1 and at x = 3, y = 9, confirming the line passes through both points.

Related calculators