Skip to content

Pythagorean Theorem Calculator

Popular
Calculators•Client-Side & Private

Solve right-triangle sides with the Pythagorean theorem (a² + b² = c²): hypotenuse, missing legs, exact radicals, area, perimeter, and angles.

Tool workspace

Right Triangle Parameters

Select which side to solve for using a² + b² = c².

Right Triangle Geometry
Solved Side (C)
5

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

Triangle Area
6

0.5 × a × b

Perimeter
12

a + b + c

Altitude (hc)
2.4

(a × b) / c

Angle α (Opposite leg a)
36.8699°
0.6435 rad
Angle β (Opposite leg b)
53.1301°
0.9273 rad

Solution Derivation

Step-by-step application of the Pythagorean Theorem.

Fundamental theorem: a² + b² = c²
Formula: c = √(a² + b²)
c = √(3² + 4²) = √(9 + 16) = √25 ≈ 5.0000

The Pythagorean Theorem

a² + b² = c², so c = √(a² + b²)

Where:

  • a, bPerpendicular Legs — The two sides meeting at the 90° right angle
  • cHypotenuse — The longest side opposite the right angle
  • h_cAltitude / Height — Perpendicular drop from right vertex to hypotenuse = (a × b) / c

Worked Example: Right Triangle with Legs 3 and 4

Example Scenario: Determine hypotenuse c and exact geometric dimensions of a right triangle with legs a = 3 and b = 4.

1Square Both Legs
a2 = 32 = 9, b2 = 42 = 16

Square the known side lengths according to Euclidean geometry.

2Sum the Squares
a2 + b2 = 9 + 16 = 25

Sum the squares to obtain the radicand of hypotenuse c².

3Extract the Square Root
c = √25 = 5

25 is a perfect square, yielding exact integer hypotenuse 5 (3-4-5 triple).

4Calculate Area and Perimeter
Area = 12 × 3 × 4 = 6, Perimeter = 3 + 4 + 5 = 12

Area is half base times height; perimeter is the sum of all three boundaries.

Final Calculated Result:Hypotenuse c = 5 (Area: 6, Perimeter: 12)

Loading tool controls…

Calculations processed locally — numerical inputs never leave your browser
Free Instant Private

Verify it yourself: press F12, open the Network tab, and use this tool — your inputs never leave your browser.

Pythagorean Theorem Calculator at a glance

Price
Free
Account
Not required
File uploads
None — your files are never uploaded
Category
Calculators

Who uses Calculators?

Students, homeowners and small businesses working out money, health or study figures — from mortgages to BMI.

How to Use Pythagorean Theorem Calculator

Follow these simple steps to get instant results in your browser.

1

Choose Target Side

Select whether to solve for Hypotenuse c, Leg a, or Leg b.

2

Enter Known Side Lengths

Input two positive side lengths.

3

Examine Geometry & Radicals

Inspect the solved side, exact radical form, area, perimeter, and angles.

💡

What is Pythagorean Theorem Calculator & How Does It Work?

The Pythagorean Theorem (a² + b² = c²) is one of the most fundamental formulas in geometry, physics, and construction. It relates the three sides of any Euclidean right triangle.

PixelTools Pythagorean Theorem Calculator solves for the hypotenuse or either leg with exact simplified radical notation (e.g. 5√2), acute angles, perimeter, area, and altitude, accompanied by an interactive SVG triangle visualizer.

⚡

Key Features & Capabilities

✓

Exact Radical Simplification

Presents square root answers in simplified radical form (e.g., √50 = 5√2).

✓

Complete Geometry Profile

Calculates area, perimeter, altitude to hypotenuse, and acute angles.

✓

Interactive SVG Diagram

Displays an SVG right triangle with labeled sides and right-angle box.

✓

Step-by-Step Derivation

Explains square sum or difference operations with full numerical proofs.

Pro Tips

  • •Bookmark this tool for instant one-click access anytime.
  • •Adjust values using direct input or sliders for instantaneous recalculation.
  • •All processing happens in your browser session for maximum speed and data safety.

🎯 Common Use Cases

Construction & Framing SquaringVerify 90-degree square corners on foundations and decks using the 3-4-5 rule.
Surveying & NavigationDetermine direct line-of-sight distance between north and east coordinate offsets.
Geometry & Physics HomeworkCheck textbook right-triangle problems with exact radical expressions.
Roof Rafter LengthA roof with a 12-foot horizontal run and a 5-foot rise needs a rafter of √(12² + 5²) = 13 feet — the 5-12-13 triangle in action.
📐

The Pythagorean Theorem

Formula Equation:
a2 + b2 = c2 ⟺ c = √a2 + b2, a = √c2 - b2

In any right triangle, the square of the hypotenuse equals the sum of the squares of the two shorter legs.

✏️

Worked Example

  1. 1Right triangle with legs a = 3 and b = 4
  2. 2c = √(3² + 4²) = √(9 + 16) = √25 = 5
  3. 3Area = (3 × 4) / 2 = 6 square units; perimeter = 3 + 4 + 5 = 12
  4. 4Solve for a leg: c = 13, b = 5 gives a = √(13² - 5²) = √(169 - 25) = √144 = 12
📚

Sources & Further Reading

Frequently Asked Questions about Pythagorean Theorem Calculator

Frequently asked questions

The Pythagorean Theorem states that in any right triangle with legs a and b and hypotenuse c, a² + b² = c². The square of the hypotenuse equals the sum of the squares of the two legs.

Rearrange the equation: a = √(c² - b²) or b = √(c² - a²). The hypotenuse c must always be strictly greater than either leg.

When the square root of a non-perfect square is calculated, rather than only displaying a rounded decimal, the calculator factors out the largest perfect square (e.g., √50 = √(25 × 2) = 5√2).

The calculator shows an error instead of a result. The hypotenuse must be strictly longer than either leg — for example, entering c = 5 with b = 13 gives “Hypotenuse c (5) must be strictly greater than leg b (13).”

For legs 5 and 12 with hypotenuse 13, the area is 30, the perimeter is 30, the altitude to the hypotenuse is about 4.62, and the acute angles are about 22.62° and 67.38°.

Complementary utilities for your workflow

View all →
You are here

Pythagorean Theorem Calculator

Solve right triangle hypotenuse or legs with exact radical simplification and geometric properties.

Current tool
Popular

Triangle Calculator

Solve triangle sides, angles, area, and inradius/circumradius.

Try tool
Popular

Fuel Cost Calculator

Calculate trip fuel costs, gas volume, and passenger expense splitting.

Try tool
Popular

ROI Calculator

Calculate total ROI %, annualized CAGR %, net profit, and investment multiples.

Try tool