ES EN FR PT DE IT

Right Triangle Calculator

Right Triangle Calculator. Free online calculator with formula, examples and step-by-step guide.

The Right Triangle Calculator is a free online math calculator. Right Triangle Calculator. Free online calculator with formula, examples and step-by-step guide. Get instant results with the detailed formula and step-by-step examples.
Inputs
Result
Enter values and press Calculate

Right Triangle Calculator: Pythagorean Theorem and Trigonometry

What is a Right Triangle?

A right triangle is a three-sided polygon containing one 90-degree angle—the same angle you see in the corner of a square or rectangle. This right angle, marked with a small square in diagrams, creates special relationships between the sides that don't exist in other triangles.

The side opposite the right angle is called the hypotenuse. It's always the longest side. In a triangle with vertices labeled A, B, and C where angle C is 90°, side c (opposite angle C) is the hypotenuse. The other two sides, a and b, are called legs or catheti. These legs form the right angle itself.

Consider a right triangle with legs measuring 9 cm and 12 cm. The hypotenuse isn't 21 cm (that would be adding them). Instead, use the Pythagorean theorem: c² = 9² + 12² = 81 + 144 = 225. So c = √225 = 15 cm. This 9-12-15 triangle is actually a scaled version of the famous 3-4-5 right triangle, multiplied by 3.

Right triangles appear everywhere: ladder against a wall, roof trusses, navigation paths, screen diagonals, and ramp inclines. The 3-4-5 triangle was used by ancient Egyptian builders to create perfect right angles for pyramid construction. Carpenters still use this trick today with a framing square.

How It Works: Pythagorean Theorem and Trigonometric Ratios

Two mathematical frameworks govern right triangles: the Pythagorean theorem for side relationships, and trigonometric ratios for angle-side relationships.

The Pythagorean Theorem: In any right triangle with legs a and b and hypotenuse c: a² + b² = c². This isn't just a formula—it's a geometric truth. If you construct squares on each side, the combined area of the two smaller squares exactly equals the area of the largest square. For a 5-12-13 triangle: 25 + 144 = 169, confirming 13² = 169.

Finding a Missing Leg: When you know the hypotenuse and one leg, rearrange the formula. If c = 17 and a = 8, then b² = c² - a² = 289 - 64 = 225, so b = 15. This 8-15-17 triangle is another Pythagorean triple—a set of three whole numbers forming a right triangle.

Sine, Cosine, and Tangent: These ratios connect angles to side lengths. For any acute angle θ in a right triangle:

  • Sine (sin θ): opposite side ÷ hypotenuse
  • Cosine (cos θ): adjacent side ÷ hypotenuse
  • Tangent (tan θ): opposite side ÷ adjacent side

SOH-CAH-TOA: This mnemonic helps remember the ratios. For a triangle with angle θ, opposite side 5, adjacent side 12, and hypotenuse 13: sin θ = 5/13 ≈ 0.385, cos θ = 12/13 ≈ 0.923, tan θ = 5/12 ≈ 0.417. The angle θ = arcsin(0.385) ≈ 22.6°.

Inverse Trigonometric Functions: When you know side ratios but need the angle, use inverse functions. If opposite = 7 and hypotenuse = 10, then sin θ = 0.7, so θ = arcsin(0.7) ≈ 44.4°. Calculators label these as sin⁻¹, cos⁻¹, and tan⁻¹. The other acute angle equals 90° - 44.4° = 45.6°.

Step-by-Step Guide: Solving Right Triangles

Step 1: Label the Triangle
Identify the right angle first—this determines which side is the hypotenuse. Label the hypotenuse as c (or h). Label one acute angle as θ (theta). The side opposite θ is "opposite," and the remaining side touching θ is "adjacent." Clear labeling prevents mixing up which ratio to use.

Step 2: List Known Values
Write down what you know. Perhaps you have two sides (a = 6, c = 10) or one side and one angle (b = 8, θ = 35°). You need at least two pieces of information to solve a right triangle—one must be a side length. Two angles alone won't determine size, only shape.

Step 3: Choose Your Method
Two known sides? Use the Pythagorean theorem. One side and one acute angle? Use trigonometric ratios. Two sides and need an angle? Use inverse trig functions. For a = 6 and c = 10: b² = 10² - 6² = 100 - 36 = 64, so b = 8. This is a 6-8-10 triangle (scaled 3-4-5).

Step 4: Apply the Pythagorean Theorem
When finding the hypotenuse: c = √(a² + b²). When finding a leg: a = √(c² - b²). For legs 7 and 24: c = √(49 + 576) = √625 = 25. The 7-24-25 triangle is another Pythagorean triple. Always verify: 49 + 576 = 625 ✓.

Step 5: Use Trigonometric Ratios for Angles
With opposite = 9 and hypotenuse = 15: sin θ = 9/15 = 0.6. Use arcsin: θ = sin⁻¹(0.6) ≈ 36.9°. The other acute angle is 90° - 36.9° = 53.1°. With adjacent = 8 and opposite = 6: tan θ = 6/8 = 0.75, so θ = tan⁻¹(0.75) ≈ 36.9°.

Step 6: Verify Your Solution
Check that all three angles sum to 180° (90° + 36.9° + 53.1° = 180° ✓). Verify the Pythagorean theorem holds. Confirm trigonometric ratios are consistent: sin²θ + cos²θ should equal 1. For θ = 36.9°: (0.6)² + (0.8)² = 0.36 + 0.64 = 1 ✓.

Real-World Examples with Complete Calculations

Example 1: Ladder Safety
A 20-foot ladder leans against a wall with its base 6 feet from the wall. How high does it reach, and what angle does it make with the ground? Height: h = √(20² - 6²) = √(400 - 36) = √364 ≈ 19.08 feet. Angle: cos θ = 6/20 = 0.3, so θ = cos⁻¹(0.3) ≈ 72.5°. This exceeds the recommended 75° safety angle—the base should be farther out.

Example 2: TV Screen Dimensions
A 65-inch TV has a 16:9 aspect ratio. What are its actual width and height? Let width = 16x and height = 9x. By Pythagoras: (16x)² + (9x)² = 65². So 256x² + 81x² = 4,225, meaning 337x² = 4,225. Thus x² = 12.54, x ≈ 3.54. Width = 16 × 3.54 ≈ 56.6 inches, height = 9 × 3.54 ≈ 31.9 inches.

Example 3: Roof Pitch Calculation
A roof rises 8 feet over a horizontal run of 12 feet. What's the rafter length and roof angle? Rafter (hypotenuse): √(8² + 12²) = √(64 + 144) = √208 ≈ 14.42 feet. Angle: tan θ = 8/12 = 0.667, so θ = tan⁻¹(0.667) ≈ 33.7°. This is a "8 in 12" pitch, common in residential construction. Roofers express this as an 8/12 pitch.

Example 4: Navigation and Displacement
A ship sails 150 km east, then 200 km north. What's its straight-line distance from the starting point, and what bearing? Distance: d = √(150² + 200²) = √(22,500 + 40,000) = √62,500 = 250 km. Bearing angle from east: tan θ = 200/150 = 1.333, θ = tan⁻¹(1.333) ≈ 53.1°. The ship is 250 km away at a bearing of 53.1° north of east (or 36.9° east of north).

Example 5: Ramp Accessibility
ADA guidelines require wheelchair ramps to have a maximum slope of 1:12 (1 inch rise per 12 inches run). For a 30-inch rise, what ramp length is needed? Run = 30 × 12 = 360 inches = 30 feet. Ramp surface (hypotenuse): √(30² + 360²) = √(900 + 129,600) = √130,500 ≈ 361.25 inches ≈ 30.1 feet. Angle: tan θ = 1/12 = 0.0833, θ ≈ 4.76°—a gentle, accessible incline.

Common Mistakes to Avoid

Mistake 1: Adding Legs Instead of Using Pythagoras
A student has legs 5 and 12 and writes hypotenuse = 5 + 12 = 17. Wrong! The correct hypotenuse is √(25 + 144) = √169 = 13. The hypotenuse is always shorter than the sum of the legs (triangle inequality) but longer than either leg alone. This mistake violates the fundamental geometry of right triangles.

Mistake 2: Confusing Opposite and Adjacent
The labels "opposite" and "adjacent" depend on which acute angle you're using. For angle A, side a is opposite. For angle B, side a is adjacent. When calculating tan A = opposite/adjacent, make sure you're using sides relative to angle A, not angle B. Draw a small arc at your reference angle to avoid confusion.

Mistake 3: Calculator in Wrong Mode
Calculators work in degrees or radians. If you calculate arcsin(0.5) expecting 30° but get 0.524, your calculator is in radian mode. For geometry problems, use degree mode. Check before starting: sin(30) should equal 0.5. If it shows -0.988, you're in radian mode. Switch to DEG before computing angles.

Mistake 4: Applying Pythagoras to Non-Right Triangles
The Pythagorean theorem only works for right triangles. A triangle with sides 5, 6, 8 is not a right triangle (25 + 36 = 61, not 64). Using c² = a² + b² here gives wrong results. For non-right triangles, use the Law of Cosines: c² = a² + b² - 2ab·cos(C). Always verify the triangle has a 90° angle first.

Pro Tips for Right Triangle Mastery

Tip 1: Memorize Common Pythagorean Triples
These integer right triangles appear constantly: 3-4-5, 5-12-13, 8-15-17, 7-24-25, 20-21-29. Their multiples work too: 6-8-10, 9-12-15, 10-24-26. Recognizing these saves calculation time. When you see legs 21 and 28, instantly know hypotenuse is 35 (it's 7 × the 3-4-5 triple). Test questions often use these.

Tip 2: Know Special Angle Triangles
Two right triangles have exact trigonometric values. The 45°-45°-90° triangle has sides in ratio 1:1:√2. The 30°-60°-90° triangle has sides 1:√3:2 (opposite 30° : opposite 60° : hypotenuse). For hypotenuse 10 in a 30°-60°-90° triangle: short leg = 5, long leg = 5√3 ≈ 8.66. No calculator needed.

Tip 3: Use the Geometric Mean Theorems
When you draw an altitude from the right angle to the hypotenuse, it creates similar triangles. The altitude equals the geometric mean of the two hypotenuse segments. Each leg equals the geometric mean of the hypotenuse and its adjacent segment. These relationships solve problems where the altitude is involved without trigonometry.

Tip 4: Estimate to Catch Errors
The hypotenuse must be longer than either leg but shorter than their sum. For legs 9 and 10, hypotenuse must be between 10 and 19. Actual value √181 ≈ 13.45 fits this range. If you calculate 25 or 8, something's wrong. Similarly, sine and cosine must be between 0 and 1; tangent can exceed 1 but should be positive for acute angles.

Tip 5: Apply Complementary Angle Relationships
The two acute angles in a right triangle sum to 90°. This means sin(θ) = cos(90° - θ) and tan(θ) = cot(90° - θ). If sin(35°) = 0.574, then cos(55°) = 0.574. Use this to find one angle when you know the other, or to verify calculations. It's also useful when your calculator lacks certain inverse functions.

Frequently Asked Questions

No, it applies exclusively to right triangles. For triangles without a 90° angle, use the Law of Cosines: c² = a² + b² - 2ab·cos(C). When angle C equals 90°, cos(90°) = 0, and the formula reduces to the Pythagorean theorem. The Law of Cosines is essentially the Pythagorean theorem with a correction term for non-right angles.

Yes—these are Pythagorean triples. The smallest is 3-4-5. There are infinitely many triples, generated by formulas like a = m² - n², b = 2mn, c = m² + n² for integers m > n. For m = 2, n = 1: a = 3, b = 4, c = 5. For m = 3, n = 2: a = 5, b = 12, c = 13. Ancient Greeks studied these extensively.

The largest side lies opposite the largest angle. In a right triangle, the 90° angle is the largest (the other two must be acute, summing to 90°). Therefore, the side opposite the right angle—the hypotenuse—must be the longest. This follows from the fundamental relationship between angles and opposite sides in any triangle.

Knowing only angles determines the triangle's shape but not its size. A 30°-60°-90° triangle could have sides 1-√3-2, or 10-10√3-20, or any scaled version. You need at least one side length to find actual dimensions. This is why triangle congruence requires at least one side (ASA, AAS, SAS, or SSS—not AAA).

Written and reviewed by the CalcToWork editorial team. Last updated: 2026-04-29.

Frequently Asked Questions

15% of 200 is 30. Calculated as 200 × 15 / 100 = 30.
Percentage change = ((final − initial) / |initial|) × 100. From 80 to 100 it is (20/80)×100 = 25%.
The Pythagorean theorem states that in a right triangle, c² = a² + b², where c is the hypotenuse and a, b are the legs.
If A corresponds to B, and we want what corresponds to C: X = (B × C) / A.