SCIENCE & MATHS

Trapezoid Calculator

Area, perimeter, height, legs, all four angles and both diagonals of a trapezoid from its two bases and either the height (isosceles, right, offset) or legs.

Area ½(a + b)h and the midsegment, the height or legs you did not enter, perimeter, the four corner angles, both diagonals, the trapezoid’s type and a scaled drawing.

Example: Bases 10 and 6 with height 3: area 24, legs 3.61, base angles 56.3°, diagonals 8.54; bases 10 and 4 with legs 5 and √13 give height 3 and area 21; offset 0 makes a right trapezoid.

v0.1.0 · last reviewed 22 September 2026
Loading the workspace…
BUILT TO BE UNDERSTOOD

Two parallel sides,
and everything between.

How the trapezoid is placed, how the height comes from the legs, and how angles and diagonals are read.

Placing the shape

The longer base a lies along the bottom from (0, 0) to (a, 0); the shorter base b sits at height h starting at an offset x from the left. With the height known the page centres the top base (x = (a − b)/2, an isosceles trapezoid) unless you give an offset — 0 makes the left leg vertical (a right trapezoid), and an offset outside 0…a − b overhangs. The legs are then the hypotenuses √(x² + h²) and √((a − b − x)² + h²). If the shorter base is typed first the two are swapped and a note says so.

Height from the legs

With legs c and d and the difference e = a − b, the top base can be placed in exactly one way: x = (c² − d² + e²) ÷ 2e and h = √(c² − x²). If c² < x² the legs cannot reach across the difference — the triangle inequality |c − d| < e < c + d fails — and the page reports it. Equal bases with legs given are a parallelogram whose height is not determined, so the height must be entered instead.

Area, angles, diagonals

Area = ½(a + b)·h, which is also the midsegment ½(a + b) — the average width — times the height. The four corner angles come from the dot product of the two edges at each corner, so they add to 360° and the two along each leg add to 180°; the diagonals are the distances between opposite corners. The type is named from the result: isosceles (equal legs), right (a vertical leg), scalene, or rectangle / parallelogram when the bases are equal (the inclusive definition). Nothing leaves the browser; the same four anonymous usage counts as the rest of the site apply.

SOURCES

  • Area = ½(a + b)·h; midsegment = ½(a + b); from legs c, d with e = a − b: x = (c² − d² + e²) ÷ 2e, h = √(c² − x²); angles by the dot product at each corner; diagonals from the corner coordinates

Last reviewed 22 September 2026. How results are checked: How we verify.