Skip to content

Right Triangle Calculator

Enter any two values, sides or an acute angle, to find all three sides, both acute angles, the area, perimeter, altitude and radii.

Formulas last reviewed: September 2026

Disclaimer: Results are calculated with standard formulas and are meant for learning and quick checks. Please double-check important work, especially anything used for exams, engineering, finance or safety.

Solving a right triangle

A right triangle has one angle of exactly 90 degrees. Because of that, knowing just two values, with at least one side, is enough to find everything else: both legs, the hypotenuse, both acute angles, the area, the perimeter, the altitude to the hypotenuse and the inscribed and circumscribed radii.

Enter any two of side a, side b, hypotenuse c, angle A and angle B. Side a is opposite angle A, side b is opposite angle B, and the right angle sits opposite the hypotenuse.

How it is calculated

c² = a² + b²
sin A = a ÷ c, cos A = b ÷ c, tan A = a ÷ b
B = 90° − A

Worked example

Side a = 5 and angle A = 30°

Hypotenuse c
10
Side b
8.66
Angle B
60°
Area
21.65

Two special triangles

TriangleSide ratio
45° – 45° – 90°1 : 1 : √2
30° – 60° – 90°1 : √3 : 2

Frequently asked questions

What two values can I enter?

Any two, as long as one is a side: two legs, a leg and the hypotenuse, or a side and an acute angle.

Why can't I give two angles?

The two acute angles always add up to 90 degrees, so they do not fix the size of the triangle. A side length is needed.

What is the altitude to the hypotenuse?

It is the height drawn from the right angle down to the hypotenuse, equal to a × b ÷ c.

How do I know which is side a and which is side b?

Side a is opposite angle A and side b is opposite angle B. The result is symmetric, so swapping the legs just swaps the angles.