Right Triangle Calculator: Find Missing Sides and Angles
Use this right triangle calculator to solve a right triangle from any two values, as long as one is a side: two sides, or one side and one angle. The other three values fill in as you type. Sides can be decimals or fractions such as 3 7/8, and angles come back in degrees. It runs in your browser, so nothing you type is sent anywhere.
How to solve a right triangle
- Look at the diagram. Leg A is the vertical leg on the left, Leg B is the horizontal leg along the bottom, and Hypotenuse C is the slanted side. Angle A sits in the bottom right corner, opposite Leg A, and Angle B sits at the top, opposite Leg B. Each field shows ? until you fill it in.
- Enter any two values, at least one of them a side: two sides, or one side and one angle. Angles are numbers between 0 and 90, with or without the ° sign.
- The other three fields fill in at once, in blue. There is no button to press.
- Change either of your two entries to try another triangle, or press Clear to empty all five fields and start over.
Angle A = 36.87°, Angle B = 53.13°
Find a missing side from a side and an angle (SOH CAH TOA)
When you enter a side and an angle, the calculator uses sine, cosine and tangent, the ratios remembered as SOH CAH TOA. The second angle is always 90° minus the first. Opposite and adjacent are measured from the angle you entered: Leg A is opposite Angle A and next to Angle B, and Leg B is the other way round.
| You enter | It works out | Formula |
|---|---|---|
| Hypotenuse C and Angle A | Leg A and Leg B | a = c × sin A, b = c × cos A |
| Leg A and Angle A | Hypotenuse C and Leg B | c = a ÷ sin A, b = a ÷ tan A |
| Leg B and Angle A | Hypotenuse C and Leg A | c = b ÷ cos A, a = b × tan A |
| Any angle | The other angle | 90° − the angle |
Angle B works the same way from the other corner. Here is one triangle with a 30° angle, entered three different ways:
Hypotenuse C = 10 & Angle A = 30° → Leg A = 5, Leg B = 8.6603
Leg B = 10 & Angle A = 30° → Leg A = 5.7735, C = 11.547
Find a missing angle from two sides
Two sides use the Pythagorean theorem for the third side, a² + b² = c², and then the angles follow: the angle opposite Leg A is the arctangent of A ÷ B, and the other is 90° minus that.
Angle A = 22.62°, Angle B = 67.38°
The hypotenuse must be longer than each leg. If Hypotenuse C is equal to or shorter than the leg you entered, the field is marked red and the message reads The hypotenuse (C) must be longer than the leg you entered. A side that is zero, negative or not a number shows Enter a length greater than 0, like 3.5 or 3 1/2., and an angle outside the range shows Enter an angle between 0 and 90 degrees.
Right triangle calculator with fractions (3 7/8)
Fractions work in either mode. Type a whole number and fraction with a space (3 7/8), a plain fraction
(15/16) or a hyphen (3-1/2); a trailing " or in is ignored, and a comma
works as the decimal mark. The Decimal and Fractions buttons above the diagram change only how
computed side lengths are written.
| Setting | Computed sides are written as |
|---|---|
| Decimal (the default) | Numbers with up to 4 decimals, such as 17.3205 |
| Fractions | A whole number plus a fraction rounded to the nearest 1/16 in lowest terms, such as 17 5/16 or 3/8 |
Angle A = 57.17°, Angle B = 32.83°
No unit is shown, and the same unit comes out as went in. Read the Fractions results as inches for carpentry or machining, and remember they are rounded to 1/16. Angles always appear in degrees to two decimals.
Why the other fields lock
A right triangle is fixed by two values, so once you enter two, the other three fields lock. They are answers: you can still select and copy them, but not type in them. Clear or change one of your two entries, or press Clear, to unlock. If you enter only an angle, the other angle fills in and locks and the status line asks for a side, because angles alone do not set the size. This is also why a second angle can never be entered.
What people use it for
- Slope and ramp angles. Enter the rise as Leg A and the run as Leg B. A rise of 1 over a run of 12 gives a slope length of 12.0416 and Angle A of 4.76°.
- Stairs. A rise of 7 and a run of 11 give Angle A of 32.47° and a length along the slope of 13.0384, which Fractions shows as 13 1/16.
- Braces and cuts. A brace rising 10 at 45° (Leg A = 10, Angle A = 45°) runs 10 across and is 14.1421 long, or 14 1/8 in Fractions.
- Trigonometry homework. Enter what the problem gives and compare the answer with your own working.
What this calculator does not do
- It solves right triangles only. A triangle with no 90° angle needs the sine and cosine rules, which are not here.
- It shows the sides and angles, not the area, the perimeter or the step-by-step working.
- It has no unit selector and does not convert between units. For a sides-only calculator that also reads feet and inches and shows the area, try the Pythagorean Theorem Calculator.
- The diagram is fixed and not drawn to scale, so use it as a label for the five fields rather than as a sketch.
Frequently asked questions
How do I find a missing side of a right triangle with an angle?
Enter the side you know and one angle, and the other two sides fill in at once. Leg A of 10 with Angle A of 30° gives Hypotenuse C of 20 and Leg B of 17.3205. The calculator uses sine, cosine and tangent: the side opposite the angle is the hypotenuse times sin, the side next to it is the hypotenuse times cos, and the two legs are related by tan.
How do I find the angle of a right triangle given two sides?
Enter any two sides: the two legs, or a leg and the hypotenuse. Both angles appear in degrees to two decimals. Legs of 3 and 4 give Angle A of 36.87° and Angle B of 53.13°, and Hypotenuse C of 13 with Leg A of 5 gives 22.62° and 67.38°. Angle A is the one opposite Leg A, in the bottom right corner.
How do I find the other angle of a right triangle?
Subtract the angle you know from 90°, because the three angles add up to 180° and one of them is the right angle. Enter a single angle and the calculator fills in the other the same way: 30° gives 60°. It then asks for a side, because angles alone cannot fix the size.
How do I solve a right triangle with one side and one angle?
Enter the side in its field and the angle in Angle A or Angle B. Leg B of 10 with Angle A of 30° gives Leg A of 5.7735, Hypotenuse C of 11.547 and Angle B of 60°. The angle must be greater than 0 and less than 90 degrees, and the side greater than 0.
What is SOH CAH TOA and does the calculator use it?
SOH CAH TOA is the memory aid for the three ratios: sine is opposite over hypotenuse, cosine is adjacent over hypotenuse, and tangent is opposite over adjacent. The calculator applies them whenever you enter a side and an angle. It shows the results but not the working, so use it to check a worksheet answer rather than to copy the steps.
How do I find the hypotenuse of a right triangle with an angle?
Enter one leg and one angle. Leg A of 10 with Angle A of 30° gives a hypotenuse of 20, because the leg opposite the angle divided by sin 30° is 20. Leg B of 10 with Angle A of 30° gives 11.547, because the leg next to the angle divided by cos 30° is 11.547. Opposite and adjacent are measured from the angle you entered, so check which leg faces it.
How do I solve a 30-60-90 triangle?
Enter any one side and either 30° or 60°. Hypotenuse C of 10 with Angle A of 30° gives Leg A of 5 and Leg B of 8.6603, so the short leg is half the hypotenuse and the long leg is the short leg times √3. Angle B fills in as 60°.
Can I solve a right triangle with two angles?
No. Two angles fix the shape but not the size, since a 30-60-90 triangle can be any scale. Once you enter one angle the other is worked out (90° minus it) and locked, so a second angle cannot be typed. Add one side and the whole triangle is solved.
Does the right triangle calculator work with fractions?
Yes. Fractions such as 3 7/8, 15/16 and 3-1/2 are read in either mode. Select Fractions above the diagram to see computed sides written as a whole number plus a fraction, rounded to the nearest 1/16 and in lowest terms. Legs of 3 7/8 and 2 1/2 give a hypotenuse of 4.6115 in Decimal and 4 5/8 in Fractions. Angles always stay in degrees.
Why can't I type in the other fields?
Once two values are in, the other three fields lock so the triangle cannot be over-specified. You can still select and copy them. Change or clear one of your two entries, or press Clear, to unlock them. This is also why a second angle cannot be entered.
Why does it say the hypotenuse must be longer than the leg?
In a right triangle the hypotenuse is the longest side, so a Hypotenuse C that is equal to or shorter than the leg you entered cannot form one. The calculator then shows "The hypotenuse (C) must be longer than the leg you entered." in red. Check which number is the longest side and enter it in Hypotenuse C.
Recommended
-
Pentel GraphGear 500 Drafting PencilMark cut lines and sketch the triangle with a fine 0.5 mm lead before you saw.
-
Bosch Blaze Laser Distance MeasureMeasure the rise and run of a stair or ramp in seconds, then type them straight in.
-
TI-36X Pro Scientific CalculatorCheck your answers and work the sin, cos and tan steps on a proper scientific calculator.
Helps keep the tools free. ✨
Images are for illustration only. As an Amazon Associate I earn from qualifying purchases.