Find the rate of change (slope) between two points, the average rate of change of a function over an interval, or the instantaneous rate at a point.

Use any two (x, y) pairs, such as two rows of a table or time and amount from a word problem.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Two points (slope)Finds the rate of change between two points, with the change in y, the change in x and the equation of the line through both pointsRequires two points, (x₁, y₁) and (x₂, y₂), with different x values
Average change of a functionFinds the average rate of change of a function between two inputsRequires a function of x, a starting input and a different ending input
Instantaneous rate at a pointEstimates the derivative of a function at one input, with the tangent line at that pointRequires a function of x and the point x₀
Rate of gain over timeFinds the average change per day between a starting and an ending valueRequires an initial value, a final value, the elapsed time in days and a value unit

A function is typed in terms of x with + − * / ^ and parentheses, the constants pi and e, and functions such as sqrt, abs, exp, ln, log10, sin, cos and tan. Angles are in radians, and log(value, base) takes a logarithm to any base.

Rate of Change Formulas

R = (y₂ − y₁) ÷ (x₂ − x₁) [1]
RRate of change of y with respect to x, which is the slope of the line through the two points
x₁, y₁Coordinates of the first point
x₂, y₂Coordinates of the second point

The rate of change is the change in y divided by the change in x, also called rise over run. Either point can be entered first, because swapping them changes the sign of both differences and leaves R the same [1].

Two points (slope)

b = y₁ − R × x₁

The main formula gives R, and b is the intercept of the line y = Rx + b through both points. For (1, 2) and (5, 10), R = (10 − 2) ÷ (5 − 1) = 2 and b = 2 − 2 × 1 = 0, so y rises by 2 for each 1-unit increase in x. Two points with the same x value lie on a vertical line, which has no defined rate of change.

Average change of a function

R = [f(x₂) − f(x₁)] ÷
(x₂ − x₁) [2]

The function is evaluated at both inputs, and those two values take the place of y₁ and y₂. The result is the slope of the straight line joining the two points on the curve, not the rate at any single point. For f(x) = x^2 from x = 2 to x = 5, R = (25 − 4) ÷ (5 − 2) = 7.

Instantaneous rate at a point

D(h) = [f(x₀+h) − f(x₀−h)] ÷
2h
f′(x₀) ≈ [4D(h/2) − D(h)] ÷ 3 [3]

The instantaneous rate is the value that average rates approach as the second point closes in on the first from both sides [2]. The calculator estimates it from average rates over two small intervals centred on x₀, with h = 0.001 × the larger of 1 and |x₀|, and combines them so that the largest error term cancels [3]. For f(x) = x^3 at x₀ = 2 the result is 12, and the tangent line is y = 12x − 16. A function with a corner or a jump at x₀, such as abs(x) at 0, has no single instantaneous rate, and the calculator says so instead of giving a number.

Rate of gain over time

R = (final − initial) ÷ days

This is the main formula with elapsed days as the change in x. A plant that grows from 10 cm to 25 cm in 5 days gains (25 − 10) ÷ 5 = 3 cm/day. A final value below the initial value gives a negative rate, which is a loss.

Limits of This Estimate

  • Two points (slope), Average change of a function and Rate of gain over time give an average over the whole interval. Unless the relationship is a straight line, the rate at a single point inside the interval can be very different.
  • Instantaneous rate at a point is a numerical estimate shown to 6 decimals, not a derivative worked out by the rules of calculus. It can be off where a function oscillates faster than the step h.
  • Rate of gain over time works per day only. A period in hours, weeks or years has to be converted to days first.

Sources

  1. Lamar University, Paul's Online Notes, Algebra: Lines: slope from two points, rise over run and the order of the points
  2. Lamar University, Paul's Online Notes, Calculus I: Tangent Lines and Rates of Change: average rate of change of a function and how the instantaneous rate follows from it
  3. McMaster University, Numerical Methods Lecture 3.3, Difference formulas from Richardson extrapolation: combining two central differences to cancel the leading error
Rate of Change Calculator screenshot
rate of change formula