Pythagorean Theorem Calculator

Solve a squared plus b squared equals c squared for any side of a right triangle, with the area, perimeter, and angles included.

By Mateo Díaz · Last updated: July 19, 2026

Pythagorean theorem calculator

Quick triples

Tap a side to solve for it - the dashed side is the one being calculated.

Hypotenuse c
5
Perimeter
12
Area
6
Angle opposite leg a
36.87°
Angle opposite leg b
53.13°

c = √(3² + 4²) = √25 = 5

Guide

Enter any two sides of a right triangle above and the calculator solves the third, redrawing the triangle to scale as you type. Tap a side of the diagram to solve for it, hit a quick-triple button to load a classic example, or toggle the squares view to see a2+b2=c2a^2+b^2=c^2 as areas with your own numbers.

Formula

a2+b2=c2a^2 + b^2 = c^2

You knowFormula for the missing side
Both legsc=a2+b2c=\sqrt{a^2+b^2}
Leg bb and hypotenusea=c2−b2a=\sqrt{c^2-b^2}
Leg aa and hypotenuseb=c2−a2b=\sqrt{c^2-a^2}

The hypotenuse cc is always the longest side; enter a leg that matches or beats it and the calculator flags the error instead of returning an imaginary number.

Two worked examples, using the same steps the substitution line shows:

c=32+42=25=5a=132−52=144=12c=\sqrt{3^2+4^2}=\sqrt{25}=5 \qquad a=\sqrt{13^2-5^2}=\sqrt{144}=12

Video walkthrough

Video: Pythagorean theorem - finding the length of the hypotenuse (Math with Mr. J)

Sources and further reading

FAQs