← Math & statistics

Pythagorean theorem (right triangle) calculator

See a right triangle diagram and the three square area model side by side. Solve for any side, check if three sides form a right triangle, or find the distance between two points—always with exact radicals plus an optional decimal approximation.

The tool highlights a²+b²=c² visually and keeps your steps for copying as LaTeX or SVG. Calculations stay in your browser.

Other languages 日本語 | English | 简体中文 | 繁體中文 | Español | Português (Brasil) | Bahasa Indonesia | Français | हिन्दी | العربية
Solve for

We sort the largest value as c (hypotenuse) before checking a²+b²=c².

dx = x2 - x1, dy = y2 - y1, distance d = √(dx² + dy²).

How to use
  1. Pick a mode (solve, check, or distance).
  2. Enter two sides or two points; example chips fill them for you.
  3. Results, diagrams, and steps update automatically. Copy the URL, LaTeX, or SVG for class use.
Display & accessibility settings

Results

Enter two sides to solve for the third, or load an example.

Exact radicals are kept internally; decimals are for display only.

Diagrams

Right triangle (a, b, c)
Right triangle diagram Shows legs a and b with a right angle and hypotenuse c.
Square area model (a², b², c²)
Area model for a² + b² = c² Three squares built on each side; a² and b² combine to c².

Steps

What this means

How to use this calculator effectively

Use this page when you know two sides of a right triangle and need the missing side, area, perimeter, altitude, angles, or a quick validity check.

How it works

The calculator applies a^2 + b^2 = c^2 and keeps full precision internally until the final display. Enter the two known sides, confirm that c is the hypotenuse, and use the steps to see each square, subtraction, and square-root operation.

When to use

It is useful for geometry homework, construction sketches, screen or diagonal measurements, and checking whether a side set forms a valid right triangle before using it elsewhere.

Common mistakes to avoid

Interpretation and worked example

For a 3-4-? triangle, the tool squares both legs, adds 9 + 16, and takes sqrt(25) = 5. If your computed c is shorter than a or b, re-check which side is the hypotenuse.

See also

FAQ

Which side is the hypotenuse?

The hypotenuse is opposite the right angle and is always the longest side. If your c is shorter than a or b, the triangle is impossible.

Why do we square the legs in a²+b²=c²?

Squaring converts each side length into the area of a square on that side. The two smaller square areas add up exactly to the big square on c.

Why does a square root appear at the end?

You add areas (a²+b²) first, then take the square root to get back to a length. That is why radicals show up in the answer.

How do I handle decimals or fractions?

Type 0.3 or 1/2. Internally we keep an exact fraction and only round for display, so you avoid accumulated error.

How strict is the right-triangle check?

Fractions are compared exactly. Decimal-only inputs use a tiny tolerance; the difference is shown so you can judge \"almost\" cases.

Is my input sent anywhere?

No. Everything runs locally, including the diagrams and exports.