Uni-Sine
MathematicsCalculus

The trapezium rule

The trapezium rule estimates the area under a curve, and so the value of a definite integral, by splitting the area into strips and treating each strip as a trapezium. The formula is ∫ y dx ≈ ½h[(y₀ + yₙ) + 2(y₁ + y₂ + … + yₙ₋₁)], where h is the width of each strip. Use it when an integral is hard or impossible to do exactly, or when you only have a table of values. In the US it is called the trapezoidal rule.

The trapezium rule formula

\int_a^b y\ dx \approx \frac{1}{2}h\left[(y_0 + y_n) + 2(y_1 + y_2 + \dots + y_{n-1})\right]where h = (b − a) ÷ n
SymbolMeaning
a, bThe limits of the integral
nThe number of strips
hThe width of each strip: (b − a) ÷ n
y₀, y₁, …, yₙThe y-values at the edges of the strips, called ordinates

Notice that n strips have n + 1 ordinates. The first and last ordinates, y₀ and yₙ, are used once. All the ones in between are used twice, because each is the shared side of two neighbouring trapezia.

A quick way to remember it: half the width, times the ends plus twice the middles.

Where the formula comes from

Each strip is a trapezium with parallel sides y₀ and y₁ and width h, so its area is ½h(y₀ + y₁). Adding up all the strips:

\frac{1}{2}h(y_0 + y_1) + \frac{1}{2}h(y_1 + y_2) + \dots + \frac{1}{2}h(y_{n-1} + y_n)

Every middle ordinate appears in two brackets, which is where the 2 comes from.

How to use the trapezium rule

  1. Work out h = (b − a) ÷ n. Careful: n is the number of strips, not the number of ordinates.
  2. Make a table of x-values from a to b in steps of h, and work out each y. Keep at least 4 or 5 significant figures.
  3. Add the ends, y₀ + yₙ.
  4. Add the middles and double them.
  5. Multiply the total by ½h.

Example 1: checking against an exact answer

Use the trapezium rule with 4 strips to estimate the integral of x² from 0 to 2.

h = (2 − 0) ÷ 4 = 0.5.

x00.511.52
y = x²00.2512.254
\frac{1}{2} \times 0.5 \times \left[(0 + 4) + 2(0.25 + 1 + 2.25)\right] = 0.25 \times 11 = 2.75

The exact value is 8/3 = 2.667, so the estimate is 3% too big. With 8 strips it improves to 2.6875. More strips always get closer for a smooth curve.

Example 2: an integral you cannot do exactly

Estimate the integral of √(1 + x³) from 0 to 2, using 4 strips.

There is no simple antiderivative for √(1 + x³), which is exactly when the trapezium rule earns its place. h = 0.5.

x00.511.52
y = √(1 + x³)11.06071.41422.09173
\frac{1}{2} \times 0.5 \times \left[(1 + 3) + 2(1.0607 + 1.4142 + 2.0917)\right] = 0.25 \times 13.1332 = 3.28

The integral is about 3.28 to 3 significant figures.

y = \sqrt{1+{ x}^{3}}
0.20.40.60.811.21.41.61.822.22.41234y₀ = 1y₁y₂y₃y₄ = 3
Drag to pan, scroll to zoom. x from 0 to 2.5, y from -0.815 to 4.89.

Here x is the input and y = √(1 + x³). The trapezium rule joins neighbouring marked points with straight lines and adds up the four trapezia under them. The curve bends upwards, so each straight line sits slightly above it, which tells you the estimate of 3.28 is a little too high. The Integral Calculator gives a very accurate value to compare with.

Example 3: from a table of data

A cyclist's speed is recorded every 10 seconds. Estimate the distance travelled in the 40 seconds.

Time t (s)010203040
Speed v (m/s)068.59.510

Distance is the area under a speed-time graph. h = 10, the ends add to 0 + 10 = 10, and the middles add to 6 + 8.5 + 9.5 = 24.

\frac{1}{2} \times 10 \times \left[10 + 2 \times 24\right] = 5 \times 58 = 290

The cyclist travels about 290 m. With real data there is no formula for the curve at all, so a numerical method like this is the only option.

Overestimate or underestimate?

The trapezium rule replaces the curve with straight lines, called chords. Whether that gives too much or too little depends on which way the curve bends between the ordinates.

The curve isThe chords lieThe trapezium rule
Convex (bends upwards, like y = x²)Above the curveOverestimates
Concave (bends downwards, like y = √x)Below the curveUnderestimates

At A-level you can check with the second derivative: if d²y/dx² > 0 throughout the interval, the curve is convex and the rule overestimates; if d²y/dx² < 0, it is concave and the rule underestimates. In Example 1, y = x² has d²y/dx² = 2 > 0, which is why 2.75 came out above 8/3.

Example 4: an underestimate

Estimate the integral of sin x from 0 to π with 4 strips. h = π/4.

x0π/4π/23π/4π
y = sin x00.707110.70710
\frac{1}{2} \times \frac{\pi}{4} \times \left[0 + 2(0.7071 + 1 + 0.7071)\right] = 1.896

The exact answer is 2. The sine curve is concave between 0 and π, so the chords lie below it and the estimate is too small.

The integration practice from the Calculus course gives you exact answers to compare your trapezium rule estimates with. Evaluate the integral, then press Mark to check it in the course.

Evaluate a definite integral, giving a numeric or fraction answer.

Press Mark to have your answer marked in the Calculus course.

Making the estimate more accurate

  • Use more strips. Halving h roughly quarters the error for a smooth curve, as Example 1 shows: 4 strips are out by 0.083, 8 strips by 0.021.
  • Keep accuracy in the table. Rounding each y-value to 2 decimal places can cost more than the method itself.
  • Watch for steep or sharp sections. Where the curve changes quickly, the straight lines fit badly, so more strips are needed there.

Common mistakes

  • Confusing strips and ordinates. 4 strips need 5 y-values. h = (b − a) ÷ number of strips.
  • Doubling the ends. Only the middle ordinates are doubled.
  • Forgetting the ½ at the front of the formula.
  • Using degrees. For trig functions in calculus, set your calculator to radians.
  • Rounding too early. Keep 4 or 5 significant figures in the table and round only the final answer.
  • Saying over or under without a reason. Refer to the shape of the curve, or the sign of the second derivative.

Is the trapezium rule in the formula booklet?

Yes, for A-level Maths. Both AQA's and Edexcel's booklets, checked in November 2026, give the trapezium rule as ∫ y dx ≈ ½h{(y₀ + yₙ) + 2(y₁ + y₂ + … + yₙ₋₁)}, where h = (b − a) ÷ n. They give the Newton-Raphson method next to it under numerical methods. You still need to set up the table, choose h correctly and explain whether the answer is an overestimate or an underestimate. At GCSE Higher, the same idea appears as estimating the area under a graph by splitting it into trapezia, for example to estimate a distance from a velocity-time graph.

Trapezium rule questions with answers

1. Use the trapezium rule with 4 strips to estimate the integral of 2ˣ from 0 to 2.
h = 0.5. Ordinates: 1, 1.4142, 2, 2.8284, 4.
½ × 0.5 × [(1 + 4) + 2(1.4142 + 2 + 2.8284)] = 0.25 × 17.4853 = 4.37 to 3 significant figures
2. An integral from 1 to 5 is estimated with 8 strips. What is h?
h = (5 − 1) ÷ 8 = 0.5
3. Will the trapezium rule overestimate or underestimate the integral of eˣ from 0 to 1? Why?
Overestimate. eˣ is convex (its second derivative, eˣ, is positive), so the chords lie above the curve.
4. A curve has y = 3, 5, 4 and 6 at x = 0, 1, 2 and 3. Use the trapezium rule to estimate the area under it from x = 0 to x = 3.
h = 1.
½ × 1 × [(3 + 6) + 2(5 + 4)] = ½ × 27 = 13.5
5. How could you improve the estimate in question 1?
Use more strips, for example 8 strips with h = 0.25. The exact value is 3 ÷ ln 2 = 4.33, so 4 strips overestimate by about 0.04.

Practise integration in a short timed paper

A-level Maths: Calculus gives you a short timed paper every day, with 8 questions worth 25 to 35 marks across differentiation and integration. In the US, the same practice opens as AP Calculus AB. The Calculus course shows rectangles and strips building up the area under a curve before moving to exact integration.

Paper resets in

Common questions

What is the trapezium rule?
A method for estimating a definite integral, or the area under a curve, by splitting it into strips of equal width and adding up their areas as trapezia.
What is the trapezium rule formula?
∫ y dx ≈ ½h[(y₀ + yₙ) + 2(y₁ + … + yₙ₋₁)], with h = (b − a) ÷ n, where n is the number of strips.
When does the trapezium rule overestimate?
When the curve is convex, bending upwards, so the straight tops of the trapezia lie above the curve. It underestimates when the curve is concave.
How do you make the trapezium rule more accurate?
Use more, narrower strips. Doubling the number of strips roughly quarters the error for a smooth curve.
Is the trapezium rule the same as the trapezoidal rule?
Yes. Trapezoidal rule is the US name, because a trapezium is called a trapezoid in the US. The formula is the same.

Revision cards

Say the answer first, then flip the card to check it.

Where to go next

  • Solve it

    Integral Calculator

    Integrate step by step and shade the area under the curve

    Open the tool
  • Learn it

    Calculus

    Differentiation, integration and the mathematics that drives physics and engineering

    Start the course
  • Test it

    A-level Maths: Calculus

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
Read next
Maths · CalculusChain rule: formula, examples and how to use itThe chain rule formula, how to differentiate a function of a function step by step, 8 worked examples, practice questions with answers and exam tips.