Home / Right Triangle Calculator

Right Triangle Calculator

Enter any 2 known values from the sides and angles to solve the right triangle. The calculator finds all remaining sides, both acute angles, area, and perimeter, then shows the steps used.

Chris Terry
By Chris Terry, Editor
Updated June 20, 2026

Enter 2 known values

Leave the values you want to find blank. Angles are in degrees. At least one side is required alongside any angle.

Result

Hypotenuse c--
Leg a--
Leg b--
Angle A--
Angle B--
Angle C (right angle)90 deg
Area--
Perimeter--
Enter 2 values above and press Solve.

Right triangle formulas

A right triangle has one 90-degree angle (angle C) and two acute angles A and B. The side opposite the right angle is the hypotenuse c; the other two sides are legs a and b.

a² + b² = c²    (Pythagorean theorem)

Given two legs, the hypotenuse is c = sqrt(a squared + b squared). Given one leg and the hypotenuse, the missing leg is a = sqrt(c squared minus b squared). The basic trig ratios tie each side pair to an angle:

sin A = a / c     cos A = b / c     tan A = a / b

Angle B always equals 90 degrees minus A because the angles of any triangle sum to 180 degrees and C is fixed at 90.

Area and perimeter

Area = (1/2) x a x b     Perimeter = a + b + c

Worked example: legs a = 3, b = 4

Step 1. Hypotenuse. c = sqrt(3 squared + 4 squared) = sqrt(9 + 16) = sqrt(25) = 5.
Step 2. Angle A. sin A = a / c = 3 / 5 = 0.6, so A = arcsin(0.6) = 36.87 degrees.
Step 3. Angle B. B = 90 minus 36.87 = 53.13 degrees.
Step 4. Area. (1/2) x 3 x 4 = 6.
Step 5. Perimeter. 3 + 4 + 5 = 12.

This is the classic 3-4-5 Pythagorean triple. For the underlying theorem, see Pythagorean Theorem Calculator. To find the slope of a line defined by two points on a right triangle, see Slope Calculator.

For an academic reference on right triangle trigonometry, see Wolfram MathWorld on right triangles.

More free math tools

Solve quadratics, find square roots, and more.

Good to know

Frequently asked questions

How do you find the missing side of a right triangle?

Use the Pythagorean theorem: a squared + b squared = c squared. If you know both legs, c = sqrt(a squared + b squared). If you know one leg and the hypotenuse, the other leg is sqrt(c squared minus the known leg squared). This calculator handles all three cases automatically.

How do you find the angles of a right triangle given two sides?

Apply an inverse trig function. With the opposite side and hypotenuse, angle A = arcsin(opposite / hypotenuse). With opposite and adjacent legs, angle A = arctan(opposite / adjacent). The remaining acute angle is 90 degrees minus A.

What is the formula for the area of a right triangle?

Area = (1/2) times leg a times leg b. The two legs serve as base and height because they meet at the right angle, so no separate altitude is needed.

What are the most common right triangle ratios?

The 3-4-5 and 5-12-13 Pythagorean triples come up constantly in geometry. Any whole-number multiple (6-8-10, 10-24-26) also forms a right triangle. The 45-45-90 triangle has legs in ratio 1:1 with hypotenuse = leg times sqrt(2); the 30-60-90 has sides in ratio 1 : sqrt(3) : 2.

What is sin, cos, and tan in a right triangle?

For angle A opposite leg a: sin A = a / c; cos A = b / c; tan A = a / b. SOH-CAH-TOA is the standard memory aid. Once you know one side and one angle, any missing side follows directly from these ratios.

Chris Terry
About the author
Chris Terry
Editor, Encore Editorial

Editor at Encore Editorial, Chris Terry sets the editorial standards here and turns dense topics into plain English. He has written widely on education, finance, and consumer markets.