Definite Integral Calculator
Calculate the definite integral of a function between two limits numerically, with the average value of the function.
How to use this calculator
Type the function using x, for example x^2, 3x + 1, sin(x), e^x or sqrt(x). Use ^ for powers, and functions such as sin, cos, tan, sqrt, ln, log (base 10), exp and abs; trigonometric functions use radians and pi is accepted. Enter the limits a and b. The result is the signed area between the curve and the x-axis.
Formula
The integral ∫ₐᵇ f(x) dx is computed with adaptive Simpson's rule: the interval is split until each piece agrees with its two halves to within a tight tolerance. Simpson's rule approximates f by parabolas: ∫ ≈ (h ÷ 3)[f(x₀) + 4f(x₁) + f(x₂)]. Average value = integral ÷ (b − a).
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewIfrahMSc Mathematics
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
What does a definite integral measure?
The signed area between the curve and the x-axis from a to b. Area below the axis counts as negative.
Is the answer exact?
It is a numerical approximation, usually accurate to 8 or more significant figures for smooth functions. Functions with jumps or infinite values need care.
How do I enter π or e?
Type pi and e, for example sin(pi x) or e^(-x^2).
Can the limits be reversed?
Yes. Swapping a and b changes the sign of the integral.
Can I integrate to infinity?
Not directly. Use a large finite limit and check that the result stops changing as the limit grows.
Does it find the antiderivative?
No. It computes the numerical value of the definite integral. Symbolic antiderivatives need a computer algebra system.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- Strang, G., & Herman, E. J. (2016). Numerical integration. In Calculus volume 2 (Section 3.6). OpenStax. View source
- Strang, G., & Herman, E. J. (2016). Calculus volume 1. OpenStax. View source
- Olver, F. W. J., Lozier, D. W., Boisvert, R. F., & Clark, C. W. (Eds.). (2024). NIST Digital Library of Mathematical Functions. National Institute of Standards and Technology. View source
- Stewart, J., Clegg, D. K., & Watson, S. (2021). Calculus: Early transcendentals (9th ed.). Cengage. View source