Trapezoid Calculator: Area, Perimeter and Height From Any Two Bases
About the Author

A trapezoid calculator runs one formula, and it is short enough to memorise in ten seconds: A = ½(a + b)h. Add the two parallel sides, halve the total, multiply by the perpendicular height. That is the whole thing. Everything hard about trapezoids is upstream of that formula — knowing which two sides are the bases, and finding an h that nobody handed you.
So this page answers the quick question first, then works down through the parts people actually get stuck on: solving from four measured sides, the difference between the US and UK meanings of “trapezoid”, why bases-and-height is not enough to draw one shape, and what the midsegment is good for.
The 20-Second Version: Average the Bases, Times the Height
A trapezoid has exactly one pair of parallel sides. Call them a and b. The perpendicular distance between them is h. Area is the average of the bases times that distance:
A = ½(a + b) × h | P = a + b + c + d | m = ½(a + b)
Take a garden bed 12 ft along the fence, 7 ft along the path, with 5 ft between them. Average the bases: (12 + 7) ÷ 2 = 9.5. Multiply: 9.5 × 5 = 47.5 square feet. If you order topsoil 3 inches deep, that is 47.5 × 0.25 = 11.9 cubic feet, or a shade under half a cubic yard.
Notice what the formula does not contain: the legs. Two trapezoids with wildly different slanted sides have identical areas as long as the bases and the height match. That is the same shearing idea behind the triangle area rule, which the triangle area calculator uses, and it is why a trapezoid area answer is stable even when your leg measurements are sloppy.
Nobody Measures the Height: Getting h From the Four Sides
In a textbook, h arrives free. In a workshop or a survey it never does — you can run a tape along all four edges of a real object far more easily than you can hold a square against two sloping sides. Here is the trick that turns four side lengths into a height.
Slide the whole top base to one side, and the overhang a − b forms the base of a triangle whose other two sides are the legs c and d. Solve that triangle and you have the height. Written out, with x as the horizontal run under leg c:
x = ((a − b)² + c² − d²) ÷ (2(a − b)) then h = √(c² − x²)
Run the numbers on a = 12, b = 7, c = 6, d = 5.5. The overhang is 5. Then x = (25 + 36 − 30.25) ÷ 10 = 3.075, and h = √(36 − 9.4556) = 5.152. Area comes out at 9.5 × 5.152 = 48.95 square units — noticeably more than the 47.5 you would get by wrongly using the 5-unit leg as the height.
That formula has a failure mode worth knowing. The triangle only closes when |c − d| < a − b < c + d. Break it and no trapezoid exists with those four sides, which is exactly what happens when someone mistypes a measurement. The calculator above says so instead of returning a quiet NaN. It is the same triangle inequality that governs Heron’s formula, and for good reason — the auxiliary shape you are solving really is a triangle.
Why a Trapezoid Calculator Cannot Give You a Perimeter From Bases and Height
This one trips up people building CAD models and cutting sheet material, and almost every trapezoid calculator online glosses over it. Fix a = 12, b = 7, h = 5, and you have not fixed a shape. Slide the 7-unit top side left or right along its own line and the area never moves, but the legs and diagonals change completely:
| Top side position | Leg c | Leg d | Perimeter | Area |
|---|---|---|---|---|
| Centred (isosceles) | 5.590 | 5.590 | 30.18 | 47.5 |
| Flush left (right trapezoid) | 5.000 | 7.071 | 31.07 | 47.5 |
| Shifted 1 unit right | 6.103 | 5.220 | 30.32 | 47.5 |
| Overhanging left by 2 | 5.385 | 8.602 | 32.99 | 47.5 |
The area column is frozen. The perimeter column swings by nearly 10%. So if you only need area — paint coverage, turf, fabric — bases and height are plenty. If you need to cut the legs, order edging, or weld a frame, you need a fourth constraint: either both legs, or one base angle, or a statement that the shape is isosceles. That is why the calculator draws the isosceles version and says so, rather than pretending one answer exists.
Trapezoid or Trapezium? The Word Flips Meaning at the Atlantic
Search “trapezium calculator” from London and from Chicago and you want two different shapes. This is not pedantry — it changes which formula applies.
| Term | US meaning | UK / most of the world |
|---|---|---|
| Trapezoid | One pair of parallel sides | No parallel sides at all |
| Trapezium | No parallel sides at all | One pair of parallel sides |
| A = ½(a + b)h applies to | The US trapezoid | The UK trapezium |
The two words are exact mirror images. This calculator uses the US convention, because that is what “trapezoid” means to the overwhelming majority of people typing it — but if you learned “trapezium” in a UK, Indian or Australian classroom, the shape on this page is yours and the formula is unchanged. If your quadrilateral genuinely has no parallel sides, no single formula covers it: split it along a diagonal and add two triangles, which the area calculator handles shape by shape.
One more definitional fork. Some syllabuses use the exclusive definition — exactly one pair of parallel sides, so a parallelogram is not a trapezoid — and others use the inclusive one, where at least one pair qualifies and every parallelogram counts. Area maths is identical either way, since a = b just turns ½(a + b)h into the familiar base × height. It only matters when a question asks “is this a trapezoid?”
The Midsegment Is the Fastest Error Check You Have
Join the midpoints of the two legs and you get the midsegment (median). Its length is the plain average of the bases: m = ½(a + b). For our 12-and-7 trapezoid that is 9.5, which is also the number sitting inside the area formula — area is just m × h, exactly like a rectangle of width m.
That reframing gives you a two-second sanity check on any trapezoid answer. Divide your area by the height and the result must land strictly between the two base lengths. Get 9.5 from 47.5 ÷ 5, and since 7 < 9.5 < 12, the answer is at least plausible. Get a number outside that range and you have used a leg as the height, or added the bases without halving.
A useful corollary: the midsegment always sits closer to the longer base than the naive midpoint of the height suggests when you are looking for the centre of mass. The centroid of a trapezoid lies at height h(2b + a) ÷ (3(a + b)) above base a — 2.28 units for our example, not 2.5. Structural and balance calculations care about that difference; homework rarely does.
Right, Isosceles, Scalene: Which Shortcuts Survive
The three named families are not just labels — each one hands you a shortcut the others do not have.
| Type | Defining feature | Diagonals | Shortcut it gives you |
|---|---|---|---|
| Right | One leg perpendicular to both bases | Unequal | That leg is the height — measure it directly |
| Isosceles | Legs equal, base angles equal in pairs | Equal | h = √(c² − ((a − b)/2)²) from three numbers |
| Scalene | All four sides different | Unequal | None — you need the full four-side solve |
The isosceles shortcut is worth committing to memory. Overhang splits evenly, so each end contributes (a − b)/2 = 2.5, and Pythagoras on the leg finishes it — a single Pythagorean theorem application instead of the law-of-cosines route. Equal diagonals are also the working test for isosceles in the field: if your two corner-to-corner measurements disagree, the piece is not symmetric, whatever the plan said.
Another isosceles fact that shows up in exam questions: adjacent angles along either leg add to 180°, because the legs are transversals cutting parallel lines. Know one base angle is 63° and the angle at the other end of that leg is 117°, no extra work.
Four Errors That Produce a Confident Wrong Number
- Using a leg as the height. The single most common one. A 6-unit leg on a shape whose true height is 5.15 inflates the area by about 16% — enough to over-order material and still look reasonable. The height is always perpendicular, and it is always shorter than either slanted leg.
- Picking the wrong pair as the bases. The bases are the parallel sides, not the longest ones and not the horizontal ones on your sketch. Rotate a right trapezoid 90° and the bases become vertical; the formula does not care, but a careless reading does.
- Forgetting the ½. (a + b)h gives you the area of the surrounding parallelogram — precisely double. Anyone who has marked homework has seen this error more than any other arithmetic slip.
- Mixing units mid-problem. Bases in feet and a height in inches produce a number twelve times too big with nothing to flag it. Convert first, and remember area units square: 1 ft² is 144 in², not 12.
For perimeter there is one extra trap. You cannot get a perimeter from bases and height alone, for the reason set out in the table above — the legs are still free to move. If a question asks for both area and perimeter, it must have given you the legs or told you the shape is isosceles. Check which before you start, and cross-check the total against a general perimeter calculator if the shape is part of a larger outline.
Where Trapezoid Area Earns Its Keep Outside Geometry Class
Trapezoids are the workhorse of approximate integration. The trapezoidal rule slices a curve into thin strips, treats each strip’s top as a straight line, and sums ½(a + b)h across all of them — the same formula, run a few thousand times. Every time a spreadsheet integrates sensor readings sampled at fixed intervals, that is what it is doing.
The shape turns up physically wherever something has to narrow: irrigation and drainage channels are cut in trapezoidal cross-sections because sloped walls resist collapse better than vertical ones, and the flow area is exactly ½(a + b)h. Roof dormers, staircase stringers, retaining walls, tapered table legs, hip-roof end panels, and almost any land parcel bounded by a road and a non-parallel property line all reduce to the same calculation. In surveying, an irregular plot is routinely chopped into trapezoidal strips of equal width and totalled — that is the entire logic behind the trapezoidal rule for areas, which the standard geometric treatment of the trapezoid develops in more depth.
One last practical note. When you measure a real object, take all four sides plus at least one diagonal. Four sides tell the calculator whether the shape closes; the diagonal tells you whether the object is the shape you think it is. If the measured diagonal disagrees with the computed one by more than your tape’s tolerance, the two sides you assumed were parallel probably are’t — and no trapezoid formula will save you at that point.



