Shapes & spaces

Trapezoid diagonals from base offset calculator

Find both diagonals when the horizontal position of the upper base is known.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

A negative offset places the upper left corner to the left of the lower left corner. The formula still uses the full horizontal displacement.

THE FORMULAd₁ = hypot(offset + upper base, h), d₂ = hypot(lower base − offset, h)

A worked example

Bases 10 and 6 with height 4 and offset 2 produce equal diagonals √80.

Good to know

The two bases are horizontal and measured in the same direction.

Place the four vertices on a coordinate plane

Put the lower-left vertex at (0,0) and lower-right at (B,0). With height h, upper base b and signed offset o, the upper vertices are (o,h) and (o + b,h). The diagonal from lower-left to upper-right has horizontal span o + b and vertical span h.

The other diagonal spans B − o horizontally and h vertically. Their lengths are therefore √[(o + b)² + h²] and √[(B − o)² + h²]. With B = 10, b = 6, h = 4 and o = 2, both horizontal spans are 8, giving two lengths √80, approximately 8.94427.

A centred upper base gives two equal diagonals in the ten-six-four trapezoido = 2Lower base 10Upper base 6h = 4
The upper-left offset is 2. Each diagonal spans 8 horizontally and 4 vertically, giving length √80.

Use signed offsets and check the symmetric case

The offset is measured from the lower-left vertex towards the right. A negative value moves the upper-left vertex left of the lower-left. An upper base may overhang either side. Squaring the signed horizontal differences still gives valid diagonal distances for these configurations.

For positive bases and height, the diagonals are equal exactly when o = (B − b)/2, which centres the upper base. In the default example this is (10 − 6)/2 = 2. The Rhombus diagonals from side and angle calculator uses a different set of shape constraints. The vertical height must be the perpendicular separation of the parallel bases, not a sloping side length. Changing offset preserves the trapezoid area (B + b)h/2 while generally changing both diagonals.

A few questions, answered

Can the upper base be longer than the lower?

Yes. The formulas use positive base lengths without assuming which one is larger.

What happens when the bases are equal?

The shape is a parallelogram. Equal diagonals occur at offset zero, giving a rectangle.

Find your calculator

Start typing to explore the library.