Integral applicationsFree · No sign-up

Area Between Curves Calculator

This area between curves calculator finds the intersection points, splits the region where the curves cross and gives the exact area with steps. It works with dx or dy. The area between two curves is the integral of the top curve minus the bottom curve between their intersection points; the calculator gives the exact area, the net area and the centroid of the region for Calculus 2 and AP Calculus problems.

See the region
  • Bounds found from the intersections
  • Crossing curves split automatically
  • Exact area + centroid
dx · dy
both directions
Exact
roots like √2
8
ready-made examples
Area engine
Integrate with respect to
y =
y =
Bounds optional: blank uses the intersection points
a =
b =
Preview
—Full solution ↓

Results

Your area, shaded piece by piece

Each shaded piece lies between two neighbouring intersection points. The red strip is one thin slice of the integral; drag on the graph to move it.

Interactive diagram

Region between the curves

curve 1curve 2strip height × width
strip position—
strip height—
strip area—

Area between the curves

Integral set-up

Step-by-step solution

—

    Step by step

    How to Use the Area Between Curves Calculator

    To use the area between curves calculator, follow these 5 steps. The area and the graph update as you type.

    1. 1

      Pick dx or dy

      Choose x for curves written as y = …, or y for curves written as x = ….

    2. 2

      Type both curves

      For example 4 - x^2 and x + 2. The order does not matter.

    3. 3

      Set the bounds or leave them blank

      Blank bounds use the outermost intersection points between −10 and 10.

    4. 4

      Read the area and the set-up

      The set-up shows each integral with the curves in the right order.

    5. 5

      Check the region

      Drag across the graph to move the strip and read its height.

    Try an example:

    Definition

    What Is the Area Between Two Curves?

    The area between two curves is the area of the region bounded by the graphs of 2 functions, found by integrating the vertical distance between them from one intersection point to the next. For y = f(x) above y = g(x) on [a, b], the area is the definite integral of f(x) − g(x).

    The idea extends the area under a curve. The area under one curve measures down to the x-axis; the area between two curves measures from the lower curve to the upper one. Each thin vertical strip has height f(x) − g(x) and width dx, and the integral adds up every strip from the lower bound a to the upper bound b.

    The area between curves is a standard topic of Calculus 2 (Calc 2), AP Calculus AB and AP Calculus BC, where it appears in free-response questions (FRQ) together with volumes of revolution.

    Strip explorer: one strip of height f − g, and a sum of n strips
    strip height f − g—
    sum of n rectangles—
    exact area—
    curves—

    Orange: the upper curve. Teal: the lower curve. Each rectangle uses the height at its midpoint; as n grows, the sum closes in on the exact area. The red strip is the height the integral adds up.

    Area between curves in different forms
    Curves given asArea formulaExample
    y = f(x), y = g(x)y = x, y = x²: 1/6
    x = f(y), x = g(y)x = y + 2, x = y²: 9/2
    Polar r = r₂(θ), r = r₁(θ)between r = 1 and r = 2: 3π
    Parametric x(t), y(t)ellipse 2 cos t, sin t: 2π

    Formula

    Area Between Curves Formula (Top Minus Bottom)

    The area between curves formula is A = ∫ₐᵇ [f(x) − g(x)] dx, where f is the top curve, g is the bottom curve, and a and b are the x-values where the region starts and ends.

    Top minus bottom works for any position of the curves, above or below the x-axis. The formula is the area under f minus the area under g, and the parts below the x-axis cancel in the subtraction. Shifting both curves up or down by the same amount leaves the area unchanged.

    By the fundamental theorem of calculus, the integral equals F(b) − F(a) for an antiderivative F of f − g. For y = 4 − x² and y = x + 2 on [−2, 1]:

    When f − g has no elementary antiderivative, numerical approximation takes over: Simpson's rule and the trapezoidal rule both converge to the area. The calculator gives the exact value when one exists and a decimal to 10 places in every case.

    Top minus bottom: the area under f, the area under g, and the difference
    ∫ f dx on [−2, 1]—
    ∫ g dx on [−2, 1]—
    difference = area—
    exact9 − 9/2 = 9/2

    The area under the parabola is 9 and the area under the line is 4.5. The region between them is what is left: 4.5 = 9/2.

    Method

    How to Find the Area Between Curves in 5 Steps

    To find the area between curves, follow 5 steps: graph the curves, find the intersection points, decide which curve is on top, set up the integral of top minus bottom, and evaluate it. The 3 central steps are below, for y = 4 − x² and y = x + 2.

    01

    Find the Intersection Points

    To find the intersection points, set the 2 functions equal and solve for x. The solutions are the limits of integration, unless the problem gives its own bounds.

    The calculator solves the equation itself, with exact roots such as ±√2 when it can, and adds any crossing inside a typed interval.

    02

    Decide Which Curve Is on Top

    To decide which curve is on top, evaluate both functions at one test point between the intersections. At x = 0: 4 − 0 = 4 and 0 + 2 = 2, so 4 − x² is the top curve on the whole interval [−2, 1]. The answer holds until the next intersection point, so test once per piece.

    03

    Set Up and Evaluate the Integral

    To set up the integral, subtract the bottom curve from the top curve and integrate between the intersection points.

    Simplify f − g before integrating: 2 − x − x² is easier than 2 separate integrals.

    Intersections and a test point for y = 4 − x² and y = x + 2

    The red dots mark the intersections (−2, 0) and (1, 3), the limits of integration. The dashed segment at x = 0 is the test: the parabola sits at 4, above the line at 2.

    Split the interval

    When the Curves Cross Inside the Interval

    When the curves cross inside the interval, split the interval at every crossing point and integrate top minus bottom on each piece, or integrate the absolute value |f − g|. The top curve changes at each crossing, and a single integral of f − g lets the pieces cancel.

    y = x³ and y = x cross at x = −1, 0 and 1. On [−1, 0], x³ is on top; on [0, 1], x is on top. Each piece has area ¼:

    The single integral ∫₋₁¹ (x³ − x) dx = 0: that is the net area, not the area. The calculator finds every crossing, splits the region and reports both numbers.

    Net vs total: y = x³ and y = x from x = −1 to x = b
    net ∫ (f − g) dx—
    total ∫ |f − g| dx—

    Orange: x³ on top. Teal: x on top. The net integral subtracts the teal area from the orange area; at b = 1 they cancel to 0, while the total area is ½. Past b = 1, x³ climbs back on top.

    Horizontal strips

    Integrating With Respect to y (Right Minus Left)

    Integrating with respect to y uses horizontal strips: A = ∫cd [right curve − left curve] dy, with the curves written as x = f(y) and x = g(y). The limits c and d are y-values, found by setting the 2 x-expressions equal.

    Choose dy when the region has one curve on the right and one on the left over its whole height, but a top or bottom curve that changes. The region between x = y² and x = y + 2 is that case:

    • In y: y² = y + 2 at y = −1 and y = 2, so A = ∫₋₁² (y + 2 − y²) dy = 9/2, one integral.
    • In x: the bottom curve is y = −√x up to x = 1 and y = x − 2 after it, so the area needs 2 integrals: ∫₀¹ 2√x dx + ∫₁⁴ (√x − x + 2) dx = 4/3 + 19/6 = 9/2.

    Both methods give the same area. The better choice is the one with fewer pieces and simpler integrands; with respect to x and with respect to y are 2 descriptions of the same region.

    dx or dy: the region between x = y² and x = y + 2
    setup—
    area9/2 = 4.5

    In dy, every horizontal strip runs from the parabola (left) to the line (right). In dx, the vertical strips change their lower end at x = 1, so the region splits into 2 pieces.

    3 or more boundaries

    Area Enclosed by More Than 2 Curves

    To find an area enclosed by more than 2 curves, find every corner point where 2 boundary curves meet, then split the region at each corner where the top or bottom boundary changes. Each piece is an ordinary 2-curve problem.

    The region bounded by y = √x, y = 2 − x and the x-axis has 3 corners: (0, 0), (1, 1) and (2, 0). Its top boundary changes at x = 1:

    In y, the same region needs one integral, since x runs from the parabola x = y² to the line x = 2 − y for every y from 0 to 1:

    The x-axis counts as a curve, y = 0, in these problems.

    3 curves: y = √x, y = 2 − x and y = 0
    setup—
    area7/6 ≈ 1.1667

    Orange and teal: the 2 pieces of the dx setup, split at the corner (1, 1). The dy setup covers the same region with one family of horizontal strips.

    Balance point

    Centroid of the Region

    The centroid of the region between y = f(x) and y = g(x) is the point (x̄, ȳ) where a thin plate of that shape balances, found from 2 more integrals divided by the area A.

    For y = x and y = x² on [0, 1], A = 1/6:

    • x̄: 6 ∫₀¹ x(x − x²) dx = 6(1/3 − 1/4) = ½.
    • ȳ: 6 ∫₀¹ ½(x² − x⁴) dx = 3(1/3 − 1/5) = 2/5.

    The centroid (0.5, 0.4) lies inside the region, between the line and the parabola. The calculator gives the centroid for every region next to the area, and the formula for ȳ is the same one used in Pappus's theorem for volumes of revolution.

    Centroid explorer: the balance point of the shaded region
    area A—
    x̄—
    ȳ—
    curves—

    The dashed lines cross at the centroid. For the parabola and the line, the centroid is (−0.5, 2.4). For sin x and cos x on [π/4, 5π/4], the region is symmetric about its middle point, and the centroid is (3π/4, 0).

    Practice

    Worked Examples

    There are 5 worked examples below, from 2 polynomial curves to trigonometric functions and curves written as x = f(y). Each one loads into the calculator with one click.

    polynomial

    y = x and y = x²: Area = 1/6

    1. Intersections:
    2. Top at x = ½:
    3. Integrate:

    Answer: , with centroid (½, 2/5).

    curve and line

    Parabola and Line: Area = 9/2

    y = 4 − x² and y = x + 2.

    1. Intersections:
    2. Top at x = 0:
    3. Integrate:

    Answer: , with centroid (−½, 2.4).

    curves cross

    y = x³ and y = x (Curves Cross)

    1. Intersections:
    2. On [−1, 0]:
    3. On [0, 1]:

    Answer: . The net integral ∫₋₁¹ (x³ − x) dx = 0 hides the 2 equal lobes.

    trigonometric

    sin x and cos x: Area = 2√2

    1. Intersections:
    2. Top at x = π/2:
    3. Integrate:

    Answer: .

    dy

    Curves Written as x = f(y)

    x = y + 2 and x = y².

    1. Intersections:
    2. Right at y = 0:
    3. Integrate:

    Answer: . Set up in x, the same region needs 2 integrals, split at x = 1.

    Check your work

    Common Mistakes (Negative Area, Wrong Top Curve)

    There are 6 common mistakes in area-between-curves problems, and most of them show up as a negative or too-small answer.

    Negative area

    A negative result means bottom minus top. Swap the curves, or take the absolute value of each piece; an area is never negative.

    Wrong top curve

    Test a point between the intersections. 4 − x² is on top of x + 2 on [−2, 1], since 4 > 2 at x = 0.

    Ignoring a crossing

    ∫₋₁¹ (x³ − x) dx = 0, but the area is ½. Split at every intersection inside the interval.

    Bounds from the wrong axis

    In a dy integral, the limits are y-values: −1 and 2 for x = y² and x = y + 2, not the x-values 1 and 4.

    Missing an intersection

    x³ = x has 3 solutions, −1, 0 and 1. Factor fully: x(x − 1)(x + 1) = 0.

    Subtracting areas to the x-axis separately

    Area under f minus area under g works only with signed integrals. Subtract the functions first, then integrate f − g.

    Desmos and GeoGebra shade the region on a graph, Wolfram Alpha and Symbolab integrate a typed expression, and Cuemath and Pearson ask for the upper and lower functions. This area between curves calculator finds the intersection points, picks the top curve on each piece, splits the region and gives the exact area with the centroid.

    Questions

    Frequently Asked Questions

    Can the area between curves be negative?

    No, the area between curves is never negative. The integral of f − g is negative only when g is above f, which means the curves are swapped in the setup. Use top minus bottom on each piece, or integrate |f − g|. A signed (net) integral can be negative or 0, as ∫₋₁¹ (x³ − x) dx = 0 shows, but the area of that region is ½.

    What if I do not know which curve is on top?

    If you do not know which curve is on top, evaluate both functions at a test point between 2 intersection points; the larger value is the top curve on that whole piece. For y = 4 − x² and y = x + 2, x = 0 gives 4 and 2, so the parabola is on top on [−2, 1]. The calculator runs this test on every piece, so you can enter the curves in any order.

    When should I integrate with respect to y?

    Integrate with respect to y when the region has one curve on the right and one on the left from bottom to top, while its top or bottom boundary changes. The region between x = y² and x = y + 2 takes 1 integral in y but 2 in x. Curves given as x = f(y), such as sideways parabolas, are another signal to use dy.

    What if the curves never meet?

    If the curves never meet, the region is not closed by the curves alone, so the problem must give the bounds a and b. y = eˣ and y = x never intersect, and the area between them on [0, 1] is ∫₀¹ (eˣ − x) dx = e − 3/2 ≈ 1.2183. Without bounds, the area between 2 curves that never meet is infinite.

    Net area vs total area: what is the difference?

    The difference is that net area is the signed integral ∫(f − g) dx, where regions with g on top count as negative, while total area is ∫|f − g| dx, where every piece counts as positive. For y = x³ and y = x on [−1, 1], the net area is 0 and the total area is ½. Problems that ask for "the area between the curves" mean the total area.

    This area between curves calculator finds the intersection points, splits crossing regions and gives the exact area, the set-up and the centroid with steps.