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.