Home/Calculators/Right triangle calculator
Right triangle calculator: sides, angles and Pythagorean theorem
You are on site with a tape measure and a layout that needs a diagonal, a brace, or a corner check, and you want the missing side and angles worked out before you cut or drill. Right triangle calculator. Nothing was tested for this page; the numbers come from the formula shown below and the inputs you enter.
Pick the two values you already know and the tool returns the missing side plus both acute angles. It also gives the area and perimeter of the triangle.
The automatic calculation needs JavaScript. With scripting off, the fields above do nothing and the result area stays empty. The formula is written out below, so you can do the same arithmetic on paper.
Right triangle calculator: how to measure
- Measure one leg along the square side of the corner.
- Measure the other leg along the adjoining square side.
- For a diagonal, measure the straight line between the two ends.
- For an angle, set your level or angle finder at the corner and read the degrees.
Right triangle calculator formula, written out
- hypotenuse c = square root of (a squared + b squared)
- leg b = square root of (c squared - a squared)
- angle A = arctan(a / b), or arcsin(a / c); angle B = 90 - angle A
- with leg a and angle A: b = a / tan(A) and c = a / sin(A)
- area = a x b / 2; perimeter = a + b + c
Right triangle calculator worked example
With the inputs already in the form (what do you know? both legs, leg a 3, leg b 4) the result is: hypotenuse c: 5.000; leg a: 3.000; leg b: 4.000; angle a, degrees: 36.87; angle b, degrees: 53.13; area: 6.000; perimeter: 12.000.
- c = square root of (3.000^2 + 4.000^2) = 5.000
- Angle A = 36.87 degrees; angle B = 90 - 36.87 = 53.13 degrees
- Area = 3.000 x 4.000 / 2 = 6.000; perimeter = 12.000
For a roof run and rise, use the common rafter length for a roof. For steps between two levels, use the stair rise and run calculator. To check the hypotenuse by hand, use the square root calculator for lengths.
What the right triangle calculator assumes
- The triangle has one 90 degree angle.
- All three sides are entered in the same unit.
- Angle A is the angle across from leg a.
- It does not handle triangles without a right angle.
Right triangle calculator questions people ask
What can I enter to get a result?
You can enter both legs, one leg and the hypotenuse, or one leg and an angle. Each combination gives the remaining side and both acute angles.
How is the missing side found?
With two legs, the hypotenuse is the square root of a squared plus b squared. With a leg and the hypotenuse, the other leg is the square root of c squared minus a squared.
How do I use it for a square corner check?
Measure both legs from the corner and compare the calculated hypotenuse to the diagonal you measure. A match means the corner is square.
What jobs is it useful for?
It helps with diagonal braces, rafters, stair stringers, and ladders where a right angle is part of the layout.
This calculator belongs to the measuring and geometry calculators. To price the whole job, not just this part, use the job costing calculator and the pricing guide below.
How this site makes money. Affiliate links on this site are marked before you click them, and a commission will never change a price, a test result or a ranking. Details in the affiliate disclosure.