Last verified · v1.0
Calculator · math
Right Triangle Perimeter Calculator
Calculate the perimeter of a right triangle by entering any two sides. The Pythagorean Theorem computes the missing side, then sums all three for an instant result.
Inputs
Perimeter
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
Right Triangle Perimeter: Formula, Derivation, and Applications
The perimeter of a right triangle is the total length of its boundary — the sum of all three sides. The master formula is:
P = a + b + c
where a and b are the two perpendicular legs meeting at the 90° angle, and c is the hypotenuse. The hypotenuse is always the longest side and always sits opposite the right angle. When all three sides are already known, the calculation is simple addition. The real power of this calculator appears when only two sides are available — the Pythagorean Theorem fills in the missing value automatically. Understanding how to calculate the perimeter efficiently is essential in mathematics, engineering, construction, and many practical fields where precise measurements determine material costs and structural integrity.
The Pythagorean Theorem
According to the Maricopa Community Colleges College Mathematics Textbook (Section G.3) and the West Texas A&M University Tutorial 32 on Formulas, every right triangle satisfies the fundamental relationship:
a² + b² = c²
This relationship forms the foundation for all perimeter calculations in right triangles when one or more sides are unknown. Isolating the hypotenuse gives c = √(a² + b²), which is used whenever both legs are known. Isolating the unknown leg gives b = √(c² − a²), which solves the case when one leg and the hypotenuse are known. These two rearrangements cover all partial-information scenarios and allow the calculator to compute the perimeter regardless of which two sides are provided as input.
Variable Definitions
- a — The first perpendicular leg. Can be any positive length in any consistent unit (meters, feet, centimeters, inches, etc.).
- b — The second perpendicular leg, perpendicular to leg a.
- c — The hypotenuse, satisfying c > a and c > b. It must be strictly less than a + b for the triangle inequality to hold.
- P — The perimeter, the total boundary length equal to a + b + c.
Three Calculation Modes
- Two Legs Known (a and b): Compute c = √(a² + b²), then P = a + b + c.
- Leg and Hypotenuse Known (a and c): Compute b = √(c² − a²), then P = a + b + c.
- All Three Sides Known (a, b, and c): Compute P = a + b + c directly. Inputs must satisfy a² + b² = c².
Worked Example 1 — Two Legs Known
A right-triangular garden plot has legs of 9 meters and 12 meters. How much fencing is needed to enclose all three sides?
Step 1: Find c = √(9² + 12²) = √(81 + 144) = √225 = 15 m.
Step 2: P = 9 + 12 + 15 = 36 meters of fencing required.
Worked Example 2 — Leg and Hypotenuse Known
A ramp has a horizontal run (leg a) of 5 feet and a sloped surface (hypotenuse c) of 13 feet. Find the total perimeter.
Step 1: Find b = √(13² − 5²) = √(169 − 25) = √144 = 12 ft.
Step 2: P = 5 + 12 + 13 = 30 feet.
Pythagorean Triples and Their Perimeters
Integer-sided right triangles called Pythagorean triples are useful benchmarks. All multiples of these ratios are also valid right triangles:
- 3-4-5 → P = 12
- 5-12-13 → P = 30
- 8-15-17 → P = 40
- 7-24-25 → P = 56
- 20-21-29 → P = 70
Real-World Applications
Right triangle perimeter calculations appear across many fields and industries:
- Construction and carpentry: Measuring total trim length around a right-angled corner, calculating staircase stringer perimeters, and determining material needs for roofing trusses.
- Surveying: Determining boundary lengths of right-angled land parcels and calculating fencing requirements for corner properties.
- Navigation: Totaling path distance when two legs of a route are perpendicular, such as a north-then-east journey or calculating return distances.
- Architecture: Computing material lengths for gabled roof sections, right-triangular decorative panels, and triangular window frames.
- Engineering: Calculating cable or pipe runs that follow two perpendicular directions and a diagonal return, common in electrical and plumbing installations.
Reference