Trapezoid Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter the four sides of a trapezoid: the long base, the short base parallel to it, and the two legs, in the same unit.
Result
Area (a + b)h ÷ 2 (square units)
Horizontal offset of leg c ((a − b)² + c² − d²) ÷ 2(a − b)
- Height √(c² − offset²)
- Perimeter a + b + c + d
- Midsegment (a + b) ÷ 2
- Angle between a and c (degrees)
- Angle between a and d (degrees)
- Angle between b and c (degrees)
- Angle between b and d (degrees)
- Diagonal from the a–c corner √((x + b)² + h²)
- Diagonal from the a–d corner √((a − x)² + h²)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Long base a: enter 0 or more.
- Short base b, parallel to a (same unit): enter 0 or more.
- Left leg c (same unit): enter 0 or more.
- Right leg d (same unit): enter 0 or more.
- Read the result: Area (a + b)h ÷ 2 (square units); the panel also shows Horizontal offset of leg c ((a − b)² + c² − d²) ÷ 2(a − b), Height √(c² − offset²), Perimeter a + b + c + d, Midsegment (a + b) ÷ 2, Angle between a and c (degrees), Angle between a and d (degrees), Angle between b and c (degrees), Angle between b and d (degrees), Diagonal from the a–c corner √((x + b)² + h²) and Diagonal from the a–d corner √((a − x)² + h²).
How this calculator works
Slide the leg d over until it touches c: with the difference of the bases, a − b, the two legs form a triangle whose height is the height of the trapezoid. Placing the long base on the x-axis, leg c reaches horizontally x = ((a − b)² + c² − d²) / (2(a − b)) (law of cosines), and the height is h = √(c² − x²).
Area = (a + b)h/2, the average of the bases times the height; the midsegment, which joins the midpoints of the legs, is (a + b)/2. The angles at the long base are arccos(x/c) and arccos((a − b − x)/d); the angles at the short base are their supplements, because the bases are parallel.
The diagonals follow from the coordinates: √((x + b)² + h²) and √((a − x)² + h²). If the four lengths cannot close into a trapezoid (or the bases are equal), the results show —.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Long base a | ||
| Short base b, parallel to a | same unit | |
| Left leg c | same unit | |
| Right leg d | same unit | |
| Horizontal offset of leg c ((a − b)² + c² − d²) ÷ 2(a − b) | ||
| Height √(c² − offset²) | ||
| Area (a + b)h ÷ 2 | square units |
Worked example
| Long base a | 10 |
|---|---|
| Short base b, parallel to a (same unit) | 4 |
| Left leg c (same unit) | 5 |
| Right leg d (same unit) | 5 |
| Height √(c² − offset²) | 4 |
|---|---|
| Perimeter a + b + c + d | 24 |
| Midsegment (a + b) ÷ 2 | 7 |
| Angle between a and c (degrees) | 53.1301 |
| Angle between a and d (degrees) | 53.1301 |
| Angle between b and c (degrees) | 126.8699 |
| Angle between b and d (degrees) | 126.8699 |
| Diagonal from the a–c corner √((x + b)² + h²) | 8.0623 |
| Diagonal from the a–d corner √((a − x)² + h²) | 8.0623 |
Area (a + b)h ÷ 2 (square units) 28
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the area of a trapezoid with bases 10 and 4 and legs 5 and 5?
The height is 4, so the area is (10 + 4) × 4 ÷ 2 = 28 square units.
Why can't I use two equal bases?
Then the shape is a parallelogram, and its four sides do not fix its height: it can lean at any angle.
What are the angles of the 10-4-5-5 trapezoid?
About 53.1301° at the long base and 126.8699° at the short base.