Skip to content

Definite Integral Calculator

Fill in the function and the lower and upper limits to get the exact value of the integral, the antiderivative used, and the area shaded under the curve.

Your problem will appear here as you type.

How to use the definite integral calculator

  1. Type the function of x.
  2. Enter the lower and upper limits. Use pi for π and inf for infinity.
  3. Press Solve to see F(b) − F(a) and the shaded area.

What a definite integral measures

A definite integral ∫ from a to b of f(x) dx gives the signed area between the graph of f and the x-axis, from x = a to x = b. Area above the axis counts as positive and area below counts as negative.

The Fundamental Theorem of Calculus

If F is an antiderivative of f, then ∫ from a to b of f(x) dx = F(b) − F(a). Find the antiderivative, evaluate it at the top limit, evaluate it at the bottom limit, and subtract.

Example: area under a parabola

Evaluate ∫ from 0 to 3 of x² dx

  1. An antiderivative is F(x) = x³/3.
  2. F(3) = 27/3 = 9 and F(0) = 0.
  3. Subtract: 9 − 0 = 9.

Answer: 9

Example: one arch of a sine wave

Evaluate ∫ from 0 to π of sin(x) dx

  1. An antiderivative is F(x) = −cos(x).
  2. F(π) = −cos π = 1 and F(0) = −cos 0 = −1.
  3. Subtract: 1 − (−1) = 2.

Answer: 2

Signed area versus total area

∫ from −1 to 1 of x³ dx equals 0, because the area on the left of the axis cancels the area on the right. If you want the total geometric area, split the integral at the point where the function crosses zero and add the absolute values.

Handy properties

  • Reversing the limits changes the sign: ∫ from a to b = −∫ from b to a.
  • Splitting the interval: ∫ from a to c = ∫ from a to b + ∫ from b to c.
  • Constants come out: ∫ k·f(x) dx = k·∫ f(x) dx.
  • A zero-width interval gives zero: ∫ from a to a = 0.

Frequently asked questions

How do I enter π as a limit?

Type pi, or use the π key on the keypad.

How is the answer computed if no antiderivative exists?

The area is computed numerically with adaptive Simpson's rule and the answer is labelled as approximate.

Other calculators