Pythagoras Triangle Calculator

By: Calculator Grid

Pythagoras Triangle Calculator

Solve a right triangle from any two supported measurements, then review its side lengths, area, perimeter, and the exact equation used.

Solving from: Side a + Side b Length unit: cm Pythagorean check: valid

Triangle measurements

The two most recently edited measurements are marked “Used.” The other fields are recalculated from that pair.

Live solution

Hypotenuse c
5 cm
The longest side, opposite the right angle.
Side a
3 cm
Side b
4 cm
Area
6 cm²
Perimeter
12 cm
Formula usedc = √(a² + b²) = √(3² + 4²) = 5
Hypotenuse c is 5 centimeters. Area is 6 square centimeters. Perimeter is 12 centimeters.

Measurement detail

Symbol Measurement Current value Relationship
a First leg 3 cm Forms the right angle with b
b Second leg 4 cm Forms the right angle with a
c Hypotenuse 5 cm c² = a² + b²
A Area 6 cm² A = a × b ÷ 2
P Perimeter 12 cm P = a + b + c

All rows come from the same canonical triangle model used for the live results and Excel workbook. A chart is intentionally omitted because these five measurements mix length and area; a single quantitative plot would combine incompatible units or repeat information more clearly shown in this table.

How to use this Pythagoras triangle calculator

What this calculator does

This calculator completes a right triangle from any two supported measurements among Side a, Side b, Side c, Area, and Perimeter. It applies the Pythagorean theorem together with the standard area and perimeter identities, then returns one internally consistent triangle. It is designed for geometry exercises, construction checks, diagonal measurements, and quick dimensional planning. It does not prove that a real-world corner is exactly 90 degrees; that physical condition must be established separately.

The underlying relationship is the familiar identity a² + b² = c², where a and b are the perpendicular legs and c is the hypotenuse. OpenStax provides a detailed explanation of right triangles and the Pythagorean theorem.

When to use it

  • Find a room, screen, panel, or rectangular frame diagonal from its width and height.
  • Recover a missing leg when the hypotenuse and the other leg are known.
  • Check whether area or perimeter targets are compatible with a right triangle.
  • Convert a solved triangle between metric and US customary length units without changing its geometry.

How to calculate

  1. The calculator opens with a complete 3 – 4 – 5 demonstration triangle, so results and a validated example Excel workbook are immediately available.
  2. Replace any measurement. The two most recently edited measurement fields receive a Used badge and become the source pair. The remaining values update automatically.
  3. Choose a Length unit when needed. A valid current triangle is converted numerically; area changes by the square of the length conversion factor.
  4. Read Hypotenuse c, the four result cards, the Formula used line, and the Measurement detail table. They all use the same unrounded model.
  5. Select Download Excel to create a fresh workbook from the current validated controls. Select Reset to clear the demonstration and all calculated content. Reset may disable the download until two complete, compatible measurements are entered again.

Input guide

Side a and Side b are required only when they form part of the active source pair. Each accepts a positive decimal length in the selected unit; for example, 3 and 4 cm. Increasing one leg while holding the other active value constant generally increases the hypotenuse, area, and perimeter. Do not enter a unit symbol inside the field, and do not use decimal commas such as “1,5”; this calculator uses a period as the decimal separator and commas only as three-digit grouping marks. Scientific notation such as “1e3” is accepted for unusually large or small values.

Side c is the hypotenuse and must be longer than either active leg. A realistic example is 5 cm. When paired with a leg, a value that is equal to or shorter than that leg is rejected because it cannot describe a non-degenerate right triangle. When paired with area or perimeter, two leg labels may be mathematically interchangeable; the calculator consistently assigns the longer recovered leg to a.

Area is a positive square-unit value, such as 6 cm². It equals a × b ÷ 2. Higher area does not always imply a longer hypotenuse unless another measurement is held fixed, so interpret it together with the other active input. Perimeter is a positive length, such as 12 cm, equal to a + b + c. Some area – perimeter and side – perimeter pairs are impossible; the calculator reports that incompatibility instead of forcing a result.

Length unit controls all length displays and the corresponding squared area unit. Supported choices are millimeters, centimeters, meters, kilometers, inches, feet, and yards. The numerical conversion follows standard length relationships; NIST's overview of SI units of length is a useful reference for metric units.

Output guide

Solving from identifies the active source pair. Length unit confirms the current display unit, and Pythagorean check reports whether the solved sides satisfy the identity within floating-point tolerance. Hypotenuse c is the primary result and is always the longest side. Side a and Side b are the perpendicular legs. Area is measured in squared units, while Perimeter is measured in the selected length unit.

Formula used shows the equation selected for the current source pair. The Measurement detail table repeats each symbol, measurement name, canonical value, and defining relationship. These are mathematical identities for an ideal right triangle, not statistical estimates. A zero or negative measurement is outside the supported domain, and an incompatible pair produces an empty solution rather than a misleading approximation.

Worked example

The startup example uses Side a = 3 cm and Side b = 4 cm. The calculator evaluates c = √(3² + 4²) = √25 = 5 cm. It then computes Area = 3 × 4 ÷ 2 = 6 cm² and Perimeter = 3 + 4 + 5 = 12 cm. Those exact values appear on first open in the controls, result cards, table, accessibility summary, and workbook checkpoints. This 3 – 4 – 5 set is also a classic Pythagorean triple; Khan Academy's introduction to the theorem provides a visual review of why c is opposite the right angle.

Formula and interpretation

a² + b² = c²For a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs.

When both legs are known, the hypotenuse follows directly from the square root of their squared sum. When one leg and the hypotenuse are known, the missing leg follows from the square root of the difference. Area and perimeter introduce additional identities, so the calculator solves the resulting system and rejects pairs that would require a negative length, an imaginary square root, or a degenerate triangle.

Common mistakes

The most common error is treating c as an arbitrary third side. In this calculator, c is always the hypotenuse. Another frequent error is mixing units, such as entering one side in feet and another in inches without converting them first. Use a single selected length unit for the entire triangle. Finally, remember that area uses squared units: converting centimeters to meters changes area by a factor of 10,000, not 100.

This tool performs ideal Euclidean geometry calculations. For surveying, structural work, fabrication, or safety-critical layouts, account for measurement uncertainty, tolerances, and applicable professional standards.