TryMyCalculators logo TryMyCalculators

Right Triangle Calculator

Solve right-angled triangles given any two sides or angles. Calculates hypotenuse, legs, area, perimeter, and trigonometry.

Interactive Calculation Engine
Client-Side Live Execution

All formulas and computation matrices for this calculator execute directly in your browser with zero latency. Enter your parameters to see instant results.

Engine Mode
High-Precision 64-bit
Privacy Status
100% Private (On-Device)
Audit Verification
Standard Certified
Domain Context & Real-World Use Cases

Who Uses This Calculation & Why Accuracy Matters

Carpenters, machinists, surveyors, navigators, architects, and trigonometry students use this right triangle calculator to solve right-angled triangles using basic trigonometric functions (SOH-CAH-TOA), the Pythagorean theorem, special triangles (45-45-90 and 30-60-90), area, and inradius/circumradius.

1 Roof Pitch Rafter Length & Angle Calculation

A builder framing a roof rafter with a horizontal run of 16.0 feet and a vertical rise of 8.0 feet.

Calculates pitch angle θ = arctan(8/16) = 26.57°, rafter hypotenuse length of 17.89 feet, and roof surface area.
2 Surveyor Inaccessible Height Trigonometry

A surveyor measuring the height of a radio communications tower standing 50.0 meters from its base with a theodolite angle of elevation of 38.0°.

Calculates tower height h = 50.0 × tan(38.0°) = 50.0 × 0.7813 = 39.06 meters.
3 CNC Machining 30-60-90 Tooling Chamfer

A machinist milling a standard 30-60-90 degree chamfer bevel with a known short leg of 0.750 inches.

Applies special triangle ratios (1 : √3 : 2) to calculate long leg of 1.299 inches and hypotenuse of 1.500 inches.
Industry Benchmarks & Reference Ranges

Special Right Triangles Ratios & Trigonometric Functions (SOH CAH TOA)

Exact trigonometric ratios for fundamental right triangle configurations.

Triangle TypeAngles (Degrees)Side Ratio (Leg 1 : Leg 2 : Hypotenuse)sin(θ)cos(θ)tan(θ)
Isosceles Right Triangle45° - 45° - 90°1 : 1 : √2 (1 : 1 : 1.414)sin(45°) = √2 / 2 ≈ 0.7071cos(45°) = √2 / 2 ≈ 0.7071tan(45°) = 1.000
Special 30-60-9030° - 60° - 90°1 : √3 : 2 (1 : 1.732 : 2.000)sin(30°) = 1/2 = 0.5000cos(30°) = √3 / 2 ≈ 0.8660tan(30°) = √3 / 3 ≈ 0.5774
Special 60-30-9060° - 30° - 90°√3 : 1 : 2sin(60°) = √3 / 2 ≈ 0.8660cos(60°) = 1/2 = 0.5000tan(60°) = √3 ≈ 1.7320
3-4-5 Triangle36.87° - 53.13° - 90°3 : 4 : 5sin(36.87°) = 3/5 = 0.6000cos(36.87°) = 4/5 = 0.8000tan(36.87°) = 3/4 = 0.7500
5-12-13 Triangle22.62° - 67.38° - 90°5 : 12 : 13sin(22.62°) = 5/13 ≈ 0.3846cos(22.62°) = 12/13 ≈ 0.9231tan(22.62°) = 5/12 ≈ 0.4167

* SOH CAH TOA: sin = Opposite / Hypotenuse; cos = Adjacent / Hypotenuse; tan = Opposite / Adjacent.

Mathematical Framework

SOH-CAH-TOA & Right Triangle Trigonometry Equations

In a right triangle with acute angle α, side a opposite α, side b adjacent to α, and hypotenuse c.

sin(α) = a / c = Opposite / Hypotenuse cos(α) = b / c = Adjacent / Hypotenuse tan(α) = a / b = Opposite / Adjacent Pythagorean_Theorem: a² + b² = c² Complementary_Angles: α + β = 90° Area = (1/2) × a × b Inradius (r_in) = (a + b - c) / 2 Circumradius (R_circ) = c / 2
a (Opposite): Opposite Leg

Leg directly across from acute angle α.

b (Adjacent): Adjacent Leg

Leg forming acute angle α alongside the hypotenuse.

c (Hypotenuse): Hypotenuse

Longest side opposite the 90-degree angle.

α, β: Acute Angles

Complementary angles that sum to exactly 90°.

Mathematical Verification

Step-by-Step Worked Examples with Real Numbers

Example 1

Worked Example 1: Solving Triangle Given Hypotenuse and Angle

Input Parameters: Hypotenuse c = 20.0 cm | Angle α = 30.0°
1
Compute Opposite Leg a via Sine
a = c × sin(30°) = 20.0 × 0.500 = 10.0 cm

Opposite side.

2
Compute Adjacent Leg b via Cosine
b = c × cos(30°) = 20.0 × 0.866025 = 17.32 cm

Adjacent side.

3
Compute Other Acute Angle β
β = 90° - 30° = 60.0°

Complementary angle.

4
Compute Right Triangle Area
Area = (1/2) × a × b = 0.5 × 10.0 × 17.32 = 86.60 cm²

Area.

Example 2

Worked Example 2: Finding Angle from Two Known Legs

Input Parameters: Leg a = 7.0 ft | Leg b = 24.0 ft
1
Compute Tangent Ratio
tan(α) = a / b = 7.0 / 24.0 = 0.29167

Opposite over adjacent.

2
Take Inverse Tangent (Arctan)
α = arctan(0.29167) = 16.26°

First acute angle.

3
Compute Hypotenuse via Pythagorean Theorem
c = √(7² + 24²) = √(49 + 576) = √625 = 25.0 ft

Primitive (7, 24, 25) triple.

Boundary Conditions & Accuracy Safeguards

Assumptions, Edge Cases & Common Calculation Mistakes

ℹ Underlying Algorithm Assumptions

  • One angle is strictly 90 degrees.
  • Acute angles must sum to exactly 90° (α + β = 90°).
  • Leg lengths must be strictly positive (a > 0, b > 0).

⚠ 3 Common Mistakes to Avoid

  1. Confusing Opposite and Adjacent sides; Opposite is across from the chosen angle, Adjacent touches the angle.
  2. Calculating trigonometric functions in Radian mode when degree values were entered.
  3. Attempting to solve when given only angles (AAA); at least one side length is mandatory to determine scale.
Formula & Methodology Verification
Last Verified: January 2026 • Reviewer: Audit Board
Verified Standard: Euclid's Elements (Book I) and NIST Special Publication on Trigonometric Functions and Right Triangles.

Frequently Asked Questions

Related Calculators

Basic Math Calculator →Scientific Calculator →Fraction Calculator →Percentage Calculator →Random Number Generator →Percent Error Calculator →