Trapezoid
Calculate a trapezoid from its parallel bases, two legs, and perpendicular height.
Inputs
Formula
A = (a + b)h/2; P = a + b + c + d
- a, b — lengths of the parallel bases
- c, d — lengths of the non-parallel legs
- h — perpendicular distance between the bases
- Area = (base a + base b) × height / 2.
- Perimeter = both bases + both legs.
- The leg projections and base difference are checked to ensure a valid trapezoid.