Beginner

Pythagoras Triangle Calculator — Solve Any Right Triangle

Enter any two sides of a right triangle and instantly find the third side, both acute angles, the area, perimeter, and the altitude from the right angle to the hypotenuse.
Leave blank to solve for a
Leave blank to solve for b
Longest side; leave blank to compute c
Hypotenuse c
5

Pythagorean triple — all three sides are whole numbers!

Leg a
3
Leg b
4
Hypotenuse c
5
Angle A (opposite a)
36.87 °
Angle B (opposite b)
53.13 °
Area
6
Perimeter
12
Altitude to hypotenuse
2.4
a² + b² = c²
Step by step
  1. 1

    Square leg a

    = 9
  2. 2

    Square leg b

    = 16
  3. 3

    Sum a² + b²

    9 + 16 = 25
  4. 4

    Hypotenuse c = √(a² + b²)

    √25 = 5
    The square root of the sum of squares gives the length of the hypotenuse.
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Enter any two sides of a right triangle. The calculator applies a² + b² = c² to find the missing side, then derives both acute angles (A = arcsin(a/c), B = 90°−A), the area (a·b/2), the perimeter (a+b+c), and the altitude to the hypotenuse (a·b/c). Pythagorean triples (integer sides) are flagged automatically.

Formula
c = √(a² + b²) • a = √(c² − b²) • Area = a·b / 2 • Altitude h = a·b / c
How this is calculated

The Pythagorean theorem states that in any right triangle, the square of the hypotenuse c equals the sum of the squares of the two legs a and b: a² + b² = c². The hypotenuse is always the side opposite the right (90°) angle and is always the longest side. Knowing any two sides determines the third uniquely.

Given two legs, c = √(a² + b²). Given the hypotenuse and one leg, the missing leg = √(c² − known_leg²). The calculator also detects whether all three sides are whole numbers — a Pythagorean triple such as (3, 4, 5) or (5, 12, 13). Both acute angles follow from the inverse sine: angle A = arcsin(a/c) and angle B = 90° − A.

The altitude drawn from the right-angle vertex perpendicular to the hypotenuse has length h_c = a·b / c. This altitude also creates two smaller right triangles that are similar to the original — a relationship used in geometric proofs and in computing the projections a·a/c and b·b/c of each leg onto the hypotenuse. All inputs must be in the same unit; outputs use the same unit for lengths and square units for area.

Frequently asked questions

Square both legs, add them, then take the square root: c = √(a² + b²). For example, with a = 3 and b = 4, c = √(9 + 16) = √25 = 5.

A Pythagorean triple is a set of three positive integers (a, b, c) that satisfy a² + b² = c², such as (3, 4, 5), (5, 12, 13), and (8, 15, 17). These represent right triangles with all whole-number sides.

It is the perpendicular distance from the right-angle vertex to the hypotenuse. Its length is h = a·b / c, and it is geometrically important because it divides the right triangle into two smaller triangles that are both similar to the original.

Also known as

pythagoras triangle calculator
right triangle solver all sides
pythagorean theorem calculator
find hypotenuse calculator
a squared plus b squared equals c squared
pythagorean triple checker
right angle triangle sides angles

APA

TG we-Calculate Editorial Team. (2026). Pythagoras Triangle Calculator — Solve Any Right Triangle [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/pythagoras-triangle-calculator

Chicago

TG we-Calculate Editorial Team. "Pythagoras Triangle Calculator — Solve Any Right Triangle." TG we-Calculate. 2026. https://we-calculate.com/calculator/pythagoras-triangle-calculator.

IEEE

TG we-Calculate Editorial Team, "Pythagoras Triangle Calculator — Solve Any Right Triangle," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/pythagoras-triangle-calculator

BibTeX

@misc{wecalculate_pythagoras_triangle_calculator, title = {Pythagoras Triangle Calculator — Solve Any Right Triangle}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/pythagoras-triangle-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?