MATH

Right triangle calculator

Find the hypotenuse from two perpendicular sides.

01 / INPUTS

Your numbers

02 / YOUR RESULT
5
Hypotenuse, in your input units

Default inputs are examples. Change them to match your situation.

How to use this calculator

Find the hypotenuse from two perpendicular sides. Enter side a (same units), side b (same units). The result updates when you change an input. To compare two sets of inputs, save scenario A, then enter the second set; the result panel shows the difference.

Formula and limits

For a right triangle: c = √(a² + b²). The inputs must be the two sides that meet at the right angle.

Worked example

Starting-value example (not a recommended target):

InputExample value
Side a (same units)3
Side b (same units)4

Hypotenuse, in your input units: 5

Interpreting your result

Use consistent units when a calculator asks for lengths or areas. Negative inputs are accepted only where the operation supports them. Display rounding does not change the underlying formula.

Distance and slope between two points

When two points use the same unit on both axes and both coordinate differences are nonzero, those differences form the legs of a right triangle. Enter the absolute differences as the two sides here to find the distance between the points. To find the line’s rise divided by its run, use the slope calculator with two points instead. For (0, 0) and (4, 3), the distance is 5 and the slope is 3 ÷ 4 = 0.75. If you already have both coordinates, the distance between two points calculator performs the subtraction for you. If one difference is zero, the distance is the absolute value of the other difference; the triangle collapses to a straight segment.

How scenario comparisons and rounding work

Background reading

OpenStax Algebra and Trigonometry. This is a subject reference, not an endorsement or independent review of Calcaven.

Implementation updated September 25, 2026 · How we check calculations