Trapezoid Calculator
Calculate area and perimeter of a trapezoid.
What this calculator does
This tool works out the area of a trapezoid, a four-sided shape with one pair of parallel sides. Add the two slanted sides as well and it gives the perimeter too.
Trapezoids turn up in garden beds along angled fences, the long faces of hip roofs, lots that are wider at one end, and the end view of ditches and retaining walls.
A worked example
Élodie is building a raised flower bed along the front of her house in Sherbrooke. The side against the house is 10 feet long. The front edge, parallel to it, is only 4 feet, because the bed tapers at both ends. The two edges are 4 feet apart.
The bed covers 28.00 sq units. She measured in feet, so that means square feet. It is the number she uses to order soil and mulch, once she picks a depth.
The two slanted ends are 5 feet each. Edging all the way around the bed comes to 24.00 units.
How we work it out
We add the two parallel sides, called the bases, and halve the total to get their average. That average times the height gives the area. The height is the straight distance between the two bases, measured at a right angle to them.
The perimeter is all four sides added together. It appears only when both optional sides are more than zero. The bases and height must be greater than zero. A slanted side cannot be shorter than the height, so the tool refuses one that is. Beyond that, it does not check that the sides fit the bases. Answers are rounded to two decimal places.
Which sides are which
The bases are the two sides that run parallel to each other. The other two sides are the legs. They can lean in, lean out, or one can stand straight up from the base.
The height is the gap between the bases, measured at a square angle to both. It is shorter than a slanted leg. If you enter a leg as the height, your answer will be too large. On the ground, stretch a tape from one base to the other and swing it until you find the shortest reading. That reading is the height.
Where trapezoids turn up
- Hip roofs. The two long faces of a hip roof are trapezoids. Measure along the roof surface. The eave and the ridge are the bases, and the height runs up the slope between them.
- Lots and yards. Some lots are wider at the back than the front. If the front and back lines are parallel, the lot is a trapezoid. A survey of your property shows the lengths.
- Ditches and walls. The end view of a ditch, berm or retaining wall is often a trapezoid. Multiply its area by the length of the ditch to estimate the volume of soil or gravel.
Two quick checks
If both bases are the same length, the shape is really a rectangle or a parallelogram, and the area is simply base times height. Also, a slanted side can never be shorter than the height, because the height is the shortest way across. If you enter one that is, the calculator shows an error. That usually means two measurements were typed into the wrong boxes.
The perimeter needs both legs. If you know only the bases and height, the Pythagorean theorem calculator can find a leg. For a trapezoid with equal legs, use the height and half the difference between the bases as the two short sides.
What this does not include
- Angles
- A full check that the slanted sides fit the bases; it only makes sure neither is shorter than the height
- Shapes with no parallel sides, which you can split into triangles
- Curved edges, such as a lot on a curved street
- Converting between units
Common questions
Which sides are the bases?
The two that are parallel to each other. They never meet, however far you extend them. The height is the straight-across distance between them, at a right angle. It does not matter which one you enter as base 1 and which as base 2, because the area comes out the same.
Why does the perimeter not appear?
The perimeter needs the lengths of both slanted sides. Fill in Side 1 and Side 2 with numbers above zero, and it shows up under the area. The tool cannot work out these sides for you, because many different trapezoids share the same bases and height.
Is a trapezoid the same as a trapezium?
It depends where you are. In Canada and the United States, a trapezoid is a four-sided shape with one pair of parallel sides. In British English, that same shape is called a trapezium. If you are using a textbook from the UK, the formula is the same under the other name.
Can I use this for a room with one angled wall?
Yes, if the two walls on either side of the angled wall are parallel. Those two walls are the bases, and the height is the wall that meets them both at square corners. If the room has other jogs or closets, split it into a trapezoid and some rectangles, find each area, and add them.
Why does the formula use the average of the bases?
Put two copies of the same trapezoid together, one turned upside down. They make a parallelogram whose base is the two bases added together, with the same height. Your trapezoid is exactly half of that parallelogram. Half of the two bases added together is their average, which is where the formula comes from.
Last reviewed October 18, 2026. How we check our numbers.
This is an estimate to help you plan. It is not financial, medical, or legal advice. Talk to a professional before you make a big decision.