Trapezoid calculator

Calculate trapezoid area, perimeter and midsegment from the two parallel bases and height, with live geometry charts, formulas, examples and visual explanations.

Report error
Area
—
square units
Perimeter
—
when all four sides are known
Midsegment
—
average of the two bases

Live trapezoid

Updates as you change the dimensions
Live
a b c d h A D
a = 10 · b = 16 · h = 6 Geometry ready

Area versus height

Live response of area as the perpendicular height changes
Live
Uses the current bases—

Base & height profile

Current dimensions at a glance
Live
Dimensions—

Current geometry

Live
MeasureValueMeaning

TRAPEZOID CALCULATOR

Solve for

Enter the two parallel bases and the perpendicular height to calculate area, midsegment and geometry.

Area calculationA = (a + b)h / 2
length
length
length
The height is the perpendicular distance between the parallel sides, not a sloping leg.
square units
Perimeter & legsP = a + b + c + d
length
length
Advanced geometryHeight & angles
deg
Full geometry mode uses a, b, c and angle A to derive d, h and all four angles.
Use the mode that matches the values you know. The result panel always shows the complete geometry that can be derived from those inputs.
THE CONCEPT

What is a trapezoid?

A trapezoid is a four-sided figure with at least one pair of parallel sides. Those parallel sides are called the bases, while the other two sides are the legs. The height is not a sloping side: it is the perpendicular distance between the bases.

That distinction is the key to almost every trapezoid-area problem. Once the two bases and the perpendicular height are known, the area follows from a single average-width idea: average the two bases, then multiply by the height.

a — top base b — bottom base h perpendicular c d
The calculator uses a and b for the parallel bases, c and d for the legs, and h for the perpendicular height.
AreaA = (a+b)h/2Average the parallel sides, then multiply by height.
PerimeterP = a+b+c+dAdd all four side lengths.
Midsegmentm = (a+b)/2The segment joining the leg midpoints.
The most common trap: a leg can be longer than the height. Do not substitute a sloping side for h in the area formula. The height must meet both parallel bases at 90°.
GEOMETRY TYPES

Three useful trapezoid shapes

All three forms below use the same area formula. What changes is the relationship between the legs, angles and symmetry.

a b

Scalene

The two legs and the corresponding base angles need not be equal. There is generally no line of symmetry.

symmetry axis

Isosceles

The legs are equal and the base angles pair up equally. A vertical symmetry line passes through the middle.

Right trapezoid

One leg is perpendicular to the bases, so that leg has the same length as the height.

FORMULAS

Trapezoid formulas

The central relationship is the area formula. The same geometry also gives the midsegment, perimeter and angle relationships.

A
area
a
top parallel base
b
bottom parallel base
h
perpendicular height
m
midsegment (median)
a,b
the two parallel bases
P
perimeter
c,d
the two non-parallel legs

Why does the area formula use an average?

The quantity (a+b)/2 is the average width of the trapezoid. Geometrically, it is exactly the length of the midsegment—the line joining the midpoints of the legs. That gives a useful rectangle-like interpretation:

A = m × h
So a trapezoid's area can be understood as the area of a rectangle whose width is the trapezoid's midsegment.
WORKED EXAMPLES

Worked examples

Example 01 · Area

Find the area

Let a = 10 cm, b = 16 cm and h = 6 cm.

A = (10 + 16) × 6 / 2 = 78 cm²
78 cm²
Example 02 · Midsegment

Find the median

With the same bases, the midsegment is the average of the bases.

m = (10 + 16) / 2 = 13 cm
13 cm
Example 03 · Perimeter

Add all four sides

If c = 7 cm and d = 7 cm, then:

P = 10 + 16 + 7 + 7 = 40 cm
40 cm
Example 04 · Height from area

Rearrange the area formula

If A, a and b are known, height can be isolated:

h = 2A / (a + b)
Use the same relationship backwards
REAL-WORLD GEOMETRY

Where trapezoids appear in the real world

Trapezoidal geometry is not just a classroom shape. Engineers use trapezoidal cross-sections in drainage and open-channel design because the geometry provides a practical flat bottom with sloped sides. The U.S. Federal Highway Administration's HEC-22 drainage guidance explicitly describes trapezoidal roadside and median channels and gives their geometric relationships.

Roadside drainage channel with sloping sides and a flat bottom
A real roadside drainage channel illustrates why trapezoidal cross-sections matter in engineering. Source image: Engineering TiCh, Road side drains.

In a channel context, the geometric quantities change names slightly: engineers may use bottom width, water depth and side slope to determine flow area, top width and wetted perimeter. Those are extensions of the same trapezoidal geometry rather than a different shape.

✓ For school geometry

Use the two parallel bases and the perpendicular height for area. Add all four sides for perimeter.

✓ For engineering sections

Identify exactly which width is the bottom, which is the water-surface width, and which dimension is the perpendicular depth.

PRACTICAL GUIDANCE

Common mistakes to avoid

  • Using a sloping leg as the height. Height is perpendicular to the parallel bases.
  • Forgetting the division by 2. The two bases must be averaged first.
  • Adding a base twice. Perimeter is a + b + c + d, not 2a + 2b unless the shape actually has equal opposite sides.
  • Confusing the midsegment and height. The midsegment is parallel to the bases; the height is perpendicular to them.
  • Assuming every trapezoid is isosceles. Equal legs are a special case, not a requirement.
FAQ

Frequently asked questions

What is the trapezoid area formula?
A = (a + b)h / 2, where a and b are the parallel bases and h is the perpendicular height.
What is the trapezoid perimeter formula?
P = a + b + c + d. You need all four side lengths to calculate the perimeter directly.
What is the trapezoid midsegment?
The midsegment is the segment joining the midpoints of the two legs. Its length is m = (a + b)/2, and it is parallel to both bases.
Does a rectangle count as a trapezoid?
Definitions differ. Under the inclusive definition, a quadrilateral with at least one pair of parallel sides includes rectangles and parallelograms. Under the exclusive definition, a trapezoid has exactly one pair. State which convention you are using when precision matters.
Can the top base be longer than the bottom base?
Yes. The area formula is symmetric in a and b, so the two bases can be swapped without changing the area.