Right Triangle Calculator

Last updated: 2026-09-09

Right Triangle Calculator — Calculates the missing side, area, and perimeter of a right triangle from two known values.
Inputs
Result
Enter values and press Calculate
Common Examples — Click to Fill
Leg ALeg BHypotenuse
Ladder against wall 435
TV screen diagonal 16918.36
Ramp for wheelchair 60.56.02
Roof pitch check 12513

TL;DR: To calculate a right triangle, apply the Pythagorean theorem (a² + b² = c²) to find the missing side when you know the other two, then compute the area as (a × b) / 2 and the perimeter as the sum of all three sides, where a and b are the legs (catetos) and c is the hypotenuse.

What Is the Right Triangle Calculator?

A right triangle calculator is a practical tool that solves for any missing side, the area, and the perimeter of a right-angled triangle when you input at least two known side lengths. Unlike a general triangle solver, this tool specifically handles triangles where one angle is exactly 90 degrees, which simplifies all calculations to the Pythagorean theorem and basic arithmetic.

This calculator is essential for construction workers determining roof pitches, DIY enthusiasts building furniture, students completing geometry homework, and engineers verifying structural dimensions. For example, if you need to know the length of a diagonal brace for a rectangular frame, or you want to find the distance across a corner lot, this tool provides instant, accurate results without manual formula manipulation.

The key advantage of using this calculator over manual math is speed and error reduction. You input two known values — typically two legs (catetos) or one leg and the hypotenuse — and the tool instantly returns the missing side, the enclosed area, and the total perimeter. This works flawlessly for common scenarios like the 3-4-5 triangle, but also for any other right triangle dimensions you encounter.

How to Use the Calculator

Using the right triangle calculator is straightforward. Follow these numbered steps to get your results immediately:

  1. Identify which two sides you already know. Look at your triangle and determine if you have both legs (cateto_a and cateto_b), or one leg and the hypotenuse. Do not proceed until you are certain which sides are given.
  2. Enter the first known side length. Input the value for either cateto_a (one of the two shorter sides) or the hipotenusa (the longest side opposite the right angle) into the corresponding input field. Use the same unit of measurement for all inputs.
  3. Enter the second known side length. Input the other known value — if you entered cateto_a, now enter either cateto_b or the hipotenusa. Ensure both values are positive numbers greater than zero.
  4. Verify your inputs. Double-check that the hypotenuse value (if entered) is larger than any individual leg value. If your hypotenuse is smaller than a leg, you have entered incorrect data.
  5. Click the calculate button. The calculator will instantly apply the Pythagorean theorem to find the missing side, compute the area using (cateto_a × cateto_b) / 2, and sum all three sides for the perimeter.
  6. Read your results. The output will display all three side lengths (hipotenusa, cateto_a, cateto_b), the area in square units (m² if you used meters), and the perimeter. Compare these values to your expectations for validation.

Formula and Calculation Method

The right triangle calculator relies on the Pythagorean theorem, a fundamental geometric principle that has been used for over 2,500 years. This theorem states that in any right-angled triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides.

The core formula is expressed as:

c² = a² + b²

Where c is the hypotenuse, and a and b are the two legs (catetos) that meet at the right angle. To find the missing side, you rearrange the equation:

  • To find the hypotenuse: c = √(a² + b²)
  • To find a missing leg: a = √(c² − b²) or b = √(c² − a²)

Once all three sides are known, the calculator then computes the area and perimeter. The area is simply half the product of the two legs: Area = (a × b) / 2. The perimeter is the sum of all three sides: Perimeter = a + b + c.

Worked Example with Real Numbers: Consider a right triangle with catetos (legs) of 3 meters and 4 meters. First, calculate the hypotenuse: c = √(3² + 4²) = √(9 + 16) = √25 = 5 meters. Now the area: (3 × 4) / 2 = 12 / 2 = 6 square meters. Finally, the perimeter: 3 + 4 + 5 = 12 meters. The calculator returns: hipotenusa = 5 m, cateto_a = 3 m, cateto_b = 4 m, area = 6 m², perimeter = 12 m.

Practical Examples

Here are three realistic scenarios demonstrating the calculator's versatility across different use cases:

Scenario Inputs Missing Side Area Perimeter
Roof Rafter Length Cateto_a = 6 m, Cateto_b = 8 m Hipotenusa = √(36 + 64) = 10 m (6 × 8) / 2 = 24 m² 6 + 8 + 10 = 24 m
Ladder Against Wall Cateto_a = 5 m, Hipotenusa = 13 m Cateto_b = √(169 − 25) = 12 m (5 × 12) / 2 = 30 m² 5 + 12 + 13 = 30 m
Tiny Triangle Verification Cateto_a = 1, Cateto_b = 1 Hipotenusa = √(1 + 1) ≈ 1.414 (1 × 1) / 2 = 0.5 units² 1 + 1 + 1.414 ≈ 3.414 units

In the roof scenario, a carpenter knows the horizontal run (6 m) and vertical rise (8 m) and needs the actual rafter length (10 m) to cut lumber. The area tells you the roof surface for material estimation. In the ladder example, you know how high the ladder reaches (5 m) and the ladder length (13 m) — the calculator reveals the distance from the wall to the ladder's base (12 m), critical for safety and stability checks.

Tips for Accurate Results

To get reliable outputs from the right triangle calculator, pay close attention to these critical details regarding input values and common pitfalls:

  • Never use negative or zero values. Side lengths are always positive real numbers. If you input 0 or a negative number, the Pythagorean theorem produces nonsensical results, and the calculator should reject them. Always double-check that your inputs are greater than zero.
  • Do not confuse catetos with the hypotenuse. The hypotenuse is always the longest side and sits directly opposite the 90-degree angle. If you accidentally swap a leg for the hypotenuse, your missing side calculation will be wrong. A quick validity check: input the hypotenuse as the largest number; if it is not, your data is flawed.
  • Apply the Pythagorean theorem correctly. A common mistake is calculating the hypotenuse as a + b instead of √(a² + b²). Remember that you must square each leg before adding, then take the square root. For finding a missing leg, you must subtract the square of the known leg from the square of the hypotenuse — never add them.
  • Maintain consistent units. If you input cateto_a in meters, cateto_b must also be in meters. Mixing centimeters and meters will yield a completely incorrect hypotenuse and area. Convert all measurements to a single unit before entering them.
  • Verify triangle validity. For any triangle, the sum of any two sides must exceed the third side. In a right triangle, this means the hypotenuse must be longer than each leg but shorter than the sum of both legs. If your inputs violate this, you do not have a valid right triangle.

Frequently Asked Questions

1. How do I find the hypotenuse if I only know the two catetos (legs)?

To find the hypotenuse when you know both legs, use the direct form of the Pythagorean theorem: c = √(a² + b²). Take your cateto_a, square it, add it to the square of cateto_b, then take the square root of that sum. For example, with catetos of 9 and 12 units, the calculation is c = √(81 + 144) = √225 = 15 units. This works for any right triangle, regardless of size, as long as the 90-degree angle is confirmed. The calculator performs this automatically when you enter both cateto_a and cateto_b.

2. Can I calculate the area if I only know the hypotenuse and one cateto?

Yes, but you must first find the missing cateto before calculating the area. If you know the hypotenuse (c) and one leg (a), find the other leg using b = √(c² − a²). Then apply the area formula: (a × b) / 2. For instance, with a hypotenuse of 10 and a cateto of 6, the missing leg is √(100 − 36) = √64 = 8. The area is then (6 × 8) / 2 = 24 square units. The calculator handles this two-step process automatically, so you just input the two known sides and receive the area immediately.

3. What is the difference between a cateto and the hypotenuse?

A cateto (plural: catetos) is one of the two shorter sides of a right triangle that meet to form the 90-degree right angle. The hypotenuse is the longest side, always positioned directly across from the right angle. The fundamental relationship is that the hypotenuse is always greater than either cateto, but less than their sum. In the classic 3-4-5 triangle, cateto_a = 3, cateto_b = 4, and the hypotenuse = 5. You can never have a right triangle where the hypotenuse equals or is smaller than a cateto — if your input suggests this, you have misidentified your sides and should re-examine your triangle.

Related Calculators