Area Under the Curve Calculator

The area under a curve is one of the most visual concepts in calculus. When you plot a function and shade the region between its graph and the x-axis over a chosen interval, that shaded area represents a concrete quantity: the total accumulated value of the function across that span. In physics it might be the total distance covered when you integrate velocity over time, or the total work done when you integrate force over displacement. In probability it is the chance that a random variable falls within an interval. In economics it is the total revenue when you integrate a demand curve. This calculator takes any function of x written in standard notation, for example x^2, a lower limit a and an upper limit b, and returns four results: the total shaded area (all regions counted as positive), the net signed area (regions below the x-axis counted as negative), the average value of the function across the interval, and the width of the interval for reference. Calculation uses Simpson's rule with 1000 subintervals, which gives a highly accurate numerical answer for smooth functions. The calculator is distinct from a Riemann sum calculator because it emphasises the geometric shaded-area concept and provides the average value alongside. Use standard operators +, -, *, / and ^ for powers, plus functions like sin, cos, exp, log, and sqrt.

Conservation Amendment Bill
9.000
shaded area under the curve
Net signed area9.000
Average value of f3.000
Interval width3.000

Shaded area treats all regions as positive. Net signed area subtracts regions below the x-axis. Uses Simpson's rule with 1000 subintervals.

How it works

The calculator applies Simpson's rule: the interval [a, b] is divided into 1000 equal subintervals of width h = (b - a) / 1000. The signed integral sums f(a) + 4f(a+h) + 2f(a+2h) + 4f(a+3h) + ... + f(b), all multiplied by h/3. The shaded area applies the same rule to |f(x)| instead of f(x), so regions below the x-axis contribute positively. The average value of f over [a, b] is the signed integral divided by (b - a), giving the height of a rectangle with the same base and the same net area as the signed region.

Worked example

For f(x) = x^2, a = 0, b = 3: the exact definite integral is x^3/3 evaluated from 0 to 3 = 27/3 = 9.000. Because x^2 is always non-negative, the shaded area and the net signed area are both 9.000. The interval width is 3 and the average value of f over [0, 3] is 9.000 / 3 = 3.000. These match the defaults pre-filled above.

Related calculators

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.

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-06-25 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.