Free · 7 modes · Live steps · Exact radicals · Interactive diagrams

Pythagorean Theorem Calculator – Find a Missing Side

Find the missing side of any right triangle in seconds. Enter two known sides to calculate the hypotenuse or a missing leg, or use one side and an acute angle to solve the full triangle. Get a clear step-by-step Pythagorean theorem solution, a decimal answer, and a simplified exact radical whenever the result allows it. Use it as a hypotenuse calculator when both legs are known, or find a missing leg when you know the hypotenuse and the other leg. Explore triangle area, perimeter, angles, inradius, circumradius, draggable right-triangle diagrams, Pythagorean triples, trigonometry, advanced geometry, 2D distance and an orbitable 3D distance visual, plus batch calculations — all in one free online Pythagorean theorem calculator.
📐 Solve by sides or angles 🎯 Exact radicals 📊 Interactive diagram 🧮 All triangle centres 📏 Trig helper ⚡ Batch solver 🔒 100% in-browser

Pythagorean Theorem Calculator

Seven connected modes · live diagrams · exact and decimal answers
Switching between physical units converts entered measurements. “No unit” only hides the label.
Solved
Solved
Solved
Triples
Real world
Shape the triangleMove either slider or drag a vertex in the live diagram.

Slider and diagram edits use the two legs as inputs and recalculate the hypotenuse. You can still type any two sides above to solve a missing leg.

Recent calculations

No calculations yet.

Pythagorean Triples & Special Right Triangles Reference

Whole-number solutions to a² + b² = c², plus the two special triangles worth memorising

Common primitive Pythagorean triples

Triple (a, b, c)VerificationAcute anglesPerimeterAreaMultiples
3, 4, 59 + 16 = 2536.87° / 53.13°1266-8-10, 9-12-15, 12-16-20…
5, 12, 1325 + 144 = 16922.62° / 67.38°303010-24-26, 15-36-39…
8, 15, 1764 + 225 = 28928.07° / 61.93°406016-30-34, 24-45-51…
7, 24, 2549 + 576 = 62516.26° / 73.74°568414-48-50, 21-72-75…
20, 21, 29400 + 441 = 84143.60° / 46.40°7021040-42-58…
9, 40, 4181 + 1600 = 168112.68° / 77.32°9018018-80-82…
12, 35, 37144 + 1225 = 136918.92° / 71.08°8421024-70-74…
11, 60, 61121 + 3600 = 372110.39° / 79.61°13233022-120-122…
28, 45, 53784 + 2025 = 280931.89° / 58.11°12663056-90-106…
33, 56, 651089 + 3136 = 422530.51° / 59.49°15492466-112-130…

Special right triangles

TriangleAnglesSide ratioIf the short leg is x…Example
45-45-90
isosceles right
45° / 45° / 90°1 : 1 : √2both legs = x, hypotenuse = x√2legs 1, 1 → hyp √2 ≈ 1.4142
30-60-90
half equilateral
30° / 60° / 90°1 : √3 : 2short leg = x, long leg = x√3, hypotenuse = 2xshort leg 1 → long √3, hyp 2

Both special triangles fall straight out of the Pythagorean theorem. For 45-45-90, if both legs equal 1 then c = √(1 + 1) = √2. For 30-60-90, if the short leg is 1 then the long leg is √3 and c = √(1 + 3) = 2.

What this Pythagorean theorem calculator does

The Pythagorean theorem is the rule that ties the three sides of every right triangle together: the square of the longest side equals the sum of the squares of the two shorter sides. Written as an equation, a² + b² = c². It is the single most-used relationship in elementary geometry — and the one students, carpenters, surveyors and game developers reach for whenever they need a diagonal length.

This calculator does far more than plug numbers into one formula. It brings seven practical jobs into one right triangle calculator:

  • Solve — use it as a hypotenuse calculator or missing leg calculator: enter any two sides, or one side plus one angle, and get the answer with step-by-step working, exact radicals where possible, a draggable scaled diagram, adjustable side sliders, toggleable geometric overlays, and companion measurements.
  • Check — enter three side lengths and find out whether they form a right triangle, an acute triangle, an obtuse triangle, or no triangle at all, with the squares compared visually.
  • Triples — generate Pythagorean triples with Euclid's formula, browse every primitive triple up to c = 300, and send any of them straight into the solver.
  • Trig — all six trigonometric ratios of both acute angles, with the SOH CAH TOA ratios labelled, plus the Pythagorean identity sin² θ + cos² θ = 1 verified against your specific numbers.
  • Advanced — every geometric quantity of the triangle: area, perimeter, semiperimeter, inradius, circumradius, all three altitudes, all three medians, all three angle bisectors, and the coordinates of all four classical triangle centres (centroid, circumcentre, orthocentre, incentre).
  • Distance — calculate the distance between two points in 2D or 3D, follow the formula line by line, drag the 2D endpoints, and orbit, tilt, or zoom the 3D box visual.
  • Batch — paste a list of triangles and solve them all at once, with CSV export.

Everything runs in your browser. No sign-up, no upload, no server round trip.

Pythagorean theorem formula and its three rearrangements

In a right triangle, the two sides that meet at the 90° angle are called the legs (conventionally a and b), and the side opposite the right angle is the hypotenuse (c). The hypotenuse is always the longest side. The theorem states:

a² + b² = c²

Depending on which side is missing, the same equation rearranges into three working formulas. This is why a hypotenuse calculator and a missing leg calculator use the same theorem with different rearrangements:

c = √(a² + b²) ← find the hypotenuse a = √(c² − b²) ← find leg a b = √(c² − a²) ← find leg b

Two rules matter when you use the leg formulas. First, you must subtract the smaller square from the larger one — subtracting a² − c² instead of c² − a² gives a negative number under the root, which has no real answer. Second, the hypotenuse you enter must genuinely be longer than the leg you already know; if it is not, the triangle cannot exist.

Hypotenuse calculator: find side c

To find the hypotenuse, enter the two perpendicular legs and leave side c blank. The calculator squares each leg, adds the two results and takes the positive square root. This is the standard hypotenuse formula, c = √(a² + b²). For example, legs of 9 and 12 give c = √(81 + 144) = √225 = 15.

Missing leg calculator: find side a or b

To calculate a missing leg, enter the hypotenuse and the other leg, leaving the unknown leg blank. The calculator subtracts the known leg's square from the hypotenuse's square before taking the square root. For example, if c = 13 and a = 5, then b = √(169 − 25) = 12. The hypotenuse must be longer than the known leg.

When you know one side and one angle instead of two sides, the sides follow from the trigonometric definitions below — but the underlying geometry is still the same right triangle, and the Pythagorean theorem still relates the three sides once you have them.

How to use the calculator

The Solve tab is designed so that you never have to tell it which side you are looking for. It works out the target from whichever boxes you fill in — and if you know an angle rather than a second side, you can switch to Angle mode.

Solve by two sides

  1. Type any two sides. Enter values into leg a, leg b, or hypotenuse c — any combination of two. Leave the third box empty.
  2. Watch the result appear. The solved side is shown large, with the formula used, the decimal value, and an exact radical if one exists. The empty box gets a small note showing the solved value.
  3. Expand the steps. The step-by-step panel shows the theorem, the substitution, the squaring, the addition or subtraction, and the square root — exactly the working you would write by hand.
  4. Toggle diagram overlays. The interactive diagram shows the triangle to scale with the solved side highlighted. Add or remove the incircle, circumcircle, altitude to the hypotenuse, median to the hypotenuse, angle arcs, and all four classical centres. Zoom in and out with the buttons in the corner.
  5. Adjust unit and precision. Choose mm, cm, m, in, ft, yd, mi, km, or no unit. Changing between physical units converts the measurements already entered; the no-unit option removes the label without guessing a conversion.

Solve by one side and one angle

  1. Click One side + one angle at the top of the Solve tab.
  2. Enter the known side length and pick which side it is (leg a, leg b, or hypotenuse c).
  3. Enter the known acute angle in degrees or radians, and pick which angle it is (angle A opposite leg a, or angle B opposite leg b).
  4. The calculator computes the two unknown sides and the remaining angle from the trig ratios, then shows the full triangle in the same result card and diagram.

📌 Fill in all three sides? The calculator switches to verification mode. If your three sides satisfy a² + b² = c² it confirms it; if they do not, it tells you what the hypotenuse should be and by how much your figure is off. That is usually a typo, not a new geometry.

Worked examples

Example 1 — find the hypotenuse

A right triangle has legs of 3 cm and 4 cm. What is the hypotenuse?

c² = 3² + 4² c² = 9 + 16 c² = 25 c = √25 = 5 cm

The answer is exactly 5 — a whole number, because 3-4-5 is a Pythagorean triple. Every multiple of it works the same way: 6-8-10, 9-12-15, 30-40-50.

Example 2 — find a missing leg

A right triangle has a hypotenuse of 10 m and one leg of 6 m. What is the other leg?

b² = c² − a² b² = 10² − 6² b² = 100 − 36 b² = 64 b = √64 = 8 m

This is the 3-4-5 triangle scaled by 2, which is why the answer is a clean integer.

Example 3 — when the answer is not a whole number

Legs of 3 and 5:

c² = 9 + 25 = 34 c = √34 ≈ 5.8310

34 has no square factor, so √34 cannot be simplified — that is the exact answer. The decimal is a rounded approximation. The calculator shows both, and labels which is which.

Example 4 — an answer that simplifies

Legs of 2 and 6:

c² = 4 + 36 = 40 c = √40 = √(4 × 10) = 2√10 ≈ 6.3246

Here the largest perfect-square factor of 40 is 4, so the radical simplifies to 2√10. The calculator pulls out the largest square factor automatically — the same procedure you would do by hand.

Example 5 — decimals that land exactly

Legs of 2.5 and 6:

c² = 6.25 + 36 = 42.25 c = √42.25 = 6.5 exactly

Decimal inputs often produce exact decimal answers, and the calculator reports those as exact rather than as a rounded value.

Example 6 — solving from one side and one angle

A ramp has a horizontal run of 12 ft and rises at an angle of 14°. How long is the ramp surface (the hypotenuse), and how high does it rise?

cos(14°) = 12 / c → c = 12 / cos(14°) ≈ 12.367 ft sin(14°) = h / c → h = c · sin(14°) ≈ 2.992 ft tan(14°) = h / 12 → h = 12 · tan(14°) ≈ 2.992 ft

The ramp is about 12.367 ft long and rises about 2.992 ft. Using unrounded values, the theorem confirms the result: 12² + (12 tan 14°)² = (12 / cos 14°)² ≈ 152.9517.

The converse — right, acute, or obtuse?

The theorem runs in both directions. If three side lengths satisfy a² + b² = c² — where c is the longest side — then the triangle must be a right triangle. This is the converse of the Pythagorean theorem, and it is what the Check tab tests.

Sort the three sides so that a ≤ b ≤ c, then compare a² + b² with c²:

ComparisonTriangle typeLargest angleExample
a² + b² = c²Rightexactly 90°8, 15, 17 → 64 + 225 = 289
a² + b² > c²Acuteless than 90°5, 6, 7 → 25 + 36 = 61 > 49
a² + b² < c²Obtusegreater than 90°3, 4, 6 → 9 + 16 = 25 < 36
a + b ≤ cNot a triangle—2, 3, 9 → 2 + 3 < 9

The last row is the triangle inequality: any two sides of a triangle must add up to more than the third. If they do not, no triangle exists at all, and testing the Pythagorean relationship is meaningless. The Check tab tests the inequality first, before it says anything about right, acute or obtuse.

💡 Why the comparison works. Fix two sides of length a and b with a hinge between them. Opening the hinge widens the angle opposite the third side and lengthens that side. When the hinge is exactly at 90°, the third side is √(a² + b²). Open it further and the side grows past that value; close it and the side shrinks below it. That is the whole intuition behind the three cases.

Pythagorean triples

A Pythagorean triple is a set of three positive whole numbers that satisfy a² + b² = c² exactly, with no rounding. The smallest and most famous is 3-4-5: 9 + 16 = 25. A triple is primitive when the three numbers share no common factor other than 1 — 3-4-5 is primitive, while 6-8-10 is not, because it is simply 3-4-5 doubled.

Triples are not rare curiosities. Carpenters use the 3-4-5 ratio to square a corner: measure 3 units along one edge, 4 along the other, and adjust until the diagonal is exactly 5. If it is, the corner is a true 90°. The same trick, scaled up, lays out foundations, decks and fence lines.

Euclid's formula

Every primitive triple can be generated from two whole numbers m and n with m > n > 0:

a = m² − n² b = 2mn c = m² + n²

With m = 2 and n = 1: a = 4 − 1 = 3, b = 2 × 2 × 1 = 4, c = 4 + 1 = 5. With m = 3 and n = 2: a = 9 − 4 = 5, b = 12, c = 13. The triple is primitive when m and n are coprime and exactly one of them is even — which is why the Triples tab flags primitives.

To get every triple, primitive or not, multiply a primitive triple by any whole number k. That is why 3-4-5 generates 6-8-10, 9-12-15, 12-16-20 and infinitely many more.

The Triples tab works as a Pythagorean triples calculator: it applies Euclid's formula as you change m and n, then lists every primitive triple with c ≤ 300 so you can generate or look up a result without doing the arithmetic by hand.

Special right triangles

Two right triangles appear so often in textbooks and exams that they have their own shortcut rules. Both are direct consequences of the Pythagorean theorem.

TriangleAnglesSide ratioIf the short leg is x…
45-45-90
isosceles right triangle
45° / 45° / 90°1 : 1 : √2both legs = x, hypotenuse = x√2
30-60-90
half an equilateral triangle
30° / 60° / 90°1 : √3 : 2short leg = x, long leg = x√3, hypotenuse = 2x

Check the 45-45-90 case against the theorem: if both legs are 1, then c² = 1 + 1 = 2, so c = √2. Check the 30-60-90 case: if the short leg is 1, the long leg is √3, and c² = 1 + 3 = 4, so c = 2. Both fall straight out of a² + b² = c².

The calculator detects both patterns automatically and shows a badge when your triangle matches one, plus a badge when all three sides are integers (a Pythagorean triple).

Trigonometry and the Pythagorean identity

The Pythagorean theorem is the parent of every basic trigonometric ratio. For an acute angle θ in a right triangle, with opposite the leg across from θ and adjacent the leg touching θ:

sin θ = opposite / hypotenuse (SOH) cos θ = adjacent / hypotenuse (CAH) tan θ = opposite / adjacent (TOA)

Divide the theorem a² + b² = c² through by c² and substitute the definitions:

(a/c)² + (b/c)² = (c/c)² sin² θ + cos² θ = 1

That is the Pythagorean trigonometric identity — the same fact as the geometric theorem, expressed in trigonometric language. Dividing sin² θ + cos² θ = 1 by cos² θ gives tan² θ + 1 = sec² θ; dividing by sin² θ gives 1 + cot² θ = csc² θ. Both are Pythagorean identities by another name.

The Trig tab shows all six functions for both acute angles of your triangle and verifies sin² θ + cos² θ = 1 against your specific numbers.

💡 Why this identity matters. It lets you find sin θ from cos θ (and vice versa) with a single square root, without knowing the triangle. That is the single most-used identity in trigonometry, and it exists because the Pythagorean theorem does.

The four triangle centres

Every triangle has four classical centres. In a right triangle each has a clean closed-form location, which makes the right triangle a favourite example in geometry courses.

CentreDefinitionWhere it is in a right triangle
CentroidIntersection of the three mediansOne-third of the way from each vertex to the midpoint of the opposite side
CircumcentreIntersection of the perpendicular bisectorsThe midpoint of the hypotenuse — that is why the hypotenuse is a diameter of the circumcircle
OrthocentreIntersection of the three altitudesThe right-angle vertex itself — because the two legs are already perpendicular
IncentreIntersection of the three angle bisectorsDistance r = (a + b − c) / 2 from each side

The Advanced tab computes all four centres with the actual triangle, and the interactive diagram draws them as coloured dots when you enable the overlay.

Every metric this calculator computes

Beyond the three sides and two acute angles, the Advanced tab produces every standard right-triangle metric:

MetricFormula for a right triangle
AreaA = ½ ab
PerimeterP = a + b + c
Semiperimeters = (a + b + c) / 2
Inradiusr = (a + b − c) / 2
CircumradiusR = c / 2
Altitude to hypotenuse (side c)h_c = ab / c
Altitude to side ah_a = b
Altitude to side bh_b = a
Median to hypotenusem_c = c / 2
Median to side am_a = ½ √(a² + 4b²)
Median to side bm_b = ½ √(4a² + b²)
Angle bisector at right anglel = ab√2 / (a + b)
Angle bisector opposite side al_a = √(bc(1 − a²/(b+c)²))
Angle bisector opposite side bl_b = √(ac(1 − b²/(a+c)²))

Real-world applications

The theorem shows up wherever a right angle and a diagonal appear together — which is most of the physical world.

  • Ladders. A ladder leaning against a wall forms a right triangle with the wall and the ground. If the base is 5 ft from the wall and the ladder must reach 12 ft up, the ladder needs to be √(5² + 12²) = 13 ft long.
  • TV and monitor sizes. Screen sizes are quoted as the diagonal. A 16:9 panel with a 48-inch width has a height of 27 inches, so the advertised diagonal is √(48² + 27²) ≈ 55.1 inches.
  • Construction and carpentry. The 3-4-5 method squares corners on decks, foundations and fences. Any multiple works — 6-8-10, 9-12-15 — so you can scale the check to the size of the job.
  • Roofs. A rafter is the hypotenuse of the triangle formed by the roof's rise and its horizontal run. A 12 ft rise over a 16 ft run gives a rafter of √(144 + 256) = 20 ft.
  • Ramps and roads. The length of a ramp is the hypotenuse of its rise and run; so is the distance along a sloped road.
  • Navigation and surveying. When you travel east then north, the straight-line distance from the start is the hypotenuse of those two legs.
  • Computer graphics and games. Distance between two points on screen, collision detection, and normalising a vector all rely on the same square-root-of-sum-of-squares pattern.
  • The distance formula. In coordinate geometry, the distance between (x₁, y₁) and (x₂, y₂) is √((x₂ − x₁)² + (y₂ − y₁)²) — the Pythagorean theorem applied to the horizontal and vertical gaps. In 3D, add a third squared difference under the root.

📌 Why the 3D version still works. Take the two points and draw the rectangular box they define. The diagonal of the box's base is a 2D distance; that diagonal and the box's height then form a second right triangle, whose hypotenuse is the 3D distance. Applying the theorem twice gives √(dx² + dy² + dz²).

Common mistakes

  • Applying the theorem to a triangle that is not right-angled. For any other triangle you need the Law of Cosines, c² = a² + b² − 2ab·cos C. The Pythagorean relationship is a special case that only holds when C = 90°.
  • Subtracting the squares in the wrong order. When finding a leg, it must be c² − a², never a² − c². The second version gives a negative number under the square root.
  • Adding the sides before squaring. √(a + b) is not the same as √(a² + b²). With legs 3 and 4, the first gives √7 ≈ 2.65 and the second gives 5. Square first, then add.
  • Assuming the longest number you typed is the hypotenuse. That is only true for a genuine right triangle. If you are solving for a leg, the hypotenuse is whichever side you designated as c, and it must exceed the known leg.
  • Rounding in the middle of a calculation. Keep full precision until the final step. Rounding √2 to 1.41 and then squaring it gives 1.9881, not 2.
  • Confusing the area with the hypotenuse. The area of a right triangle is ½ab; the hypotenuse is √(a² + b²). They are unrelated quantities that happen to be small numbers in the 3-4-5 case (area 6, hypotenuse 5).
  • Forgetting that exact radicals exist. √50 is not "7.0711" — it is exactly 5√2. In an exam answer, the exact form is usually what is being marked.
  • Mixing degrees and radians. If the Angle mode expects degrees and you enter 1.57 (≈π/2 radians), the calculator returns nonsense. Always check the unit selector.
  • Assuming the inradius equals the circumradius. They are wildly different: for 3-4-5, r = 1 while R = 2.5. The inradius is inside the triangle; the circumradius passes through the vertices.

Limitations

  • The theorem applies only to right triangles. For oblique triangles, use the Law of Cosines or the Law of Sines.
  • Exact radical output is available when the squared result is an integer that can be simplified. Exact integer or terminating-decimal results are shown when they can be identified reliably; other decimal inputs receive a decimal approximation.
  • The unit selector changes the label only. It does not convert between units — entering 3 feet and 4 inches will not give a correct answer.
  • The diagram is drawn to scale within a fixed box, so extremely lopsided triangles are compressed. It illustrates the relationship, it is not a precision drawing.
  • Results are computed in standard double-precision floating point (about 15–17 significant digits), so very large inputs can lose precision in the last digits.
  • The Angle mode accepts one side and one acute angle. It does not accept the right angle (90° would give no unique triangle) or obtuse angles (which would contradict the right-triangle assumption).
  • The Batch tab treats two numbers as legs and three numbers as a full triple to verify. Two-number rows are always interpreted as the two perpendicular legs. For a three-number row, enter any three side lengths; the calculator sorts them, checks the triangle inequality, and classifies the triangle before reporting its area and angles.

Frequently asked questions

What is the Pythagorean theorem?

In a right triangle, the sum of the squares of the two legs equals the square of the hypotenuse: a² + b² = c². The legs are the two shorter sides that meet at the right angle; the hypotenuse is the longest side, opposite the right angle.

How do I find the hypotenuse?

Use c = √(a² + b²). Square both legs, add the results, then take the square root. With a = 3 and b = 4: c = √(9 + 16) = √25 = 5.

How do I find a missing leg?

Subtract the square of the known leg from the square of the hypotenuse, then take the square root. For leg b: b = √(c² − a²). For leg a: a = √(c² − b²). With c = 10 and a = 6: b = √(100 − 36) = √64 = 8.

What is 3-4-5 in the Pythagorean theorem?

3, 4 and 5 form the smallest Pythagorean triple, because 3² + 4² = 5² (9 + 16 = 25). Any multiple of these sides is also a triple — 6-8-10, 9-12-15, 30-40-50. Builders use the 3-4-5 ratio to check right angles on site.

What is the hypotenuse of a 3-4-5 triangle?

5. It is the side opposite the right angle and the longest side of the triangle. If the legs are 3 and 4, c = √(3² + 4²) = √25 = 5.

Can the Pythagorean theorem be used on any triangle?

No. It applies only to right triangles — triangles with exactly one 90° angle. For non-right triangles, use the Law of Cosines: c² = a² + b² − 2ab·cos(C).

What is the formula for a missing side?

Three rearrangements of the same equation: hypotenuse c = √(a² + b²); leg a = √(c² − b²); leg b = √(c² − a²).

Why is the hypotenuse always the longest side?

In any triangle, the longest side lies opposite the largest angle. A right triangle has one 90° angle and two smaller acute angles, so the side opposite the 90° angle must be the longest.

What is a Pythagorean triple?

A set of three positive integers (a, b, c) that satisfies a² + b² = c². Examples: (3, 4, 5), (5, 12, 13), (8, 15, 17), (7, 24, 25), (20, 21, 29). A primitive triple has no common factor greater than 1 across all three numbers.

How do you generate Pythagorean triples?

Use Euclid's formula. Pick two positive integers m > n, then compute a = m² − n², b = 2mn, c = m² + n². To get a primitive triple, m and n must be coprime and one of them must be even. With m = 2, n = 1 you get 3, 4, 5.

What are the five most common Pythagorean triples?

(3, 4, 5), (5, 12, 13), (8, 15, 17), (7, 24, 25) and (20, 21, 29). Each is primitive — no common factor divides all three numbers.

What is a 45-45-90 triangle?

A right triangle with two equal legs and two 45° angles. If each leg is x, the hypotenuse is x√2. It is what you get by cutting a square along its diagonal.

What is a 30-60-90 triangle?

A right triangle with angles 30°, 60° and 90°. If the short leg (opposite 30°) is x, the long leg is x√3 and the hypotenuse is 2x. It is half of an equilateral triangle.

How do I check if three sides form a right triangle?

Sort the sides so a ≤ b ≤ c, then test whether a² + b² = c². If yes, the triangle is right. If a² + b² > c² it is acute; if a² + b² < c² it is obtuse. If a + b ≤ c the three lengths cannot form any triangle at all.

What is the difference between a right, acute and obtuse triangle?

A right triangle has one 90° angle (a² + b² = c²). An acute triangle has all angles below 90° (a² + b² > c²). An obtuse triangle has one angle above 90° (a² + b² < c²). The test uses the three side lengths, sorted so the largest is c.

How do I use the Pythagorean theorem in real life?

Common uses include the length of a ladder needed to reach a height from a given distance, the diagonal of a TV or monitor from its width and height, the length of a ramp, the diagonal of a rectangular room or sports field, roof rafter lengths, and straight-line distance between two points on a map.

What is the distance formula and how is it related?

The distance between two points in a plane is d = √((x₂ − x₁)² + (y₂ − y₁)²) — the Pythagorean theorem applied to the horizontal and vertical gaps between the points. In 3D the same idea adds a third squared difference under the root.

Can I enter the answer as a radical?

When the squared result is an integer, the calculator simplifies its square root into an exact radical when possible; it also identifies exact integer or decimal results when the arithmetic resolves cleanly. For legs 3 and 5 the hypotenuse is √34, which cannot be simplified. For legs 2 and 6 the hypotenuse is √40 = 2√10. For legs 6 and 8 it is exactly 10.

What if my answer is not a whole number?

Most right triangles do not have integer sides. If the sum (or difference) of the squares is not a perfect square, the result is irrational. The calculator shows both the exact simplified radical and a decimal approximation to your chosen precision.

What is the area of a right triangle?

A = ½ × a × b — half the product of the two legs. The hypotenuse is not used for the area. For a 3-4-5 triangle the area is ½ × 3 × 4 = 6.

What is the altitude to the hypotenuse?

For a right triangle with legs a and b and hypotenuse c, the altitude drawn from the right angle to the hypotenuse is h = (a × b) / c. For a 3-4-5 triangle, h = 12 / 5 = 2.4.

What is the inradius of a right triangle?

The inradius — the radius of the circle inscribed in the triangle — is r = (a + b − c) / 2. For a 3-4-5 triangle, r = (3 + 4 − 5) / 2 = 1.

What is the circumradius of a right triangle?

The circumradius of a right triangle is half the hypotenuse: R = c / 2. For a 3-4-5 triangle, R = 2.5. This is because the circumcentre of a right triangle is the midpoint of the hypotenuse.

Where are the four triangle centres in a right triangle?

Centroid: one-third of the way along each median from the opposite vertex. Circumcentre: the midpoint of the hypotenuse. Orthocentre: the right-angle vertex itself (because the two legs are already perpendicular). Incentre: at distance r = (a + b − c)/2 from each side. In an isosceles right triangle, the centroid and incentre both lie on the symmetry axis, but they are not the same point.

What is the median to the hypotenuse?

In a right triangle the median drawn to the hypotenuse equals half the hypotenuse: m_c = c / 2. This means the midpoint of the hypotenuse is equidistant from all three vertices — the geometric reason the hypotenuse is a diameter of the circumcircle.

What is the relationship between the Pythagorean theorem and trigonometry?

The Pythagorean theorem is the parent of the three basic trig ratios. In a right triangle, sin θ = opposite/hypotenuse, cos θ = adjacent/hypotenuse, tan θ = opposite/adjacent. Dividing the theorem a² + b² = c² by c² and substituting the definitions gives sin² θ + cos² θ = 1 — the Pythagorean trigonometric identity.

What are SOH CAH TOA?

A mnemonic for the three basic trig ratios: Sine = Opposite / Hypotenuse, Cosine = Adjacent / Hypotenuse, Tangent = Opposite / Adjacent. "Adjacent" and "opposite" refer to the legs relative to the angle you are using.

What is the trig identity sin² θ + cos² θ = 1?

For any angle θ, sin² θ + cos² θ = 1. In a right triangle with hypotenuse 1, the two legs are sin θ and cos θ, so the identity is exactly the Pythagorean theorem divided by c².

Can I solve with one side and one angle instead of two sides?

Yes. Switch to Angle mode in the Solve tab, enter one known side and one acute angle (in degrees or radians), and the calculator will compute the remaining two sides and the remaining angle using sin, cos or tan.

Can I batch-solve multiple triangles at once?

Yes. Open the Batch tab and paste pairs or triples of side lengths, one per line, in the form a, b or a, b, c. For two-number rows, the Batch tab treats the values as the two legs and calculates the hypotenuse. For three-number rows, it checks the triangle and reports its area, perimeter, and angles. You can copy the results or download them as CSV.

What does the Trig tab show?

For the current triangle, the Trig tab lists all six trigonometric functions — sin, cos, tan, csc, sec, cot — for both acute angles, with the SOH CAH TOA ratios labelled. It also verifies the Pythagorean identity sin² θ + cos² θ = 1 against your specific numbers.

What does the Advanced tab show?

Every geometric quantity of the triangle that is not shown on the Solve tab: semiperimeter, inradius, circumradius, all three altitudes, all three medians, all three angle bisectors, and the coordinates of all four classical centres (centroid, circumcentre, orthocentre, incentre).

What units does the Pythagorean theorem calculator support?

It supports millimetres, centimetres, metres, inches, feet, yards, miles and kilometres. When you switch between two physical units, existing side lengths and coordinate values are converted to the new unit, so the result remains the same physical distance. The no-unit setting only removes the unit label.

Can I use decimals as inputs?

Yes, all side boxes and coordinate boxes accept decimal numbers. Exact radical output only appears when both known sides are integers; otherwise the answer is given as a decimal. Decimal inputs that produce an exact decimal answer (for example 2.5 and 6 giving 6.5) are reported as exact.

Does the calculator work on a phone?

Yes. The layout, the tab strip, the inputs, the diagram and the data tables all adapt down to a 320px-wide screen. Long tables scroll inside their own container rather than pushing the page sideways.

Does the calculator save my inputs?

The calculator automatically keeps up to 10 recent solved triangles in this browser's localStorage so you can restore them. The calculation inputs are not sent to a calculator API. Clear the list at any time with the Clear button; normal website hosting or analytics logs may still apply.

What is the Law of Cosines and when do I need it?

The Law of Cosines states c² = a² + b² − 2ab·cos(C) for any triangle, right or not. When C = 90°, cos(C) = 0 and the equation collapses to the Pythagorean theorem. Use the Law of Cosines for oblique (non-right) triangles where the Pythagorean theorem does not apply.

What is the difference between the Pythagorean theorem and the Pythagorean identity in trigonometry?

The geometric theorem states that in a right triangle a² + b² = c². The trigonometric identity sin² θ + cos² θ = 1 is derived by dividing a² + b² = c² by c² and using sin θ = a/c, cos θ = b/c. They express the same fact in geometric versus trigonometric language.

What are primitive Pythagorean triples?

Triples where a, b and c share no common factor greater than 1. For example, (3, 4, 5) and (5, 12, 13) are primitive, while (6, 8, 10) is not because it is 2 × (3, 4, 5). Euclid's formula yields primitive triples when m and n are coprime and one of them is even.

Does the Pythagorean theorem work in 3D?

Yes. The distance between two points (x₁, y₁, z₁) and (x₂, y₂, z₂) is d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²) — the Pythagorean theorem applied twice. The Distance tab includes an interactive 3D box projection: drag to orbit it, tilt it with the controls, and zoom in or out to inspect the base and space diagonals.

Does the theorem still work if one side is zero?

No — the theorem describes a genuine triangle, which requires all three side lengths to be strictly greater than zero and requires the triangle inequality (sum of any two sides > the third) to hold. The calculator rejects zero and negative inputs.

What is the triangle inequality?

The three side lengths of a triangle must satisfy a + b > c, a + c > b and b + c > a. If any of these fails, no triangle exists. The Check tab tests this first before classifying the triangle as right, acute or obtuse.

Can I copy or download my results?

Yes. The Solve tab has Copy result, Copy full solution and Share link buttons. The Batch tab can export to CSV. The Share link encodes your inputs in the URL hash so you can bookmark or send a specific calculation.

Sources & further reading

  • Euclid, Elements, Book I, Proposition 47 — the classical proof of the Pythagorean theorem.
  • Euclid, Elements, Book I, Proposition 48 — the converse of the Pythagorean theorem, used by the Check tab.
  • Euclid, Elements, Book X — the earliest systematic treatment of irrational magnitudes such as √2, underlying the exact-radical output.
  • Wolfram MathWorld — Pythagorean Theorem: statement, converse, and a catalogue of proofs including the square-area proof visualised by the Squares view.
  • Wolfram MathWorld — Pythagorean Triple: primitive triples, Euclid's formula and the conditions for primitivity.
  • Wolfram MathWorld — Pythagorean Identities: sin² + cos² = 1 and its companions.
  • Wolfram MathWorld — Right Triangle: all closed-form metrics, altitudes, medians and centres used by the Advanced tab.
  • Wolfram MathWorld — Triangle Center: definitions of centroid, circumcentre, orthocentre and incentre.
  • OEIS A008846 — hypotenuse values of primitive Pythagorean triples, used to verify the Triples table.
  • NIST Guide to the SI — unit conventions used in the label selector.
  • IEEE 754 double-precision floating point — the arithmetic standard under which decimal results are computed (about 15–17 significant digits of precision).
Scroll to Top