Understanding the trapezoid calculator — concept and principle
A trapezoid (called a trapezium in British English) is a four-sided shape with one pair of parallel sides, the bases a and b. The perpendicular distance between them is the height h. This calculator gives the area and the median, the segment joining the midpoints of the two non-parallel legs. Trapezoids appear in land plots, roof faces, retaining walls, channel and embankment cross-sections, and the trapezoidal rule for estimating the area under a curve.
How it is calculated
- Area: A = (a + b) ÷ 2 × h
- Median (midline): m = (a + b) ÷ 2
So the area is simply median × height. The bases and height must use the same unit; the area is in that unit squared. The lengths of the slanted legs do not enter the area at all; only the two bases and the perpendicular height matter.
The principle
Draw a diagonal and the trapezoid splits into two triangles that share the same height h: one with base a, one with base b. Their areas are ½ah and ½bh, which add to ½(a + b)h. Another view: place a second copy of the trapezoid upside down next to the first. Together they form a parallelogram with base a + b and height h, so one trapezoid is half of (a + b)h. The median is parallel to the bases and its length is their average, which is why the trapezoid has the same area as a rectangle of width m and height h. If one base shrinks to zero the shape becomes a triangle and the formula becomes ½bh; if the bases are equal it becomes a parallelogram, bh.
Worked example
- Inputs: a = 10, b = 6, h = 4.
- Median: (10 + 6) ÷ 2 = 8.
- Area: 8 × 4 = 32.
| Height | Area |
|---|---|
| 1 | 8 |
| 2 | 16 |
| 3 | 24 |
| 4 | 32 |
| 5 | 40 |
| 6 | 48 |
| 8 | 64 |
How to read the result
The median is the average width of the shape, so the area must lie between the narrow-base rectangle (6 × 4 = 24) and the wide-base rectangle (10 × 4 = 40). In the trapezoidal rule, each strip under a curve is treated as a trapezoid, and the error shrinks as the strips get narrower.
Common mistakes
- Using a slanted leg length as the height.
- Adding the two bases but forgetting to halve them.
- Treating a quadrilateral with no parallel sides as a trapezoid; split it into triangles instead.
Frequently asked questions
How do I find the height from the area?
h = 2A ÷ (a + b). An area of 32 with bases 10 and 6 gives h = 4.
How do I find the height of an isosceles trapezoid from its legs?
Each leg c forms a right triangle with the height and half the difference of the bases: h = √(c² − ((a − b)/2)²).
Is a parallelogram a trapezoid?
Under the inclusive definition (at least one pair of parallel sides), yes; some textbooks use the exclusive definition (exactly one pair), so check which your course follows.
Sources: Euclid, Elements, Book I, Propositions 35 and 38 (parallelograms and triangles on equal bases between the same parallels) · R. L. Burden and J. D. Faires, Numerical Analysis, Cengage (trapezoidal rule)