What Is a Right Triangle Calculator?
A right triangle calculator solves all missing sides, angles, area, and perimeter of a right triangle. A right triangle is a triangle that contains one 90-degree angle. This special property makes right triangles the foundation of trigonometry, construction, navigation, and countless engineering applications.
Because the right angle is always known (90°), you only need two other pieces of information to fully determine the triangle. This calculator supports solving from two known sides or from one side and one acute angle.
What This Calculator Does
Enter any two known values and the calculator returns all sides, all angles, area, and perimeter of the right triangle.
Inputs Required (choose one mode)
- Two known sides: Enter any two of the three sides (legs a and b, or hypotenuse c with one leg)
- Side and angle: Enter one side length and one acute angle (Angle A, which is opposite to leg a)
Outputs Provided
- All three sides: Legs a and b, and hypotenuse c
- All three angles: Angles A and B (with Angle C always = 90°)
- Area: Half the product of the two legs
- Perimeter: Sum of all three sides
- Verification: Confirms a² + b² = c²
How the Calculation Works
Pythagorean Theorem
c² = a² + b²
a = √(c² - b²) | b = √(c² - a²)
When two sides are known, the Pythagorean theorem finds the third. Legs a and b are the two sides that form the right angle. The hypotenuse c is always the longest side, opposite the 90-degree angle.
Trigonometric Ratios
sin(A) = a / c (opposite / hypotenuse)
cos(A) = b / c (adjacent / hypotenuse)
tan(A) = a / b (opposite / adjacent)
When a side and an angle are known, trigonometric functions find the remaining sides. The calculator uses sine to find the side opposite the known angle, then uses the Pythagorean theorem to find the third side.
Area and Perimeter
Area = 0.5 × a × b
Perimeter = a + b + c
Angle B = 90° - Angle A
How to Use the Calculator
- Select the mode: two known sides, or side and angle
- Enter the values you know
- Click Calculate
- View all sides, angles, area, and perimeter. The Pythagorean verification confirms accuracy
Example Calculations
Example 1: Two sides known (a = 3, b = 4)
- Hypotenuse: c = √(9 + 16) = √25 = 5
- Angle A: arcsin(3/5) = 36.87°
- Angle B: 90 - 36.87 = 53.13°
- Area: 0.5 × 3 × 4 = 6 square units
- Perimeter: 3 + 4 + 5 = 12 units
This is the famous 3-4-5 Pythagorean triple.
Example 2: Side and angle (a = 10, Angle A = 30°)
- Hypotenuse: c = 10 / sin(30°) = 10 / 0.5 = 20
- Leg b: √(400 - 100) = √300 = 17.321
- Angle B: 90 - 30 = 60°
- Area: 0.5 × 10 × 17.321 = 86.603 square units
Real-World Scenarios
Construction and Carpentry
A carpenter building a staircase needs to cut a diagonal support beam. The horizontal run is 8 feet and the vertical rise is 6 feet. Entering these as the two legs gives the hypotenuse of 10 feet, the exact length needed for the beam.
Roof Pitch Calculation
An architect knows a roof must rise 4 feet for every 12 feet of horizontal run (a 4:12 pitch). Entering a = 4 and b = 12 gives the rafter length (hypotenuse) and the exact angle of the roof for planning rafters and determining roofing material quantities.
Navigation and Surveying
A surveyor measuring land uses right triangle calculations to find distances that cannot be measured directly. By measuring a known angle and one accessible side, the calculator finds the inaccessible distance across a river or field.
Why This Calculation Matters
The right triangle is the most important shape in trigonometry. All trigonometric functions (sine, cosine, tangent) are defined in terms of right triangles. These relationships are used in physics for force component analysis, in engineering for structural calculations, in navigation for bearing calculations, and in architecture for ensuring square corners and correct angles in structures.
Common Mistakes to Avoid
- Misidentifying the hypotenuse: The hypotenuse is always the longest side and is always opposite the 90-degree angle. The legs are the two shorter sides that form the right angle
- Hypotenuse shorter than a leg: The hypotenuse must be longer than either leg. If you enter a hypotenuse smaller than one of the legs, no valid right triangle exists
- Angle must be less than 90: In angle-side mode, the angle entered must be between 0 and 90 degrees exclusive. The 90-degree angle is already accounted for
- Unit consistency: All side lengths must use the same unit. Do not mix centimeters and meters in the same calculation