Solve a trapezoid or trapezium using its bases, height, sides, angles or diagonals, with formulas and step-by-step calculations.
A trapezoid (called a trapezium in Australia and the UK) is a four-sided shape with exactly one pair of parallel sides, called the bases. Its area is A = ((a + b) / 2) ร h โ the average of the two bases, times the height. A general trapezoid needs all four sides to be fully solved; an isosceles or right trapezoid needs only the two bases plus one more value, because their symmetry or right angle removes the ambiguity. Choose a type below and enter what you know.
General needs all four sides. Isosceles and Right need both bases plus just one more value โ height, a leg, or area.
Keyboard: Enter calculates, Esc resets.
Select a measurement unit above to see perimeter conversions.
| Property | Value |
|---|
Common uses: tap one to load a typical example.
A trapezoid is a four-sided shape (a quadrilateral) with exactly one pair of parallel sides. Those parallel sides are called the bases (labelled a and b), and the two non-parallel sides connecting them are the legs. Unlike a rectangle or parallelogram, a trapezoid's legs generally aren't equal or parallel to each other โ which is exactly what makes it flexible enough to model roof sections, drainage channels, and land parcels that a simple rectangle can't.
This is one of the most confusing terminology splits in geometry, purely because the two English-speaking traditions swapped the words:
| Region | "Trapezoid" means | "Trapezium" means |
|---|---|---|
| United States, Canada | One pair of parallel sides (this shape) | No parallel sides at all |
| Australia, United Kingdom | No parallel sides at all | One pair of parallel sides (this shape) |
This calculator uses "trapezoid" in its name and URL for broad international search reach, but the shape it solves โ one pair of parallel sides โ is exactly what Australian and UK readers know as a trapezium. Wherever "trapezoid" appears on this page, Australian and UK readers can substitute "trapezium" with no change in meaning.
No special symmetry โ the two legs can be any length, and the base angles can all differ. A general trapezoid is fully determined by its four side lengths (both bases and both legs), because that's exactly enough information to fix the height and both legs' horizontal offsets โ see the coordinate geometry method below for the derivation.
The two legs are equal in length, and the base angles on each side match. This symmetry means the top base is centred over the bottom one, so an isosceles trapezoid is fully determined by its two bases plus just one more value โ height, leg length, or area.
One leg is perpendicular to both bases, forming two right angles on that side. The perpendicular leg is simply equal to the height, which again means a right trapezoid is fully determined by its two bases plus just one more value.
Average the two parallel bases, then multiply by the height. This works for any trapezoid โ general, isosceles or right โ because it doesn't depend on the leg lengths or angles at all, only on the bases and the perpendicular height between them. A trapezoid with bases 10 and 6 and height 4 has an area of ((10+6)/2)ร4 = 32 square units.
Simply add all four sides. Unlike area, perimeter does depend on the leg lengths, which is why a right or isosceles assumption (or all four sides directly) is needed to calculate it โ bases and height alone aren't enough.
The height can be found several ways depending on what's known:
| Known | Height formula |
|---|---|
| Area and both bases | h = 2A / (a + b) |
| Isosceles trapezoid, bases and leg | h = โ(legยฒ โ ((aโb)/2)ยฒ) |
| Right trapezoid, bases and slanted leg | h = โ(dยฒ โ (aโb)ยฒ) |
| General trapezoid, all four sides | See the coordinate geometry method |
Rearranging the area formula: b = 2A/h โ a (or swap a and b to solve for the other). This is the most common "missing base" scenario โ you know the area and height (perhaps from a survey or a roof pitch) and need the width of the far edge.
For an isosceles trapezoid: leg = โ(hยฒ + ((aโb)/2)ยฒ). For a right trapezoid: the perpendicular leg equals h directly, and the slanted leg = โ(hยฒ + (aโb)ยฒ). For a general trapezoid, a single missing leg can't be found from the bases and height alone โ the other leg's length is also needed, because infinitely many trapezoids share the same bases and height with different leg pairs.
The median is the same length as the average of the two bases โ and, conveniently, area can also be written as A = m ร h, since the median is exactly the "average width" the height formula is implicitly using.
A trapezoid's four interior angles always sum to 360ยฐ, like any quadrilateral. Because the two bases are parallel, the angles on each leg are supplementary โ the angle at the bottom of a leg plus the angle at the top of that same leg always equals 180ยฐ (co-interior angles on a transversal cutting two parallel lines). In a right trapezoid, one leg contributes two 90ยฐ angles. In an isosceles trapezoid, both base angles on the longer base are equal, and both base angles on the shorter base are equal.
A trapezoid's two diagonals are generally different lengths, except in the isosceles case, where they're always equal: p = q = โ(ab + cยฒ). This is a useful practical check โ if you measure a trapezoid's diagonals and they're equal, the shape is isosceles (or a rectangle, which is a special case of both isosceles and right).
This calculator solves a general trapezoid from its four sides by placing it on a coordinate plane: base a runs from (0, 0) to (a, 0), and base b sits parallel at height h, from (eโ, h) to (eโ+b, h), where eโ is the left leg's horizontal offset. The right leg's offset eโ satisfies eโ + eโ = a โ b โ a relationship fixed by the bases alone, before the legs are even considered. From there, cยฒ = eโยฒ + hยฒ and dยฒ = eโยฒ + hยฒ give two equations in two unknowns (eโ and h), which solve directly to:
If the result under the square root is negative, the four side lengths entered cannot form a real trapezoid โ a specific, checkable form of "impossible input" this calculator always tests for before showing a result.
| Field | Use |
|---|---|
| Roofing | Lean-to and skillion roof panels, hip-roof end sections, gutter cross-sections |
| Construction | Retaining wall cross-sections, tapered footings, stair stringers |
| Land surveying | Irregular boundary parcels with two roughly parallel sides |
| Civil engineering | Drainage channel and canal cross-sections, road batters |
| Architecture | Tapered window and door openings, lampshade and planter panels |
| Manufacturing | Sheet-metal transition pieces, conveyor hoppers |
| Mistake | Fix |
|---|---|
| Using a leg length as the height | The height is the perpendicular distance between the bases, not a slanted leg's length |
| Assuming bases and height alone fix the legs | They don't, unless the trapezoid is isosceles or right โ a general trapezoid needs all four sides |
| Forgetting the รท2 in the area formula | A = ((a+b)/2)รh, not (a+b)รh |
| Mixing up "trapezoid" and "trapezium" across regions | Check which country's convention applies โ see the terminology section |
| Assuming all four angles are equal | Only the co-interior pairs on each leg are supplementary, not all four angles |
| Treating a parallelogram as a trapezoid input | If both bases are equal, it's a parallelogram โ a trapezoid's height isn't determined by side lengths alone in that case |
A = ((a+b)/2)รh | Perimeter: P = a+b+c+dm = (a+b)/2 | Height from area: h = 2A/(a+b)c = d = โ(hยฒ + ((aโb)/2)ยฒ)p = q = โ(ab + cยฒ)perpendicular leg = h, slanted leg = โ(hยฒ + (aโb)ยฒ)1) ((8+5)/2)ร4=26 2) (12+7)/2=9.5 3) โ(9+4)=โ13โ3.606 4) โ(25+9)=โ34โ5.831 5) 8+5+4+4.5=21.5
1) h=2ร45/18=5 2) b=2ร40/5โ9=7 3) half=3, h=โ(25โ9)=4, A=((10+4)/2)ร4=28 4) โ(8ร4+25)=โ57โ7.55 5) S=4, diff=(25โ36)/4=โ2.75, e1=0.625, h=โ(25โ0.390625)โ4.96
What is a trapezoid?
A four-sided shape with exactly one pair of parallel sides, called the bases. The other two sides, called legs, are generally not parallel to each other.
What is a trapezium?
In Australia and the UK, "trapezium" means exactly the same shape as "trapezoid" in the US โ one pair of parallel sides. Confusingly, in the US "trapezium" means a quadrilateral with no parallel sides at all, the reverse of the Australian/UK meaning.
Is a trapezoid the same as a trapezium?
For Australian and UK readers, yes โ "trapezium" is your word for exactly this shape. For US readers, "trapezoid" is the matching term; "trapezium" means something different (no parallel sides) in American usage.
How do you calculate the area of a trapezoid?
A = ((a + b) / 2) ร h โ average the two parallel bases, then multiply by the height. Bases 10 and 6 with height 4 give an area of 32 square units.
How do you calculate the area of a trapezium?
The same formula as a trapezoid: A = ((a + b) / 2) ร h, since "trapezium" (Australia/UK) and "trapezoid" (US) name the same shape.
How do you calculate the perimeter of a trapezoid?
Add all four sides: P = a + b + c + d. Unlike area, this needs the actual leg lengths, not just the bases and height.
How do you find the height of a trapezoid?
From area and both bases: h = 2A / (a+b). From an isosceles leg: h = โ(legยฒ โ ((aโb)/2)ยฒ). From a right trapezoid's slanted leg: h = โ(dยฒ โ (aโb)ยฒ).
How do you find a missing base of a trapezoid?
Rearrange the area formula: b = 2A/h โ a (or swap a and b to solve for the other base), given the area, height and one base.
How do you find a missing leg of a trapezoid?
For an isosceles trapezoid: leg = โ(hยฒ + ((aโb)/2)ยฒ). For a right trapezoid: the perpendicular leg equals h, and the slanted leg = โ(hยฒ + (aโb)ยฒ). A general trapezoid's single missing leg can't be found from bases and height alone โ the other leg is also needed.
What is the median or midsegment of a trapezoid?
The segment joining the midpoints of the two legs, parallel to both bases, with length m = (a+b)/2 โ the average of the two bases.
What is an isosceles trapezoid?
A trapezoid whose two legs are equal in length, making it symmetric about a vertical line through the midpoints of both bases. Its diagonals are also always equal.
What is a right trapezoid?
A trapezoid with two right angles on one side, meaning one leg is perpendicular to both bases. That perpendicular leg is always equal to the height.
How do you calculate the diagonals of a trapezoid?
For an isosceles trapezoid, both diagonals equal โ(ab + cยฒ), where c is the leg length. For a general trapezoid, the two diagonals differ and are found from the trapezoid's coordinates.
How do you calculate the angles of a trapezoid?
The four interior angles always sum to 360ยฐ. Because the bases are parallel, each leg's two angles (top and bottom) are supplementary, summing to 180ยฐ.
Can a trapezoid have four different side lengths?
Yes โ that's a general (scalene) trapezoid. It's still fully solvable given all four sides, using coordinate geometry to find the height.
Can I calculate a trapezoid from just the bases and height?
You can find the area, but not the individual leg lengths or angles โ bases and height alone don't uniquely determine a general trapezoid, since the top base could sit at many different horizontal positions and still give the same area. Choose the isosceles or right type if that assumption applies.
Why can't four side lengths always make a trapezoid?
The two legs must be long enough to span the horizontal gap created by the difference in base lengths. If they're too short, no real height exists, and the calculator reports the combination as geometrically impossible rather than guessing.
What if both bases are the same length?
Then it's a parallelogram, not a trapezoid โ its height isn't determined by the side lengths alone, since a parallelogram can lean at any angle while keeping the same side lengths.
What is the centroid of a trapezoid?
The geometric centre of area, located along the line joining the midpoints of the bases, at a distance of h(2b+a)/(3(a+b)) from base a.
What units are used for trapezoids?
Any linear unit for the bases, legs, height, median and diagonals (mm, cm, m, ft); area uses the squared version of the same unit (mยฒ, ftยฒ).
Can I calculate a trapezoid online?
Yes โ choose General, Isosceles or Right above, enter the required values, and the calculator solves everything else instantly with the working shown.
How accurate is a trapezoid calculator?
This calculator uses standard double-precision arithmetic, but displayed results are rounded and cannot be more accurate than the measurements entered.
Can students use this calculator?
Yes โ enter the known values for whichever type matches, and the calculator shows the formula and full working, useful for checking homework as well as producing an answer.
What are common trapezoid mistakes?
Using a slanted leg's length as the height; assuming bases and height alone fix the legs; forgetting the รท2 in the area formula; and mixing up regional "trapezoid"/"trapezium" terminology.
How is a trapezoid used in roofing?
Lean-to and skillion roof sections are often right trapezoids, with the eave-to-ridge rise as the height and the rafter as the slanted leg โ directly giving both roofing area and rafter length.
How is a trapezoid used in construction?
Tapered footings, retaining wall cross-sections and stair stringers are commonly trapezoidal, with the area formula giving material volume per linear metre.
How is a trapezoid used in surveying?
Land parcels with two roughly parallel boundaries are modelled as trapezoids, with the area formula giving the parcel area directly from a frontage, rear boundary and depth measurement.
What happens if I enter more values than needed?
The calculator uses the required values to solve the shape and cross-checks any extra values you entered (such as perimeter or area) against the result, flagging a warning if they don't match.
Can I export the results?
Yes โ use Copy Results to copy everything to the clipboard, Copy Formula for just the formulas used, Export CSV for a spreadsheet-ready file, or Print / Save as PDF for a printable worksheet.
Does a rectangle count as a trapezoid?
Under the "at least one pair of parallel sides" definition used in most modern curricula (including this calculator), yes โ a rectangle is a special trapezoid where both pairs of sides are parallel. This calculator will classify a = b with right angles as a rectangle explicitly.
What's the difference between a trapezoid and a parallelogram?
A trapezoid has exactly one pair of parallel sides (or at least one, depending on definition); a parallelogram has two pairs. If a trapezoid's bases become equal in length, it becomes a parallelogram.
Why does the isosceles trapezoid formula only need the bases and one more value?
Because symmetry forces the top base to sit exactly centred over the bottom one โ both legs' horizontal offsets are automatically (aโb)/2, removing the ambiguity a general trapezoid has.
Why does the right trapezoid formula only need the bases and one more value?
Because one leg is fixed perpendicular (offset zero), which pins down the shape just as completely as the isosceles symmetry does, leaving only the slanted leg free to be calculated.
Can a trapezoid have a right angle?
Yes โ a right trapezoid has exactly two right angles, both on the same leg. It cannot have three or four right angles without becoming a rectangle.
A one-page reference with every trapezoid formula on this page.
MegaCalcOnline.com · General, isosceles and right trapezoid formulas
Scan for the live calculator
| Find | Formula |
|---|---|
| Area | A = ((a+b)/2) × h |
| Perimeter | P = a + b + c + d |
| Median / midsegment | m = (a+b)/2 |
| Height from area | h = 2A / (a+b) |
| Isosceles leg | c = d = √(h² + ((a−b)/2)²) |
| Isosceles diagonal | p = q = √(ab + c²) |
| Right trapezoid perpendicular leg | = h |
| Right trapezoid slanted leg | √(h² + (a−b)²) |
| Sum of interior angles | 360° |