Calculates the area of a trapezoid as (upper base + lower base) × height ÷ 2.
A trapezoid is a quadrilateral with one pair of parallel sides. Those two parallel sides are the bases, and the perpendicular distance between them is the height. The area turns out to be the average of the bases times the height.
With the defaults, an upper base of , a lower base of and a height of :
The area is 16.
Take a second copy of the trapezoid, rotate it 180 degrees and join it to the first. The result is a parallelogram with base and height , so its area is , and the trapezoid is half of that. Reading the formula as makes the idea plain: it is the average length of the two bases, times the height.
The bases are the parallel sides; it makes no difference which one is longer, and swapping them changes nothing, since they are added. The height is the perpendicular gap between the parallel sides, not the length of a slanted leg. Using a leg where the height belongs overestimates the area.