Integral Calculator

Evaluate definite integrals numerically with adaptive Simpson quadrature (with exact antiderivatives for polynomials).

Details

3upper limit0lower limitx^2functiondx

Use ^ for powers, and sin, cos, ln or sqrt for functions.

The x value the area starts from. Sits under the ∫ sign.

The x value the area stops at. Sits above the ∫ sign.

Area under the curve

This integrates a function. Choose definite to get the area under the curve between two limits, or indefinite to get the antiderivative.

It returns the answer with the working shown, including the antiderivative it found first and how the two limits were substituted and subtracted.

What is an integral?

An integral adds up an infinite number of tiny pieces. Most often it is measuring the area underneath a curve.

Finding the area under a straight line is easy, because it makes triangles and rectangles. Under a curve there is no neat shape, so integration slices the region into strips so thin that the error disappears, then totals them.

It is also the exact reverse of differentiating, and that reverse has its own name: the antiderivative.

If differentiating x³ gives 3x², then the antiderivative of 3x² is x³. You are asking: *what function would I have to differentiate to end up with this one?* Finding an indefinite integral and finding an antiderivative are the same job, described from two directions.

The two ideas connect through one result. To get the area under a curve between two points, you find its antiderivative, put both points into it, and subtract. That link between areas and antiderivatives is the fundamental theorem of calculus, and it is why one tool answers both questions.

Reading a definite integral
integral sign
0lower limit: start here
3upper limit: stop here
the function
dxthe variable you slice along

The two small numbers on the integral sign are the start and end points. The dx is not decoration: it says the strips are thin slices of x, and it tells you which letter is the variable.

What to enter

Which integral do you want?
Definite gives a number, the area between two points. Indefinite gives a function back, the general antiderivative.
Your function
Type it as you would say it: x^2, 3x, sin(x), e^x, 1/x. Use ^ for powers.
From / to
Only for a definite integral. The x value where the region starts and where it ends.

The two kinds, and how they differ

Indefinite integral
No limits on the sign. The answer is a function plus '+ C'. Asks: what would I have to differentiate to get this?
Definite integral
Has a start and end number. The answer is a single value, usually an area. No + C, because it cancels out.
Why + C exists
Differentiating destroys any constant, since the derivative of 5 is 0. So reversing the process cannot know what constant was there, and C stands in for every possibility.

What this assumes

The function is continuous across the range. A break or an infinite jump between the limits needs special handling.

Trigonometric functions use radians, as is standard in calculus.

How to calculate an integral

The power rule runs backwards. Where differentiating knocks the power down, integrating pushes it up.

∫ xⁿ dx = xⁿ⁺¹ ÷ (n + 1) + C
n + 1
Add one to the power
÷ (n + 1)
Then divide by that new power
C
The unknown constant, on indefinite integrals only
  1. Raise the power by one. x² becomes x³.

  2. Divide by the new power. So x² integrates to x³/3. Check it by differentiating back: the 3 comes down and cancels the ÷3, leaving x².

  3. Add + C, if indefinite. Skip this only when you have limits.

  4. For a definite integral, substitute and subtract. Put the top limit into your answer, then the bottom limit, and subtract the second from the first.

See a worked example: the area under x² from 0 to 3
Function
From
0
To
3

Integrate first: raise the power to x³, then divide by 3, giving x³/3.

Put in the top limit: 3³ ÷ 3 = 27 ÷ 3 = 9.

Put in the bottom limit: 0³ ÷ 3 = 0.

Subtract: 9 − 0 = 9.

No + C here, because it would appear in both substitutions and cancel itself out.

The area is 9

Frequently asked questions

Problems people actually run into

Dropping the + C

The most common lost mark in the whole topic. An indefinite integral without + C is an incomplete answer, not a slightly untidy one.

The habit worth building: write + C as soon as you finish integrating, before you tidy anything up, so it is never an afterthought.

Subtracting the limits the wrong way round

It is always top limit minus bottom limit. Doing it in reverse flips the sign of the whole answer.

An area that comes out negative when the curve is clearly above the axis is nearly always this mistake rather than a genuine negative region.

Results are estimates for general information only and are not professional financial, medical, or legal advice. Read our full disclaimer.

Last updated: September 3, 2026