Intermediate

Area Between Two Curves Calculator

This calculator finds the area of the region trapped between two curves f(x) and g(x) across an interval by numerically integrating their absolute difference.

Function f(x)

Function g(x)

Area between curves
0.1667

Integral of |f(x) − g(x)| over the interval

Lower bound
0
Upper bound
1
Interval width
1
ab
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

The area between two curves is the integral of their absolute difference, ∫ₐᵇ |f(x) − g(x)| dx. Choose functions f and g and the interval [a, b], and this tool evaluates that integral with composite Simpson's rule to return the enclosed area, plotting both curves and the shaded region.

Formula
Area = ∫ₐᵇ |f(x) − g(x)| dx
How this is calculated

Pick two functions f(x) and g(x) from the menus and set the interval endpoints a and b. The area between the curves equals the definite integral of the absolute difference |f(x) − g(x)| from a to b. Taking the absolute value guarantees a non-negative area even where the curves cross or swap which one is on top.

The integral is evaluated with composite Simpson's rule using n = 1000 subintervals, which fits parabolas through successive triples of points for high accuracy on smooth functions. The endpoints are ordered automatically, so entering a > b gives the same positive result; if a = b the width is zero and the calculator asks for distinct limits.

Results assume both functions are real and finite over the whole interval. Functions such as √x, ln(x), and 1/x are only defined on part of the real line, so choosing an interval outside their domain produces undefined samples and no result. Because the method is numerical, sharp corners or many oscillations within [a, b] can introduce small approximation error.

Frequently asked questions

The geometric area between curves is always positive. Using |f(x) − g(x)| ensures regions where g rises above f still add to the total instead of subtracting from it.

No. Because the integrand is the absolute difference, swapping f and g gives the identical area.

Composite Simpson's rule with 1000 panels is highly accurate for smooth functions, typically matching the exact area to several decimal places.

Also known as

area between curves
area between two curves
area between functions
region between graphs
integral between curves
area enclosed by curves

APA

TG we-Calculate Editorial Team. (2026). Area Between Two Curves Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/area-between-curves-calculator

Chicago

TG we-Calculate Editorial Team. "Area Between Two Curves Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/area-between-curves-calculator.

IEEE

TG we-Calculate Editorial Team, "Area Between Two Curves Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/area-between-curves-calculator

BibTeX

@misc{wecalculate_area_between_curves_calculator, title = {Area Between Two Curves Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/area-between-curves-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?