Right Triangle Calculator

Choose which side to solve for, enter the other two, and get the missing side plus the area and both acute angles.

Solve for
—
a
—
b
—
c
—
Area
—
Perimeter
—
∠A
—
∠B
—
a² + b²
—
c²
—
Calculation
—

Use a decimal point. Enter two positive side lengths (≤ 10¹²; reduced decimal denominator ≤ 10²⁴); the selected unknown is ignored. All lengths use the same chosen unit; changing the unit relabels values without conversion, and areas use its square. The hypotenuse must be longer than the known leg. Input comparisons and squared terms are exact; lengths, area, perimeter and opposite angles A/B are approximate to 12 significant digits. Near 90°, an angle may round to 90°. Invalid input clears previous results.

How the Pythagorean theorem works

The Pythagorean theorem states that in a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides: a² + b² = c².

Once all three sides are known, the area is ½ × a × b (using the two legs as base and height), and the two acute angles can be found using inverse trigonometric functions — angle A = arcsin(a/c), with the other angle being 90° minus angle A, since all triangle angles sum to 180° and one angle is already 90°.

Frequently asked questions

What is the Pythagorean theorem used for?

It's used to find an unknown side of a right triangle when the other two are known — common in construction, navigation, and any situation involving right-angle measurements.

Which side is the hypotenuse?

The hypotenuse is always the longest side of a right triangle, located opposite the 90° angle.

What's a "Pythagorean triple"?

A Pythagorean triple is a set of three whole numbers that satisfy a² + b² = c², like 3-4-5 or 5-12-13 — useful for quick mental checks or examples since all three sides come out as clean integers.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Solve for = Hypotenuse c
a = 5
b = 12
c (cm): 13
Area (cm²): 30
Perimeter (cm): 30
∠A (°): 22.619864948
2
Solve for = Hypotenuse c
a = 1
b = 2
c (cm): 2.2360679775
Area (cm²): 1
Perimeter (cm): 5.2360679775
∠A (°): 26.5650511771
3
Solve for = Leg a
b = 7
c = 25
a (cm): 24
Area (cm²): 84
Perimeter (cm): 56
∠A (°): 73.7397952917

How we test our calculators →

Also try:

Back to category →