Trapezoid Calculator - Area, Perimeter & Height Solver

Cosmetic only

Straight-line distance between the bases, not the slanted leg

Area

47.5

cm²

Perimeter

30.1803

cm

Height

5

cm

A = ½(12 + 7) × 5 = 47.5 cm²

Your trapezoid, drawn to scale

Isosceles trapezoid (drawn isosceles — see the note below)

h = 5a = 12b = 7

Two bases and a height do not pin down one shape — you can slide the top side sideways without changing the area. The drawing shows the isosceles version, and the leg and diagonal lengths below belong to that version. Switch to the four-sides mode when you need the real legs.

Midsegment

9.5 cm

Leg c

5.5902 cm

Leg d

5.5902 cm

Diagonal 1

10.7355 cm

Diagonal 2

10.7355 cm

Base angle at a-left

63.43°

Base angle at a-right

63.43°

Centroid above base a

2.2807 cm

Side lengths side by side

Longer base a12 cm
Shorter base b7 cm
Midsegment m9.5 cm
Height h5 cm
Leg c5.5902 cm
Leg d5.5902 cm

The midsegment always lands exactly halfway between the two bases in length — that is the fastest sanity check on any trapezoid answer.

Show the step-by-step working
  1. 1. Average the two parallel sides. (12 + 7) ÷ 2 = 9.5
  2. 2. Multiply by the perpendicular height. 9.5 × 5 = 47.5
  3. 3. Legs, for the isosceles case. c = d = √((2.5)² + 5²) = 5.5902
  4. 4. Add all four sides for the perimeter. 12 + 7 + 5.5902 + 5.5902 = 30.1803

How to Use This Calculator

  1. Pick your situation in “What do you know?” — bases plus height is the school default, the four-sides mode is for a measured real object, and the third mode works backwards from a known area.
  2. Type the two parallel sides into Base a and Base b. Order does not matter; the calculator sorts them and treats the longer one as the bottom.
  3. Fill the remaining field — Height, Area, or the two Leg boxes depending on the mode you chose.
  4. Read the area, perimeter and height at the top, then check the scale drawing matches the shape you had in mind before you trust the number.
  5. Open Show the step-by-step working to copy the substitutions into your homework or to see exactly where the height came from.

Share this calculator

Help others solve their calculations

Found this calculator helpful? Share it with your friends, students, or colleagues who might need it!

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

About the Author

Marko Šinko - Co-Founder & Lead Developer

Marko Šinko

Co-Founder & Lead Developer, AI Math Calculator

Lepoglava, Croatia
Advanced Algorithm Expert

Croatian developer with a Computer Science degree from University of Zagreb and expertise in advanced algorithms. Co-founder of award-winning projects, ensuring precise mathematical computations and reliable calculator tools.

📅 Published:
Trapezoid Calculator diagram with both parallel bases labelled, the dashed perpendicular height between them, and both diagonals drawn

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 positionLeg cLeg dPerimeterArea
Centred (isosceles)5.5905.59030.1847.5
Flush left (right trapezoid)5.0007.07131.0747.5
Shifted 1 unit right6.1035.22030.3247.5
Overhanging left by 25.3858.60232.9947.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.

TermUS meaningUK / most of the world
TrapezoidOne pair of parallel sidesNo parallel sides at all
TrapeziumNo parallel sides at allOne pair of parallel sides
A = ½(a + b)h applies toThe US trapezoidThe 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.

TypeDefining featureDiagonalsShortcut it gives you
RightOne leg perpendicular to both basesUnequalThat leg is the height — measure it directly
IsoscelesLegs equal, base angles equal in pairsEqualh = √(c² ((a b)/2)²) from three numbers
ScaleneAll four sides differentUnequalNone — 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.

Frequently Asked Questions

Still Have Questions?

The detailed content on this page provides comprehensive explanations and examples to help you understand better.