Right Triangle Calculator
Enter any two sides of a right triangle and this calculator finds the rest: the missing side via the Pythagorean theorem (a² + b² = c²), both acute angles via inverse tangent, plus the area and perimeter. Choose whether you know the two legs, or one leg and the hypotenuse. The diagram labels the legs a and b (meeting at the 90° corner) and the hypotenuse c opposite it. Handy for geometry homework, construction and carpentry (rise/run, rafter and brace lengths), screen and TV diagonals, and any layout where you need a square corner. Everything is computed locally in your browser.
Leg a
3
Leg b
4
Hypotenuse c
5
Area
6
Angle A (opposite a)
36.87°
Angle B (opposite b)
53.13°
Perimeter
12
Angles are in degrees. Legs a and b meet at the 90° corner; c is the hypotenuse opposite it.
How to use
- Pick what you know: the two legs, or one leg and the hypotenuse.
- Type the two values into the fields.
- Read the remaining side, both acute angles (A opposite a, B opposite b), the area and the perimeter.
Frequently asked questions
- What is the Pythagorean theorem?
- For a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c². The hypotenuse c is the longest side, opposite the right angle.
- Which side is the hypotenuse?
- The hypotenuse is the side opposite the 90° angle — always the longest of the three. The other two sides (the legs) form the right angle.
- How are the angles found?
- From the sides: angle A (opposite leg a) is arctan(a / b), and the two acute angles always add up to 90°, so B = 90° − A.
- Why do I get an error with the hypotenuse?
- The hypotenuse must be longer than either leg. If you enter a hypotenuse that is shorter than or equal to the leg, no valid triangle exists.
Related tools
Percentage Calculator
Work out percentages, what-percent, and percent change in one place.
Tip Calculator
Calculate the tip and split the total bill between people.
Tile Calculator
Work out how many floor or wall tiles you need for a room — from its length and width and the tile size, with an adjustable waste allowance and boxes required.
BMI Calculator
Calculate Body Mass Index from height and weight, with a healthy range.
Age Calculator
Calculate exact age in years, months, days — and find your next birthday.
Compound Interest Calculator
Project how a starting balance grows with regular contributions, your interest rate, and your compounding frequency.