Trapezoid Calculator

Enter the two parallel bases, the height, and the two leg lengths to get the area (A = (b1+b2)/2 x h), perimeter, and midsegment.

Quick Facts

Area formula
A = (b1 + b2)/2 x h
The average of the two parallel bases, times the height.
Midsegment formula
m = (b1 + b2)/2
Connects the midpoints of the legs; always parallel to the bases.
Perimeter formula
P = b1 + b2 + leg1 + leg2
Sum of all four sides.

Your Results

Calculated
Area
-
A = (b1+b2)/2 x h, in square units
Perimeter
-
Sum of both bases and both legs
Midsegment
-
Average of the two bases
Trapezoid Type
-
Based on the leg lengths

Ready

Enter both bases, the height, and both legs, then press Calculate.

Formula and Method for the Trapezoid Calculator

A trapezoid (called a trapezium in British English) is a quadrilateral with exactly one pair of parallel sides, called the bases (b1 and b2). The other two sides, called the legs, are not parallel. The height (h) is the perpendicular distance between the two bases — not the length of a slanted leg. This calculator uses the two base lengths, the height, and the two leg lengths to find the area, perimeter, and midsegment (median) of the trapezoid.

How the calculation works

The area of a trapezoid comes from treating it as the average of its two parallel sides, times the height: A = (b1 + b2)/2 × h. This follows directly from splitting the trapezoid into a rectangle and two triangles (or two triangles sharing the height) and summing their areas — the algebra simplifies to the average-base formula. The perimeter is simply the sum of all four sides: P = b1 + b2 + leg1 + leg2. The midsegment (also called the median) is the segment joining the midpoints of the two legs; it is always parallel to the bases and equal to their average length: m = (b1 + b2)/2 — notice this is the same value used inside the area formula. Because each leg is the hypotenuse of a right triangle formed with the height, a leg can never be shorter than the height (Pythagorean theorem); the calculator checks this and flags impossible combinations. It also compares the two legs to the height to label the shape as a right trapezoid (one leg perpendicular to the bases), an isosceles trapezoid (legs equal length), or a scalene trapezoid (no special symmetry).

Common mistakes

  • Using the leg length as the height: the height must be the perpendicular (shortest) distance between the two bases, not the slanted leg length. Using a leg in place of h overstates the area whenever the trapezoid leans.
  • Units: area comes out in square units (ft², m²) while perimeter and midsegment stay in linear units (ft, m). A trapezoid with 5 ft bases and a 2 ft height has an area of 5 ft² x... more precisely (b1+b2)/2 x h in ft², not ft.
  • Mixing unit systems: enter all five measurements (both bases, height, both legs) in the same unit before calculating; convert first if your source data mixes feet and inches or centimeters and meters.
  • Leg shorter than the height: if a leg length is less than the height, no real trapezoid can be formed with those dimensions — remeasure or check for a data-entry error.

Real-world applications

  • Land surveying and property plots frequently have trapezoidal boundaries; the area formula gives the parcel's square footage or acreage.
  • Roofing and siding sections (hip roofs, gable ends) are often trapezoidal, so the area drives material and cost estimates.
  • Civil engineering uses trapezoidal cross-sections for canals, drainage channels, and embankments to compute flow area and earthwork volume.
  • Furniture and cabinetry design (trapezoidal tabletops, countertops, or panel cuts) uses the perimeter for edge banding and the area for material cost.

Frequently Asked Questions

What is the formula for the area of a trapezoid?
The area of a trapezoid equals the average of the two parallel bases times the height: A = (b1 + b2)/2 x h. For example, bases of 12 and 7 with a height of 5 give an area of (12+7)/2 x 5 = 47.5 square units.
How do I find the perimeter of a trapezoid?
Add up all four sides: P = b1 + b2 + leg1 + leg2, where b1 and b2 are the two parallel bases and leg1 and leg2 are the two non-parallel sides.
What is the midsegment (median) of a trapezoid?
The midsegment is the segment connecting the midpoints of the two legs. It is always parallel to the bases and equal to their average length: m = (b1 + b2)/2.
Why can't a leg be shorter than the height?
Each leg is the hypotenuse of a right triangle formed with the height as one side, so by the Pythagorean theorem a leg must be at least as long as the perpendicular height between the two bases. A leg shorter than the height cannot geometrically span the gap.