Pythagorean hypotenuse

Calculate pythagorean hypotenuse and see the working behind your result.

Inputs

Use the units shown
RESULT
—

Enter your values and select Calculate.

Formula & explanation
c = √(a²+b²)

Variables & units

First perpendicular leg
Numeric value · minimum 0, maximum 1000000
Second perpendicular leg
Numeric value · minimum 0, maximum 1000000

Worked example

Perpendicular legs 3 and 4 give hypotenuse 5.

Assumptions

This tool assumes a right angle between the two given sides.

Formula version 1.0.0. JavaScript floating-point arithmetic applies. Results display up to 6 decimal places; stored values retain available precision. Use the units shown.

Practice with an example

Use the default input values to find the answer. The reset icon restores those values.

Calculated on your device. Your latest 100 calculations stay in this browser.