Choose a measurement set
Use bases + height + offset when staking a layout, four sides when all edges are measured, or isosceles when equal legs are intended. Four-side mode solves the hidden height and signed horizontal offsets instead of only returning area.
Formulas and recovered dimensions
Area = ½(B+b)h and the midsegment is (B+b)/2. In four-side mode with base gap g=B−b and legs c,d, left offset x=(c²−d²+g²)/(2g), then h=√(c²−x²). Legs and diagonals are checked with the Pythagorean theorem.
Three independent checks
B=12, b=7, h=3 and left offset 1 gives area 28.5, left leg √10, right leg 5. Isosceles B=10, b=6, h=4 gives area 32, both legs √20 and both diagonals √80. Four sides B=10, b=6, c=5, d=√17 recover left offset 3, right offset 1 and height 4.
Input mistakes, interpretation and limits
Zero or negative required lengths, impossible four-side combinations and degenerate height are rejected. A negative offset is allowed and means overhang. Results assume a flat, convex trapezoid with exactly one displayed pair of parallel bases; they exclude material thickness, field tolerances, curvature, structural capacity and surveying closure.
Sources and calculation scope
OpenStax gives the trapezoid definition and area formula. For four-side input, the result includes the recovered perpendicular height and signed offsets.