Right Triangle Calculator
This right triangle calculator solves the whole triangle from any two values you know. Give it two sides, or one side and an angle, and you'll get every side, both acute angles, the area, and the perimeter, plus a diagram that redraws to match. It uses the Pythagorean theorem and trig behind the scenes, and it's got the steps so the method stays clear.
- All sides and angles
- From sides or an angle
- Area and perimeter
- Live triangle diagram
- Steps shown
Last updated June 16, 2026 Pythagoras + trig Reviewed by the Calcowa math team
Enter two valid values. The hypotenuse must be the longest, and an angle must be between 0 and 90.
c = √(3² + 4²) = 5
What is a right triangle?
A right triangle is a triangle with one 90-degree angle, the square corner. The two sides that form that corner are the legs, a and b, and the long side across from it is the hypotenuse, c. The other two angles are acute and always add up to 90 degrees. That fixed shape is what lets you solve the whole triangle from just two known values, and it's why two inputs are enough.
How to solve a right triangle
Say you've got the two legs, 3 and 4. Here's how the whole triangle falls out:
- 1
Find the hypotenusec = √(3² + 4²) = √25 = 5.
- 2
Find one angleA = arctan(3 ÷ 4) ≈ 36.87°.
- 3
Find the last angleB = 90 − 36.87 ≈ 53.13°, since the two add to 90.
- 4
Get area and perimeterArea = ½ × 3 × 4 = 6, perimeter = 3 + 4 + 5 = 12.
Finding a missing side or angle
For sides, the Pythagorean theorem does the heavy lifting: the hypotenuse is √(a² + b²), and a leg is √(c² − b²). For angles, you reach for trig: the sine, cosine, and tangent link a side to an angle. If you've got a side and an angle, sine and cosine give the remaining sides, and if you've got two sides, the inverse tangent gives an angle. The calculator picks the right relationship for whichever mode you choose, so you don't have to remember which is which.
Special right triangles
A few right triangles show up so often they're worth knowing on sight, and the calculator'll handle them like any other.
| Triangle | What it is | The rule |
|---|---|---|
| 45-45-90 | Two equal legs | Legs equal, hypotenuse = leg × √2 |
| 30-60-90 | Half an equilateral triangle | Sides in the ratio 1 : √3 : 2 |
| 3-4-5 | The classic Pythagorean triple | Angles about 37° and 53° |
Just need the missing side from two you know? The Pythagorean theorem calculator focuses on exactly that.
Frequently asked questions
How many values do you need to solve a right triangle?
Two, on top of the right angle itself. That's either two sides, or one side and one acute angle. With any two of those, every other side and angle is fixed, which is why the calculator only asks for two inputs.
You need any two pieces besides the right angle, then trig and the Pythagorean theorem'll give the rest. From two legs, the hypotenuse is √(a² + b²) and the angles come from the tangent. From a side and an angle, sine and cosine fill in the other sides. The calculator does all of it from whatever two values you've entered.
If you know the two legs, the hypotenuse is √(a² + b²). If you know the hypotenuse and a leg, the other leg is √(c² − a²). If you have a side and an angle, you use sine, cosine, or tangent. Pick the matching mode above and it's worked out for you.
One angle is always 90 degrees, and the other two add up to 90, so they're never a mystery. From the sides, an angle equals the inverse tangent of the opposite leg over the adjacent leg, so angle A is arctan(a ÷ b). The calculator reports both acute angles in degrees.
It's a right triangle with two equal legs, so the two non-right angles are both 45 degrees. The hypotenuse is always a leg times the square root of 2. Enter equal legs above and you'll see those 45-degree angles appear.
It's half of an equilateral triangle, with angles of 30, 60, and 90 degrees. Its sides follow the fixed ratio 1 : √3 : 2, so the side opposite 30° is the shortest and the hypotenuse is twice it. The calculator confirms the angles whenever the sides match, so you don't second-guess it.
Yes, like every triangle. Since one angle is 90 degrees, the other two must add to 90, which is why knowing one acute angle instantly gives you the other. That's a quick check on any answer.
Related calculators
More tools for triangles and shapes.
Find a missing side fast.
Area calculatorTriangle, circle, and more.
All math calculatorsPercent, fractions, averages, more.
Solving a triangle?
Enter two values above, or browse the full math hub.