Trapezoid Calculator
Calculate a trapezoid from its parallel bases and either its height and horizontal offset or its two legs. You get area and perimeter together, without silently treating every trapezoid as an isosceles one.
Loading the calculator. It runs in your browser, so JavaScript needs to be on.
How to use the Trapezoid Calculator
- Enter Longer parallel base a and Shorter parallel base b. Base a must be at least as long as base b.
- In the height tab, enter the perpendicular height and upper-left corner horizontal offset measured from the lower-left corner. Use 0 for a vertical left leg.
- In the two-legs tab, enter the left and right nonparallel sides instead. The tool derives the height and offset when the shape is possible.
- Choose a common length unit and read area, perimeter, height, both legs, midline and offset.
The formula
Area = (a + b)h/2. Midline = (a + b)/2. With horizontal offset x, left leg c = √(h2 + x2) and right leg d = √(h2 + (a-b-x)2). Given unequal bases and both legs, x = (c2 - d2 + (a-b)2)/(2(a-b)), then h = √(c2 - x2). Perimeter = a + b + c + d.
Worked example
With bases 10 cm and 4 cm, height 4 cm and offset 3 cm, both legs are 5 cm. The area is 28 cm^2, the perimeter is 24 cm and the midline is 7 cm. Entering bases 10 and 4 with two 5 cm legs reproduces the same result.
Height and bases alone do not determine perimeter
The area depends only on the two bases and their perpendicular separation. Perimeter also depends on how far the shorter base slides sideways. For bases 10 and 4 with height 4, centering the top makes two 5-unit legs. Moving its left corner directly above the lower-left corner makes one leg 4 and the other about 7.2111, changing perimeter while area stays 28.
The horizontal offset can be negative
An offset of 0 aligns the left ends. An offset of (a - b)/2 centers the shorter base. A negative value makes the top overhang to the left; a value larger than a - b makes it overhang to the right. Both can describe valid trapezoids. Keep the bases parallel and measure height at a right angle to them.
Equal bases need a directly measured height
When the bases are equal, the four-side input no longer determines the height uniquely. Sliding one base changes the angle and height while preserving equal opposite side lengths. Use the height-and-offset tab for that case. Impossible or flat four-side combinations are rejected rather than returning a square root of a negative number.
Trapezoid Calculator questions
What is the formula for trapezoid area?
Add the two parallel bases, divide by two, then multiply by perpendicular height. Bases 10 and 4 with height 4 give area 28.
Can I calculate perimeter from bases and height?
You also need information about the legs or horizontal offset. Bases and height determine area, but many different perimeters are possible.
Does the trapezoid have to be isosceles?
No. Enter any valid offset or two valid leg lengths. Equal legs result when the shorter base is centered over the longer base.
Related calculators
- Area CalculatorEnter dimensions for a rectangle, triangle, circle, trapezoid or ellipse to get area in...
- Triangle CalculatorEnter three sides, two sides and their angle, or two angles and a side. Solve triangle...
- Rectangle CalculatorEnter length and width to get rectangle area, perimeter, diagonal and side ratio. Size...
- Right Triangle CalculatorEnter two legs, a hypotenuse and a leg, or a hypotenuse and an angle. Find every side,...
- Pythagorean TheoremEnter two legs to find a right triangle hypotenuse, or a leg and hypotenuse to find the...