The formula for a trapezoid relates the area A, the two bases, a and b, and the height, h.

A=h(a+b)2

Solve for b.

b=2A−ah

b=Ah2−a

b=2Ah+a

b=2Ah−a

Q&A Education