Audited 29 Jul 2026·Last updated 28 Oct 2026·4 citations·Tier 2·0 uses

Trapezoid Calculator

Solve a trapezoid from its parallel sides plus both legs or the height: area, perimeter, height, midsegment, both diagonals and both base angles.

Trapezoid Calculator

Which measurements do you have?
Must be strictly longer than base b. If your two parallel sides are equal the shape is a parallelogram, not a trapezoid.
The other parallel side. Any unit — results come back in the same one.
Used by the first mode only. A trapezoid exists only when the overhang a − b is bigger than |c − d| and smaller than c + d — the triangle inequality on c, d and a − b.
Used by the first mode only. Swapping c and d mirrors the trapezoid: the area, perimeter and median are unchanged and the two base angles trade places.
Used by the two assumption modes only. This is the perpendicular distance between the parallel sides, not the length of a leg.
Area
34.2929
½(a + b) × h, the midsegment times the height, in your length unit squared; it is exact in all three modes.
Perimeter
26
Height (h)
4.899
Median / midsegment (m)
7
Leg c (left)
5
Leg d (right)
7
Diagonal (long base's left corner → far top corner)
7
Diagonal (long base's right corner → far top corner)
10.247
Base angle at the left (degrees)
78.463
Base angle at the right (degrees)
44.4153

Background.

The area of a trapezoid is half the sum of its parallel sides times the height, which is easy until you notice you never measured the height. Run a tape around a plot of land, a sloping panel or the cross-section of a ditch and what you have is four side lengths. Turning those into a height takes a step most formula sheets leave out, and it is the default here: give the two parallel sides and both slanted legs, and the height, area, perimeter, midsegment, diagonals and base angles all follow from your measurements alone.

The step is needed because two parallel sides and a height do not fix the shape. Slide the shorter side left or right along its line and the area stays the same while the legs, the diagonals and the angles all change. If the height really is what you measured, two other modes fill the gap with an assumption: isosceles, with equal legs, or a right trapezoid, with one leg standing perpendicular to both bases. The area they report is exact either way; the legs, diagonals and angles describe the assumed shape.

Trapezoid is used in the North American sense, a quadrilateral with exactly one pair of parallel sides, the shape British English calls a trapezium. Under that exclusive definition a parallelogram does not qualify, so the longer base must be strictly longer than the shorter one, and four lengths that cannot close into a trapezoid are refused with the reason.

What is trapezoid calculator?

A trapezoid is a four-sided figure with one pair of parallel sides, the bases a (longer) and b (shorter), joined by two legs, c on the left and d on the right. The height h is the perpendicular distance between the bases. The midsegment, the line joining the midpoints of the two legs, runs parallel to the bases and is exactly their average, ½(a + b), however the legs slope. Since the area is that midsegment times the height, a trapezoid covers the same area as a rectangle of the same height whose width is the average of its two bases. An isosceles trapezoid has equal legs, which forces equal base angles and equal diagonals; a right trapezoid has one leg perpendicular to both bases.

How to use this calculator.

  1. Under "Which measurements do you have?", pick the first option if you know both slanted sides; nothing is then assumed. Choose isosceles or right trapezoid only when the perpendicular height is what you measured.
  2. Enter base a as the longer parallel side and base b as the shorter. Any unit works if every length uses the same one, and the area comes back in that unit squared.
  3. With both legs, enter c on the left and d on the right. Swapping them mirrors the shape: the area, perimeter and midsegment stay the same and the two base angles change places.
  4. With the height, measure it at right angles to the bases rather than along a leg; a slanted leg is always longer than the height.
  5. To check something already built, compare its diagonals with the results. Equal diagonals mean an isosceles trapezoid; unequal ones mean the legs differ, however symmetric the piece looks.

The formula.

p = (k² + c² − d²) ⁄ 2k , h = √(c² − p²) , A = ½(a + b)h , m = ½(a + b)

Lay the long base along the x-axis from (0, 0) to (a, 0), and the short base at height h from (p, h) to (p + b, h). Here p is how far the short base is shifted from the left end, and k = a − b is the total overhang. The two legs give c² = p² + h² and d² = (k − p)² + h². Subtracting one from the other removes h and leaves p = (k² + c² − d²) ÷ 2k, and then h = √(c² − p²). A negative p is allowed; it means the top base reaches out past the bottom-left corner, and the left base angle is then greater than 90°.

Everything else is read off the coordinates. Area A = ½(a + b) × h, midsegment m = ½(a + b), perimeter a + b + c + d, diagonals √((p + b)² + h²) and √((a − p)² + h²), and base angles the arctangents of h ÷ p and h ÷ (k − p), in degrees. The isosceles mode sets p = k ÷ 2 and the right-trapezoid mode sets p = 0, and the same formulas then give the legs, diagonals and angles.

Sliding the right leg along until it starts where the left leg starts turns c, d and k into the sides of a triangle, so a trapezoid with these sides exists only if |c − d| < k < c + d, the triangle inequality. Outside that range the height would be the square root of a negative number. Wolfram MathWorld gives a closed form that skips the coordinates, h = η ÷ 2(a − b) with η = √((−a + b + c + d)(a − b + c + d)(a − b + c − d)(a − b − c + d)), and it agrees.

A worked example.

Example

A plot lies between two parallel boundaries, 10 m along the road and 4 m along the back lane, with side boundaries of 5 m and 7 m. The overhang is k = 10 − 4 = 6 m, which lies between 7 − 5 = 2 and 7 + 5 = 12, so the four sides close. The offset is p = (36 + 25 − 49) ÷ 12 = 1 m, and the depth between road and lane is h = √(25 − 1) = √24 = 4.899 m. The midsegment is ½(10 + 4) = 7 m, so the area is 7 × 4.899 = 34.2929 m², and the perimeter is 10 + 4 + 5 + 7 = 26 m. The diagonals come to √((1 + 4)² + 24) = √49 = 7 m exactly and √((10 − 1)² + 24) = √105 = 10.247 m, two tape measurements that confirm the corners are where the plan says. The base angles are 78.4630° beside the 5 m side and 44.4153° beside the 7 m side, so the corners on the lane are 101.537° and 135.5847°. As a cross-check, the overhang triangle with sides 5, 6 and 7 has a Heron's-formula area of √216 = 14.6969 m², and adding the 4 × 4.899 = 19.5959 m² parallelogram beside it gives the same 34.2929 m².

modelegs
base110
leg Right7
base24
leg Left5
height6

Frequently asked questions.

Why were my four measurements rejected?
Because no trapezoid has those sides. The overhang a − b has to be greater than the difference of the legs and less than their sum. With legs of 5 and 7 it must fall strictly between 2 and 12, so a 17 m road frontage with a 4 m lane, an overhang of 13, cannot close. Equal parallel sides are refused too, since that shape is a parallelogram.
What does a base angle over 90° tell me?
That the shorter base reaches out beyond that end of the longer one, so the leg leans outward. With bases 10 and 4 and legs of 3 and 8, the offset p comes out negative, the left base angle is 121.8554° and the right one 18.5733°. The shape is still a valid trapezoid, with a height of 2.5481 and an area of 17.837.
If I only know the height, should I pick isosceles or right trapezoid?
Pick whichever matches the object. The area is identical either way: bases of 10 and 4 with a height of 6 give 42 in both modes. The rest differs. Isosceles gives two legs of 6.7082 and a perimeter of 27.4164; the right trapezoid gives legs of 6 and 8.4853, base angles of 90° and 45°, and a perimeter of 28.4853.
How can I tell whether a trapezoid is isosceles?
Measure the diagonals. In a trapezoid, equal legs, equal base angles and equal diagonals always come together, and diagonals are the easiest of the three to measure on a finished piece. The plot in the worked example has diagonals of 7 and 10.247, so it is not isosceles; an isosceles one with bases 10 and 4 and height 6 has both diagonals at 9.2195.
Is a trapezoid the same as a trapezium?
In North American usage, a trapezoid has one pair of parallel sides, and that is the shape British English calls a trapezium. Traditional British usage reserved trapezoid for a quadrilateral with no parallel sides at all. Euclid's Elements used trapezia even more loosely, for any quadrilateral other than a square, oblong, rhombus or rhomboid. If a source's figures look wrong, check which convention it follows.
Can I use it for a trench, channel or trapezoidal prism?
For the cross-section, yes. Multiply the area by the length of the trench or prism to get its volume, keeping every measurement in the same unit, so square metres times metres gives cubic metres. Surface area, wetted perimeter and other three-dimensional quantities are not calculated here and need their own formulas.

References& sources.

  1. [1]Wolfram Research, MathWorld — ‘Trapezoid’ (live revision retrieved 2026-07-29). Source for Equation (1) area A = ½(a + b)h, Equation (10) median m = ½(a + b), Equations (17) and (18) for the two diagonals in terms of the four side lengths, and Equation (19) height h = η/(2|b − a|) with η = √((−a+b+c+d)(a−b+c+d)(a−b+c−d)(a−b−c+d)). Also the statement ‘The trapezoid is equivalent to the British definition of trapezium.’ Equations (17), (18) and (19) agree with this calculator's independently derived values. Open access.
  2. [2]Wolfram Research, MathWorld — ‘Heron's Formula’ (live revision retrieved 2026-07-29). Equation (2), Δ = √(s(s − a)(s − b)(s − c)) with s the semiperimeter. Used as a third, fully independent derivation of the trapezoid's height: the triangle formed by the two legs and the overhang a − b has area √216 and therefore height 4.898979485566356 on a base of 6, matching the coordinate solution exactly. Open access.
  3. [3]Euclid, Elements, Book I, Definition 22 — after defining the square, oblong, rhombus and rhomboid, ‘let quadrilaterals other than these be called trapezia.’ David E. Joyce web edition of the Heath translation, Clark University; quotation confirmed on retrieval 2026-07-29. Cited for the naming history and the definitional scope note, not for any computed value.
  4. [4]Wolfram Research, MathWorld — ‘Triangle Inequality’ (live revision retrieved 2026-07-29). The condition that a triangle with sides x, y and z exists only when each side is shorter than the sum of the other two. Applied here to the legs c and d and the overhang a − b, it is the exact existence condition for a trapezoid and is what this calculator enforces before computing anything. Open access.

How this page was produced

Published by
Quanta Calculator
Primary sources
4 cited below
Method
p = (k² + c² − d²) ⁄ 2k , h = √(c² − p²) , A = ½(a + b)h , m = ½(a + b)
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon