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.
AROC = (f(x2) - f(x1)) / (x2 - x1). Use ^ for powers and * for multiplication.
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.
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.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-07-19 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.