Pythagorean Theorem Calculator

Calculate the missing side of a right triangle using the Pythagorean theorem (a² + b² = c²). Find hypotenuse, legs, area, perimeter, angles, inradius, and circumradius.

Pythagorean Theorem Calculator

Side a (cm)
3.0000
First leg of the right triangle
Side b (cm)
4.0000
Second leg of the right triangle
Hypotenuse c (cm)
5.0000
Longest side, opposite the right angle
Perimeter (cm)
12.0000
Sum of all three sides: a + b + c
Area (cm²)
6.0000
½ × a × b — half the product of the two legs
Angle A (°)
36.8699
Angle opposite side a: arctan(a/b)
Angle B (°)
53.1301
Angle opposite side b: arctan(b/a)
Altitude to c (cm)
2.4000
Height from right-angle vertex to the hypotenuse
Inradius (cm)
1.0000
Radius of the inscribed circle: Area / s
Circumradius (cm)
2.5000
Radius of the circumscribed circle: c / 2

Side Comparison

Side a3.0000 cm
Side b4.0000 cm
Hypotenuse c5.0000 cm

Angle Breakdown

Angle A36.87°
Angle B53.13°
Right Angle90.00°
Common Pythagorean Triples
abcAreaPerimeter
3456.012
5121330.030
8151760.040
7242584.056
202129210.070
94041180.090
123537210.084
116061330.0132
138485546.0182
284553630.0126
335665924.0154
3677851,386.0198
2099101990.0220
60911092,730.0260
15112113840.0240
166365504.0144
Planning notes, formulas, and examples

About the Pythagorean Theorem Calculator

The Pythagorean theorem is one of the most fundamental relationships in all of mathematics. Stated simply, for any right triangle the square of the hypotenuse equals the sum of the squares of the other two sides: a² + b² = c². This elegant formula, attributed to the ancient Greek mathematician Pythagoras (though known earlier in Babylon and India), underpins geometry, trigonometry, physics, and engineering. Our Pythagorean Theorem Calculator lets you enter any two sides of a right triangle and compute the third, along with area, perimeter, both acute angles, the altitude to the hypotenuse, the inradius of the inscribed circle, and the circumradius. Eight classic Pythagorean triple presets — from the famous 3-4-5 to 28-45-53 — help you explore integer-sided right triangles with a single click. A reference table lists 16 primitive triples with their areas and perimeters, while interactive comparison bars give you an at-a-glance visual of side proportions and angle breakdown. Whether you are a student checking homework, a carpenter cutting rafters, or a developer computing distances, the page returns the triangle values with configurable decimal precision and six unit options.

When This Page Helps

Pythagorean Theorem problems often require several dependent steps, and a small arithmetic slip can propagate through every derived value. This calculator is tailored to that workflow: you enter side a (value), side b (value), hypotenuse c (value), and it returns angle a (°), angle b (°) in one consistent pass. It is useful for homework checks, worksheet generation, tutoring walkthroughs, and fast field/design estimates where you need reliable geometry results without rebuilding the full derivation each time.

How to Use the Inputs

  1. Choose what you want to solve for: hypotenuse (c), side a, or side b.
  2. Enter the two known sides in the input fields (any positive numbers).
  3. Optionally select a measurement unit and decimal precision.
  4. Click a preset button to load a classic Pythagorean triple.
  5. Read all computed properties — sides, area, perimeter, angles, radii, and altitude — in the output grid.
  6. Expand the reference table to browse 16 common Pythagorean triples.
Formula used
c = √(a² + b²) | a = √(c² − b²) | b = √(c² − a²) Area = ½ × a × b Perimeter = a + b + c Angle A = arctan(a / b) | Angle B = arctan(b / a) Altitude to c = (a × b) / c Inradius = Area / s (s = perimeter / 2) Circumradius = c / 2

Example Calculation

Result: 3 and b = 4: c = √(9 + 16) = √25 = 5 Area = ½ × 3 × 4 = 6 Perimeter = 3 + 4 + 5 = 12 Angle A = arctan(3/4) ≈ 36

Given a = 3 and b = 4: c = √(9 + 16) = √25 = 5 Area = ½ × 3 × 4 = 6 Perimeter = 3 + 4 + 5 = 12 Angle A = arctan(3/4) ≈ 36.87° Angle B ≈ 53.13° Altitude to c = 6 / 5 = 2.4 Inradius = 6 / 6 = 1 Circumradius = 5 / 2 = 2.5

Tips & Best Practices

  • If c must be an integer, look for Pythagorean triples — use the reference table for common ones.
  • The circumradius of every right triangle is always exactly half the hypotenuse.
  • Multiply any triple (e.g. 3-4-5) by a constant to get larger similar right triangles (6-8-10, 9-12-15, etc.).
  • For quick distance calculations in 2D, the Pythagorean theorem gives √((x₂−x₁)² + (y₂−y₁)²).
  • The altitude to the hypotenuse equals the geometric mean of the two hypotenuse segments.

Right Triangle Geometry: Beyond c² = a² + b²

The Pythagorean theorem is the entry point, but a right triangle encodes far more information. Once you know two sides, every other measurement follows — the hypotenuse or missing leg, the two acute angles via arctangent, the area as half the product of the legs, and the perimeter as the sum of all three sides. The **altitude to the hypotenuse** h = a·b / c creates two smaller triangles that are each similar to the original, giving a powerful tool for proofs and for calculating the altitudes, medians, and angle bisectors of the original triangle.

The acute angles satisfy A + B = 90°, so knowing one immediately fixes the other. Angle A = arctan(a/b) and B = arctan(b/a) = 90° − A. These relationships connect trigonometry directly to the Pythagorean theorem: sin A = a/c, cos A = b/c, tan A = a/b, and the identity sin²A + cos²A = 1 is just the Pythagorean theorem rewritten in trigonometric notation.

Three Solve Modes

The calculator supports three solve modes: **find hypotenuse** (given legs a and b), **find leg a** (given leg b and hypotenuse c), and **find leg b** (given a and c). In find-leg mode the formula rearranges to a = √(c² − b²), which requires c > b for a valid triangle. Entering equal values for a leg and the hypotenuse (c = b) would yield a degenerate triangle with zero area — the calculator flags this.

Applications in Construction, Navigation, and Engineering

Right triangle calculations appear in every construction project: checking that a wall is plumb, setting out a building's footprint, cutting roof rafters to the correct length and angle. A **3-4-5 triangle** or any Pythagorean triple lets builders verify square corners without a protractor — if the measured diagonal equals c, the angle is exactly 90°. In **navigation**, the straight-line distance between two map coordinates is the hypotenuse of a right triangle whose legs are the north-south and east-west displacement. In **electrical engineering**, the magnitude of a complex impedance Z = √(R² + X²) is a direct application of the theorem.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • It states that in a right triangle, the square of the hypotenuse (c) equals the sum of the squares of the two legs (a and b): a² + b² = c².