CalcuAll.
A quick calculation, right here.

CalcuAlltor.

FREE ONLINE SCIENTIFIC CALCULATOR

0
Ready when you are.
English

Geometry

Pythagorean Calculator

Find the longest side of a right triangle.

Let’s calculate.

Usage estimate

For a right triangle, square the two shorter sides, add them together and take the square root.

Hypotenuse (c)
—units
Rounded to up to 2 decimal places.

Measurement units

Changing the input unit also selects its matching result unit. Choose another result unit to convert the answer. Input numbers stay unchanged.

SI prefixes and selected international / customary units. Coverage: SI and selected current customary units. Historical units are excluded.

See what you’re calculating

abc
c = √(a² + b²)

For a right triangle, square the two shorter sides, add them together and take the square root.

Illustration not to scale; dimensions follow the field labels.

EXPLORE THE FORMULA

Pythagorean Calculator

Geometry · FORMULA GUIDE

Your current calculation

The values and displayed result follow the calculator as you edit it.

First perpendicular side (a)
—
Second perpendicular side (b)
—
Hypotenuse (c)—
This panel uses the calculator’s displayed, rounded result.

The formula

c = √(a² + b²)

For a right triangle, square the two shorter sides, add them together and take the square root.

Variables and input conventions

a
First perpendicular side (a) — selected input unit
b
Second perpendicular side (b) — selected input unit

Understanding the geometry

For perpendicular sides a and b, the longest side satisfies c² = a²+b². Sides 5 and 12 give c = 13.

Interpreting the dimensions

Both inputs are the shorter perpendicular sides, not a side and the hypotenuse. This relationship alone does not apply to an oblique triangle.

A worked example

For sides 3 and 4: c = √(9 + 16) = 5.

A fixed reference example; it does not change with your inputs.

Assumptions and valid inputs

a and b must be positive and expressed in the same unit. c is the hypotenuse, opposite the right angle. This relationship applies only to right triangles.

Dimensions must use the same length unit unless separate field units are offered. Numeric entries accept a decimal point or comma and scientific notation, up to 100 characters, with magnitude from 10⁻¹⁰⁰ to 10¹⁰⁰ or zero. Arc length, sector area and regular-polygon area additionally limit the computed base-unit result magnitude to 10¹⁰⁰.

Rounding and numerical precision

Geometry calculations and π use a private 640-significant-digit decimal context to preserve small differences in thin rings and near-flat triangles. Regular-polygon trigonometry uses a separate 80-digit context. Choose 0–8 decimal places for display and copying. Trailing zeros are omitted; very small values may round to zero. Display rounding does not change the underlying calculation. Finite-precision arithmetic is not symbolic exact arithmetic.

Accuracy of input data

Extra displayed decimals do not improve input accuracy. Measurement uncertainty, product variability and uncertain chosen rates are separate from rounding. This tool does not propagate measurement uncertainty. Check that its stated assumptions describe your situation.

References and further study

Wolfram MathWorld

The geometry reference supports the shape, relationship or triangle condition used here. CalcuAll applies the stated input conventions; ideal geometry does not include measurement error, construction tolerances or material allowances.

Related tools

Formula and worked example

c = √(a² + b²)

Reference example

For sides 3 and 4: c = √(9 + 16) = 5.

When this calculation applies

Both inputs are the shorter perpendicular sides, not a side and the hypotenuse. This relationship alone does not apply to an oblique triangle.

Background reference: Wolfram MathWorld. References explain the method or units; they do not certify this calculator.

Source scope: The geometry reference supports the shape, relationship or triangle condition used here. CalcuAll applies the stated input conventions; ideal geometry does not include measurement error, construction tolerances or material allowances.

For the derivation, input conventions and numerical limits, open .