Right Triangle Calculator: Sides, Angles & Area

Reconstruct a right triangle from two measurements. Find all three sides, acute angles, area and perimeter; compare swapped-leg solutions where applicable.

Example: 1,250.50. Use a period for decimals.

Result

Enter values and select Calculate.

How is this calculated?

Use the supplied pair to reconstruct perpendicular legs, then use their squares, product and ratio to derive other measurements.

Worked example: Reconstruct a right triangle from two legs

Perpendicular legs of 5 and 12 give a diagonal of 13, an area of 30 square units and a perimeter of 30 length units. Clear any other measurements before running the example.

Method and limits

Supply two values; at least one must not be an angle. When the two legs may be exchanged and produce the same supplied values, both labeled solutions are shown.

How to use this calculator

  1. Enter exactly two known values, leaving all other measurements blank. At least one must establish size, such as a side, area, altitude or perimeter.
  2. Choose degrees or radians for the angles. Identify each acute angle by the leg it faces, not by where it appears on the page.
The legs meet at 90°. The diagonal c is the hypotenuse, across from the right angle. Not to scale.

Recover the measurements behind a 5–12 frame

Perpendicular legs of 5 and 12 produce hypotenuse 13, area 30, and perimeter 30. Area and perimeter happen to share a numeral here; their units are different.

Start from an angle and the diagonal

A hypotenuse of 20 and angle α of 30° give leg a = 20 × sin 30° = 10. The adjacent leg is 20 × cos 30°, about 17.321. This approach reconstructs lengths, not just angle ratios.

Treat the altitude as a specific measurement

The altitude entered here runs from the right-angle vertex perpendicular to the hypotenuse. It is not either of the two legs. It meets the hypotenuse at a point that need not be its midpoint.

Understand why the legs may swap

A diagonal of 13 and altitude of 60/13 determine leg lengths 5 and 12, but do not tell which is a. The calculator can show both labelings; choose the one that matches your drawing.

Frequently asked questions

Can two angles determine all lengths?
No. The same angles fit right triangles of different sizes.
Which side is the hypotenuse?
The longest side, opposite the 90° angle.
How many known quantities should I enter?
Exactly two. Clear the prefilled example legs before using a different pair.
Can the calculator handle a triangle without a 90° angle?
No. Use the general triangle calculator instead.

Common mistakes and limits

Sources & methodology

Related calculators