Trapezoid area calculator

Enter the two parallel bases a and b and the height h between them (a ≥ 0, b ≥ 0, h > 0). Area is A = ((a+b)/2)·h. With a = 10, b = 6 and h = 4 the result is 32. Height must be perpendicular to the bases — not along a leg. This calculator does not compute perimeter (no leg fields) and does not solve for h from area alone without both bases.

Inputs

Bases and height

Result

Enter bases a, b and height h.

Model with one pair of parallel sides. Domain: a > 0, b > 0, h > 0. A blank field does not become a triangle ½ah. Rectangle and parallelogram are on neighboring pages.

How it works

a b h
How area is computed at a = 10, b = 6, h = 4
a10
b6
(a+b)/28
h4
A32

A trapezoid (US school sense: a quadrilateral with exactly one pair of parallel sides) has area equal to the arithmetic mean of the base lengths times the height between them. The formula is A = ((a + b)/2)·h, equivalently A = (a + b)·h/2. Bases a and b lie on parallel lines; height h is the perpendicular distance between those lines — not the length of a slanted leg.

The calculator uses three numbers you enter: base a, base b, and height h. Domain: a > 0, b > 0, h > 0. With a = 10, b = 6 and h = 4 the mean of the bases is 8 and the area is 32. With a = 8, b = 4 and h = 5 the area is 30. Equal bases a = b = 5 at h = 5 give 25, matching a parallelogram of base 5 and height 5 — an allowed boundary case of the trapezoid (in some definitions already a parallelogram).

Classic derivation: split the trapezoid into a rectangle (or parallelogram) on the shorter base plus two side triangles, or equivalently into two triangles sharing the same height. The mean of the bases is the length of the segment joining the midpoints of the non-parallel sides (the midsegment); area is that length times height. In Euclid’s Elements, polygon areas are built from parallelograms and triangles (Book I); the mean-base formula is standard Euclidean school geometry and appears in MathWorld (Trapezoid).

Order of a and b does not change the result: 20 and 10 at h = 6 give the same 90 as 10 and 20. An empty field does not become a hidden triangle ½ah — both bases are required. The unit switch in the page header switch changes the cm² or in² label and does not convert the entered number. Pythagoras can give a leg from h and a projection, but it does not replace the area formula.

Formula

A = ((a + b)/2)·h, equivalently A = (a + b)·h/2, where a > 0, b > 0, h > 0.

Midsegment m = (a + b)/2; then A = m·h.

Mathematical model: trapezoid area (mean of bases × height) — standard Euclidean geometry (Euclid, Elements I — areas via parallelograms and triangles; MathWorld — Trapezoid).

Theory, derivation, and domain

Definition

A trapezoid is a quadrilateral with one pair of parallel sides called the bases. Denote the base lengths by a and b and the perpendicular distance between the lines containing the bases by height h. On the Euclidean plane the area is A = ((a + b)/2)·h. This page implements exactly A = (a + b) · h / 2 from positive a, b, h entered in the form fields.

Height is not the length of a slanted leg. A leg joins the ends of the bases and is usually longer than h; substituting a leg for h overstates the area. The area unit is the square of the length unit (cm² or in² from the unit switch).

The primary result is area A. The panel also shows a, b, the mean (a+b)/2, height h, the sum a+b, and |a−b|.

Historical and conceptual context

The trapezoid and the mean-base area formula belong to the Euclidean school canon. In Euclid’s Elements (Book I), areas of rectilinear figures are reduced to parallelograms and triangles of equal height; a trapezoid sits between a triangle (one base tending to zero) and a parallelogram (a = b). MathWorld (Trapezoid) and Wikipedia (Trapezoid) record A = ½(a+b)h and the midsegment equal to (a+b)/2.

In US school usage a trapezoid usually has exactly one pair of parallel sides; British “trapezium” terminology can differ. This page computes the two-parallel-bases model with perpendicular height — isosceles symmetry is not required.

In practice the formula appears in channel cross-sections, roof profiles, trapezoidal panels, and area estimates when two parallel edges and the height are known. Neighboring rectangle and parallelogram calculators take one horizontal length and a height without a second base.

Formal properties

Domain: a > 0, b > 0, h > 0. Codomain: A > 0. The map (a,b,h) ↦ A is linear in each argument separately when the others are fixed, and homogeneous of degree 2 when all three lengths scale together.

Identities: A = ((a+b)/2)·h = (a+b)·h/2; midsegment m = (a+b)/2; A = m·h. When a = b the formula reduces to A = a·h (parallelogram / rectangle at right angles). As b → 0⁺ one obtains A → (a/2)·h — a triangle of base a and height h.

Commutativity: A(a,b,h) = A(b,a,h). The difference |a−b| is not needed in the area formula itself but describes the overhang and appears in leg projections.

Decomposition: if a ≥ b, trapezoid = rectangle of base b and height h plus two triangles of combined base (a−b) and height h, hence A = b·h + ½(a−b)·h = ((a+b)/2)·h. The identity confirms the formula without integration.

In vector form, the area of a quadrilateral with vertices on parallel lines can be written via a cross product; with bases parallel to an axis the result reduces to mean length times distance between the lines.

Full derivation

Step 1. Let AB and DC be the bases of lengths a and b (AB ∥ DC), and let h be the distance between lines AB and DC.

Step 2. Drop perpendiculars from D and C onto AB. This yields a rectangle (or height-aligned parallelogram) on the shorter base and two right triangles whose bases sum to |a−b|.

Step 3. Area = shorter·h + ½|a−b|·h = ((a+b)/2)·h after algebraic reduction.

Step 4 (midsegment). The segment joining the midpoints of the legs has length (a+b)/2; the trapezoid has the same area as a rectangle of that base and height h.

Step 5. Equivalently A = (a+b)·h/2 — the same arithmetic the calculator performs.

Special cases

a = 10, b = 6, h = 4: mean 8, A = 32. a = 8, b = 4, h = 5: A = 30. a = 12, b = 8, h = 3: A = 30. a = b = 5, h = 5: A = 25 (parallelogram). a = 15, b = 5, h = 4: A = 40. a = 20, b = 10, h = 6: A = 90. a = 7, b = 3, h = 2: A = 10. a = 9, b = 6, h = 8: A = 60.

As h → 0⁺, A → 0. Doubling both bases and the height multiplies area by eight (degree 2). When a = b the figure is a parallelogram; the page still uses the same formula.

A blank second base is not treated as a triangle — three positive lengths are required.

Numerical and computational notes

The calculator computes A = ((a + b) * h) / 2 in floating-point arithmetic and formats with the page locale (pl-PL / en-US). Non-positive or non-numeric inputs are rejected. Comma and dot decimals are equivalent.

Examples fill the sets from the Examples section and refresh the SVG diagram. Drawing scale fits the longer base to the view width; it does not change the numeric result.

cm/in labels depend only on the header units switch. The calculator does not sort the longer base — field order is free.

Comparison with rectangle a×h or a×b is intentionally different: a trapezoid always mixes both bases through their mean. At a = 10, b = 6, h = 4 a 10×6 rectangle would be 60, while the trapezoid is 32.

Related notions and sources

Related: rectangle area a·b, parallelogram area a·h, triangle area ½a·h (limit b → 0), trapezoid midsegment, Pythagoras for a leg.

Sources: MathWorld — Trapezoid; Wikipedia — Trapezoid; Euclid, Elements, Book I (areas via parallelograms and triangles); standard school texts — A = ((a+b)/2)·h. The calculator computes A = ((a+b)/2)·h.

How to use

  1. Enter base a (longer or shorter), greater than zero.
  2. Enter the second base b parallel to a, in the same unit.
  3. Then provide height h perpendicular between the bases — not the length of a slanted leg.
  4. Click Calculate or wait for the live result. With a = 10, b = 6 and h = 4 the area is 32.
  5. Check the panel: mean of bases, sum, |a−b|, and the diagram labeled a, b, h.

Symbol glossary

With a = 10, b = 6 and h = 4 the area is 32. The mean of the bases is 8.

A
Trapezoid area: ((a+b)/2)·h. At 10, 6 and 4 it is 32.
a
One parallel base in the form field. Must be > 0.
b
The other parallel base. Order with a does not change A.
h
Perpendicular height between the bases — not a slanted leg.
m
Mean of bases (a+b)/2 = midsegment. A = m·h.

Examples

Example 1

  • Base a: 10
  • Base b: 6
  • Height h: 4

A = 32

What is the trapezoid area at a = 10, b = 6 and h = 4? 32.

Example 2

  • Base a: 8
  • Base b: 4
  • Height h: 5

A = 30

What is the area at a = 8, b = 4 and h = 5? 30.

Example 3

  • Base a: 12
  • Base b: 8
  • Height h: 3

A = 30

What is the area at a = 12, b = 8 and h = 3? 30.

Example 4

  • Base a: 5
  • Base b: 5
  • Height h: 5

A = 25

What is the area at a = b = 5 and h = 5? 25.

Example 5

  • Base a: 15
  • Base b: 5
  • Height h: 4

A = 40

What is the area at a = 15, b = 5 and h = 4? 40.

Example 6

  • Base a: 20
  • Base b: 10
  • Height h: 6

A = 90

What is the area at a = 20, b = 10 and h = 6? 90.

Example 7

  • Base a: 7
  • Base b: 3
  • Height h: 2

A = 10

What is the area at a = 7, b = 3 and h = 2? 10.

Example 8

  • Base a: 9
  • Base b: 6
  • Height h: 8

A = 60

What is the area at a = 9, b = 6 and h = 8? 60.

Related calculators

Frequently asked questions

What formula computes trapezoid area?

Area is A = ((a + b)/2)·h, equivalently A = (a + b)·h/2, where a and b are the parallel base lengths and h is the perpendicular height between them. All three numbers must be positive.

How does height h differ from a slanted leg?

Height h is the perpendicular distance between the lines containing the bases. A leg joins the ends of the bases on a slant and is usually longer. Substituting a leg for h overstates the area.

What is the domain for a, b, and h?

Each length must be greater than zero. If a ≤ 0, b ≤ 0, or h ≤ 0 there is no sensible trapezoid of positive area — the calculator shows a message instead of a false result.

Does the order of bases a and b change the result?

No. The sum a + b is commutative, so A(a,b,h) = A(b,a,h). The calculator does not sort the longer base.

What if the bases are equal?

When a = b, the formula reduces to A = a·h — the area of a parallelogram of base a and height h. Equal bases are allowed; with a = b = 5 and h = 5 the result is 25.

Does an empty b count as a triangle ½ah?

No. The calculator requires both bases and the height. A blank field is an error, not a hidden triangle. Triangle area is on the neighboring page with one base and a height.

Does the unit switch convert the entered number?

No. The result depends only on a, b, and h. The header attaches a cm or in label and cm² or in². Ten remains ten. The currency and unit settings in the page header do not affect this result.

How does this page differ from rectangle and parallelogram area?

A rectangle multiplies two sides. A parallelogram takes one base and a height. A trapezoid mixes two bases through their mean, then multiplies by h. At a = 10, b = 6, h = 4 a 10×6 rectangle is 60, while the trapezoid is 32.

What role does the mean of the bases (a+b)/2 play?

It is the length of the trapezoid midsegment (the segment joining the midpoints of the legs). Area equals that mean times height: A = m·h with m = (a+b)/2. The result panel shows this mean next to A.

Does Pythagoras replace the area formula?

No. Pythagoras can give a slanted leg from h and a horizontal projection. Area still needs two bases and a perpendicular height.

What is the area at a = 10, b = 6, and h = 4?

32. The mean of the bases is 8, and 8 × 4 = 32. That is the first example on the page and the same result after “Fill this example”.

Does a comma in 10.5 work?

Yes. In locales that use a decimal comma, 10,5 and 10.5 are the same length. Comma and dot in the numeric fields are equivalent.

How do I calculate the area of a trapezoid?

Add the parallel bases, divide by 2, and multiply by the height: A = ((a+b)/2)·h. With a = 10, b = 6 and h = 4: mean of bases 8 × 4 = 32. Measure height perpendicular to the bases.

What is the formula for the area of a trapezoid?

A = ½(a+b)·h, equivalently A = m·h with midsegment m = (a+b)/2. With a = 6, b = 10 and h = 4 the result is also 32 — base order does not change the product.

What is the area of a trapezoid with bases 6 m and 10 m and height 4 m?

32 m² (shown here as 32 in the chosen scale). Enter a = 6, b = 10 and h = 4: (6+10)·4/2 = 32. That is a classic table example.

Can I enter a trapezoid leg as the height?

No. A leg is usually slanted; height h is always perpendicular to the bases. Entering a leg instead of h overstates the area — except in a right trapezoid where one leg is also the height.

How do I find the height when I know the area and both bases?

From the formula, h = 2A/(a+b). With A = 60, a = 8 and b = 12: h = 120/20 = 6. This calculator expects a, b and h as inputs — there is no “area + bases” mode.

The result is area A = ((a+b)/2)·h: with a = 10, b = 6 and h = 4 it is 32. For a rectangle use the rectangle area calculator.

Sources

The formula, domain, and derivation below come from recognized geometry sources.

Page updated November 3, 2026.