Two bases and two legs — measurement guide
The difference between the two bases sets the horizontal offset available to the legs. Four lengths must describe a nondegenerate trapezoid for the height to exist.
The formula
Base a = 10; Base b = 4; Leg c = 5; Leg d = 5
Worked example
Using the input values above gives the following measurements:
Area: 28 cm² · Midline: 7 cm · Height: 4 cm · Perimeter: 24 cm
Model and limitations
Its height is the perpendicular separation of the bases. The midline joins the midpoints of the legs and has length (a+b)/2. Multiplying this midline by the height gives the area.
Equal bases with arbitrary legs do not uniquely determine a height. The four-side tool rejects that ambiguous case. Round the final result to the precision appropriate for your input measurements.