Calculators.Life Calculator
Math

Right Triangle Side Calculator

Input Parameters

Scenarios
Enter the primary dimension or leg length
Enter the secondary dimension, angle, or area

Computed Results

Hypotenuse c
5
Leg a3
Leg b4
Angle α (°)36.8699
Angle β (°)53.1301
Altitude h (to Hypotenuse)2.4
Area (A)6
Perimeter (P)12

The right triangle side calculator determines the missing dimensions of a right-angled triangle based on two known values. By entering combinations such as two legs, a leg and the hypotenuse, or a side and an angle, you can instantly find the remaining sides, angles, area, and perimeter.

Verified Calculation Scenarios

Here are examples of how the calculator solves for missing dimensions based on different starting values.

Scenario 1: Two Known Legs

If you know both legs of the triangle (the sides forming the 90-degree angle), the calculator uses the Pythagorean theorem to find the rest. For example, entering a first leg of 3 and a second leg of 4 yields a hypotenuse of 5. The calculator also determines the angles (36.8699° and 53.1301°), an area of 6, and a perimeter of 12.

Scenario 2: Leg and Hypotenuse

When you know one leg and the longest side (hypotenuse), the calculator works backward. Entering a leg of 5 and a hypotenuse of 13 results in a second leg of 12. The resulting area is 30, and the perimeter is 30.

Scenario 3: Hypotenuse and Angle

If you have the hypotenuse and one acute angle, trigonometry is used. For a hypotenuse of 25 and an angle of 30 degrees, the calculator determines the opposite leg is 12.5 and the adjacent leg is 21.6506. The total area is 135.3165.

Formulas and Mathematical Logic

The calculator relies on fundamental geometry and trigonometry rules to solve the triangle depending on which variables are provided.

The Pythagorean Theorem

When solving for sides using other sides, the primary formula is the Pythagorean theorem:

a² + b² = c²

Where a and b are the legs, and c is the hypotenuse.

Trigonometric Ratios

When angles are involved, the calculator uses standard sine, cosine, and tangent functions:

Area and Perimeter

The area (A) of a right triangle is half the product of its legs, and the perimeter (P) is the sum of all three sides:

A = 0.5 × a × b
P = a + b + c

How to Use the Calculator

Follow these steps to find your missing triangle dimensions:

  1. Select Given Values: Choose the combination of dimensions you already know from the dropdown menu (e.g., Two Legs, Leg and Hypotenuse, Leg and Angle).
  2. Enter the First Known Value: Input your primary dimension (such as the length of the first leg or the hypotenuse).
  3. Enter the Second Known Value: Input your secondary dimension, which could be another side, an angle, or the total area.
  4. Select Angle Unit: If your inputs include an angle, specify whether it is in degrees or radians.
  5. Review Results: The calculator will display all missing sides, angles, the altitude to the hypotenuse, area, and perimeter.

Inputs and Outputs Reference

FieldTypeDescription
Given ValuesInputThe combination of known variables used to solve the triangle.
First Known ValueInputThe primary dimension or leg length.
Second Known ValueInputThe secondary dimension, angle, or area.
Angle UnitInputDegrees or radians (if applicable).
Hypotenuse cOutputThe longest side of the right triangle, opposite the 90-degree angle.
Leg a & Leg bOutputThe two sides that form the right angle.
Angle α & β (°)OutputThe two acute angles of the triangle.
Altitude hOutputThe perpendicular distance from the right angle to the hypotenuse.
Area (A)OutputThe total two-dimensional space enclosed by the triangle.
Perimeter (P)OutputThe total continuous length of the triangle's outer boundary.

Practical Use Cases

Right triangle calculations are frequently used in construction, carpentry, and design. For example, builders use the 3-4-5 rule (a practical application of the Pythagorean theorem) to ensure walls meet at perfect 90-degree angles. It is also used in navigation to calculate the shortest straight-line distance between two points when moving along a grid.

Frequently Asked Questions

Can I solve a right triangle with only one known value?

No. Aside from the 90-degree right angle, you must know at least two other values (such as two sides, or one side and one angle) to calculate the remaining dimensions.

What is the hypotenuse?

The hypotenuse is the longest side of a right triangle. It is always located directly opposite the 90-degree right angle.

How does the calculator handle angles in radians?

If you select radians as your angle unit, the calculator converts the input into degrees for internal processing and standardizes the output angles in degrees, while correctly applying the trigonometric functions to the radian input.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.