← All blog posts

Pythagorean theorem with units: converting inputs correctly

WhiteUI · A plain-English guide to the Pythagorean Theorem Calculator

The Pythagorean theorem does not care which unit you use — centimetres, metres, inches, feet — as long as both inputs use the same one. The moment the two sides use different units, the squares are meaningless, and the answer is wrong by far more than the conversion gap suggests, because squaring magnifies the error. Convert first, calculate second, and the answer comes out in the unit you converted to.

Convert first, then square

The conversions to know: 1 metre = 100 centimetres = 1,000 millimetres, and 1 inch = 2.54 centimetres, 1 foot = 12 inches. The rule is simple: pick one unit, convert both sides into it, and only then square anything. Converting after squaring is the trap — squaring 120 centimetres gives 14,400 square centimetres, which is not 1.44 of anything useful until you convert the length first.

Worked example with mixed units: one side is 120 centimetres, the other is 0.9 metres, hypotenuse missing. Convert to metres: 120 centimetres = 1.2 metres, and 0.9 metres stays. Square: 1.2² = 1.44 and 0.9² = 0.81. Add: 2.25. Square root: √2.25 = 1.5 metres. Check: 1.5² = 2.25, and 1.44 + 0.81 = 2.25. In centimetres the same answer is 150 centimetres, and the area is (1.2 × 0.9) ÷ 2 = 0.54 square metres, or 5,400 square centimetres.

What unit the answer is in, and feet and inches

The answer is always in the unit you calculated in. Calculate in metres and the hypotenuse is in metres; calculate in centimetres and it is in centimetres. The area, if you need it, is in that unit squared: square metres from metres, square centimetres from centimetres. Mixing those up — reporting an area in metres when the sides were in centimetres — is a second, quieter unit mistake.

Feet and inches need one extra step, because they are not decimal: 5 feet 6 inches is not 5.6 feet. Convert to inches first (5 × 12 + 6 = 66 inches) or to feet as a decimal (66 ÷ 12 = 5.5 feet), then calculate. A triangle with legs of 66 inches and 72 inches gives √(4,356 + 5,184) = √9,540, about 97.67 inches, which is about 8 feet 1.7 inches. Done in feet throughout, the same triangle is 5.5 and 6 feet, giving √66.25, about 8.14 feet — the same answer, as it must be.

Frequently asked questions

Can I mix centimetres and metres?

Not in the same calculation. Convert one side to match the other first — 120 centimetres becomes 1.2 metres — and only then square. Mixing them before converting is the most common unit mistake.

What unit is the answer in?

The unit you calculated in. Sides in metres give a hypotenuse in metres and an area in square metres. If you need another unit, convert the finished answer, not the inputs mid-calculation.

What about feet and inches?

Convert to a single unit first: 5 feet 6 inches is 66 inches, or 5.5 feet. Never treat it as 5.6 feet — inches are twelfths, not tenths.

More guides on the Pythagorean Theorem Calculator

Try it yourself

Enter two sides of a right-angled triangle to find the missing side, with the area shown too.

Open the Pythagorean Theorem Calculator