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