Right Triangle Calculator
Enter any two values — the two legs, the hypotenuse, or a side and an acute angle — and get the rest using the Pythagorean theorem and trigonometry, drawn to scale. Click a value on the drawing to change it.
Known values
—Enter any two values, including at least one side.
The right angle is fixed: C = 90°
Results
The Pythagorean theorem
In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs. It's the fastest way to find a missing side when you know the other two.
a² + b² = c²
Using an angle instead
If you know a side and one acute angle, trigonometry finds the rest: the opposite leg is c·sin, the adjacent leg is c·cos, and the two acute angles always add to 90°.
a = c·sin A · b = c·cos A · B = 90° − A
What it calculates
Both legs, the hypotenuse, both acute angles, area, perimeter, the altitude to the hypotenuse, and the inscribed- and circumscribed-circle radii.
Solving a right triangle
A right triangle has one 90° angle, and the side opposite it — the longest side — is the hypotenuse. That single right angle makes these triangles much quicker to solve than ordinary ones. There are two ways in, depending on what you start with: the Pythagorean theorem when you know two sides, and trigonometry when you know a side and one of the acute angles.
Two ways in
- Two sides → use Pythagoras. The relationship a² + b² = c² ties the three sides together, so knowing any two gives the third.
- A side and an acute angle → use trigonometry. Sine, cosine and tangent connect an angle to the ratio of two sides, so one side plus one angle unlocks the rest.
Worked example: two legs (Pythagoras)
Suppose the two legs are a = 6 and b = 8, and you need the hypotenuse, both angles and the area.
Angle A sits opposite side a, so tan A = opposite ÷ adjacent = a ÷ b:
Legs 6 and 8, hypotenuse 10, angles 36.87° and 53.13°, area 24, perimeter 24 — the classic 6-8-10 right triangle.
Worked example: a side and an angle (trigonometry)
Now suppose you know the hypotenuse c = 10 and one acute angle A = 30°. SOH-CAH-TOA gives the legs directly.
Formulas this calculator uses
Pythagoras · a² + b² = c²
SOH-CAH-TOA · sin = opp/hyp · cos = adj/hyp · tan = opp/adj
Acute angles · A + B = 90°
Area · ½ · a · b
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: a² + b² = c². It only works for right triangles, and the hypotenuse (c) is always the side opposite the 90° angle.
How do you find the hypotenuse?
Square both legs, add them, and take the square root: c = √(a² + b²). For legs of 6 and 8, that's √(36 + 64) = √100 = 10.
How do you find a leg when you know the hypotenuse and the other leg?
Rearrange Pythagoras to subtract instead of add: a = √(c² − b²). The leg is always shorter than the hypotenuse, so the value under the square root stays positive.
What does SOH-CAH-TOA mean?
It's a memory aid for the three trig ratios in a right triangle. SOH: Sine = Opposite ÷ Hypotenuse. CAH: Cosine = Adjacent ÷ Hypotenuse. TOA: Tangent = Opposite ÷ Adjacent. Pick the one that uses the two sides you have.
How do you find the angles of a right triangle?
One angle is always 90°. For an acute angle, use an inverse trig ratio — for example A = arctan(opposite ÷ adjacent). Once you have one acute angle, the other is simply 90° minus it, because the two always add to 90°.
Which side is the hypotenuse?
The hypotenuse is the side directly opposite the right angle, and it's always the longest of the three sides. The other two sides, which meet at the right angle, are called the legs.