IB Maths AI & A-Level

The Trapezium Rule: A Step-by-Step Guide

IB Demystified maths teamEvery diagram drawn, not photographed13 min read

Some curves cannot be integrated. Others can, but not by you, not yet. The trapezium rule is how you find the area underneath one anyway — by covering it with straight-sided shapes you already know how to measure.

This page explains where the formula comes from, how to use it without slipping on the usual traps, and how to answer the question examiners nearly always add on the end: is your answer too big or too small?

Check your course first

The trapezium rule is on IB Maths AI (syllabus point SL 5.8, so both SL and HL) and on A-level maths for AQA, Edexcel and OCR. It is not on IB Maths AA at either level — it is not in the AA formula booklet and AA papers do not ask for it. If you are on AA, you can safely skip this.

The Idea in One Picture

You want the area between a curve and the x-axis. The shape has a curved top, so there is no area formula for it. But a trapezium — a four-sided shape with two parallel sides — does have one, and you learnt it years ago.

So we cheat. We slice the region into thin vertical strips and pretend the top of each strip is a straight line rather than a curve. Each strip becomes a trapezium, we work out all their areas, and we add them up.

Four trapezia under a curvexyy₀y₁y₂y₃y₄h
Four strips, each of width h. The straight tops do not quite follow the curve — look at the first strip. That small gap is the error.

Scroll the diagram sideways.

The whole method in one line

Replace the curved top of each strip with a straight line, add up the trapezia, and accept that the answer is close rather than exact.

Two words you need, because every exam question uses them:

  • Strips (or intervals). The number of slices you cut the region into. This is n.
  • Ordinates. The vertical lines at the edges of the strips — the heights y0, y1 and so on. There is always one more ordinate than there are strips, because the strips share their edges. Four strips, five ordinates. Count them in the picture above.

The Formula, Explained Piece by Piece

Here it is as it appears in the IB Maths AI formula booklet and in A-level textbooks.

∫ab y dx ≈ ½h [ (y0 + yn) + 2(y1 + y2 + … + yn−1) ]

where h = (b − a) ÷ n

It looks worse than it is. There are only three ideas in it.

Every part of the formula
PartWhat it means
hThe width of one strip. Take the whole interval from a to b and divide it by the number of strips.
y0 + ynThe two end heights, counted once each. They are the outside edges, so they belong to only one trapezium.
2(y1 + …)All the middle heights, counted twice. Each inside line is shared by the trapezium on its left and the one on its right, so it gets used twice.
½hHalf the strip width, from the ordinary area of a trapezium: ½ × (a + b) × height.

Why the middle ones are doubled

  • Add up the trapezia one at a time and you get ½h(y0+y1) + ½h(y1+y2) + ½h(y2+y3) and so on.
  • Every inside height appears in two of those brackets. Every outside height appears in one.
  • Collect them together and the middle ones carry a 2. That is the whole reason, and it is worth knowing rather than memorising.

The Four Steps

Find h. h = (b − a) ÷ n, where n is the number of strips. Not the number of ordinates.
Make a table of y-values. Work out the height at every x from a to b, stepping along by h. You will have n + 1 of them. Keep more decimal places than you need.
Put them in the formula. First and last once, everything in between doubled.
Multiply by ½h and round at the end. Only round on the final line, never in the table.

Write the table out, even when you are sure

Nearly every mark lost on this topic comes from a mis-typed y-value, not from misunderstanding the method. A table makes the slip visible, and in an exam it earns method marks even if one number is wrong.

Worked Examples

Example 1: a curve you can check

Use the trapezium rule with four strips to estimate ∫04 x2 dx.

Step 1. Find h

h = (4 − 0) / 4 = 1

Step 2. Five y-values, stepping by 1

x: 0, 1, 2, 3, 4

y: 0, 1, 4, 9, 16

Step 3. Ends once, middles doubled

(y₀ + y₄) = 0 + 16 = 16

2(y₁ + y₂ + y₃) = 2(1 + 4 + 9) = 28

Step 4. Multiply by ½h

½ × 1 × (16 + 28)

estimate = 22

This one we can check, because x2 is easy to integrate properly: the exact answer is 64/3 = 21.33…. Our estimate of 22 is too big by about 0.67. Hold that thought — the next section explains why it had to come out too big.

Example 2: one you cannot integrate by hand

Use the trapezium rule with four strips to estimate ∫13 (1/x) dx, giving your answer to three decimal places.

Step 1. Find h

h = (3 − 1) / 4 = 0.5

Step 2. Five y-values from x = 1 to x = 3

x: 1, 1.5, 2, 2.5, 3

y: 1, 0.6667, 0.5, 0.4, 0.3333

Step 3

(y₀ + y₄) = 1 + 0.3333 = 1.3333

2(0.6667 + 0.5 + 0.4) = 3.1333

Step 4

½ × 0.5 × (1.3333 + 3.1333)

estimate = 1.117 (3 d.p.)

The true value is ln 3 = 1.0986…, so again we are slightly over. Four strips is not many; with more we would get closer.

Example 3: one that comes out too small

Use four strips to estimate ∫04 √x dx.

Step 1 and 2. h = 1, and the heights are square roots

x: 0, 1, 2, 3, 4

y: 0, 1, 1.4142, 1.7321, 2

Step 3

(0 + 2) = 2

2(1 + 1.4142 + 1.7321) = 8.2926

Step 4

½ × 1 × (2 + 8.2926)

estimate = 5.146 (3 d.p.)

The exact answer is 16/3 = 5.333…, so this time the estimate is too small. Same method, opposite outcome. The next section is about why.

Over or Under? The Question Examiners Always Ask

After the calculation there is nearly always a second part: is this an overestimate or an underestimate, and how do you know? It is worth easy marks and most students guess.

You do not have to guess. It depends on one thing only: which way the curve bends.

Curve bends UP (convex)Curve bends UP (convex)OVERestimateCurve bends DOWN (concave)Curve bends DOWN (concave)UNDERestimate
Left: the curve bends upwards, so the straight tops sit above it. Right: the curve bends downwards, so they sit below.

Scroll the diagrams sideways.

How to decide, every time
If the curve…The chord sits…Your answer is…
bends upwards (convex)above the curvean OVERestimate — you counted area that is not there
bends downwards (concave)below the curvean UNDERestimate — you missed a sliver under the curve
is a straight lineon the curveexact. There is no error at all.

The quick test, if you are allowed calculus

  • Work out the second derivative, f″(x), over the interval.
  • f″(x) > 0 means the curve bends upwards, so overestimate.
  • f″(x) < 0 means it bends downwards, so underestimate.
  • Check our three examples: for x2, f″ = 2, positive, and we were over. For 1/x, f″ = 2/x3, positive for x > 0, and we were over. For √x, f″ is negative, and we were under. It works every time.

If the curve changes direction of bend

Some curves bend upwards in one place and downwards in another — sin x over a full cycle, for instance. Then the two errors partly cancel and you cannot say which way the total goes without more work. Exam questions avoid this, so if your interval contains a point of inflection, re-read the question: you have probably misread the limits.

How to say it in an exam

Do not just write “overestimate”. Write why: “The curve is convex on this interval, so each chord lies above the curve and each trapezium includes a little extra area. The estimate is therefore too large.” That sentence is the mark.

More Strips, Less Error

Thinner strips follow the curve more closely, so the answer gets better. Here is the same area — ∫04 x2 dx — with more and more strips.

2 stripsn = 2estimate 244 stripsn = 4estimate 228 stripsn = 8estimate 21.5
The gap between the straight tops and the curve shrinks as the strips get thinner.

Scroll the diagrams sideways.

Closing in on the exact answer of 21.333…
StripsEstimateError
132+10.667
224+2.667
422+0.667
821.5+0.167
1621.375+0.042
3221.344+0.010

Look at the error column

10.667, then 2.667, then 0.667, then 0.167. Each one is a quarter of the one above. Doubling the number of strips divides the error by four, every time.

That is not a coincidence of this example. The error in the trapezium rule is proportional to h2, and halving the strip width halves h, so the error falls by a factor of 22 = 4. It is worth knowing because it tells you what you get for your effort: going from 4 strips to 8 is worth far more than going from 20 to 24.

Three ways to make the estimate better

  • Use more strips. The obvious one, and the only one most questions allow.
  • Keep full accuracy in your table. Rounding y-values to 2 d.p. and then quoting the answer to 3 d.p. is a wasted mark.
  • Notice when the curve is nearly straight. Where a curve barely bends, even wide strips are accurate. The error comes from the bendy parts.

When There Is No Function At All

On IB Maths AI especially, the commonest version of this question gives you no equation. Just measurements. You cannot integrate a table of numbers, which is exactly why the trapezium rule exists.

A river is 12 m wide. Its depth is measured every 2 m across the river, giving the readings below. Estimate the area of the cross-section.

Depth readings across the river
Distance (m)024681012
Depth (m)01.22.12.62.31.40

Count first. Seven readings means six strips

h = 2 (given by the measurements)

Ends once

0 + 0 = 0

Middles doubled

2(1.2 + 2.1 + 2.6 + 2.3 + 1.4)

= 2 × 9.6 = 19.2

Multiply by ½h

½ × 2 × (0 + 19.2)

area ≈ 19.2 m²

Notice there was nothing to differentiate, nothing to integrate and no way to check the answer. With real data, the trapezium rule is not an approximation to something better — it is the whole method.

What else gets asked with measured data

  • Units. Depth in metres across a distance in metres gives an area in m². If the y-axis were speed in m/s against time in s, the “area” would be a distance in metres. Always say what your number is.
  • Over or under? You cannot differentiate a table, so argue from the shape: sketch the points and see whether the curve through them bends up or down.
  • Is it reliable? A good answer mentions that readings every 2 m may miss a sudden dip, and that more frequent readings would improve the estimate.

Common Mistakes

The big one: strips versus ordinates

This single mistake costs more marks than everything else on this topic combined, so it gets its own worked comparison. A question gives you six y-values between x = 2 and x = 7. What is h?

Wrong

“Six values, so six strips.”

h = (7 − 2) ÷ 6 = 0.833…

Every y-value is now at the wrong x, and the whole answer is wrong.

Right

“Six values, so five strips.”

h = (7 − 2) ÷ 5 = 1

The readings fall at 2, 3, 4, 5, 6, 7. They line up.

The rule, in four words: ordinates are strips plus one. Think of a fence — five panels need six posts.

Seven slips that lose marks
The mistakeWhat goes wrongDo this instead
Dividing by the number of ordinatesh is wrong, so everything after it is wrong.h = (b − a) ÷ number of strips.
Doubling the first and last yThe outer edges belong to one trapezium each, not two.Ends once, middles twice.
Forgetting the ½Your answer is exactly double the right one.Multiply by ½h at the end, not h.
Calculator in degreesEvery y-value in a trig question is wrong from the first line.Radians, unless the question says otherwise.
Rounding inside the tableSmall errors build up and the final digit is wrong.Keep full accuracy, round only on the last line.
Guessing over or underHalf the class gets it right by luck and loses the explanation mark anyway.Check which way the curve bends and say so.
Calling the answer exactIt is an estimate unless the curve is a straight line.Write ≈, not =, and use the word “estimate”.

Notation you will meet

Same rule, different books
You may seeWhereIs it different?
½h[…]IB formula booklet, many A-level textsNo.
(h/2)[…]Other A-level textsNo — identical, written differently.
“trapezoidal rule”IB, and American booksNo. “Trapezium” and “trapezoid” are the same shape here.
f(x0), f(x1)…Instead of y0, y1No. Two names for the same heights.

Practice Questions

Work each one on paper, then tap to check. Every answer below was verified.

1. Use four strips to estimate ∫02 x3 dx.

h = (2 − 0) / 4 = 0.5

x: 0, 0.5, 1, 1.5, 2

y: 0, 0.125, 1, 3.375, 8

Ends 0 + 8 = 8, middles 2(0.125 + 1 + 3.375) = 9

½ × 0.5 × (8 + 9)

estimate = 4.25

Exact value is 4, so this is an overestimate — as expected, since f″ = 6x is positive here.

2. Use four strips to estimate ∫15 (1/x) dx to four decimal places.

h = (5 − 1) / 4 = 1

x: 1, 2, 3, 4, 5

y: 1, 0.5, 0.3333, 0.25, 0.2

Ends 1.2, middles 2(0.5 + 0.3333 + 0.25) = 2.1667

½ × 1 × 3.3667

estimate = 1.6833

True value is ln 5 = 1.6094, so again an overestimate.

3. A table of values has nine entries, from x = 1 to x = 5. How many strips, and what is h?

Nine ordinates means eight strips, because ordinates are always one more than strips. So h = (5 − 1) ÷ 8 = 0.5. Dividing by 9 would give 0.444… and wreck the whole question.

4. Use four strips to estimate ∫0π sin x dx. Is it an over- or underestimate?

h = π/4, and the calculator must be in radians

y: 0, 0.7071, 1, 0.7071, 0

Ends 0, middles 2(0.7071 + 1 + 0.7071) = 4.8284

½ × (π/4) × 4.8284

estimate = 1.8961

Exact value is 2. An UNDERestimate, because f″ = −sin x is negative on this interval, so the curve bends downwards.

5. Without calculating anything, will the trapezium rule over- or underestimate the area under y = ex?

Overestimate. Differentiate twice: f″(x) = ex, which is positive everywhere. The curve bends upwards, so every chord lies above it.

6. Same question for y = ln x, for x > 0.

Underestimate. f″(x) = −1/x2, which is negative for every x. The curve bends downwards, so the chords sit below it.

7. Using four strips gives an error of about 0.8. Roughly what error would eight strips give? And sixteen?

Doubling the strips divides the error by four. So eight strips gives about 0.2, and sixteen strips about 0.05. Each doubling buys you another factor of four.

8. The speed of a car is recorded every 5 seconds: 0, 4, 9, 13, 15, 14, 10 m/s. Estimate the distance travelled.

Seven readings means six strips, and h = 5 seconds

Ends 0 + 10 = 10

Middles 2(4 + 9 + 13 + 15 + 14) = 2 × 55 = 110

½ × 5 × (10 + 110)

distance ≈ 300 m

Area under a speed-time graph is distance, so the units are metres, not m/s.

Frequently Asked Questions

What is the trapezium rule?

It is a way of estimating the area under a curve. You cut the region into vertical strips of equal width, treat the top of each strip as a straight line so that it becomes a trapezium, work out those areas and add them up. It is used when a function is awkward or impossible to integrate, or when you only have measured data.

What is the trapezium rule formula?

∫ab y dx ≈ ½h[(y0 + yn) + 2(y1 + y2 + … + yn−1)], where h = (b − a) ÷ n and n is the number of strips. The first and last heights count once, everything in between counts twice.

Is the trapezium rule an overestimate or an underestimate?

It depends on which way the curve bends. If it bends upwards (convex), the chords lie above it and you get an overestimate. If it bends downwards (concave), the chords lie below and you get an underestimate. The quick test is the second derivative: f″(x) > 0 means over, f″(x) < 0 means under.

How many ordinates do I need for n strips?

n + 1. Always one more ordinate than strips, because neighbouring strips share an edge. Five strips need six y-values. Think of a fence: five panels, six posts. Getting this backwards is the most common mistake on the topic.

How do I find h?

h = (b − a) ÷ n, where n is the number of strips. If a question hands you a table rather than a value of n, count the entries and subtract one to get the strips first.

Why are the middle y-values doubled?

Because each inside ordinate is a side of two trapezia — the one to its left and the one to its right — so it gets used twice when you add all the areas up. The two outside ordinates belong to one trapezium each, so they are counted once.

Is the trapezium rule on IB Maths AA?

No. It is on Maths AI, syllabus point SL 5.8, which means AI SL and AI HL. It does not appear in the AA formula booklet at either level and AA papers do not ask for it. If you are on AA you do not need this topic.

Is it on A-level maths?

Yes, on AQA, Edexcel and OCR, in the numerical methods part of Pure. Questions usually ask for an estimate with a stated number of strips and then whether it is an over- or underestimate.

How accurate is the trapezium rule?

It depends on how much the curve bends and how thin the strips are. The error is proportional to h2, which means doubling the number of strips divides the error by four. In our example, going from 4 strips to 8 cut the error from 0.667 to 0.167.

When is the trapezium rule exact?

When the “curve” is a straight line. Then the chord lies exactly on it and there is no gap at all, so the estimate equals the true area however few strips you use.

What is the difference between the trapezium rule and the trapezoidal rule?

Nothing. “Trapezium” is the British name and “trapezoid” the American one, and the IB uses “trapezoidal rule”. Same shape, same formula, same method.

What if the curve bends both ways on my interval?

Then part of the estimate is too big and part too small, and you cannot say which way the total goes without splitting the interval at the point of inflection. Exam questions are set to avoid this, so if your interval looks like it contains one, check you have read the limits correctly.

Can I use the trapezium rule on a table of measurements?

Yes, and this is the most common version on IB Maths AI. With measured data there is no function to integrate, so the trapezium rule is not an approximation to a better method — it is the only method. Count the readings, subtract one for the number of strips, and read h off the spacing.

Why does my answer come out exactly double the mark scheme?

You have almost certainly multiplied by h instead of ½h. It is the single most common arithmetic slip on this topic, and the giveaway is that your answer is exactly twice the right one.

Should I write = or ≈?

Use ≈. The trapezium rule gives an estimate, not an exact value, and some mark schemes expect to see that you know the difference. Use the word “estimate” in any sentence you write too.

The calculation is four marks. The sentence after it is two more.

Most students can get the number out. Far fewer pick up the marks for saying whether it is too big, why, and what would make it better — and those are the marks that separate a six from a seven. Our tutors teach IB and A‑level maths and work through your own past papers, so we fix the habits actually costing you marks rather than reteaching what you can already do.

Book a free 30-minute meeting

Revising the whole subject? Our IB revision notes cover maths topic by topic at SL and HL, or read about our IB maths tutors.