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.
d₁ = 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.
Reference: OpenStax Algebra and Trigonometry, Trigonometric Applications (opens in a new tab) ↗
Read the result
Find both diagonals when the horizontal position of the upper base is known.
The primary result is labeled “First diagonal”. Keep the input definitions in view when comparing this result with another method.
Try a related calculation
The two bases are horizontal and measured in the same direction.
For a related exercise, try the circle calculator.
A few questions, answered
How can I check the default inputs by hand?
Bases 10 and 6 with height 4 and offset 2 produce equal diagonals √80.
Which rule does this calculator apply?
d₁ = hypot(offset + upper base, h), d₂ = hypot(lower base − offset, h)