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.
- All Math and Numbers Calculators
- Slope Calculator
- Midpoint Calculator
- Inclination Calculator
- Maximum Rate of Change Calculator
Calculator Functions
| Function | What it does | What 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 points | Requires two points, (x₁, y₁) and (x₂, y₂), with different x values |
| Average change of a function | Finds the average rate of change of a function between two inputs | Requires a function of x, a starting input and a different ending input |
| Instantaneous rate at a point | Estimates the derivative of a function at one input, with the tangent line at that point | Requires a function of x and the point x₀ |
| Rate of gain over time | Finds the average change per day between a starting and an ending value | Requires 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 | Rate 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)
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
(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
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
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
- Lamar University, Paul's Online Notes, Algebra: Lines: slope from two points, rise over run and the order of the points
- 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
- McMaster University, Numerical Methods Lecture 3.3, Difference formulas from Richardson extrapolation: combining two central differences to cancel the leading error

