Right Triangle Calculator

Complete a right triangle from two known values — sides, angles, area and perimeter.

What does this calculator do?

A right triangle is fully determined by two independent values. Pick which pair you know — two legs, a leg and the hypotenuse, or one side and an acute angle — and this calculator solves the rest: the remaining sides, both acute angles, the area and the perimeter. Use any length unit — as long as every input uses the same one, the results come out in that unit (areas in that unit squared).

Formula

Sides follow the Pythagorean theorem; angles come from the trigonometric ratios of the known sides. Angle A is opposite leg a.

a² + b² = c²
tan(A) = a ÷ b
A + B = 90°
Area = a × b ÷ 2
Right triangle diagramA right triangle with legs a and b, hypotenuse c and the right angle marked.abc
Diagram not to scale.

How to use it

Choose the known pair in the first selector — the form only shows the fields that pair needs. The hypotenuse must be longer than a leg, and an entered angle must be strictly between 0° and 90°.

Worked example

Legs a = 3 and b = 4: c = √(3² + 4²) = 5, angle A = 36.87°, angle B = 53.13°, area = 6, perimeter = 12.

Formula version1.0.0
Formulaa² + b² = c² tan(A) = a ÷ b A + B = 90° Area = a × b ÷ 2
Precision4 decimals

Frequently asked questions

Why must the angle be under 90°?

In a right triangle one angle is exactly 90°, so the other two are acute and add up to 90°. An entered angle of 90° or more cannot belong to either acute corner.

What if my hypotenuse is shorter than the leg?

That is geometrically impossible — the hypotenuse faces the right angle and is always the longest side — so the calculator rejects the input instead of computing √ of a negative number.

Can I enter angle B instead of angle A?

Enter its complement: A = 90° − B. Because the two acute angles always sum to 90°, knowing either one is equivalent.

Sources

Related calculators

Last updated: 2026-07-31 · v1.0.0 · Report an error