Right Triangle Calculator

Updated July 2026

Enter any two sides of a right triangle and this tool finds the third side with the Pythagorean theorem, then works out both non-right angles, the area and the perimeter. Everything runs privately in your browser.

For a right triangle, the Pythagorean theorem says a² + b² = c², where c is the hypotenuse. Enter any two sides to find the third, plus the angles, area and perimeter. For example, legs 3 and 4 give a hypotenuse of 5.
Fill in any two of the three boxes — the third is calculated. The hypotenuse must be the longest side.
Enter any two sides
Angle A (opposite a)
Angle B (opposite b)
Right angle
90°
Area
Perimeter
Hypotenuse

How this right triangle calculator works

A right triangle has one 90° angle. The two sides that meet at that corner are the legs, written a and b, and the longest side — the one opposite the right angle — is the hypotenuse, written c. The Pythagorean theorem ties them together: a² + b² = c².

Because you have one equation in three sides, knowing any two sides fixes the third. If you enter both legs, the tool computes the hypotenuse as c = √(a² + b²). If you enter a leg and the hypotenuse, it rearranges the formula to find the missing leg as √(c² − a²) — and checks that the hypotenuse really is longer than the leg, since otherwise no such triangle exists.

Once all three sides are known, the rest follows. The two non-right angles come from trigonometry: the angle opposite leg a is atan(a / b) (equivalently asin(a / c)), and the two non-right angles always sum to 90°. The legs are perpendicular, so they double as base and height, giving an area of ½ · a · b, and the perimeter is a + b + c.

Worked example: enter legs a = 3 and b = 4. The hypotenuse is √(3² + 4²) = √(9 + 16) = √25 = 5. Angle A = atan(3 / 4) ≈ 36.87°, angle B = atan(4 / 3) ≈ 53.13° (they add to 90°). The area is ½ · 3 · 4 = 6 and the perimeter is 3 + 4 + 5 = 12.

Some side lengths come out as whole numbers on all three sides. These are called Pythagorean triples, and they are handy for laying out or checking right angles without a protractor.

Triple (a-b-c)Leg aLeg bHypotenuse cCheck a² + b²
3-4-53459 + 16 = 25
5-12-135121325 + 144 = 169
8-15-178151764 + 225 = 289
7-24-257242549 + 576 = 625

Reference note: angles are shown in degrees and rounded for display. The Pythagorean theorem and these formulas apply only to right triangles — triangles with a 90° angle.

Frequently asked questions

What is the Pythagorean theorem?
It states that in a right triangle the square of the hypotenuse equals the sum of the squares of the two legs: a² + b² = c², where c is the side opposite the right angle and a and b are the two shorter sides.
How do I find the hypotenuse?
When you know both legs, the hypotenuse is the square root of the sum of their squares: c = √(a² + b²). For example, legs of 3 and 4 give a hypotenuse of √25 = 5.
How do I find a missing side of a right triangle?
If you know one leg and the hypotenuse, the other leg is √(c² − a²). The hypotenuse must be longer than either leg, otherwise the triangle is impossible.
How do I find the angles of a right triangle?
One angle is always 90°. For a non-right angle opposite leg a, use atan(opposite / adjacent) or asin(opposite / hypotenuse). The two non-right angles always add up to 90°.
What is a 3-4-5 triangle?
A right triangle whose sides are in the ratio 3:4:5, because 3² + 4² = 25 = 5². It is the simplest Pythagorean triple and is widely used to check or lay out right angles.
How do I calculate the area of a right triangle?
The two legs are perpendicular, so they act as base and height: area = ½ × a × b. For legs of 3 and 4 the area is ½ × 3 × 4 = 6.
⚡ Right Triangle Calculator — by larely ↗

Related tools

Ratio Calculator

Solve proportions, simplify ratios and scale them up or down.

GPA Calculator

Calculate your weighted GPA on the 4.0 scale from your courses and credit hours.

Resistor Color Code Calculator

Decode 4- and 5-band resistor color codes into resistance and tolerance.

Dilution Calculator

Solve C1V1 = C2V2 for stock dilutions and the solvent volume to add.

Ohm's Law Calculator

Solve for voltage, current, resistance or power from any two values.

Molar Mass Calculator

Compute the molar mass of any chemical formula with a per-element breakdown.

LCM and GCD Calculator

Find the least common multiple and greatest common divisor of any numbers.

Scientific Notation Converter

Convert numbers to and from scientific, E and engineering notation.

Slope Calculator

Find the slope, angle, distance and equation of a line from two points.

Speed, Distance & Time Calculator

Solve for speed, distance or time from the other two, in any units.

Density Calculator

Solve density = mass / volume for any of the three, with unit conversion.

Square Root Calculator

Find and simplify square roots, with perfect-square and radical form.

Browse all 251 free tools →