This calculator finds the value of a definite integral, the area under a curve between two limits, for any function, using Simpson's rule, a fast and accurate numerical method. Integration is a cornerstone of calculus, but many functions cannot be integrated with a tidy formula, so numerical methods estimate the answer by sampling the function and summing the pieces. Simpson's rule is one of the best simple methods: rather than approximating the curve with straight lines, as the trapezoidal rule does, it fits little parabolas through groups of three points, which captures curvature and gives excellent accuracy for a modest number of intervals. It is exact for any polynomial up to cubics and very close for almost everything else. This tool applies it to your own function. You enter the function f(x) in ordinary mathematical syntax, the lower and upper limits of integration, and the number of intervals to use, and the calculator returns the estimated value of the integral, the method, the number of intervals, and the range. More intervals give a more accurate result. The results update as you type. Use it to evaluate integrals that have no closed form, to find the area under a curve or between limits, to compute work, probability or other accumulated quantities, or to check a hand calculation. A few notes: the number of intervals is made even, as Simpson's rule requires, and functions can include powers, roots, exponentials, logarithms and trigonometric functions. For very wiggly functions, increase the number of intervals to improve accuracy. This complements the symbolic integral calculator, which finds an exact antiderivative where one exists, while this tool gives a reliable numerical value for any function at all.
Simpson's rule with an even number of intervals. Exact for polynomials up to cubic; very accurate otherwise. Use JS syntax (x*x, sqrt(x), sin(x)). More intervals = more accuracy.
Simpson's rule divides the range into an even number of strips and fits a parabola through each consecutive triple of points. The integral is the strip width over three, times the sum of the end values plus four times the odd-indexed points plus twice the even-indexed interior points. This weighted sum captures curvature and is highly accurate.
Integrating x squared from 0 to 3 with 100 intervals gives 9, which matches the exact answer, since the integral of x squared is x cubed over 3, evaluated from 0 to 3, equals 27 over 3, which is 9. Simpson's rule is exact for polynomials up to cubic, so it returns the precise value here.
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.
© 2019 to 2026 Calculate.co.nz. All rights reserved.