Area Between Curves Calculator

Area between the curves—
Integral of f(x)—
Integral of g(x)—

How Area Between Curves Calculator is calculated: Area = ∫ |f(x) − g(x)| dx from a to b (Simpson's rule, n = 1000)

What is a Area Between Curves Calculator?

The Area Between Curves Calculator is a free online tool that finds the area enclosed between two curves over an interval — the region trapped between them, measured in square units. Calculus students working through applications of integration use it when the area between two graphs without setting up and evaluating the integral by hand. Instead of working out which curve is on top, setting up the integral of the difference, and then integrating it, you type the pair of curves from the list and the interval [a, b] and the calculator returns the area between the curves, plus the integral of each curve on its own straight away.

The working idea is simple. the calculator integrates the absolute difference |f(x) − g(x)| from a to b using Simpson's rule with 1000 subintervals Taking the absolute value matters: if the curves cross inside the interval, the plain difference would cancel the area above against the area below, while the absolute value adds both parts. The two separate integrals are shown so you can see what each curve contributes. There is no sign-up and nothing to install: the page runs entirely in your browser, so your numbers never leave your device.

That matters because the area between curves is the geometric meaning of the integral of a difference, and it turns up wherever two quantities are compared over time — surplus, profit, distance between two moving objects The area is evaluated numerically by Simpson's rule, so it is accurate to about four decimal places for the smooth preset curves — an approximation, not a symbolic exact value. The rest of this page walks through the formula, the input people get wrong most often, and a worked example with real numbers you can check by hand.

How a Area Between Curves Calculator works

At its core, the calculator applies the area is the integral from a to b of the absolute difference of the two functions. Area = ∫ |f(x) − g(x)| dx from a to b. The absolute value keeps the area positive even where g sits above f. When one curve is above the other on the whole interval, the absolute value is unnecessary and the area is simply the difference of the two integrals. The formula box at the top of this page shows the same rule in symbols: Area = ∫ |f(x) − g(x)| dx from a to b (Simpson's rule, n = 1000).

Simpson's rule fits parabolas through triples of points and adds up their areas, with 1000 subintervals over your interval. It is exact for polynomials up to degree 3 and very accurate for smooth curves, which is why the answers agree with the exact values to the decimals shown. The interval must run from a smaller a to a larger b; a reversed or empty interval gives dashes. The curves are preset, so you cannot type your own — pick the pair closest to your problem.

Simpson's rule with 1000 subintervals gives about four correct decimal places for these smooth curves A integral calculator can help you check the numbers that feed into this step, and it is worth doing that check before you trust an answer that looks surprising.

The the pair of curves explained

The pair decides the whole answer, and the mistake people make is picking the pair whose names look right without checking which curve is on top. For f(x) = x and g(x) = x² on [0, 1], the line is above the parabola, so the area is the integral of x − x²; swapping them gives the same area here because of the absolute value, but for a pair that crosses, the top curve changes mid-interval and the setup matters.

Read both curves in the pair before you pick it, and check the interval: the pair (x, x²) only makes sense on [0, 1], where the two curves meet at the ends and enclose a region. If the two curves meet at the ends of your interval, the region is closed and the area is the area enclosed between them. If they do not meet, the area is the area of the strip between them, which is still a meaningful number but a different picture.

For x² against 0 on [0, 1] the area is 1/3, which you can check by hand: the integral of x² from 0 to 1 is 1/3. A derivative calculator is a good cross-check when the input comes from a measurement or a table rather than from a textbook problem.

A worked example

Take the default settings on this page: f(x) = x² and g(x) = 0 on the interval [0, 1]. The region is the area under the parabola and above the x-axis.

The integral of x² from 0 to 1 is 0.3333, the integral of 0 is 0, and the area between them is 0.3333. The exact value is 1/3, which is 0.3333 to four decimal places.

The area 0.33 is a third of the unit square, which makes sense: the parabola starts flat at the origin and only reaches 1 at the far end, so the region under it fills about a third of the square. Try the pair x and x² on the same interval: the area should be 1/2 − 1/3 = 1/6, about 0.17, which is smaller, because the line sits above the parabola and the gap between them is thinner.

Where the Area Between Curves Calculator is used

In economics, the area between a demand curve and a price line is the consumer surplus — the value buyers get above what they pay — and the area between curves is how it is measured.

In physics, the area between two velocity-time graphs is the distance one object gains on another, and the area between a curve and the axis is the displacement itself. A quadratic equation calculator often sits next to it in the same workflow, because the two answers answer different halves of the same question.

In probability, the area between two density curves over an interval is the difference in probability mass, which is how you compare two distributions on the same range.

It also helps to keep the units consistent from the first number to the last. Mixing units — metres with centimetres, degrees with radians, seconds with minutes — is the quietest way to get an answer that looks plausible and is wrong by a large factor. Write the unit next to every number you enter, and check the result's unit against the unit you expect before you use the answer anywhere else.

Area Between Curves Calculator vs Integral Calculator

An integral calculator evaluates the integral of one function, the signed area under one curve. This calculator integrates the difference of two functions, which is the area of the region trapped between them. The single integral is the building block; the area between curves is what you build with it.

Use the integral calculator when you need the area under one curve. Use this one when the question is about the gap between two curves — surplus, distance gained, or the region enclosed by two graphs. The scientific calculator covers the other side of the same problem, so the two tools complement each other rather than compete.

The two agree where they overlap: the integral of f on its own, shown as the second result here, is exactly what the integral calculator would give for f on the same interval.

Common mistakes with the Area Between Curves Calculator

The first mistake is integrating f − g without the absolute value when the curves cross. The signed difference cancels the part where g is on top against the part where f is on top, and the answer comes out too small — sometimes zero for a region with real area.

The second mistake is using the wrong limits. The area between two curves is only the enclosed region if the limits are the points where the curves meet; using other limits gives the area of a strip, which is a different number and a different picture.

The third mistake is forgetting that area is always positive. An integral can be negative, but an area cannot — if your calculation gives a negative number, you have integrated the lower curve minus the upper one, and the sign needs flipping.

A last mistake is trusting the first answer without a rough check. Before you accept a result, estimate it by hand to one significant figure: if the calculator says 400 and your rough estimate says 40, something is off — usually a misplaced decimal point or a wrong unit. The calculator does the arithmetic; the judgement about whether the answer makes sense still belongs to you.

How to use this Area Between Curves Calculator

Open the page and enter the pair of curves from the list and the interval [a, b]. Pick the pair of curves, set the interval, and read the area first. The two separate integrals are shown so you can check the subtraction.

Read the area as the size of the region between the curves, in square units, and read the two integrals as the signed areas under each curve on its own. If the two integrals are equal, the area between the curves is zero only if the curves never cross — if they do cross, the absolute value keeps both lobes, and the area is positive.

Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. If a result looks wrong, re-check the inputs first: a single mistyped number is the usual cause, and a integral calculator will confirm the arithmetic.

Frequently Asked Questions

The area is 0.3333. The integral of x² from 0 to 1 is 0.3333 and the integral of 0 is 0, so the area is 1/3, about 0.33.

the area is the integral from a to b of the absolute difference of the two functions Area = ∫ |f(x) − g(x)| dx from a to b. The absolute value keeps the area positive even where g sits above f. When one curve is above the other on the whole interval, the absolute value is unnecessary and the area is simply the difference of the two integrals.

Because the area between curves must always be positive, while f(x) − g(x) is negative wherever g sits above f. Without the absolute value, the parts where f is on top and the parts where g is on top would cancel each other, and the answer would understate the real area — sometimes to zero.

Very accurate for these smooth curves: with 1000 subintervals the result agrees with the exact value to about four decimal places. Simpson's rule is exact for polynomials up to degree 3, and the error shrinks fast as the number of subintervals grows.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.