Right Triangle Calculator

Solve a right triangle from two sides — hypotenuse, angles, area

cm

Enter a valid length

cm

Enter a valid length

Hypotenuse
--
--
Leg A
--
Leg B
--
Area
--
Perimeter
--
Angle A
--
Angle B

Right Triangle Calculator — Complete Guide

The right triangle is the workhorse of practical geometry: ramps, roofs, screens, stairs and diagonals are all right triangles in disguise. Give this calculator any two sides — the two legs, or one leg plus the hypotenuse — and it returns the missing side, both acute angles, the area and the perimeter in one pass.

What this calculator does

Pick your units (cm, m, in, ft — cosmetic, the ratios are identical), then choose which pair of sides you know. In two-leg mode it applies the Pythagorean theorem to find the hypotenuse. In leg + hypotenuse mode it rearranges the theorem to recover the second leg — and warns you if the hypotenuse is not the longest side, which would make the triangle impossible.

The formulas

c = √(a² + b²) b = √(c² − a²) area = (a × b) ÷ 2 perimeter = a + b + c angle A = arcsin(a ÷ c) angle B = 90° − angle A

The two acute angles always total 90° — a built-in sanity check on any right-triangle problem.

A worked example

The classic 3–4–5 triangle: legs of 3 cm and 4 cm give c = √(9 + 16) = 5 cm exactly. Area = 3 × 4 ÷ 2 = 6 cm², perimeter = 12 cm. Angle A = arcsin(3 ÷ 5) ≈ 36.87°, angle B ≈ 53.13°, and indeed they sum to 90°. Scale the triple by ten — 30, 40, 50 — and every result scales with it, which is why builders still use the 3-4-5 rule to square a corner.

Leg ALeg BHypotenuseArea
3456
5121330
8151760
11√2 ≈ 1.4140.5

Where this shows up

One caution: the formulas here are exact, but measured inputs are not — a leg measured to the nearest centimetre carries that uncertainty into every result, so keep a margin in real-world cuts.

Frequently Asked Questions

What is the Pythagorean theorem?

In any right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: c² = a² + b². Legs of 3 and 4 give c = √(9 + 16) = 5 — the most famous whole-number triple.

How do I find a leg when I know the hypotenuse?

Rearrange the theorem: b = √(c² − a²). A 5 hypotenuse with a 3 leg gives b = √(25 − 9) = 4. Choose "Leg + hypotenuse" mode and the calculator does the subtraction for you.

How are the two acute angles found?

Trigonometry: angle A = arcsin(leg A ÷ hypotenuse), angle B = arcsin(leg B ÷ hypotenuse). They always add to 90° — a quick check that the sides you entered form a real right triangle.

Last reviewed: October 5, 2026 · How we calculate · Sources: Pythagorean theorem, standard trigonometry