yCalculator

Pythagorean Theorem Calculator

Last updated: June 2026

Missing side

5

Step-by-step working

  1. Use a^2 + b^2 = c^2.
  2. c^2 = 3^2 + 4^2 = 9 + 16 = 25
  3. c = sqrt(25) = 5

Common Pythagorean triples

TripleCheck
3-4-53^2 + 4^2 = 5^2
5-12-135^2 + 12^2 = 13^2
8-15-178^2 + 15^2 = 17^2
7-24-257^2 + 24^2 = 25^2

About this calculator

The Pythagorean Theorem Calculator finds the hypotenuse or a missing leg in a right-angled triangle. It is useful for homework, construction sketches, distance checks, diagonal measurements, and any problem where two sides of a right triangle are known.

Pythagorean theorem calculator method

The calculator uses a^2 + b^2 = c^2, where c is the hypotenuse and a and b are the two shorter sides. To find a leg, the formula is rearranged by subtracting the known leg squared from the hypotenuse squared.

  • a^2 + b^2 = c^2
  • c = sqrt(a^2 + b^2)
  • a = sqrt(c^2 - b^2)
  • b = sqrt(c^2 - a^2)

How to use the Pythagorean theorem calculator

  1. Choose whether you need the hypotenuse, side a, or side b.
  2. Enter the two known side lengths.
  3. Check that c is the hypotenuse if you are finding a shorter side.
  4. Square the known sides.
  5. Add or subtract the squared values as required.
  6. Take the square root to get the missing side.

Worked examples

Classic 3-4-5 triangle

Input: a = 3, b = 4

Calculation: c = sqrt(3^2 + 4^2) = sqrt(25)

Result: c = 5

Find a shorter side

Input: b = 12, c = 13

Calculation: a = sqrt(13^2 - 12^2) = sqrt(25)

Result: a = 5

When Pythagoras applies

Pythagoras applies only to right-angled triangles. If the triangle does not contain a 90-degree angle, use the law of cosines or the general triangle calculator instead.

Common triples

Integer triples such as 3-4-5, 5-12-13, 8-15-17, and 7-24-25 are useful because they give exact whole-number right triangles.

Common mistakes to avoid

Using the wrong side label
Triangle formulas depend on matching sides with their opposite angles or with the correct right-triangle role. If a result looks impossible, recheck the labels before changing the formula.
Forgetting triangle validity
Not every set of side lengths can form a triangle. The longest side must be shorter than the sum of the other two sides.
Rounding too early
Keep extra decimal places while calculating, especially when using square roots, sine, cosine, or inverse trig. Round the final answer to the precision required.

Edge cases

  • A right triangle must have one angle of exactly 90 degrees.
  • The hypotenuse must be the longest side in a right triangle.
  • Special triangle ratios only apply to exact 30-60-90 and 45-45-90 triangles.
  • The sine rule can produce an ambiguous SSA case where two triangles are possible.

Limitations

This calculator is for educational maths support. It uses standard geometry and trigonometry formulas with decimal approximations. For exams, coursework, engineering, surveying, or construction, follow the required method, units, tolerances, and checking process.

Frequently asked questions

Which triangle calculator should I use?

Use Pythagoras or the right triangle calculator for right-angled triangles, special triangle calculators for exact 30-60-90 or 45-45-90 triangles, and the sine or cosine law calculators for non-right triangles.

What do sides a, b, and c mean?

In general triangle notation, side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. Some right-triangle pages also label c as the hypotenuse.

Why do triangle angles add to 180 degrees?

In ordinary flat Euclidean geometry, the interior angles of a triangle always add to 180 degrees. That rule is used throughout these calculators.

Can the calculator handle any units?

Yes for lengths, as long as all side inputs use the same unit. Area results are in square units based on the unit entered.

Why is my result impossible?

The inputs may not form a valid triangle, the hypotenuse may not be the longest side, or a side may have been paired with the wrong angle.

Related calculators

  • Right Triangle Calculator
  • SOHCAHTOA Calculator
  • Triangle Calculator

What does this mean?

This calculator is designed to help you understand the likely number before you make a decision or start an application.

Your result should be checked against official UK guidance, especially if your circumstances include dependants, exemptions, prior leave, or a complex immigration history.

Treat the figure as a planning tool rather than legal advice. Where the answer affects an application deadline or major payment, speak to an authorised adviser.

Related Math calculators

math calculators

Triangle Calculator

Solve any triangle using SSS, SAS, ASA, AAS, SSA, right triangle, and Pythagorean theorem modes

Calculate ->

math calculators

Area Calculator

Calculate the area of common 2D shapes with formula substitutions and unit conversions

Calculate ->

math calculators

Volume Calculator

Calculate the volume and surface area of common 3D shapes with full working and practical litre conversions

Calculate ->

You might also need

math calculators

Right Triangle Calculator

Calculate all sides, angles, area, and perimeter of a right triangle from two known values

Calculate ->

math calculators

SOHCAHTOA Calculator

Find missing sides or angles in right triangles using sine, cosine, and tangent

Calculate ->

math calculators

Triangle Calculator

Solve any triangle using SSS, SAS, ASA, AAS, SSA, right triangle, and Pythagorean theorem modes

Calculate ->