Rate of Change Formula Calculator with Steps
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator works out the average rate of change of a function between two points. You enter the x- and y-values of the two points, and it returns the slope of the straight line connecting them, along with the step-by-step calculation. The result tells you how much the output (y) changes per one unit of input (x) over that interval.
Formula
The average rate of change of a function f(x) between x = a and x = b is given by:
Average rate of change = (f(b) − f(a)) / (b − a)
In the calculator above, the two points are (x�, y�) and (x₂, y₂), so the formula becomes:
(y₂ − y�) / (x₂ − x�)
Where:
- y₂ − y� is the change in the output value (often called Δy, delta y).
- x₂ − x� is the change in the input value (Δx, delta x).
- The result is the slope of the secant line through the two points on the graph of the function.
The units of the result are the units of y divided by the units of x. For example, if y is distance in miles and x is time in hours, the rate of change is in miles per hour.
Worked Example
Using the default values from the calculator: point 1 is (1, 3) and point 2 is (5, 11).
- Find the change in y: Δy = y₂ − y� = 11 − 3 = 8
- Find the change in x: Δx = x₂ − x� = 5 − 1 = 4
- Divide: rate = 8 ÷ 4 = 2
The average rate of change is 2. This means that for each unit increase in x, the y value increases by 2 on average over the interval from x = 1 to x = 5. The calculator rounds to 2 decimal places, so it shows 2.00.
What the Rate of Change Means
The average rate of change is the same as the slope of the straight line that connects the two points. It gives you a single number that summarises how fast the function is changing over that whole interval, ignoring any ups and downs in between.
For a linear function like y = 2x + 1, the rate of change is constant everywhere, so the average rate of change over any interval equals the slope of the line. For a curved function like y = x², the average rate of change varies depending on which two points you pick, and it is not equal to the instantaneous rate of change at any single point (that is the derivative).
Real-world uses include:
- Speed: distance travelled divided by time elapsed.
- Population growth: change in population over a number of years.
- Cost per unit: change in total cost divided by change in quantity produced.
- Temperature change: degrees warmed or cooled per hour.
How to Use the Calculator
Enter the coordinates of two points. The order matters only for the sign of the result: if you swap the points, the numerator and denominator both change sign, so the rate stays the same. For example, using (5, 11) first and (1, 3) second gives (3 − 11)/(1 − 5) = (−8)/(−4) = 2, the same answer.
Make sure the two x-values are different. If x� = x₂, the denominator is zero and the rate of change is undefined (the line is vertical). The calculator will show an error or a very large number in that case; you must pick two distinct x-values.
The result is rounded to two decimal places. For most purposes that is enough, but if you need more precision, use the raw numbers in your own calculation.
Common Mistakes and How to Avoid Them
- Mixing up x and y. The numerator must be the change in the output (y), and the denominator must be the change in the input (x). Swapping them gives the reciprocal, which is wrong.
- Using the wrong order. As long as you subtract the same point from the other for both x and y, the order does not matter. But if you do (y₂ − y�)/(x� − x₂), you get the negative of the correct answer.
- Forgetting units. The rate of change carries units. If y is in dollars and x is in years, the result is dollars per year, not just a number.
- Rounding too early. Round intermediate values only at the end, otherwise your final answer can be off.
- Assuming it is the instantaneous rate. The average rate over an interval is not the same as the rate at a specific instant unless the function is linear.
When to Use Average vs. Instantaneous Rate
Use the average rate of change when you need the overall behaviour between two known points, for example, the average speed of a car over a whole trip. Use the instantaneous rate of change (the derivative) when you need the rate at a single moment, such as the speedometer reading at one instant.
To approximate the instantaneous rate from data, you can take the average rate over a very small interval around the point of interest. For a smooth function, as the interval shrinks to zero, the average rate approaches the derivative.
If you have a function formula rather than just two points, you can find the exact instantaneous rate by differentiating. For a table of data with only discrete points, the average rate between consecutive points is often the best you can do.
Limitations of the Formula
The average rate of change formula works for any function as long as the two x-values are different. It does not require the function to be continuous or differentiable; it simply uses the two endpoints. However, it hides everything that happens in between. A function could rise and fall wildly inside the interval and still have the same average rate as a straight line.
For example, the function y = sin(x) between x = 0 and x = 2π has an average rate of change of 0 because sin(0) = sin(2π) = 0, even though the function goes up and down. Always consider whether the average is meaningful for your context, or whether you need more data points.
The formula also assumes the input values are measured on a consistent scale. If x is time in minutes, you cannot mix minutes and hours in the same calculation without converting.
Frequently Asked Questions
What is the difference between rate of change and slope?
They are the same thing when you are talking about a straight line. The slope of a line is the rate of change of y with respect to x. For a curve, the slope changes at every point, so you talk about the average rate of change between two points or the instantaneous rate of change (the derivative) at one point.
Can the rate of change be negative?
Yes. If y decreases as x increases, the rate of change is negative. For example, if you drive downhill, your altitude decreases over time, so the rate of change of altitude with respect to time is negative. The calculator handles negative values correctly as long as you enter them with a minus sign.
What if the two x-values are the same?
Then the denominator is zero, and the rate of change is undefined. Geometrically, the line through the two points is vertical, and vertical lines have no slope. You need to choose two different x-values to get a meaningful average rate of change.
How do I find the rate of change from a graph?
Pick two points on the curve, read their coordinates, and apply the same formula. The result is the slope of the secant line through those points. If you want the rate at a single point, draw a tangent line at that point and find its slope.
Does the average rate of change equal the derivative?
Only for a linear function. For any other function, the average rate over an interval is generally different from the instantaneous rate at any point inside that interval. The derivative is the limit of the average rate as the interval length approaches zero.
Why does the calculator show 2.00 instead of 2?
The calculator rounds the result to two decimal places for consistency. The underlying value is exactly 2, so 2.00 is just the formatted display. If you need the exact value, you can read it from the step-by-step calculation shown in the worked example.
Related
Formula used
in x1 | x� | - | 1 | 0 in y1 | y� | - | 3 | 0 in x2 | x₂ | - | 5 | 0 in y2 | y₂ | - | 11 | 0 out rate | Average rate of change | (y₂ - y�) / (x₂ - x�) | 2 out dy | Change in y (Δy) | y₂ - y� | 2 out dx | Change in x (Δx) | x₂ - x� | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.