Trapezoid Area and Perimeter Calculator
The area of a trapezoid follows from its two parallel sides — the long base and the short base — and the height between them. The perimeter needs the two slanted sides as well: without them it stays undetermined (a trapezoid doesn't have a single fixed shape for a given pair of bases and height).
Enter at least the two bases and the height for the area; add the slanted sides too when they are known, to also get the perimeter.
Trapezoid dimensions
Terms with an asterisk are defined in the glossary that closes the article.
Why the bases and height do not fix the perimeter
American English calls this figure a trapezoid*; British English calls the same shape a trapezium. One pair of parallel sides either way. This page uses trapezoid throughout, and then gets on with the arithmetic.
The area, yes. The walk around, no. The parallel sides are the bases B and b, and the height h is the perpendicular distance between those two lines. Three numbers pin down the surface. They do not pin down the outline.
Picture the two bases, a height h apart. The ends of the short one can slide, so long as that height holds. One slanting side lengthens, the other shortens. The area does not move. The perimeter does, with every slide. To add it up, the two non-parallel sides — the legs* — are required. Without them this calculator returns the area and stops. That is not a missing field. It is the geometry. The unit dropdown is a label; it does not convert the typed lengths.
area = (B + b) ÷ 2 × h
perimeter = B + b + left leg + right leg
One case looks like an exception, and it is not magic: the isosceles trapezoid. Equal legs, the overhang split in two. Each leg is then √(h² + ((B − b)/2)²). That recovery works. The moment the legs stop matching, that crutch is gone.
Isosceles, right and scalene: what the outline does
Three silhouettes, one area formula. What changes is the outline, and how the slants are recovered.
- Isosceles. Equal legs, equal angles on the long base. The overhang (B − b) splits in half. Pythagoras on each small right-angled triangle. This is the only case in which B, b and h give the perimeter.
- Right (a right angle between a base and one leg). That leg is the height. The other follows if all the overhang sits on one side: √(h² + (B − b)²). Bases 8 and 5, height 4: the slant is √(16 + 9) = 5. Another 3-4-5.
- Scalene. The two legs need not be related. They are measured, or read off the drawing. B, b and h will not invent them.
In all three, the area stays (B + b)h / 2. A right trapezoid 8-5-4 and an isosceles 8-5-4 both enclose 26. The first has perimeter 22 (8 + 5 + 4 + 5). The second, about 21.54. Same area, different walk. The slope calculator is the place for the angle of a leg; this page stays with lengths.
Splitting into a rectangle and triangles
Drop perpendiculars from both ends of the short base onto the long one. In the middle, a rectangle of width b and height h. Left and right, one or two right-angled triangles whose bases add up to (B − b).
Rectangle: b × h. Triangles, mentally glued into one: (B − b) × h / 2. Add them.
b·h + (B − b)·h / 2 = (2b + B − b)·h / 2 = (B + b)·h / 2
If the trapezoid is right-angled, one of those triangles has vanished: zero base, the leg sitting on the height. The sum still holds. Another picture, handy at school: two identical trapezoids, joined after a half-turn along a leg, make a parallelogram of base (B + b) and height h. Half of (B + b)h, same formula.
Recovering the height from the area
The formula turns round cleanly. Isolate h.
h = 2 × area ÷ (B + b)
Area 26, bases 8 and 5: h = 52 / 13 = 4. The default example, read backwards. A plot of 320 m², parallel frontages 22 m and 18 m: the perpendicular depth is 2 × 320 / 40 = 16 m. Perpendicular depth, not the length of a fence run, which is longer as soon as the plot is not a rectangle.
A missing base cannot be recovered without the other, or without h. Two unknowns, one equation. The calculator asks for all three for the area, and for the legs as well if the outline is wanted.
The midsegment (median)
The segment that joins the midpoints of the two legs runs parallel to the bases. Its length is their average. That segment is the midsegment*, also called the median of the trapezoid.
median m = (B + b) ÷ 2 ; area = m × h
Same formula, reread. The area of a trapezoid is the area of a rectangle of width m and height h. On a plot, the median is sometimes easier to chain than the two frontages (a path cutting across). On a drawing, it is the line at mid-height.
That median is not an edge. Adding it into the perimeter would count twice, and in the wrong place. It serves the area, not the walk around.
Bases 8 and 5, height 4
Long base 8, short 5, height 4, same unit. Area first, which asks for nothing else.
area = (8 + 5) ÷ 2 × 4 = 13 × 2 = 26
The perimeter waits for an assumption. Isosceles: leftover 3, split 1.5 a side, leg √(4² + 1.5²) = √18.25 ≈ 4.272, perimeter ≈ 21.54. Right-angled: upright leg = 4, slant = 5, perimeter = 22. Same 26 of area, two different walks. If 8, 5 and 4 are metres, 26 m² of sheet. The metres of flashing depend on the profile.
Backwards, h = 2 × 26 / 13 = 4. The loop closes. What the loop does not close is the choice of legs. They have to be typed in, or the figure is declared isosceles.
Right trapezoid: one leg is the height
One of the two non-parallel sides stands at 90° on the bases. It does not “stand in for” the height: it is the height. The overhang then piles up on the other side. One slanting leg, and Pythagoras reads √(h² + (B − b)²), provided all the leftover length really sits there — which it does as soon as one angle is right. Bases 8 and 5, h = 4, leftover 3: the slant is 5, the perimeter 22. Clean integers, checkable with a tape.
A right trapezoid has two right angles, side by side on the same leg. Should the second leg also stand at 90°, both legs would be parallel to each other and the figure would be a rectangle, no longer a trapezoid in the strict sense.
Sliding the short base: a family of equal area
B, b and h do not determine a unique trapezoid. They determine a family of equal area, obtained by sliding the short base along its line. One slanting side lengthens, the other shortens, the surface stays 26. A rhombus has no such freedom: four equal sides lock the outline once a diagonal is known. A trapezoid keeps that extra degree of freedom until the legs are given.
For a perimeter, the legs are needed, or an assumption (isosceles, right) that fixes them. Inventing the slants from the height alone is how a take-off comes up short.
The rest of plane geometry on this site treats the cases with more symmetry — rectangle, rhombus, regular polygon — as the ones where the outline follows from fewer measurements. The trapezoid is the one that refuses.
Glossary
- Trapezoid / trapezium
- A quadrilateral with exactly one pair of parallel sides (the bases). American English: trapezoid. British English: trapezium. (The two words swap meanings across the Atlantic; this page follows the American name and the shared geometry.)
- Legs
- The two non-parallel sides of a trapezoid. They are needed for the perimeter and are not determined by the bases and height alone, except in the isosceles and right-angled cases.
- Midsegment (median)
- The segment joining the midpoints of the two legs. It runs parallel to the bases and its length is their average, (B + b) / 2. The area equals this length times the height.