Pythagorean Triples Calculator

Use the Pythagorean Triples Calculator for a transparent, instant calculation with validated inputs and cited sources. For a query such as “pythagoras triad”, enter the matching values and units below and review the stated assumptions.

Inputs

Results update as you type.

This field is required.

Result

Results update as you type.

Leg a
5
Leg b
12
Hypotenuse
13

How to use this calculator

Enter the requested values and units.

Review the assumptions and any warnings shown with the result.

Use the result together with the cited source and your real-world requirements.

Formula

Generate an integer Pythagorean triple from m > n ≥ 1 using a = m² − n², b = 2mn, and c = m² + n².

Worked example

Worked example: Inputs: m: 3; n: 2. Outputs: Leg a: 5; Leg b: 12; Hypotenuse: 13.

Assumptions and limits

  • The result depends on the values, units, and assumptions entered. It does not infer missing context.

Sources

Related calculators

Frequently asked questions

How does the Pythagorean Triples Calculator work?

Generate an integer Pythagorean triple from m > n ≥ 1 using a = m² − n², b = 2mn, and c = m² + n².

What should I enter?

m, n

What should I verify?

Review the assumptions and any warnings shown with the result. The result depends on the values, units, and assumptions entered. It does not infer missing context.

Last updated 2026-08-14 · math-pythagorean-triples-v1 · opportunity-content-2026-08-14 · Trusty Calculator Editorial Team