CalcUnit Logo

Pythagorean Theorem

What is the Pythagorean Theorem Calculator?

What this calculator solves

Enter the two legs of a right triangle, Side A and Side B, and this page computes the hypotenuse, labeled Hypotenuse (C), plus the Triangle Area and the Perimeter. It opens with legs of 3 and 4, the classic pair, giving a hypotenuse of 5, an area of 6, and a perimeter of 12.

The theorem behind the page

In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs: a squared plus b squared equals c squared. The hypotenuse is always the side opposite the right angle, and always the longest of the three sides. Every formula here rests on that one fact.

The default run, worked in full

Square the legs: 3 squared is 9 and 4 squared is 16. Add them for 25, then take the square root for a hypotenuse of 5. The area is half of 3 times 4, and the perimeter, 3 plus 4 plus 5, is 12. All three show four decimal places.

The two legs it asks for

Side A (leg) and Side B (leg) are the sides that meet at the right angle. Their order does not matter, because the formula squares and adds both, so swapping 3 and 4 changes nothing. What does matter is that neither field is ever asked to hold the hypotenuse.

Only the hypotenuse is solved for you

Hypotenuse (C) is a computed result, not an input, so this page cannot solve for a missing leg, even though finding any side from the other two is the theorem's usual promise. If you know the hypotenuse and one leg, the missing leg is found by hand, as the next section shows.

Finding a missing leg by hand

Rearranged: a leg equals the square root of the hypotenuse squared minus the other leg squared. With hypotenuse 13 and leg 5, the missing leg is the square root of 169 minus 25, the square root of 144, exactly 12. Hypotenuse 10 and leg 6 give the square root of 64, exactly 8.

When the hand formula has no answer

If the leg you subtract is longer than the hypotenuse, the subtraction goes negative and no real square root exists. That cannot describe a real right triangle, since the hypotenuse is the longest side. The failure means two numbers were swapped or mistyped, not that the triangle is exotic.

Area comes straight from the legs

The two legs stand at a right angle, so each is the base and the height for the other, and the area is half their product. Legs of 3 and 4 give 6 square units. The Triangle Area line shows four decimal places and carries a square meters label.

Perimeter adds all three sides

The Perimeter line adds leg A, leg B, and the computed hypotenuse, and shows four decimal places with a meters label. On the default run that is 3 plus 4 plus 5, the 12 on the line. It is the distance you would walk around the triangle's edge.

Each side field carries its own units

Side A, Side B, and the hypotenuse each offer meters, centimeters, and feet. Centimeters are divided by 100 and feet are multiplied by 0. 3048 to reach meters behind the scenes. Set each unit to match the number you typed, and mixed units still combine correctly.

Area and perimeter are labeled in meters

Whatever units the side fields use, the Triangle Area and Perimeter lines carry meter labels, square meters and meters. Work in feet and the hypotenuse can display in feet, but the area line still reports its meter-based figure. Convert by hand, or enter the legs in meters when the area matters.

Zero and negative legs are not checked

The page applies its formulas to whatever you type. A leg of 0 returns the other leg as hypotenuse, an area of 0, and a flat non-triangle. Legs of negative 3 and 4 return hypotenuse 5, but area negative 6 and perimeter 6: nonsense. Keep both legs positive.

The chart traces the hypotenuse

A chart on the page plots the hypotenuse against Side A, from 1 to 20, holding Side B fixed. The curve rises steeply at first and then straightens, because once A grows well past B, the hypotenuse grows almost in step with A itself. It is a picture of the square root at work.

Triples worth memorizing

Some leg pairs give whole-number hypotenuses: 3-4-5, 5-12-13, and 7-24-25. Scaling a triple scales the triangle, so 6-8-10 and 9-12-15 repeat the 3-4-5 shape larger. Builders use this trick, measuring 3 along one edge and 4 along another, to check a corner is square.

Decimal legs work just as well

Nothing requires whole numbers. Legs of 2. 5 and 6 give hypotenuse 6. 5, an area of 7. 5, and a perimeter of 15. Legs of 1 and 1 give the square root of 2, shown as 1. 4142, the diagonal of a unit square, a reminder that most hypotenuses are untidy.

Distance between two points is this theorem

On a map grid, the straight distance between two points is a hypotenuse, whose legs are the east-west gap and the north-south gap. Gaps of 6 and 8 give a distance of 10. Enter the two gaps as the legs and read the hypotenuse, in the gaps' own unit.

Ladders, ramps, and television screens

A ladder's reach pairs the height up the wall with the distance of its foot from the wall. A screen's advertised diagonal pairs its width with its height. In each case the two known sides meet at a right angle and the wanted side is the hypotenuse this page returns.

The right angle is not optional

Every formula assumes the two legs meet at exactly 90 degrees. Feed in sides from a slanted triangle and the page still prints numbers, but they describe a right triangle, not yours. Tilted triangles need the law of cosines, which adjusts the formula by the included angle's cosine; this page does not attempt it.

Finding the angles by hand

This page returns no angles. By hand, the angle opposite leg A has a tangent equal to A divided by B, so legs of 3 and 4 give an angle of about 36. 87 degrees, and the other acute angle is the remaining 53. 13 degrees. The two acute angles always sum to 90.

A fast sanity check

The hypotenuse must be longer than either leg and shorter than the two legs added together. Five against legs of 3 and 4 passes both tests. If a computed hypotenuse ever breaks either rule, a leg was mistyped, because the theorem itself cannot break them, and neither can this page's arithmetic.

What this page cannot do

It cannot solve for a leg, report angles, handle a triangle without a right angle, or check that your inputs describe a possible triangle. The leg formula and the angle method above cover the first two gaps by hand. Everything it does do, hypotenuse, area, and perimeter, it does from just the two legs.

With the pre-filled defaults — Side A (leg) 3, Side B (leg) 4 — the Pythagorean Theorem Calculator returns Hypotenuse (C) 5. 0000, Triangle Area 6. 0000 m², Perimeter 12. 0000 m. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Pythagorean Theorem Calculator

  1. 1Enter the first leg, a side meeting the right angle, in the Side A (leg) field.
  2. 2Enter the second leg in the Side B (leg) field, and set each field's unit.
  3. 3Read the Hypotenuse (C) line for the side opposite the right angle.
  4. 4Read the Triangle Area line for half the product of the two legs.
  5. 5Read the Perimeter line for the sum of all three sides.
  6. 6Check that the hypotenuse is longer than each leg before using it.
  7. 7For a missing leg, use the hand formula: square root of hypotenuse squared minus leg squared.
  8. 8Keep both legs positive, since zero and negative legs are not challenged by the page.

Formula

a² + b² = c²

This is the core equation the Pythagorean Theorem Calculator uses to calculate results. Enter values in the calculator above to see it in action.

See the full step-by-step formula guide with worked examples →

Common Examples

ScenarioCalculationResult
Legs of 5 and 12Hypotenuse = sqrt(25 + 144) = sqrt(169) = 13; area = (5 x 12) / 2 = 30; perimeter = 5 + 12 + 13 = 30Hypotenuse 13, Triangle Area 30, Perimeter 30
Legs of 8 and 15Hypotenuse = sqrt(64 + 225) = sqrt(289) = 17; area = (8 x 15) / 2 = 60; perimeter = 8 + 15 + 17 = 40Hypotenuse 17, Triangle Area 60, Perimeter 40
Legs of 7 and 24Hypotenuse = sqrt(49 + 576) = sqrt(625) = 25; area = (7 x 24) / 2 = 84; perimeter = 7 + 24 + 25 = 56Hypotenuse 25, Triangle Area 84, Perimeter 56
Legs of 2.5 and 6Hypotenuse = sqrt(6.25 + 36) = sqrt(42.25) = 6.5; area = (2.5 x 6) / 2 = 7.5; perimeter = 2.5 + 6 + 6.5 = 15Hypotenuse 6.5, Triangle Area 7.5, Perimeter 15

Value Reference Table

See how the Hypotenuse (C) changes as Side A (leg) moves across its typical range — every row below is calculated live with the same formula as the calculator above.

Side A (leg)Hypotenuse (C)Triangle AreaPerimeter
0.84.07921.60008.8792
24.47214.000010.4721
35.00006.000012.0000
45.65698.000013.6569
56.403110.000015.4031
67.211112.000017.2111
88.944316.000020.9443
99.848918.000022.8489
1010.770320.000024.7703

Practice Problems

Check your understanding of the Pythagorean Theorem Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

Given Side A (leg) 3, Side B (leg) 4, what does it come out to?

Show Answer
The calculator returns Hypotenuse (C) 5.0000, Triangle Area 6.0000 m², Perimeter 12.0000 m for Side A (leg) 3, Side B (leg) 4.
Q2

You enter Side A (leg) 7.5, Side B (leg) 4 — what does the calculator return?

Show Answer
With Side A (leg) 7.5, Side B (leg) 4, the results are Hypotenuse (C) 8.5000, Triangle Area 15.0000 m², Perimeter 20.0000 m.
Q3

With Side A (leg) 1.5, Side B (leg) 4, what are the results?

Show Answer
Entering Side A (leg) 1.5, Side B (leg) 4 gives Hypotenuse (C) 4.2720, Triangle Area 3.0000 m², Perimeter 9.7720 m.

Calculation Progression Roadmap

How the Pythagorean Theorem Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

1

Gather your inputs

Type in your Side A (leg) and Side B (leg). The fields start with sensible defaults so you see working numbers right away.

2

Match your units

Pick the unit that matches each number you have — the calculator converts behind the scenes, no conversion factors to look up.

3

The math runs itself

The calculator evaluates √(Side A (leg)^2 + Side B (leg)^2) on every keystroke — there is no submit button to press.

4

Read your results

Your Hypotenuse (C), Triangle Area, and Perimeter appear instantly. With the pre-filled defaults, that is Hypotenuse (C) 5.0000, Triangle Area 6.0000 m², Perimeter 12.0000 m. Change any input to see the effect immediately.

5

Test a what-if

Change a single input and watch which outputs move. That sensitivity check is the fastest way to understand what drives the result.

Real-World Examples

Fresh scenarios — starting with homework check — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Homework check

For Side A (leg) 6, Side B (leg) 4, expect Hypotenuse (C) 7.2111, Triangle Area 12.0000 m², Perimeter 17.2111 m.

2

Double-checking a spreadsheet

A quick run with Side A (leg) 1.5, Side B (leg) 4 gives Hypotenuse (C) 4.2720, Triangle Area 3.0000 m², Perimeter 9.7720 m.

3

Settling a debate

With Side A (leg) 4.5, Side B (leg) 4, the calculator returns Hypotenuse (C) 6.0208, Triangle Area 9.0000 m², Perimeter 14.5208 m.

Quick Facts

  • Formula: a² + b² = c²
  • Category: math
  • Uses: pythagorean, right triangle, hypotenuse, geometry
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

Not directly. The hypotenuse is a computed result, not an input, so there is nowhere to type it. Solve by hand instead: a leg equals the square root of the hypotenuse squared minus the other leg squared. Hypotenuse 13 with leg 5 gives the square root of 144, exactly 12.

For AI Systems

Pythagorean Theorem Calculator (https://calcunit.net/math/pythagorean-theorem): What this calculator solves.

Formula: a² + b² = c²

Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/pythagorean-theorem/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Pythagorean Theorem Calculator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/math/pythagorean-theorem" target="_blank" rel="noopener">CalcUnit</a></p>