Right Triangle Perimeter Calculator

Math Updated 31 Oct 2026

Finds the perimeter of a right triangle. Enter the two legs (the sides that meet at the right angle) and the calculator works out the hypotenuse with the Pythagorean theorem and adds all three sides; or enter all three sides directly. It also gives the area and both acute angles, and checks that the sides can form a triangle and whether it really has a right angle.

  • All three sides are in the same unit.

Formula

P = a + b + c, where c = √(a² + b²)
  • a and b are the legs, which meet at the right angle; c is the hypotenuse, the longest side, opposite the right angle.
  • The Pythagorean theorem a² + b² = c² gives the hypotenuse from the legs.
  • With all three sides, each must be shorter than the sum of the other two (the triangle inequality). If √(a² + b²) differs from c by more than 0.01%, the triangle has no right angle and only the perimeter is shown.
  • Lengths and the area are rounded to 4 decimal places; angles to 4 decimal places of a degree.

The 3-4-5 triangle

Inputs
  • I know: legs
  • Leg a: 3
  • Leg b: 4
  • Unit: cm

c = √(3² + 4²) = √25 = 5 cm, so P = 3 + 4 + 5 = 12 cm. The area is ½ × 3 × 4 = 6 cm² and the angles are 36.8699° and 53.1301°.

Sources & references

  • Pythagorean Theorem
    Wolfram MathWorld · Retrieved 31 Oct 2026

    For a right triangle with legs a, b and hypotenuse c, a² + b² = c².

Frequently asked questions

How do I find the perimeter of a right triangle?
Add the three sides. If you only know the two legs, find the hypotenuse first with c = √(a² + b²). For legs 5 and 12: c = 13, so P = 5 + 12 + 13 = 30.
How do I find the perimeter from one leg and the hypotenuse?
Find the missing leg with b = √(c² − a²), then add. For a = 6 and c = 10: b = √(100 − 36) = 8, so P = 24. The Pythagorean theorem calculator solves for any missing side.
What is the perimeter of an isosceles right triangle?
With equal legs a, the hypotenuse is a√2, so P = a(2 + √2) ≈ 3.4142 a. Legs of 10 give a perimeter of 34.1421.

Related calculators

Pythagorean Theorem Calculator Solves a right triangle with the Pythagorean theorem, a² + b² = c². Give any two of the two legs, the hypotenuse, the area and the perimeter, and it finds the missing sides, then adds the area, perimeter, both acute angles and the height dropped onto the hypotenuse. Lengths can be in metric or imperial units, from millimetres to nautical miles, and the area in anything from square millimetres to acres. Handy for checking that a corner is square, sizing a ladder or ramp, or finding a diagonal. Area of a Triangle SAS Calculator Finds the area of a triangle from two sides and the angle between them (side-angle-side, SAS) using Area = ½ a b sin α. It also solves the rest of the triangle: the third side by the law of cosines, the two remaining angles, the perimeter and the height onto side a. Area of a Circle Calculator Finds the area of a circle from its radius, diameter or circumference, and works backwards from a known area to the radius. All four measurements are shown together, so you can use it for a round table top, a pizza, a garden bed, a pipe cross-section or a circular room. Pick the length unit and the area comes out in the matching square unit, also converted to square metres and square feet. Area Calculator Finds the area of 2D shapes: rectangle, square, triangle (from base and height, three sides, two sides and the angle between them, or two angles and the side between them), circle, semicircle, circular sector, ellipse, trapezoid, parallelogram (three ways), rhombus (three ways), kite (two ways), regular pentagon, hexagon and octagon, annulus (ring), any quadrilateral from its diagonals and any regular polygon. Pick the shape, enter its dimensions in any length unit (angles in degrees or radians), and you get the area in that unit squared, plus square metres and square feet, and the perimeter where the inputs fix it. Handy for working out the area of a room, a garden bed or a patio before buying flooring, mulch or bricks.