Right Triangle Calculator

Pythagoras' theorem solver.

The right triangle is the single most useful shape in all of practical geometry — the foundation of trigonometry, construction, and navigation. This tool solves for any missing side or angle once you know enough of the others.

A relationship known long before it had Pythagoras's name attached

The Pythagorean theorem — that a right triangle's two shorter sides (legs), each squared and added together, equal the square of its longest side (the hypotenuse) — is named for the 6th-century BC Greek mathematician Pythagoras, but evidence strongly suggests the relationship was known and practically applied far earlier: Babylonian clay tablets dating to around 1800 BC, and separate ancient Chinese and Indian mathematical traditions, all demonstrate awareness of this same right-triangle relationship well before Pythagoras is traditionally credited with providing the first formal, general proof.

The relationships this tool uses

Given any two of a right triangle's three sides, the tool applies the Pythagorean theorem (a² + b² = c², where c is the hypotenuse) to find the third; given a side and an angle, it applies core trigonometric ratios — sine (opposite ÷ hypotenuse), cosine (adjacent ÷ hypotenuse) and tangent (opposite ÷ adjacent) — to solve for whatever remaining sides or angles are unknown.

Where right-triangle calculations are genuinely essential

  • Construction and carpentry — ensuring a corner is a true right angle using the classic "3-4-5 triangle" method (since 3² + 4² = 5², a simple, practical, tape-measure-only application of the Pythagorean theorem still used on job sites today), or calculating rafter lengths and roof angles.
  • Navigation and surveying — calculating distances and angles across terrain that can't be directly measured, using known reference points and right-triangle trigonometry.
  • Engineering and physics — resolving forces, velocities or other vector quantities into perpendicular components, a technique that relies directly on right-triangle relationships.
  • Everyday practical measurement — calculating the diagonal distance across a rectangular space, like determining if a piece of furniture will fit through a doorway at an angle.

Frequently asked questions

What is the "3-4-5 triangle" and why is it useful? It's the simplest whole-number right triangle (legs of 3 and 4 units, hypotenuse of exactly 5, since 3² + 4² = 9 + 16 = 25 = 5²), which carpenters and builders have used for centuries as a quick, tool-free way to verify a true right angle by measuring out those exact proportions with a tape measure or rope.

Do I need to know an angle to use this calculator, or just the sides? Either works — if you know any two sides, the Pythagorean theorem alone finds the third with no angle information needed at all; if you only know one side and one angle, trigonometric ratios (sine, cosine, tangent) let you solve for the remaining sides and angle.

Why does the Pythagorean theorem only work for right triangles? Because the relationship a² + b² = c² depends specifically on the 90-degree angle between the two legs — for any other triangle shape, a more general relationship called the Law of Cosines is needed instead, which reduces to the Pythagorean theorem exactly when the included angle happens to be 90 degrees.

Further reading