Area Between Two Curves: Formula & Examples

#Calculus
TL;DR
The area between two curves is the size of the region trapped between them, found by integrating the gap. When one curve stays above the other on $[a, b]$, the area is $\int_a^b \big(\text{top} - \text{bottom}\big),dx$, and the two intersection points give the bounds $a$ and $b$. If the curves are easier to write as functions of $y$, integrate $\int_c^d \big(\text{right} - \text{left}\big),dy$ instead, and if the curves cross inside the interval, split the integral at each crossing (or integrate the absolute value $\lvert f - g\rvert$) so every piece stays positive.
BT
Bhanzu TeamLast updated on September 27, 202613 min read

What Is The Area Between Two Curves?

The area between two curves is the area of the region enclosed between the graphs of two functions over an interval. If $f(x) \ge g(x)$ for every $x$ in $[a, b]$, meaning the graph of $f$ sits on top and the graph of $g$ sits below, then the area of the region between them is:

$$A = \int_a^b \big[,f(x) - g(x),\big],dx$$

The idea is a single definite integral built from thin vertical rectangles. Each representative rectangle has width $dx$ and height equal to the vertical gap $f(x) - g(x)$, so its area is $\big[f(x) - g(x)\big],dx$. Adding up every rectangle from $x = a$ to $x = b$ is exactly what the integral does. This is the same accumulation idea as the area under a curve, except the baseline is a second curve instead of the $x$-axis.

Two facts make the formula reliable:

  • Height is always top minus bottom. Writing $f(x) - g(x)$ with the upper curve first keeps every rectangle height positive, so the integral returns a genuine area rather than a signed value.

  • The bounds are the intersection points. The region usually starts and ends where the two curves meet, so the limits $a$ and $b$ come from solving $f(x) = g(x)$.

How Do You Find The Bounds From Intersection Points?

The interval of integration is rarely handed to you. It comes from finding where the two curves cross, because those crossings are the left and right edges of the enclosed region.

Set the two functions equal and solve:

$$f(x) = g(x)$$

The solutions are the $x$-coordinates of the intersection points, and they become the limits $a$ and $b$. For a line and a parabola this is a quadratic equation; for two curves it may be any equation you can solve. If more than two solutions appear, the curves cross more than once, and each pair of neighbouring crossings bounds a separate piece of the region.

Once you have the crossings, run a quick test point between them to see which curve is on top. Pick any $x$ inside the interval, evaluate both functions, and the larger value is the top curve for that stretch. That one check decides the order $f - g$ and protects you from a negative answer.

How Do You Integrate Top Minus Bottom? (Worked Examples)

Each example is fully stepped, and every definite integral is checked by differentiating the antiderivative $F(x)$ back to the integrand, so $F'(x)$ returns the height function.

Example 1: A line above a parabola.

Find the area between $y = 2x$ and $y = x^2$.

First, the intersection points. Set the curves equal:

$$2x = x^2 \implies x^2 - 2x = 0 \implies x(x - 2) = 0$$

So the curves meet at $x = 0$ and $x = 2$; these are the bounds. Test $x = 1$: the line gives $2(1) = 2$ and the parabola gives $1^2 = 1$, so the line $y = 2x$ is the top curve on $[0, 2]$. The area is:

$$A = \int_0^2 \big[,2x - x^2,\big],dx = \left[,x^2 - \frac{x^3}{3},\right]_0^2 = \left(4 - \frac{8}{3}\right) - 0 = \frac{4}{3}$$

Check: $F(x) = x^2 - \dfrac{x^3}{3}$ gives $F'(x) = 2x - x^2$, the height function, so the antiderivative is correct.

Final answer: $A = \dfrac{4}{3}$ square units.

Example 2: Curves that cross, using a split integral.

Find the total area enclosed between $y = x^3$ and $y = x$ from $x = -1$ to $x = 1$.

Solve $x^3 = x$: this gives $x^3 - x = 0$, so $x(x-1)(x+1) = 0$ and the curves meet at $x = -1$, $x = 0$, and $x = 1$. The extra crossing at $x = 0$ warns that the top curve swaps partway through, so a single $\int (f - g)$ would let positive and negative pieces cancel. Test one point in each subinterval:

  • On $[-1, 0]$, take $x = -\tfrac{1}{2}$: $x^3 = -\tfrac{1}{8}$ and $x = -\tfrac{1}{2}$, so $x^3$ is on top.

  • On $[0, 1]$, take $x = \tfrac{1}{2}$: $x^3 = \tfrac{1}{8}$ and $x = \tfrac{1}{2}$, so $x$ is on top.

Split the integral at the crossing and keep each piece as top minus bottom:

$$A = \int_{-1}^{0} \big[,x^3 - x,\big],dx + \int_{0}^{1} \big[,x - x^3,\big],dx$$

$$= \left[\frac{x^4}{4} - \frac{x^2}{2}\right]{-1}^{0} + \left[\frac{x^2}{2} - \frac{x^4}{4}\right]{0}^{1} = \frac{1}{4} + \frac{1}{4} = \frac{1}{2}$$

Check: $F_1'(x) = x^3 - x$ and $F_2'(x) = x - x^3$, each matching its piece. Splitting is the same as integrating $\lvert x^3 - x\rvert$, which is what the absolute-value form $\int \lvert f - g\rvert,dx$ means in practice.

Final answer: $A = \dfrac{1}{2}$ square unit.

Example 3: A trigonometric region.

Find the area between $y = \sin x$ and $y = \cos x$ from $x = \tfrac{\pi}{4}$ to $x = \tfrac{5\pi}{4}$.

Between these limits $\sin x \ge \cos x$ (at $x = \tfrac{\pi}{2}$, $\sin = 1$ and $\cos = 0$), so the height is $\sin x - \cos x$. An antiderivative is $F(x) = -\cos x - \sin x$:

$$A = \int_{\pi/4}^{5\pi/4} \big[,\sin x - \cos x,\big],dx = \Big[,-\cos x - \sin x,\Big]_{\pi/4}^{5\pi/4}$$

At $x = \tfrac{5\pi}{4}$: $-\left(-\tfrac{\sqrt{2}}{2}\right) - \left(-\tfrac{\sqrt{2}}{2}\right) = \sqrt{2}$. At $x = \tfrac{\pi}{4}$: $-\tfrac{\sqrt{2}}{2} - \tfrac{\sqrt{2}}{2} = -\sqrt{2}$. So $A = \sqrt{2} - (-\sqrt{2}) = 2\sqrt{2}$.

Check: $F'(x) = \sin x - \cos x$, the integrand, so the evaluation is valid.

Final answer: $A = 2\sqrt{2} \approx 2.8284$ square units. Setting these bounds needs the integration of trigonometric functions.

When Should You Integrate With Respect To Y?

Sometimes the region is bounded by curves that are simple functions of $y$ but awkward as functions of $x$. A sideways parabola $x = y^2$ is not a single function of $x$, because each $x$ has two $y$-values. In that case, turn the picture on its side: use horizontal rectangles of height $dy$ and width equal to the horizontal gap between the two curves.

If $u(y) \ge v(y)$ for every $y$ in $[c, d]$, meaning $u$ is the right-hand curve and $v$ is the left-hand curve, the area is:

$$A = \int_c^d \big[,u(y) - v(y),\big],dy$$

The pattern is identical to the $x$-version, with two changes: the height becomes right minus left, and the bounds $c$ and $d$ are the $y$-coordinates of the intersection points, not the $x$-coordinates.

Example 4: A region set up in $y$.

Find the area enclosed between $x = y^2$ and $x = y + 2$.

Set the two expressions for $x$ equal and solve for $y$:

$$y^2 = y + 2 \implies y^2 - y - 2 = 0 \implies (y - 2)(y + 1) = 0$$

So the curves meet at $y = -1$ and $y = 2$; these are the bounds. Test $y = 0$: the line gives $x = 2$ and the parabola gives $x = 0$, so the line $x = y + 2$ is the right-hand curve. Integrate right minus left:

$$A = \int_{-1}^{2} \big[,(y + 2) - y^2,\big],dy = \left[,\frac{y^2}{2} + 2y - \frac{y^3}{3},\right]_{-1}^{2}$$

At $y = 2$: $2 + 4 - \tfrac{8}{3} = \tfrac{10}{3}$. At $y = -1$: $\tfrac{1}{2} - 2 + \tfrac{1}{3} = -\tfrac{7}{6}$. So $A = \tfrac{10}{3} - \left(-\tfrac{7}{6}\right) = \tfrac{20}{6} + \tfrac{7}{6} = \tfrac{27}{6} = \tfrac{9}{2}$.

Check: $F(y) = \dfrac{y^2}{2} + 2y - \dfrac{y^3}{3}$ gives $F'(y) = y + 2 - y^2$, the height, so the antiderivative is correct. Solving this region in $x$ would have needed two separate integrals; in $y$ it takes one.

Final answer: $A = \dfrac{9}{2}$ square units.

Which Method Should You Choose? A Quick Reference

The setup, not the arithmetic, is where marks are won on this topic. This table settles which form to use.

Table: Choosing the right area-between-two-curves setup.

Situation

Integrate in

Height of a strip

Bounds are

One curve stays above the other, both are functions of $x$

$x$ (use $dx$)

top $-$ bottom, $f(x) - g(x)$

$x$-values of the intersections

Curves are cleaner as functions of $y$ (sideways openings)

$y$ (use $dy$)

right $-$ left, $u(y) - v(y)$

$y$-values of the intersections

Curves cross inside the interval

either

$\lvert f - g\rvert$

split at every crossing

Region has different top curves on different stretches

$x$

top $-$ bottom, per piece

split where the top curve changes

Read the picture first, choose the variable that makes each curve a single function, then set up top minus bottom or right minus left before touching the arithmetic.

Why Does The Top-Minus-Bottom Formula Work?

The formula is not a rule to memorise; it falls straight out of what an integral already means.

  • A Riemann sum of rectangles. Slice the region into thin vertical strips. One strip at position $x$ is almost a rectangle of width $dx$ and height $f(x) - g(x)$, so its area is $\big[f(x) - g(x)\big],dx$. The integral is the limit of adding all these strips as the width shrinks to zero.

  • Two areas subtracted. The area under the top curve down to the $x$-axis is $\int_a^b f(x),dx$, and the area under the bottom curve is $\int_a^b g(x),dx$. The region between them is the first minus the second, which is $\int_a^b \big[f(x) - g(x)\big],dx$ by the linearity of the integral.

  • Why the order matters. Writing bottom minus top would make every rectangle height negative and hand back a negative number. Area is never negative, so the top curve always comes first. A negative result is the calculator telling you the curves were entered the wrong way round.

Both readings agree, and both explain why crossing curves force a split: at a crossing the roles of $f$ and $g$ swap, so a single subtraction would count one piece as negative and cancel real area. This subtraction of accumulations is the Fundamental Theorem of Calculus doing its everyday job.

Who Discovered The Area Between Two Curves First?

Long before integrals had symbols, geometers were already measuring the region between a curve and a straight edge.

One later figure moved the idea toward the machinery we use now:

  • Bonaventura Cavalieri (1598–1647, Italy) treated an area as made of infinitely many parallel line segments, his "indivisibles," and compared regions by comparing their slices. His principle, that two regions with equal cross-sections at every height have equal area, is the direct ancestor of integrating a width function $\big[u(y) - v(y)\big]$ across an interval.

Where Is The Area Between Two Curves Used In The Real World?

Whenever a quantity is the gap between two changing rates, its total is an area between two curves.

  • Economics: consumer surplus and producer surplus are the areas between a demand or supply curve and the market price line, so the region between two curves measures who gains how much from a trade.

  • Physics and motion: if two objects move with different velocity curves, the area between those curves over a time interval is the extra distance one travels compared with the other.

  • Engineering: the cross-sectional area of a beam, a channel, or a machined part is often the region between two profile curves, and it feeds directly into strength and flow calculations, part of the wider applications of integration.

  • Environmental science: plotting the rate a resource is added against the rate it is used gives two curves, and the area between them is the net amount stored or lost over a season.

  • Volumes of revolution: spinning a region between two curves around an axis builds a solid, and its volume is found by the disk method or the washer method, which start from this same enclosed region.

One setup, integrate the gap between two curves, answers questions in trade, motion, structures, and the environment.

What Are The Most Common Mistakes With The Area Between Two Curves?

These four errors account for most lost marks, and each matches a question real students ask on r/calculus, r/learnmath, and course help handouts.

Forgetting to split the integral where the curves cross.

Where it slips in:

A student sees two curves and writes one integral $\int_a^b (f - g),dx$ across the whole interval, even though the curves cross partway and the top curve changes.

Don't do this:

Do not integrate straight through a crossing. The piece where the roles swap comes out negative and cancels real area, giving an answer that is too small.

The correct way:

Find every intersection first. Split the interval at each crossing, take top minus bottom on each piece separately, and add the positive results, which is exactly $\int_a^b \lvert f - g\rvert,dx$.

Mixing up top minus bottom with right minus left.

Where it slips in:

When integrating with respect to $y$, a student keeps subtracting "top minus bottom" out of habit, instead of the horizontal gap.

Don't do this:

Do not use $f(x) - g(x)$ in a $dy$ integral. A horizontal strip has width, not height, so vertical language does not fit.

The correct way:

For a $dy$ integral, use right minus left, $u(y) - v(y)$, where $u$ is the curve with the larger $x$-value. Match the subtraction to the direction of the strips.

Using $x$-values as the bounds of a $dy$ integral.

Where it slips in:

After deciding to integrate in $y$, a student still plugs the $x$-coordinates of the intersection points into the limits.

Don't do this:

Do not carry $x$-limits into a $dy$ integral. The bounds must describe the vertical extent of the region.

The correct way:

Solve $u(y) = v(y)$ for $y$, and use those $y$-values as $c$ and $d$. The limits of a $dy$ integral are always $y$-values.

Accepting a negative area.

Where it slips in:

A student subtracts in the wrong order, gets a negative number, and writes it down as the answer.

Don't do this:

Do not report a negative area. A negative result means the lower curve was written on top.

The correct way:

Swap the order so the upper (or right-hand) curve comes first, or take the absolute value. Area is a size, so the final number is always positive.

Practice Problems On The Area Between Two Curves

Work each one, then check against the answer. Answers are verified.

  1. Find the area between $y = x^2$ and $y = 4$.
    (Answer: they meet at $x = \pm 2$; $\int_{-2}^{2}(4 - x^2),dx = \tfrac{32}{3}$.)

  2. Find the area between $y = x$ and $y = x^3$ on $[0, 1]$.
    (Answer: $x \ge x^3$ here; $\int_0^1 (x - x^3),dx = \tfrac{1}{4}$.)

  3. Find the area between $y = x + 6$ and $y = x^2$.
    (Answer: they meet at $x = -2$ and $x = 3$; $\int_{-2}^{3}(x + 6 - x^2),dx = \tfrac{125}{6}$.)

  4. Find the area between $x = y^2$ and $x = 4$ by integrating in $y$.
    (Answer: they meet at $y = \pm 2$; $\int_{-2}^{2}(4 - y^2),dy = \tfrac{32}{3}$.)

  5. Find the area between $y = 2 - x^2$ and $y = x^2 - 2$.
    (Answer: they meet at $x = \pm\sqrt{2}$; $\int_{-\sqrt{2}}^{\sqrt{2}}\big[(2 - x^2) - (x^2 - 2)\big],dx = \tfrac{16\sqrt{2}}{3} \approx 7.5425$.)

Where Should You Go Next After The Area Between Two Curves?

This topic is the gateway to the whole applications-of-integration chapter, and several natural doors open from here.

  1. Applications of integration. See where area, volume, and average value all come from the same integral setup.

  2. Disk method. Spin a region between two curves around an axis and the enclosed area becomes the volume of a solid.

  3. Methods of integration. Sharpen the substitution and by-parts skills you need to evaluate the harder area integrals.

If your child is meeting the area between two curves for the first time, a live Bhanzu trainer teaches it from the representative-rectangle picture up, so the formula feels obvious, in the Bhanzu math program.

Book a Free Demo

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the formula for the area between two curves?
When $f(x) \ge g(x)$ on $[a, b]$, the area between two curves is $\int_a^b \big[f(x) - g(x)\big],dx$, the integral of the top curve minus the bottom curve. The bounds $a$ and $b$ are the $x$-coordinates where the curves intersect.
How do you find the area between two curves that cross?
Find every intersection point, then split the interval at each crossing. On each piece decide which curve is on top, integrate top minus bottom, and add the positive results. This is the same as integrating the absolute value $\int_a^b \lvert f(x) - g(x)\rvert,dx$.
When do you integrate with respect to $y$ instead of $x$?
Integrate in $y$ when the curves are simpler as functions of $y$, such as a sideways parabola $x = y^2$, or when doing so avoids splitting the region. The height of each horizontal strip is right minus left, $u(y) - v(y)$, and the bounds are $y$-values.
Why is my area between two curves coming out negative?
A negative answer means you subtracted in the wrong order, putting the lower curve on top. Area is always positive, so swap the order so the upper or right-hand curve comes first, or take the absolute value of the result.
Do you always need the intersection points to find the area?
Usually yes, because the intersection points are the edges of the enclosed region and they give the limits of integration. The exception is when the problem states its own interval, such as a fixed range of $x$, in which case you use those bounds instead.
What is the difference between area under a curve and area between two curves?
Area under a curve measures the region between one curve and the $x$-axis, $\int_a^b f(x),dx$. Area between two curves replaces the axis with a second curve, so the height of each strip becomes $f(x) - g(x)$ instead of just $f(x)$.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →