Skip to content

Mathematics

Right triangle: sides and angles

Find the hypotenuse from both legs, or the missing leg from a hypotenuse and one leg. Also show area, angles, altitudes and radii.

How it worksFAQRelated tools

Content reviewed:

The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. JSON, HTML and TXT downloads keep your inputs and all result rows, with exact values where available. Automatic recalculation after editing is off unless you switch it on. Nothing is saved, imported or sent automatically.

Lengths use one common unit chosen by you; area uses its square. Angles are degrees. Positive sides at most 1e9; degenerate or numerically unresolved triangles are refused. Floating-point answers do not establish measurement accuracy or structural safety. Nonzero input magnitudes below 1e-30 or above 1e9 are refused.

Decimal results are approximate. Inputs stay in this browser tab.

How it works

Explicit geometry and ideal-model arithmetic; angles in degrees, entered dimensions and rates, or SI motion units. Lengths use one common unit chosen by you; area uses its square. Angles are degrees. Positive sides at most 1e9; degenerate or numerically unresolved triangles are refused. Floating-point answers do not establish measurement accuracy or structural safety. Nonzero input magnitudes below 1e-30 or above 1e9 are refused.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Known sides
Both legs a and b
Leg a
3
Leg b
4

Result

Side a
3
Side b
4
Side c
5
Alpha (degrees)
36.8698976458
Beta (degrees)
53.1301023542
Gamma (degrees)
90
Area (square chosen length unit)
6
Perimeter (chosen length unit)
12
Altitude to a
4
Altitude to b
3
Altitude to c
2.4
Incircle radius
1

Frequently asked questions

How do I calculate the hypotenuse of a right triangle?

Enter both legs a and b. The right triangle calculator uses c² = a² + b², so legs of 3 and 4 give a hypotenuse of 5.

How do I find the missing leg of a right triangle?

Choose the mode with a known hypotenuse and one leg. The right triangle calculator then works out the other leg together with the angles, area and other values.

What else does the right triangle calculator show?

Besides the three sides it shows the angles in degrees, area, perimeter, the altitudes to each side and the incircle and circumcircle radii. For legs 3 and 4 the area is 6, the inradius 1 and the circumradius 2.5.

Which units does the right triangle calculator use?

All lengths share one unit chosen by you, and the area is given in the square of that unit. Angles are always in degrees.

What input limits apply to the triangle sides?

Sides must be positive and at most 1e9, and nonzero values below 1e-30 are refused. Degenerate or numerically unresolved triangles are also refused.

Does the result confirm measurement accuracy or structural safety?

No. The results are floating-point approximations and do not establish measurement accuracy or structural safety.