Trapezoid Calculator

Last updated: 2026-09-27

Trapezoid Calculator — Calculates area, perimeter, and side length of a trapezoid from its bases and height.
Inputs
Result
Enter values and press Calculate
Common Examples — Click to Fill
Major baseMinor baseHeight
Garden flower bed 32018075
Roof truss profile 600420210
Highway embankment cross-section 1500090003500
Custom desk top 120806

TL;DR: To calculate the area of a trapezoid, add the two base lengths (base_mayor and base_menor), divide the sum by 2, and then multiply by the height—using the formula Area = ((base_mayor + base_menor) / 2) × height, which for bases of 10 and 6 with a height of 4 gives an area of 32 square units.

What Is the Trapezoid Calculator?

The Trapezoid Calculator is a free online tool that computes the key geometric properties of a trapezoid—a four-sided polygon with at least one pair of parallel sides. In most practical scenarios, this is an "isosceles trapezoid" or a "right trapezoid," but the calculator works for any standard trapezoid where the two parallel sides are labelled as base_mayor (the longer parallel side) and base_menor (the shorter parallel side). The tool takes three essential inputs—the two bases and the perpendicular height—and instantly returns the area, perimeter, and the length of the non-parallel sides (legs).

This calculator is indispensable for students in middle school and high school geometry, civil engineering students working on land plots, architects measuring trapezoidal floor plans, and DIY enthusiasts cutting materials for sloped roofs or garden beds. Instead of manually deriving the side lengths using the Pythagorean theorem and then summing all four sides, the calculator reduces the entire process to a single click, eliminating arithmetic errors and saving significant time during exams, homework, or on-site measurements.

Beyond basic area calculation, the tool also outputs the perimeter. Knowing the perimeter is critical for estimating fencing costs, baseboard installation, or border trim requirements. The side length output is equally useful—it tells you the exact diagonal or slanted edge measurement, which is necessary when cutting lumber, framing a picture, or laying out a sloped path. By providing all three outputs simultaneously, the Trapezoid Calculator serves as a complete one-stop solution for any trapezoid-related dimension problem.

How to Use the Calculator

Using the Trapezoid Calculator is straightforward. Follow the numbered steps below to get your results immediately:

  1. Locate the input field labelled “base_mayor” (the longer parallel side). Enter your longer base value. For example, type 10 if your longer base measures 10 units (meters, feet, inches, etc.).
  2. Locate the input field labelled “base_menor” (the shorter parallel side). Enter your shorter base value. For the worked example, type 6.
  3. Locate the input field labelled “height”. This must be the perpendicular distance between the two bases—not the slanted side length. Enter your height value. In our example, type 4.
  4. Click the “Calculate” button. The calculator will immediately process your three inputs.
  5. Read the outputs: The tool will display the area (in square units), the perimeter (in linear units), and the side length (the length of one of the non-parallel legs, in linear units). All results will be rendered in the same unit system you used for the inputs.

Important note: Do not enter zero or negative numbers. The calculator requires positive real number values for all three fields. If you enter 0 or a negative number, the result will be invalid or the calculation will fail. Also, ensure that base_mayor is indeed longer than base_menor; while the formula still works if you swap them, the side-length output assumes the standard orientation where base_mayor is the longer top or bottom side.

Formula and Calculation Method

The calculation method for a trapezoid rests on two primary formulas—one for area and one for perimeter. The area formula is derived from the fact that a trapezoid can be "averaged" into a rectangle. The perimeter requires you to first find the length of the slanted sides, which involves applying the Pythagorean theorem to the right triangles formed when you drop a perpendicular line from the shorter base to the longer base.

Area Formula:

Area = ((base_mayor + base_menor) / 2) × height

In plain language: add the two parallel side lengths together, divide that sum by two (to find the "average base"), and then multiply that average by the perpendicular height. This works because the trapezoid's area is equal to the average of its bases times its height.

Perimeter Formula:

Perimeter = base_mayor + base_menor + side_1 + side_2

Here, side_1 and side_2 are the two non-parallel legs. If the trapezoid is isosceles (both legs equal), then side_1 = side_2. To find each side length, you use the horizontal difference between the bases and the height. Specifically, the horizontal offset (let's call it “x”) is calculated as (base_mayor – base_menor) / 2 for an isosceles trapezoid. Then each side length is √(height² + x²).

Worked Example (Exact numbers from the scenario):

Let's calculate the trapezoid with base_mayor = 10, base_menor = 6, and height = 4.

  1. Area: Area = ((10 + 6) / 2) × 4 = (16 / 2) × 4 = 8 × 4 = 32 square units.
  2. Horizontal offset (x): x = (10 – 6) / 2 = 4 / 2 = 2 units.
  3. Side length (each leg): Side = √(4² + 2²) = √(16 + 4) = √20 ≈ 4.4721 units.
  4. Perimeter: Perimeter = 10 + 6 + 4.4721 + 4.4721 = 24.9442 units.

The calculator performs these exact computations automatically. Your calculated area is 32 square units, your perimeter is approximately 24.94 linear units, and each slant side is approximately 4.47 linear units.

Practical Examples

To demonstrate the versatility of the Trapezoid Calculator, here are three realistic scenarios with different input values and their implications.

Scenario base_mayor base_menor height Calculated Area Calculated Perimeter Side Length (each)
Backyard garden bed 12 feet 8 feet 3 feet 30 sq ft 25.61 ft 2.83 ft
Roof truss design 20 meters 10 meters 6 meters 90 sq m 43.66 m 6.71 m
Tabletop dimensions 6 inches 4 inches 2 inches 10 sq in 12.83 in 2.24 in

Garden bed interpretation: If you're building a trapezoidal raised bed with bases of 12 ft and 8 ft, and a height of 3 ft, the area of 30 square feet tells you exactly how much soil you need (approximately 30 cubic feet of soil if you fill to 1 ft deep). The perimeter of 25.61 feet tells you how much edging material to purchase, and the side length of 2.83 feet gives you the precise cut length for the slanted side boards.

Roof truss interpretation: An architect designing a trapezoidal roof section with bases of 20 m and 10 m and a vertical rise of 6 m will need an area of 90 square meters for surface cladding. The perimeter of 43.66 meters is essential for ordering gutter materials. The side length of 6.71 meters is the exact rafter length needed, preventing overcutting or undercutting of structural timber.

Tabletop interpretation: For a trapezoidal side table with bases of 6 and 4 inches and a height of 2 inches, the area of 10 square inches is small, but the perimeter of 12.83 inches is what you need to cut a wooden border or apply a veneer strip. The 2.24-inch side length ensures your angled cuts are accurate for a seamless fit.

Tips for Accurate Results

To maximise the accuracy of your Trapezoid Calculator results, follow these practical guidelines. The most common mistake students and professionals make is entering the slanted side length into the height field. The height must be the perpendicular distance—the straight-line vertical measurement that forms a 90-degree angle with the bases. In an isosceles trapezoid, the slant side is always longer than the height, so if your side length is larger than your height, double-check your inputs.

A second critical tip is to maintain consistent units. Never mix metres with centimetres or feet with inches. If your bases are in feet, your height must also be in feet. If you need the result in different units, convert all three inputs first. The calculator does not perform unit conversions; it assumes all inputs share the same linear unit.

Third, be aware of the valid input range. All three fields require positive numbers greater than zero. Entering zero (for a degenerated trapezoid where one base is a point) or a negative number will produce nonsensical results. The recommended range is any positive real number, but for practical geometry, keep values reasonable—between 0.1 and 10,000 depending on your application. Extremely large values may cause rounding errors in the side-length calculation due to floating-point precision.

Finally, always verify that base_mayor is larger than base_menor. While the area formula is symmetric and works either way, the side-length calculation assumes the typical orientation. If you accidentally swap the two, the perimeter will still be correct, but the visual representation in your mind may confuse subsequent calculations. If you have a drawing, always put the longer horizontal side on the bottom for standard orientation.

Frequently Asked Questions

1. How do I find the area of a trapezoid without knowing the height?

If you do not have the perpendicular height, you cannot use the standard Area = ((b1 + b2) / 2) × h formula directly. However, if you know the lengths of all four sides (both bases and both legs), you can derive the height. For an isosceles trapezoid, compute the horizontal offset x = (base_mayor – base_menor) / 2. Then use the Pythagorean theorem: height = √(side² – x²). For example, if a trapezoid has bases of 14 and 8, and legs of 5 each, then x = (14 – 8) / 2 = 3, and height = √(25 – 9) = √16 = 4. Now you can plug base_mayor=14, base_menor=8, and height=4 into the calculator to get an area of 44 square units. For a non-isosceles trapezoid (unequal legs), you would need to solve a system of equations using both leg lengths and the base difference, which is more complex—your best bet is to measure the height physically using a protractor and ruler.

2. What is the difference between the height and the side length in a trapezoid?

The height is the perpendicular distance between the two parallel bases. It creates a 90-degree angle with both the top and bottom bases. The side length (or leg) is the slanted, non-parallel edge that connects the ends of the two bases. In a right trapezoid, one leg is perpendicular to the bases, meaning that particular side length equals the height. However, in an isosceles or scalene trapezoid, the slanted sides are always longer than the height because they must span both a vertical distance (the height) and a horizontal distance (the offset between base endpoints). For instance, with a height of 4 and a horizontal offset of 2, the side length becomes √(4² + 2²) = √20 ≈ 4.47. When using the calculator, always input the true perpendicular height, not the slanted edge, or your area result will be inflated.

3. Can I use this calculator for a parallelogram or rectangle?

Yes, absolutely. A parallelogram (and a rectangle, square, or rhombus) is a special case of a trapezoid where both pairs of opposite sides are parallel. In such cases, base_mayor and base_menor are equal. For example, a rectangle with width 8 and height 5 would be entered as base_mayor = 8, base_menor = 8, and height = 5. The area formula gives ((8+8)/2) × 5 = 8 × 5 = 40, which matches the standard length × width formula. The side length calculation becomes √(5² + 0²) = 5, since the horizontal offset is zero (both bases are equal length and aligned). The perimeter becomes 8 + 8 + 5 + 5 = 26, which is correct. So the Trapezoid Calculator is fully backward-compatible with rectangles and parallelograms, making it a versatile geometry tool even beyond its primary intended shape.

Related Calculators