Trapezoid Side Calculator

Find the leg (side) length of an isosceles trapezoid from its two parallel bases and height, plus perimeter, area, and base angle.

Quick Facts

Leg (side) formula
c = √(h² + ((a − b) / 2)²)
Assumes an isosceles trapezoid, symmetric about its vertical axis.
Perimeter
P = a + b + 2c
Sum of both bases plus the two equal legs.
Area
A = (a + b) / 2 × h
Average of the two bases times the height.

Your Results

Calculated
Leg (side) length
-
c = √(h² + ((a − b) / 2)²)
Perimeter
-
a + b + 2c
Area
-
(a + b) / 2 × h
Base angle
-
Angle between leg and longer base

Ready

Enter both bases and the height, then press Calculate.

Formula and Method for the Trapezoid Side (Leg) Length

A trapezoid has two parallel sides, called bases (a and b), and two non-parallel sides, called legs. In an isosceles trapezoid — the shape this calculator assumes — the two legs are equal in length and the shorter base is centered directly above the longer one, so each leg overhangs the longer base by the same horizontal amount on either side. That symmetry lets you find the leg length from just the two bases and the height using the Pythagorean theorem: c = √(h² + ((a − b) / 2)²).

How the calculation works

Drop a perpendicular from each end of the shorter base down to the longer base. This splits the trapezoid into a rectangle in the middle and a right triangle on each side. Each right triangle has a vertical leg equal to the trapezoid's height (h) and a horizontal leg equal to half the difference between the bases, (a − b) / 2 — this is the horizontal "overhang" of the longer base past the shorter one. The trapezoid's slanted side is the hypotenuse of that right triangle, so by the Pythagorean theorem, c² = h² + ((a − b) / 2)², giving c = √(h² + ((a − b) / 2)²). Once you have the leg length, the perimeter follows as P = a + b + 2c, the area as A = (a + b) / 2 × h, and the base angle (between the leg and the longer base) as θ = arctan(h / ((a − b) / 2)).

Common mistakes

  • Assuming any trapezoid is symmetric: this formula only holds for an isosceles trapezoid. A right trapezoid has one leg equal to the height and the other found from its own horizontal offset — not half the base difference.
  • Swapping height for slant length: the height (h) is the perpendicular distance between the two bases, not the length of a slanted leg. Using a leg length as the height will give a wrong answer.
  • Mixing units: enter both bases and the height in the same unit — convert everything to one unit system before calculating.

Real-world applications

  • Roofing and framing use trapezoid leg lengths to cut rafters or panels for hip roofs and sloped structures.
  • Fabrication and sheet-metal work use the formula to cut trapezoidal panels, ducts, and chutes to exact size.
  • Landscaping and masonry use it to lay out trapezoidal patios, garden beds, or retaining walls with symmetric sides.
  • Engineering drawings use the base angle to specify how steeply a trapezoidal cross-section (like a canal or embankment) slopes.

Frequently Asked Questions

What is the formula for the leg (side) of a trapezoid?
For an isosceles trapezoid, the leg length is c = √(h² + ((a − b) / 2)²), where a and b are the two parallel bases and h is the height. This comes from the Pythagorean theorem applied to the right triangle formed by the height and the horizontal offset between the bases.
Does this formula work for a right trapezoid?
No. This calculator assumes an isosceles (symmetric) trapezoid, where both legs are equal and the top base is centered over the bottom base. In a right trapezoid, one leg is perpendicular to the bases and simply equals the height, while the other leg must be found from the actual horizontal offset, not half the difference of the bases.
How is the base angle related to the leg length?
The base angle is the angle between a leg and the longer base, found with θ = arctan(h / ((a − b) / 2)). A larger base angle (closer to 90°) means shorter, steeper legs; a smaller base angle means longer, more slanted legs for the same height.
What if the two bases are equal?
If a = b, the shape is a rectangle (or parallelogram), the horizontal offset is 0, the leg length equals the height, and the base angle is 90°.