Right Triangle Calculator
Enter any two known values of a right triangle (not both angles) and get every side, angle, the area, perimeter and a diagram, with the trigonometry shown.
How to use the Right Triangle Calculator
- Choose Angle unit.
- Add any optional details you have; leave the rest blank.
- Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
- Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.
Labels used
Legs a and b meet at the right angle. The hypotenuse c is opposite it. Angle α is opposite leg a and angle β is opposite leg b. Because the angles add up to 180° and one of them is 90°, α + β = 90°.
The relationships
a² + b² = c² · sin α = a ÷ c · cos α = b ÷ c · tan α = a ÷ b
The memory aid SOH CAH TOA covers the trig part: Sine = Opposite ÷ Hypotenuse, Cosine = Adjacent ÷ Hypotenuse, Tangent = Opposite ÷ Adjacent. The area is ½ab, because the two legs act as base and height.
Any two values work
- Two sides: the third comes from Pythagoras, the angles from arctan or arcsin.
- A side and an angle: for example a = c × sin α and b = c × cos α.
- Area and a leg: the other leg is 2 × area ÷ leg.
- Area and the hypotenuse: a² and b² are the two roots of t² − c²t + (2 × area)² = 0. No triangle exists if the area is more than c² ÷ 4.
- Area and an angle: b = √(2 × area ÷ tan α), then a = b × tan α.
Two angles alone are not enough, because they only fix the shape.
Worked example
A ramp rises at 30° and is 10 ft long along the slope (the hypotenuse). The rise is a = 10 × sin 30° = 5 ft and the horizontal run is b = 10 × cos 30° ≈ 8.66 ft. The area of the side profile is ½ × 5 × 8.66 ≈ 21.65 ft².
Special right triangles
| Triangle | Side ratio | Why |
|---|---|---|
| 45-45-90 | 1 : 1 : √2 | Half of a square cut along its diagonal |
| 30-60-90 | 1 : √3 : 2 | Half of an equilateral triangle |
In a 30-60-90 triangle the side opposite 30° is exactly half the hypotenuse, and the side opposite 60° is that short side times √3. In a 45-45-90 triangle the legs are equal and the hypotenuse is a leg times √2 ≈ 1.414. The calculator flags these whenever your angles match, because they let you write exact answers without a calculator.
Frequently asked questions
What is a 30-60-90 triangle?
A right triangle with angles 30°, 60° and 90°. Its sides are in the ratio 1 : √3 : 2, so if the shortest side is 4, the others are 4√3 ≈ 6.93 and 8.
How do I find an angle from two sides?
Use an inverse trig function. With both legs, α = arctan(a ÷ b). With a leg and the hypotenuse, α = arcsin(a ÷ c).
Why can't I enter two angles?
In a right triangle the second acute angle is always 90° minus the first, so two angles give no information about size. Enter at least one length or the area.
What is the height to the hypotenuse?
It is the perpendicular distance from the right angle to the hypotenuse, equal to a × b ÷ c. For a 3-4-5 triangle it is 2.4.