Trapezoid calculator — area, midsegment and perimeter (isosceles or not)

Enter the two parallel sides and the height, and the calculator gives the area and midsegment; add the two legs, or leave them at 0 for an isosceles trapezoid, to get the perimeter too.

Live demo · real result from this tool
Area (½(a + b)h)32
Median (midsegment)
8
Perimeter
24.94427191
Each leg (isosceles)
4.472135955

Processed on your device — nothing is uploaded.

How to use the trapezoid calculator

  1. Enter Parallel side a and Parallel side b, the two sides that run parallel. Order does not matter.
  2. Enter the Height, measured at right angles between them, not along a slanted side.
  3. For an isosceles trapezoid, leave Leg c and Leg d at 0. Otherwise, enter both legs.
  4. Read Area (½(a + b)h), Median (midsegment) and Perimeter. For the isosceles case you also get Each leg (isosceles).

What it does and when to use it

Trapezoids show up in sloping roofs, the side walls of a lean-to shed, ramps, embankments, the cross-section of a ditch or canal, and plots of land with one slanted boundary. The area tells you how much roofing, cladding or turf you need. The perimeter gives the length of trim or fencing. Students use the area formula a lot, and it is also the basis of the trapezium rule for estimating the area under a curve.

For a trapezoid as one choice among many shapes, the area calculator and perimeter calculator show the formula with your numbers. The Pythagorean calculator helps if you need a leg or the height from other measurements.

How it works

  • Area: ½ × (a + b) × h
  • Median (midsegment): (a + b) ÷ 2
  • Perimeter: a + b + c + d
  • Isosceles legs (when both are 0): each leg = √(((a − b) ÷ 2)² + h²). The longer base sticks out by (a − b) ÷ 2 on each side, which forms a right triangle with the height.

Worked examples

An isosceles trapezoid, step by step. a = 12, b = 8, height 5, legs left at 0.

  1. Overhang on each side: (12 − 8) ÷ 2 = 2.
  2. Leg: √(2² + 5²) = √29 = 5.385164807.
  3. Area: ½ × (12 + 8) × 5 = 50.
  4. Perimeter: 12 + 8 + 2 × 5.385164807 = 30.77032961.

The tool shows Each leg (isosceles): 5.385164807, a median of 10 and Perimeter: 30.77032961.

Unequal legs. a = 20, b = 6, height 12, legs 13 and 15. The area is Area (½(a + b)h): 156, the median 13 and the perimeter 54. These legs fit exactly: they stick out 5 and 9 units, which add up to 20 − 6 = 14.

Limits and tips

  • Two legs you enter must fit together. Their horizontal overhangs, √(leg² − h²), must add up to the difference between the bases (both legs slope outwards) or differ by it (one leans over). If neither is true within 1% of the longer base, the tool says the legs do not fit instead of giving a perimeter for a shape that cannot exist.
  • Fill in both legs or neither. One leg on its own gives a message.
  • No unit menu: area is in your unit squared.
  • Runs in your browser.

Frequently asked questions

Is a trapezoid the same as a trapezium?
Yes, in the sense used here. In British and Indian English a four-sided shape with one pair of parallel sides is called a trapezium; in American English it is a trapezoid.
What does "Leg c (0 = isosceles)" mean?
The legs are the two sides that are not parallel. If you leave both at 0, the tool assumes they are equal and works out their length from the height and the two parallel sides.
Why do I get "A leg cannot be shorter than the height"?
The height is the shortest distance between the parallel sides. Any slanted leg is longer, and a leg at a right angle equals the height. A leg shorter than the height is impossible.
What is the median or midsegment?
The line joining the midpoints of the two legs. It runs parallel to the bases and its length is their average, (a + b) ÷ 2. Area is also median × height.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close