Right Triangle Calculator

Solve right triangles from two known values.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter two sides of a right triangle and leave the third at 0. Legs 6 and 8 give a hypotenuse of 10 and an area of 24.

How to use

1
Step 1
Enter the sides you know and leave the unknown side as 0.
2
Step 2
Press Calculate.
3
Step 3
Read the hypotenuse, both legs and the area.

How it works

The Pythagorean theorem links the sides: a² + b² = c². Given a leg and the hypotenuse, the other leg is √(c² − a²). The area is half the product of the legs.

c = √(a² + b²)      b = √(c² − a²)      Area = ½ab

Worked example

A leg and the hypotenuse

Input
leg b = 12, hypotenuse = 13, leg a = 0
Output
Leg a = 5, area = 30
Walkthrough
a = √(13² − 12²) = √(169 − 144) = √25 = 5. Area = ½ × 5 × 12 = 30.

Limitations

  • Enter exactly two sides and leave the third at 0. If you enter all three they must already form a right triangle, otherwise the tool shows an error.
  • A hypotenuse that is not longer than the given leg is impossible, and the tool shows the error "Hypotenuse must be longer than the given leg" instead of a number.

Questions

What is the hypotenuse of a right triangle with legs 6 and 8?
10.
What is the area of a 5-12-13 triangle?
30.
What is the other leg if one leg is 5 and the hypotenuse is 13?
The other leg is 12, since √(13² − 5²) = √144.
What if the hypotenuse is shorter than a leg, such as leg 6 and hypotenuse 5?
No such triangle exists, so the tool shows an error rather than a result.

Features

  • Any two sides
  • Area included
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • The Pythagorean theorem intro

    Khan Academy

    Introduces a²+b²=c² for right triangles—the same relation this calculator uses when solving for a missing side.

    Watch on YouTube
  • Area of triangles intuition

    Khan Academy

    Derives ½bh so triangle and area calculators make sense.

    Watch on YouTube
  • Pythagoras Theorem

    Math is Fun

    Shows legs and hypotenuse with worked examples. Pair it with the default 3-4-5 case on this page before switching to leg-hypotenuse mode.

  • Math is Fun

    Math is Fun

    Clear explainers that pair well with calculator-style tools.