Area Sum Calculator

Area between 2 curves, or net vs. total area under f(x), split at every crossing.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Enter the curves and the interval

Enter your values below to get started.

Examples:
f(x) =
Use x as the variable: 4 - x^2, sin(x), e^x, sqrt(x).
g(x) =
Type 0 for the area between f(x) and the x-axis.
Reset restores the default values.

Tips for this calculator

Total area counts every piece as positive; net area lets pieces below cancel pieces above.

Tick the box to find the enclosed region automatically; a and b then set the search window.

Set g(x) = 0 for the area between a curve and the x-axis.

The Table tab lists each piece, which curve is on top and its area.

An area sum calculator adds up the area between 2 curves f(x) and g(x), or between f(x) and the x-axis, as ∫|f − g| dx. It finds every point where the curves cross, splits the region into pieces, and reports the total area, the net (signed) area, the area on each side and the intersection points, which it can use as the limits for you.

What is an Area Sum?

An area sum is the total area of a region bounded by curves, found by adding the areas of thin vertical strips of height |f(x) − g(x)| from x = a to x = b. In the limit the sum becomes the integral of the absolute difference.

A=∫ab∣f(x)−g(x)∣ dx=lim⁡n→∞∑i=1n∣f(xi∗)−g(xi∗)∣ΔxA = \int_a^b \left|f(x) - g(x)\right|\,dx = \lim_{n\to\infty}\sum_{i=1}^{n} \left|f(x_i^{*}) - g(x_i^{*})\right|\Delta x

Area is never negative, but an integral can be. For sin x on [0, 2π], the integral (net area) is 0, while the total area is 4: 2 above the axis plus 2 below it.

InteractiveNet area vs. total area of sin x

How Does the Area Sum Calculator Work?

The area sum calculator scans h(x) = f(x) − g(x) at 4,000 points, locates every sign change with 80 rounds of bisection, integrates h on each piece between crossings with adaptive Simpson's rule, and adds the absolute values. With the auto-limits box ticked, the first and last crossings inside [a, b] become the limits.

InteractiveBisection closes in on a crossing point
  1. Form h(x)

    h(x) = f(x) − g(x) is the height of a vertical strip.

  2. Find the crossings

    Each sign change of h is narrowed by bisection to about 15 digits.

  3. Integrate each piece

    Adaptive Simpson's rule gives ∫ h dx on every piece.

  4. Add absolute values

    Total area = Σ |piece|; net area = Σ piece.

Area Between Curves Formula

The area between 2 curves is A = ∫ab (top − bottom) dx when one curve stays on top; when the curves cross, the formula becomes ∫ab |f(x) − g(x)| dx, split at each crossing.

One Curve on Top

A=∫ab[f(x)−g(x)]dx,f(x)≥g(x) on [a,b]A = \int_a^b \left[f(x) - g(x)\right]dx, \qquad f(x) \ge g(x)\ \text{on}\ [a, b]

For y = 4 − x² and y = x + 2, the curves meet at x = −2 and x = 1, so A = ∫−21 (2 − x − x²) dx = 4.5.

Curves That Cross

A=∑k∣∫ck−1ck[f(x)−g(x)]dx∣A = \sum_{k} \left|\int_{c_{k-1}}^{c_k} \left[f(x) - g(x)\right]dx\right|

Net Area

Net=∫ab[f(x)−g(x)]dx\text{Net} = \int_a^b \left[f(x) - g(x)\right]dx

Net area lets regions where g is on top cancel regions where f is on top.

InteractiveA vertical strip: top minus bottom

Types of Area Sum Problems

There are 4 common types of area sum problems: the area under 1 curve, the area between 2 curves, the area between crossing curves, and the area found with horizontal strips (with respect to y).

InteractiveSwitch between the 4 region types

Area Under 1 Curve

g(x) = 0. Area under x² on [0, 2] = 8/3 ≈ 2.6667.

Area Between 2 Curves

Top minus bottom. Between x and x² on [0, 1]: 1/6 ≈ 0.1667.

Crossing Curves

Split at each crossing. x³ and x on [−1, 1]: net 0, total 0.5.

With Respect to y

Right minus left with horizontal strips. Between x = y² and x = y + 2: 4.5. Enter it here with y written as x.

How to Calculate the Area Between Curves by Hand

To calculate the area between curves by hand, take 4 steps: set f(x) = g(x) to find the crossings, decide which curve is on top in each piece, integrate top minus bottom on each piece, and add the results. Here are y = 4 − x² and y = x + 2.

  1. 4 − x² = x + 2 → x² + x − 2 = 0 → x = −2 and x = 1.
  2. At x = 0: 4 − 0 = 4 > 2, so 4 − x² is on top.
  3. A = ∫−21 (2 − x − x²) dx = [2x − x²/2 − x³/3] from −2 to 1.
  4. = (2 − 0.5 − 0.3333) − (−4 − 2 + 2.6667) = 1.1667 + 3.3333 = 4.5.
InteractiveStep through an area problem

    Net Area vs. Total Area and Sign Changes

    Net area is the plain integral ∫(f − g) dx, where pieces below cancel pieces above; total area adds every piece as positive, so total area ≥ |net area|, with equality only when f − g never changes sign. Every sign change of f − g is a split point.

    • x³ − 4x on [−3, 3]: crossings at −2, 0 and 2; net 0, total 20.5.
    • x² − 2x − 3 on [−2, 4]: crossings at −1 and 3; net −6, total 15.3333.
    • sin x on [0, 2π]: crossing at π; net 0, total 4.
    InteractiveSign chart: where f is positive or negative

    Common Mistakes with Area Sums

    • Integrating straight through a crossing: pieces cancel and the answer is net area, not area.
    • Bottom minus top: gives a negative number; area uses top minus bottom.
    • Guessing the limits: solve f(x) = g(x) for the enclosed region.
    • Missing a crossing: check the sign of f − g between every pair of roots.
    • Mixing x and y: for horizontal strips, write both curves as x = function of y.
    InteractiveTrue or false: area sums
    1. ∫₀^{2π} sin x dx gives the area between sin x and the x-axis.

    2. Total area is always ≥ the absolute value of the net area.

    3. The area between y = x and y = x² on [0, 1] is 1/6.

    4. You can find the limits of an enclosed region by solving f(x) = g(x).

    5. Area between curves can be negative.

    Score: 0 / 5

    How to Use the Area Sum Calculator

    Type f(x) and g(x) (or 0 for the x-axis), set a and b, tick the box if you want the intersection points as limits, and press Calculate. The result card shows the total area, the net area, each side's area and the crossing points; the tabs show the steps, the shaded graph and a table of pieces.

    InteractiveLoad a ready-made area problem

    Each button fills the calculator and runs it.

    1. Enter f(x)

      The first curve, for example 4 - x^2.

    2. Enter g(x)

      The second curve, or 0 for the x-axis.

    3. Set the limits

      Type a and b, or tick the box to use the outermost intersections inside [a, b].

    4. Read both areas

      Total area for geometry; net area for signed quantities such as displacement.

    Real-Life Applications of Area Sums

    Area sums separate a signed total from a gross total whenever a rate changes sign. 4 common uses:

    • Motion: the net area under velocity is displacement; the total area is distance traveled, in meters or feet.
    • Economics: consumer surplus is the area between the demand curve and the price line; Alfred Marshall described it in 1890.
    • Inequality: the Gini coefficient is twice the area between the line of equality and the Lorenz curve.
    • Engineering drawings: the cross-section area between 2 profile curves gives material per meter of a beam or road cut.
    InteractiveDisplacement vs. distance from a velocity curve

    Area Sum Examples

    Areas between curves and under curves, with total and net values.

    Area Sum Examples
    RegionLimitsTotal areaNet areaCalculator
    y = x and y = x²0 to 11/6 ≈ 0.16670.1667
    y = 4 − x² and y = x + 2−2 to 14.54.5
    y = sin x and the x-axis0 to 2π40
    y = sin x and y = cos x0 to π2√2 ≈ 2.82842
    y = x³ − 4x and the x-axis−3 to 320.50
    y = √x and y = x²0 to 11/3 ≈ 0.33330.3333
    y = eˣ and y = x + 2−1.8414 to 1.14621.9491−1.9491

    Popular Area Sum Problems

    Find each area, then reveal the answer or solve it in the calculator.

    1. Area enclosed by y = x² and y = 2x.

      \int_0^2 (2x - x^2)\,dx
      Show answerA = 4/3 \approx 1.3333
    2. Area enclosed by y = 4 − x² and y = x + 2.

      \int_{-2}^{1} (2 - x - x^2)\,dx
      Show answerA = 4.5
    3. Total and net area between y = x² − 2x − 3 and the x-axis on [−2, 4].

      \int_{-2}^{4} |x^2-2x-3|\,dx
      Show answer\text{Total} = 46/3 \approx 15.3333,\ \text{net} = -6
    4. Area between y = sin x and y = cos x on [0, π].

      \int_0^\pi |\sin x - \cos x|\,dx
      Show answer2\sqrt{2} \approx 2.8284
    5. Total area between y = x² − 4 and the x-axis on [−3, 3].

      \int_{-3}^{3} |x^2-4|\,dx
      Show answer46/3 \approx 15.3333\ (\text{net} = -6)
    6. A particle has velocity v(t) = t² − 4t + 3 m/s. Find its displacement and distance on [0, 5].

      \int_0^5 v\,dt,\ \int_0^5 |v|\,dt
      Show answer\text{Displacement} = 20/3 \approx 6.6667\ \text{m},\ \text{distance} = 28/3 \approx 9.3333\ \text{m}

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    What is an area sum calculator?

    An area sum calculator is an online tool that finds the area between 2 curves, or between a curve and the x-axis, by integrating |f(x) − g(x)|. It reports the total area, the net area and every crossing point.

    How do you find the area between 2 curves?

    Solve f(x) = g(x) for the crossing points, integrate top minus bottom on each piece between crossings, and add the absolute values of the pieces.

    What is the difference between net area and total area?

    Net area is ∫(f − g) dx, so regions below cancel regions above. Total area is ∫|f − g| dx, so every region counts as positive. For sin x on [0, 2π], net area is 0 and total area is 4.

    Can the area between curves be negative?

    No, area between curves is never negative. A negative result means the curves were subtracted bottom minus top, or the value is a net (signed) area.

    How does the calculator find the intersection points?

    The calculator checks f(x) − g(x) at 4,000 points between a and b, then narrows each sign change with 80 rounds of bisection.

    Can I find the area with respect to y?

    Yes, write both curves as x = function of y, enter them with x standing for y, and use the y-limits. Between x = y² and x = y + 2, the area is 4.5.

    What happens if the curves do not enclose a region?

    With auto limits ticked, the calculator needs at least 2 crossing points inside [a, b]; otherwise it asks you to widen the window or type the limits yourself.

    Which area gives the distance traveled?

    Distance traveled is the total area under |v(t)|; displacement is the net area under v(t). For v = t² − 4t + 3 on [0, 5], distance is 9.3333 m and displacement is 6.6667 m.

    Conclusion

    An area sum adds |f(x) − g(x)| over [a, b], and the area sum calculator splits the region at every crossing to return both the total area and the net area, with the intersection points as limits when you need them. Use total area for geometric size and net area for signed totals such as displacement or profit minus loss.

    Not sure which number to report? Answer the questions below.

    InteractiveTotal area or net area?