Area Under a Curve: Definite Integral & Examples

#Calculus
TL;DR
The area under a curve y=f(x)≥0y = f(x) \ge 0 between x=ax = a and x=bx = b equals the definite integral ∫abf(x),dx\int_a^b f(x),dx, which is itself the limit of Riemann sums, the total area of thinner and thinner rectangles under the curve. When part of the curve dips below the x-axis, the plain integral returns signed (net) area; for total area you split the interval where ff crosses zero and integrate ∣f(x)∣\lvert f(x)\rvert. You evaluate either one with the antiderivative: ∫abf(x),dx=F(b)−F(a)\int_a^b f(x),dx = F(b) - F(a).
BT
Bhanzu TeamLast updated on September 27, 202613 min read

What Is The Area Under A Curve?

The area under a curve is the region trapped between the graph of a function y=f(x)y = f(x) and the x-axis, across an interval from x=ax = a to x=bx = b. When f(x)≥0f(x) \ge 0 on that interval, this area is given exactly by the definite integral:

Area=∫abf(x),dx\text{Area} = \int_a^b f(x),dx

Here aa and bb are the limits of integration: aa is where the region starts and bb is where it ends. The symbol ∫\int is a stretched "S" for "sum," a reminder that an integral adds up infinitely many pieces. The height of the region at any point is f(x)f(x), and the integral sums those heights across the whole width.

Two ideas sit underneath that one line, and the rest of this article unpacks them:

  • Area as a limit. The integral is defined as the limit of Riemann sums, the combined area of rectangles that approximate the region and get thinner without end.

  • Area with a sign. If the curve drops below the x-axis, the integral counts that part as negative. That gives net area, which is not always the total area you want.

For the wider map of the subject, see the calculus overview; for the meaning of area itself, see area.

How Do You Calculate The Area Under A Curve?

To calculate the area under a curve, find an antiderivative of ff and subtract its values at the two limits. This is the evaluation step of the Fundamental Theorem of Calculus:

∫abf(x),dx=F(b)−F(a),where F′(x)=f(x)\int_a^b f(x),dx = F(b) - F(a), \qquad \text{where } F'(x) = f(x)

The recipe is three steps: find FF, plug in the top limit bb, subtract the value at the bottom limit aa.

Example 1: Find the area under y=x2y = x^2 from x=0x = 0 to x=2x = 2.

The curve y=x2y = x^2 sits on or above the x-axis, so the integral gives the area directly. An antiderivative of x2x^2 is F(x)=x33F(x) = \dfrac{x^3}{3}:

∫02x2,dx=[x33]02=233−033=83−0=83\int_0^2 x^2,dx = \left[\frac{x^3}{3}\right]_0^2 = \frac{2^3}{3} - \frac{0^3}{3} = \frac{8}{3} - 0 = \frac{8}{3}

Check by differentiating the antiderivative back: ddx(x33)=x2\dfrac{d}{dx}\left(\dfrac{x^3}{3}\right) = x^2, the original integrand, so FF is correct.

Final answer: the area is 83≈2.6667\dfrac{8}{3} \approx 2.6667 square units.

Every definite integral in this article is checked the same way, by differentiating the antiderivative back to the function you started with.

How Do Riemann Sums Build The Area Under A Curve?

Before the integral gives an exact number, it is built from an approximation. Slice the interval [a,b][a, b] into nn strips of equal width Δx=b−an\Delta x = \dfrac{b - a}{n}, and on each strip draw a rectangle whose height is the value of ff at a sample point. Adding the rectangle areas gives a Riemann sum:

Sn=∑i=1nf(xi),ΔxS_n = \sum_{i=1}^{n} f(x_i),\Delta x

Geometrically, the rectangles trace the region with a staircase. As nn grows the staircase hugs the curve more tightly, and the area under a curve is defined as the limit of that sum:

∫abf(x),dx=lim⁡n→∞∑i=1nf(xi),Δx\int_a^b f(x),dx = \lim_{n \to \infty} \sum_{i=1}^{n} f(x_i),\Delta x

That limit is not a guess; it can be computed. Take f(x)=x2f(x) = x^2 on [0,2][0, 2] with right-endpoint samples xi=2inx_i = \dfrac{2i}{n} and Δx=2n\Delta x = \dfrac{2}{n}:

Sn=∑i=1n(2in)2⋅2n=8n3∑i=1ni2=8n3⋅n(n+1)(2n+1)6S_n = \sum_{i=1}^{n} \left(\frac{2i}{n}\right)^2 \cdot \frac{2}{n} = \frac{8}{n^3}\sum_{i=1}^{n} i^2 = \frac{8}{n^3}\cdot\frac{n(n+1)(2n+1)}{6}

Using the identity ∑i=1ni2=n(n+1)(2n+1)6\displaystyle\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6} and letting n→∞n \to \infty, the fraction tends to 86⋅2=83\dfrac{8}{6}\cdot 2 = \dfrac{8}{3}, the same 83\dfrac{8}{3} the antiderivative gave in Example 1. The limit of rectangles and the antiderivative agree, which is the whole reason integration measures area.

Example 2: Approximate the same area with four rectangles, then compare.

With n=4n = 4 on [0,2][0, 2], each strip has width Δx=0.5\Delta x = 0.5, and the right-endpoint sample points are x=0.5,1,1.5,2x = 0.5, 1, 1.5, 2:

S4=(0.52+12+1.52+22)(0.5)=(0.25+1+2.25+4)(0.5)=3.7500S_4 = \big(0.5^2 + 1^2 + 1.5^2 + 2^2\big)(0.5) = (0.25 + 1 + 2.25 + 4)(0.5) = 3.7500

Final answer: four rectangles give 3.75003.7500, an overestimate of the exact 83≈2.6667\dfrac{8}{3} \approx 2.6667. The gap is expected, since x2x^2 is increasing and right-endpoint rectangles poke above the curve. More rectangles shrink the gap toward zero.

What Is Signed Area Versus Total Area?

A definite integral counts area above the x-axis as positive and area below it as negative. So the bare integral gives signed (net) area, the area above minus the area below. Often that is exactly what a problem wants, because "net" tracks direction. Other times a problem wants total area, the raw space between curve and axis with every piece counted positive.

The two split whenever the curve crosses the x-axis inside the interval. The rule is to find those crossing points, integrate over each piece, and combine.

  • Signed (net) area: ∫abf(x),dx\displaystyle\int_a^b f(x),dx, one integral, signs kept.

  • Total area: ∫ab∣f(x)∣,dx\displaystyle\int_a^b \lvert f(x)\rvert,dx, split at the zeros of ff, each piece made positive before adding.

Example 3: Find both the net and the total area for y=sin⁡xy = \sin x on [0,2π][0, 2\pi].

The curve is positive on [0,π][0, \pi] and negative on [π,2π][\pi, 2\pi], crossing zero at x=πx = \pi. An antiderivative of sin⁡x\sin x is F(x)=−cos⁡xF(x) = -\cos x. Over the first arch:

∫0πsin⁡x,dx=[−cos⁡x]0π=(−cos⁡π)−(−cos⁡0)=(1)−(−1)=2\int_0^{\pi} \sin x,dx = \big[-\cos x\big]_0^{\pi} = (-\cos\pi) - (-\cos 0) = (1) - (-1) = 2

Over the second arch:

∫π2πsin⁡x,dx=[−cos⁡x]π2π=(−cos⁡2π)−(−cos⁡π)=(−1)−(1)=−2\int_{\pi}^{2\pi} \sin x,dx = \big[-\cos x\big]_{\pi}^{2\pi} = (-\cos 2\pi) - (-\cos\pi) = (-1) - (1) = -2

Adding the two gives the net area: 2+(−2)=02 + (-2) = 0. The trip above the axis exactly cancels the trip below. For the total area, make each piece positive first: ∣2∣+∣−2∣=4\lvert 2\rvert + \lvert -2\rvert = 4.

Final answer: net (signed) area =0= 0; total area =4= 4 square units. A curve can enclose real space and still integrate to zero, which is the single idea behind the most common mistake on this topic.

How Do You Find The Area Between Two Curves?

The same tool measures the area trapped between two curves, not just between one curve and the axis. If y=f(x)y = f(x) stays above y=g(x)y = g(x) on [a,b][a, b], the enclosed area is the integral of the gap between them:

Area=∫ab[f(x)−g(x)],dx\text{Area} = \int_a^b \big[f(x) - g(x)\big],dx

You subtract the lower curve from the upper curve, then integrate. The axis version is just the special case g(x)=0g(x) = 0.

Example 4: Find the area between y=xy = x and y=x2y = x^2 from x=0x = 0 to x=1x = 1.

On [0,1][0, 1] the line y=xy = x sits above the parabola y=x2y = x^2, so f(x)=xf(x) = x is the top curve and g(x)=x2g(x) = x^2 the bottom:

∫01(x−x2),dx=[x22−x33]01=(12−13)−0=16\int_0^1 \big(x - x^2\big),dx = \left[\frac{x^2}{2} - \frac{x^3}{3}\right]_0^1 = \left(\frac{1}{2} - \frac{1}{3}\right) - 0 = \frac{1}{6}

Final answer: the enclosed area is 16≈0.1667\dfrac{1}{6} \approx 0.1667 square units. For the full method, including curves that swap which one is on top, see area between two curves.

What Are The Standard Area-Under-A-Curve Setups?

Most first-year problems are one of a few shapes. This table names each and gives the setup, so you can match a question to its integral before computing.

Table: How to set up the area under a curve for the common cases.

Situation

What you want

Setup

Curve above the axis, f(x)≥0f(x) \ge 0 on [a,b][a,b]

Area under ff

∫abf(x),dx\displaystyle\int_a^b f(x),dx

Curve below the axis, f(x)≤0f(x) \le 0 on [a,b][a,b]

Area (positive)

−∫abf(x),dx\displaystyle-\int_a^b f(x),dx

Curve crosses the axis inside [a,b][a,b]

Net (signed) area

∫abf(x),dx\displaystyle\int_a^b f(x),dx

Curve crosses the axis inside [a,b][a,b]

Total area

Split at the zeros, add ∫∣f(x)∣,dx\displaystyle\int \lvert f(x)\rvert,dx

Region between two curves, f≥gf \ge g

Area between them

∫ab[f(x)−g(x)],dx\displaystyle\int_a^b \big[f(x) - g(x)\big],dx

Reading the situation before writing the integral is what separates a correct setup from an "answer" for the wrong quantity.

Why Does The Area Under A Curve Equal The Integral?

The equality feels like a coincidence the first time, because "area" sounds geometric while an "integral" looks algebraic. The bridge is the rectangle staircase, and the reason it works is geometric all the way down.

  • A rectangle is area you already know. Each Riemann rectangle has area height times width, f(xi),Δxf(x_i),\Delta x. Summing them approximates the region with shapes whose area needs no calculus at all.

  • Thinner strips mean less error. The only error is the sliver between each rectangle top and the curve. As the strips narrow, those slivers shrink faster than the strips multiply, so the total error tends to zero.

  • The limit is the exact area. Because the approximation improves without bound, its limit is the true area, and that limit is precisely what the symbol ∫abf(x),dx\int_a^b f(x),dx is defined to mean. The definition of the definite integral is the area, not a formula that happens to match it.

Seen this way, the definite integral is not a trick for finding area. It is area, written as the limit of a sum you can actually compute once you know an antiderivative.

Who Discovered The Area Under A Curve?

Measuring curved area is one of the oldest problems in mathematics, solved in special cases almost two thousand years before calculus gave a general method.

Two later figures turned the idea into a tool:

  • Bonaventura Cavalieri (1598–1647, Italy) treated an area as built from infinitely many thin "indivisible" strips, an intuitive forerunner of the integral that let mathematicians compute areas the Greeks could not.

  • Bernhard Riemann (1826–1866, Germany) gave the sum-of-rectangles idea its rigorous modern definition, so "the limit of the rectangles" finally rested on precise footing rather than intuition. The sums now carry his name.

Where Is The Area Under A Curve Used In The Real World?

The phrase "add up a changing quantity over an interval" describes a huge range of measurements, and each one is an area under a curve.

  • Physics and motion: the area under a speed-time graph is the distance travelled, and the area under a force-distance graph is the work done by a variable force.

  • Probability and statistics: the area under a probability density curve between two values is the probability of landing in that range, which is why the total area under any density is exactly one.

  • Economics: the area between a demand curve and the market price is consumer surplus, a total benefit summed across every unit sold.

  • Engineering: the volume of water delivered by a pipe is the area under its flow-rate curve over time, evaluated by a definite integral.

  • Medicine and pharmacology: the "area under the curve" of a drug's concentration over time measures total exposure, and doctors dose by it directly.

One picture, the region beneath a graph, turns "how much accumulated" into a single number across physics, economics, and medicine. For more, see applications of integration.

What Are The Most Common Mistakes With The Area Under A Curve?

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

Reporting net area when the question wants total area.

Where it slips in:

A student integrates straight across an interval where the curve crosses the axis, gets a small number or zero, and writes it as the area.

Don't do this:

Do not trust one integral across a sign change. For ∫02πsin⁡x,dx=0\int_0^{2\pi}\sin x,dx = 0, the answer to "total area" is not zero.

The correct way:

Find the zeros of ff, split the interval there, and add the absolute value of each piece: total area of sin⁡x\sin x on [0,2π][0, 2\pi] is ∣2∣+∣−2∣=4\lvert 2\rvert + \lvert -2\rvert = 4.

Never checking where the curve crosses the x-axis.

Where it slips in:

A student sets up a single integral for total area without testing whether ff changes sign inside the limits.

Don't do this:

Do not assume the curve stays on one side of the axis across the whole interval.

The correct way:

Solve f(x)=0f(x) = 0 first to locate every crossing in [a,b][a, b], then integrate piece by piece. The crossings are the boundaries between positive and negative area.

Swapping or misreading the limits of integration.

Where it slips in:

A student writes the bounds in the wrong order, or reads aa and bb off the graph the wrong way round, flipping the sign of the whole answer.

Don't do this:

Do not reverse the limits for free. Swapping them negates the integral: ∫abf=−∫baf\int_a^b f = -\int_b^a f.

The correct way:

Put the smaller x-value on the bottom and the larger on top for a left-to-right region, and double-check both against the picture before evaluating.

Treating the Riemann-sum approximation as the exact area.

Where it slips in:

A student computes a few rectangles and reports that finite sum as the area, or the reverse, doubts that the integral is exact because it "comes from rectangles."

Don't do this:

Do not confuse a finite sum with its limit. Four rectangles gave 3.75003.7500 for a region whose exact area is 83≈2.6667\dfrac{8}{3} \approx 2.6667.

The correct way:

Use a finite Riemann sum only as an estimate. The exact area is the limit as the number of rectangles goes to infinity, which the definite integral delivers in one evaluation.

Practice Problems On The Area Under A Curve

Work each one, then check against the answer. Every answer is verified.

  1. Find the area under y=x2y = x^2 from x=0x = 0 to x=3x = 3.
    (Answer: [x33]03=9\left[\frac{x^3}{3}\right]_0^3 = 9 square units.)

  2. Find the area under y=2xy = 2x from x=1x = 1 to x=2x = 2.
    (Answer: [x2]12=4−1=3\left[x^2\right]_1^2 = 4 - 1 = 3 square units.)

  3. Find the net (signed) area for y=cos⁡xy = \cos x on [0,2π][0, 2\pi].
    (Answer: [sin⁡x]02π=0\left[\sin x\right]_0^{2\pi} = 0.)

  4. Find the total area between y=x2−1y = x^2 - 1 and the x-axis on [0,2][0, 2].
    (Answer: crosses at x=1x = 1; ∣−23∣+43=2\left\lvert -\tfrac{2}{3}\right\rvert + \tfrac{4}{3} = 2 square units.)

  5. Find the area under y=4−x2y = 4 - x^2 from x=−2x = -2 to x=2x = 2.
    (Answer: [4x−x33]−22=323≈10.6667\left[4x - \frac{x^3}{3}\right]_{-2}^{2} = \frac{32}{3} \approx 10.6667 square units.)

  6. Find the area between y=xy = x and y=x2y = x^2 on [0,1][0, 1].
    (Answer: ∫01(x−x2),dx=16≈0.1667\int_0^1 (x - x^2),dx = \frac{1}{6} \approx 0.1667 square units.)

Where Should You Go Next After Area Under A Curve?

Area under a curve is the gateway to every geometric use of the integral, and several natural doors open from here.

  1. Fundamental Theorem of Calculus. The result that lets you evaluate every area with F(b)−F(a)F(b) - F(a) instead of summing rectangles by hand.

  2. Properties of definite integrals. The rules for splitting intervals and flipping limits that the signed-versus-total method leans on.

  3. Area between two curves. The direct next step, replacing the x-axis with a second function.

  4. Average value of a function and the broader applications of integration, where the same area idea gives averages, volumes, and work.

If your child is meeting the area under a curve for the first time, a live Bhanzu trainer teaches it from the rectangle picture up, so the integral feels like measured area rather than a memorised symbol, in the Bhanzu math program.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the area under a curve in calculus?
It is the region between the graph of y=f(x)y = f(x) and the x-axis over an interval [a,b][a, b]. When f(x)≥0f(x) \ge 0, that area equals the definite integral ∫abf(x),dx\int_a^b f(x),dx, which is the limit of the areas of approximating rectangles.
How do you find the area under a curve?
Find an antiderivative FF of ff, then compute F(b)−F(a)F(b) - F(a). For example, the area under y=x2y = x^2 from 00 to 22 is [x33]02=83\left[\frac{x^3}{3}\right]_0^2 = \frac{8}{3}. If the curve crosses the x-axis, split the interval at the crossings first.
What is the difference between signed area and total area?
Signed (net) area is the plain integral, area above the axis minus area below, so it can be small or zero. Total area counts every piece as positive; you split at the zeros of ff and integrate ∣f(x)∣\lvert f(x)\rvert. For sin⁡x\sin x on [0,2π][0, 2\pi], the net area is 00 but the total area is 44.
Is the definite integral the exact area or just an approximation?
It is exact. A finite Riemann sum with a set number of rectangles is an approximation, but the definite integral is the limit of those sums as the number of rectangles goes to infinity, and that limit is the true area.
Why is the area negative sometimes?
Because the integral counts area below the x-axis as negative. A region beneath the axis has a negative signed contribution, which is useful for net quantities like displacement but must be made positive when you want the raw total area.
How do you find the area between two curves?
Integrate the gap between them: ∫ab[f(x)−g(x)],dx\int_a^b [f(x) - g(x)],dx, where ff is the upper curve and gg the lower one on [a,b][a, b]. It is the area-under-a-curve idea with the x-axis replaced by a second curve.
✍️ 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 →