Home/Geometry/Trapezoid Calculator

Trapezoid Calculator

Solve a trapezoid or trapezium using its bases, height, sides, angles or diagonals, with formulas and step-by-step calculations.

๐Ÿ“– Reading time: 13โ€“15 minutes  ยท  Last updated: 1 August 2026  ยท  Reviewed by Mohsin Iqbal

Quick Answer: How Do You Calculate a Trapezoid?

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.

โš ๏ธ A general trapezoid needs four sides to be uniquely solved โ€” two bases and two legs. Given only the bases and height (with no further assumption), infinitely many trapezoids share that same area but different leg lengths and angles, because the top base can slide left or right. This calculator never guesses a shape from incomplete information โ€” choose Isosceles or Right below if that assumption applies, or enter all four sides for a fully general trapezoid.
Formula Summary
Area: A = ((a + b) / 2) ร— h  |  Perimeter: P = a + b + c + d
Median (midsegment): m = (a + b) / 2
Isosceles leg: c = d = โˆš(hยฒ + ((a โˆ’ b) / 2)ยฒ)  |  Isosceles diagonal: p = q = โˆš(ab + cยฒ)
Right trapezoid: one leg = h, the other = โˆš(hยฒ + (a โˆ’ b)ยฒ)
Choose a Type and Enter Known Values

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.

Perimeter in Other Units
UnitPerimeter

Need a different shape? Try the rectangle or triangle calculator.

Select a measurement unit above to see perimeter conversions.

Results
Height
โ€”
PropertyValue
Step-by-Step Working

Common uses: tap one to load a typical example.

Calculator Features

๐Ÿ“General, isosceles & right types
๐ŸงฎStep-by-step working
๐ŸšซDetects impossible & ambiguous inputs
๐Ÿ”„Unit conversion
๐Ÿ–จPrintable / PDF results
๐Ÿ“ŠCSV export
๐Ÿ“‹Copy results & formula
๐ŸŽšDecimal precision control
โ†”Swap base a / base b
๐Ÿ“ฑMobile friendly

๐Ÿงญ Jump to a section

What Is a Trapezoid or Trapezium?

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.

Trapezoid vs Trapezium: Same Shape, Different Word

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, CanadaOne pair of parallel sides (this shape)No parallel sides at all
Australia, United KingdomNo parallel sides at allOne 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.

Parts of a Trapezoid

Types of Trapezoids

General Trapezoid

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.

Isosceles Trapezoid

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.

Right Trapezoid

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.

Trapezoid Area Formula

A = ((a + b) / 2) ร— h

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.

Perimeter Formula

P = a + b + c + d

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.

Height Formula

The height can be found several ways depending on what's known:

KnownHeight formula
Area and both basesh = 2A / (a + b)
Isosceles trapezoid, bases and legh = โˆš(legยฒ โˆ’ ((aโˆ’b)/2)ยฒ)
Right trapezoid, bases and slanted legh = โˆš(dยฒ โˆ’ (aโˆ’b)ยฒ)
General trapezoid, all four sidesSee the coordinate geometry method

Finding a Missing Base

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.

Finding Missing Legs

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.

Median (Midsegment)

m = (a + b) / 2

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.

Interior Angles

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.

Diagonals

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).

Coordinate Geometry Method (General Trapezoid)

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:

eโ‚ = (S + (cยฒ โˆ’ dยฒ)/S) / 2,   where S = a โˆ’ b
h = โˆš(cยฒ โˆ’ eโ‚ยฒ)

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.

Worked Examples

Area from two bases and height

Bases 10 and 6, height 4: A = ((10+6)/2)ร—4 = 32 square units

Missing height from area and bases

Area 32, bases 10 and 6: h = 2ร—32/(10+6) = 4 units

Missing base from area, height and one base

Area 32, height 4, base a = 10: b = 2ร—32/4 โˆ’ 10 = 6 units

Isosceles trapezoid legs and diagonals

Bases 10 and 6, height 4: leg = โˆš(4ยฒ + 2ยฒ) โ‰ˆ 4.472 units
Diagonal = โˆš(10ร—6 + 4.472ยฒ) โ‰ˆ 8.944 units (both diagonals equal)

Right trapezoid example

Bases 10 and 6, height 4: perpendicular leg = 4, slanted leg = โˆš(4ยฒ + 4ยฒ) โ‰ˆ 5.657 units

Roofing example โ€” a lean-to roof section

A right-trapezoid roof panel: ridge (base b) 4 m, eave (base a) 6 m, rise (height) 3 m
Rafter (slanted leg) = โˆš(3ยฒ + 2ยฒ) โ‰ˆ 3.606 m; Area = ((6+4)/2)ร—3 = 15 mยฒ of roofing

Land-surveying example โ€” an isosceles boundary

A symmetric block: front boundary 12 m, rear boundary 8 m, depth 4 m
Side boundary = โˆš(4ยฒ + 2ยฒ) โ‰ˆ 4.472 m each; Area = ((12+8)/2)ร—4 = 40 mยฒ

Impossible-input example

Bases 10 and 6, legs 1 and 1: eโ‚ = 2 (from the bases alone), but a 1-unit leg can't reach 2 units horizontally
The calculator correctly rejects this as geometrically impossible rather than returning a wrong height

Construction, Roofing and Surveying Applications

FieldUse
RoofingLean-to and skillion roof panels, hip-roof end sections, gutter cross-sections
ConstructionRetaining wall cross-sections, tapered footings, stair stringers
Land surveyingIrregular boundary parcels with two roughly parallel sides
Civil engineeringDrainage channel and canal cross-sections, road batters
ArchitectureTapered window and door openings, lampshade and planter panels
ManufacturingSheet-metal transition pieces, conveyor hoppers

Real-World Examples

๐Ÿ  Roof design
Lean-to and skillion panels
๐ŸŒ‰ Bridge supports
Tapered pier & abutment sections
๐ŸŒŠ Drainage channels
Canal & culvert cross-sections
๐Ÿž Land surveying
Boundary parcels, two parallel edges
๐Ÿ› Architecture
Tapered openings, planter panels
๐Ÿ“ Engineering drawings
Hoppers, transition pieces

Glossary

Base
One of the two parallel sides of a trapezoid.
Leg
One of the two non-parallel sides connecting the bases.
Height
The perpendicular distance between the two bases.
Median (midsegment)
The segment joining the midpoints of the legs; length equals the average of the two bases.
Isosceles trapezoid
A trapezoid whose two legs are equal in length.
Right trapezoid
A trapezoid with two right angles on one leg.
Diagonal
A line segment connecting two opposite (non-adjacent) corners.
Centroid
The trapezoid's geometric centre of area.
Trapezium (AU/UK)
The Australian and British word for this exact shape โ€” see the terminology section above.

Common Mistakes

MistakeFix
Using a leg length as the heightThe height is the perpendicular distance between the bases, not a slanted leg's length
Assuming bases and height alone fix the legsThey don't, unless the trapezoid is isosceles or right โ€” a general trapezoid needs all four sides
Forgetting the รท2 in the area formulaA = ((a+b)/2)ร—h, not (a+b)ร—h
Mixing up "trapezoid" and "trapezium" across regionsCheck which country's convention applies โ€” see the terminology section
Assuming all four angles are equalOnly the co-interior pairs on each leg are supplementary, not all four angles
Treating a parallelogram as a trapezoid inputIf both bases are equal, it's a parallelogram โ€” a trapezoid's height isn't determined by side lengths alone in that case

Formula Cheat Sheet

Quick Reference

Area: A = ((a+b)/2)ร—h  |  Perimeter: P = a+b+c+d
Median: 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, slanted leg = โˆš(hยฒ + (aโˆ’b)ยฒ)
Interior angles: co-interior pairs sum to 180ยฐ; all four sum to 360ยฐ

Practice Questions

Beginner (with answers)

  1. Find the area of a trapezoid with bases 8 and 5, height 4.
  2. Find the median of a trapezoid with bases 12 and 7.
  3. An isosceles trapezoid has bases 9 and 5, height 3. Find each leg.
  4. A right trapezoid has bases 7 and 4, height 5. Find the slanted leg.
  5. Find the perimeter of a trapezoid with sides 8, 5, 4 and 4.5.
Show answers

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

Advanced (with answers)

  1. A trapezoid has area 45, bases 12 and 6. Find the height.
  2. A trapezoid has area 40, height 5, base a = 9. Find base b.
  3. An isosceles trapezoid has bases 10 and 4, leg 5. Find the height and area.
  4. Find the diagonal of an isosceles trapezoid with bases 8 and 4, leg 5.
  5. A general trapezoid has bases 12 and 8, legs 5 and 6. Find its height (2 dp).
Show answers

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

๐Ÿ”‘ Key Takeaways

Frequently Asked Questions

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.

Calculation Assumptions

ℹ️ What this calculator assumes

About This Calculator

✅ Reviewed by Mohsin Iqbal

This calculator has been reviewed for mathematical accuracy against standard Euclidean geometry. It deliberately limits what it will solve: a general trapezoid requires all four sides because bases and height alone do not uniquely determine one, while isosceles and right trapezoids only need the bases plus one further value because their symmetry (or right angle) removes that ambiguity. Every formula, including the coordinate-geometry derivation for the general case, was independently verified against known trapezoid dimensions before publishing, and impossible or underdetermined input combinations are explicitly detected and explained rather than silently guessed.

Last updated: 1 August 2026  ·  Last reviewed: 1 August 2026  ·  Educational information only.

Printable Formula Sheet

A one-page reference with every trapezoid formula on this page.

Trapezoid (Trapezium) Formula Sheet

MegaCalcOnline.com  ·  General, isosceles and right trapezoid formulas

QR code linking to the online Trapezoid Calculator at megacalconline.com

Scan for the live calculator

FindFormula
AreaA = ((a+b)/2) × h
PerimeterP = a + b + c + d
Median / midsegmentm = (a+b)/2
Height from areah = 2A / (a+b)
Isosceles legc = d = √(h² + ((a−b)/2)²)
Isosceles diagonalp = q = √(ab + c²)
Right trapezoid perpendicular leg= h
Right trapezoid slanted leg√(h² + (a−b)²)
Sum of interior angles360°

References

Every formula and worked example on this page was independently verified โ€” see “About This Calculator” above for the full review notes.