Skip to content
FiftyCalc Free calculators for all 50 states

Area Between Curves Calculator

Test cases replayed : 4 of 4 match · Methodology · No outside source listed

Enter f(x) = a₁x² + b₁x + c₁ and g(x) = a₂x² + b₂x + c₂ (use a = 0 for a line) and the interval from a to b. The calculator integrates |f(x) − g(x)| exactly, splitting the interval where the curves cross.

Result

Sample figures

Area between the curves (square units)—

Signed integral of f(x) − g(x) from a to b —

  • Curves cross inside the interval at x =—
  • Second crossing at x =—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Area Between Curves Calculator

f(x): a₁, coefficient of x²: enter a number. Prefilled example: 0.

f(x): b₁, coefficient of x: enter a number. Prefilled example: 1.

f(x): c₁, constant: enter a number. Prefilled example: 0.

g(x): a₂, coefficient of x²: enter a number. Prefilled example: 1.

g(x): b₂, coefficient of x: enter a number. Prefilled example: 0.

g(x): c₂, constant: enter a number. Prefilled example: 0.

Interval start a: enter a number. Prefilled example: 0.

Interval end b: enter a number. Prefilled example: 1.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. f(x): a₁, coefficient of x²: enter a number.
  2. f(x): b₁, coefficient of x: enter a number.
  3. f(x): c₁, constant: enter a number.
  4. g(x): a₂, coefficient of x²: enter a number.
  5. g(x): b₂, coefficient of x: enter a number.
  6. g(x): c₂, constant: enter a number.
  7. Interval start a: enter a number.
  8. Interval end b: enter a number.
  9. Read the result: Area between the curves (square units); the panel also shows Signed integral of f(x) − g(x) from a to b, Curves cross inside the interval at x = and Second crossing at x =.

How this calculator works

Area = ∫ from a to b of |f(x) − g(x)| dx. With d(x) = f(x) − g(x) = Ax² + Bx + C, an antiderivative is D(x) = Ax³/3 + Bx²/2 + Cx (fundamental theorem of calculus).

Where the curves cross inside the interval, d(x) = 0 (quadratic formula: x = (−B ± √(B² − 4AC)) ÷ 2A, or x = −C ÷ B when A = 0). The interval is cut at those points and the absolute values of D(right end) − D(left end) are added, so area below and above never cancel.

The signed integral lets parts where g is above f count as negative, and it changes sign when a is greater than b; it equals the area only when f ≥ g on the whole interval and a < b.

Worked example

f(x): a₁, coefficient of x²0
f(x): b₁, coefficient of x1
f(x): c₁, constant0
g(x): a₂, coefficient of x²1
g(x): b₂, coefficient of x0
g(x): c₂, constant0
Interval start a0
Interval end b1
Area between the curves (square units)0.1667
Signed integral of f(x) − g(x) from a to b0.1667

Frequently asked questions

What is the area between y = x and y = x² from 0 to 1?

∫₀¹ (x − x²) dx = 1/2 − 1/3 = 1/6 ≈ 0.1667. These are the default values.

Do I need to know which curve is on top?

No. The calculator integrates the absolute difference piece by piece, so the order of f and g does not change the area.

How do I find the area enclosed by two curves?

Set a and b to the x-values where the curves meet (solve f(x) = g(x)); between those points one curve stays above the other.

Related calculators