Calculus · How-to

How to Compute a Definite Integral Online

The exact syntax, five worked examples, and the signed-area subtlety that trips people up — so your definite integrals come out right the first time.

fx-991ES Web TeamUpdated 23 June 20267 min read

A definite integral calculator online turns the area-under-a-curve problem into a single keystroke sequence. This guide shows exactly how to enter one on our free scientific calculator, with examples you can reproduce and a clear explanation of why some answers come out negative or zero.

On this page

  1. What a definite integral measures
  2. Entering one, step by step
  3. Five worked examples
  4. Area between two curves
  5. When the answer looks wrong
  6. FAQ

What a definite integral measures

A definite integral ∫ab f(x) dx is the signed area between the curve y = f(x) and the x-axis, from x = a to x = b. "Signed" is the key word: area above the axis is positive, area below is negative, and the integral reports the net total. That single idea explains almost every surprising result you'll see.

Entering one, step by step

  1. Make sure you're in COMP mode.
  2. If your function uses trig, set the angle mode to Rad.
  3. Press the template key.
  4. Type the integrand in terms of x.
  5. Enter the lower limit, then the upper limit, separated by commas.
  6. Press =.

The general form is:

∫(f(x), lower, upper)

Five worked examples

1 · Polynomial

∫(x^2, 0, 3)9. Antiderivative x³/3 from 0 to 3 = 27/3 = 9. ✔

2 · Trig (Rad mode)

∫(sin(x), 0, π)2. One arch of the sine curve has area exactly 2.

3 · Reciprocal → a logarithm

∫(1/x, 1, 2)0.6931… = ln 2.

4 · Exponential

∫(e^(x), 0, 1)1.7182… = e − 1.

5 · Signed area cancels

∫(x^3, -1, 1)0. x³ is odd, so the negative area on [−1, 0] cancels the positive area on [0, 1].

Why example 5 isn't a bug

If you actually wanted the total (unsigned) area, integrate the absolute value or split the integral at the root: ∫(x^3, 0, 1) doubles to 0.5.

Area between two curves

To find the region enclosed between an upper curve and a lower curve on [a, b], integrate their difference:

∫(top(x) − bottom(x), a, b)
Example

Area between y = x and y = x² on [0, 1]: ∫(x − x^2, 0, 1)0.1666… = 1/6.

When the answer looks wrong

These and more are covered in common integration mistakes students make. For the wider picture of how the tool's calculus engine works, see the pillar guide on using an online integration & derivative calculator, and the companion on numerical differentiation.

Frequently asked questions

How do I compute a definite integral online?

In COMP mode press the ∫ key and enter ∫(f(x), lower, upper) — e.g. ∫(x^2, 0, 3) = 9 — then press =.

Why does my integral return a negative number?

A definite integral measures signed area; regions below the x-axis subtract, so the net can be negative or zero.

Do I need radians for trig integrals?

Yes — set the angle mode to Rad before integrating sin, cos or tan.

Can it find the area between two curves?

Yes — integrate top(x) − bottom(x) over the interval.

Compute your integral now

Open the calculator, press ∫, and reproduce any example above in seconds.

Open the definite integral calculator →