This calculator numerically evaluates the definite integral of any function you provide, over a lower and upper bound that you set, using Simpson's rule with 1000 subintervals. The definite integral of f(x) from a to b gives you the net signed area between the curve and the x-axis on that interval: positive where the function is above the axis and negative where it falls below. Integration is the reverse process of differentiation and is one of the two fundamental operations of calculus. It appears throughout physics (displacement from velocity, work from force), engineering (signal processing, moment of inertia), statistics (probability from a density function), and finance (continuous compounding models). Symbolic integration is only possible in closed form for certain families of functions, but numerical integration can handle almost any well-behaved expression. Simpson's rule works by dividing your interval into many small pieces, fitting a parabolic arc to each pair of adjacent strips, and summing the results. With 1000 subintervals the method is highly accurate for smooth functions, typically correct to six or more decimal places. You type the function using standard maths notation (for example x*x, sin(x) or exp(-x*x)), set a and b, and the result appears immediately. Supported functions include all standard Math object methods. The tool is suited to calculus students, scientists and engineers who need a quick numerical check. Results are approximations; verify symbolically where an exact answer is needed.
Uses Simpson's rule with 1000 subintervals. Accuracy is very high for smooth continuous functions. Avoid intervals where f(x) is undefined.
Simpson's rule divides the interval [a, b] into n equal subintervals (n must be even; this calculator uses n = 1000). The step size h = (b − a) / n. The approximation is (h / 3) times the sum of f(a) + 4f(x1) + 2f(x2) + 4f(x3) + ... + 4f(x_n-1) + f(b), where coefficients alternate 4 and 2 for interior points. The error is proportional to h to the power of four, making Simpson's rule far more accurate than the trapezoidal rule for the same number of evaluations. The function is evaluated using JavaScript's Function constructor with Math in scope.
Integrate f(x) = x*x from 0 to 3. The exact antiderivative is x cubed divided by 3, so the exact integral is (27 / 3) − (0 / 3) = 9. The calculator returns 9.000000, matching the exact result. f(0) = 0 and f(3) = 9 are shown as supporting figures. These match the default values pre-filled in the calculator above.
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 by 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-27 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.