terican

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.

FreeInstantNo signupOpen source

Inputs

Perimeter

Explain my result

0/3 free

Get a plain-English breakdown of your result with practical next steps.

Perimeterunits

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

Frequently asked questions

What is the formula for the perimeter of a right triangle?
The perimeter of a right triangle equals P = a + b + c, where a and b are the two perpendicular legs and c is the hypotenuse. When the hypotenuse is unknown, calculate it first using the Pythagorean Theorem: c = square root of (a squared plus b squared). For example, a 3-4-5 right triangle has a perimeter of 3 + 4 + 5 = 12 units.
How do you find the perimeter of a right triangle with only two legs?
With legs a and b known, first find the hypotenuse using c = square root of (a squared plus b squared), which is the Pythagorean Theorem. Then add all three sides: P = a + b + c. For instance, legs of 6 cm and 8 cm yield c = square root of (36 + 64) = square root of 100 = 10 cm, giving a perimeter of 6 + 8 + 10 = 24 cm.
How do you calculate the perimeter of a right triangle when one leg and the hypotenuse are known?
Rearrange the Pythagorean Theorem to find the missing leg: b = square root of (c squared minus a squared). Then sum all three sides: P = a + b + c. For example, if leg a = 5 m and hypotenuse c = 13 m, then b = square root of (169 minus 25) = square root of 144 = 12 m, and P = 5 + 12 + 13 = 30 m.
What are Pythagorean triples and why do they matter for perimeter calculations?
Pythagorean triples are sets of three positive integers (a, b, c) that exactly satisfy a squared plus b squared equals c squared, forming perfect right triangles without rounding. Common examples include 3-4-5 (P = 12), 5-12-13 (P = 30), and 8-15-17 (P = 40). Any whole-number multiple of these ratios, such as 6-8-10 or 15-36-39, also forms a valid right triangle and scales the perimeter proportionally.
Does the unit of measurement affect how the right triangle perimeter formula is applied?
The formula P = a + b + c works with any consistent unit of length — meters, centimeters, feet, inches, or miles. The critical rule is that all three sides must use the same unit before adding. If side a is in feet and side b is in inches, convert both to the same unit first. The resulting perimeter is expressed in that same unit.
What is the difference between the perimeter and the area of a right triangle?
The perimeter is the total boundary length of a triangle, calculated as P = a + b + c and expressed in linear units such as meters or feet. The area measures the enclosed surface, calculated as A = (1/2) times a times b, and expressed in square units such as square meters. For a 3-4-5 right triangle, the perimeter is 12 units but the area is (1/2)(3)(4) = 6 square units — two entirely different measurements with different formulas and units.