Triangle Calculator
Triangle sides, angles, area and type from any three facts.
Hypotenuse, missing leg, angles and area of a right triangle.
The angle opposite leg a.
| Measure | Value |
|---|
Right Triangle Calculator applies the Pythagorean theorem in both directions and adds the trigonometry around it. Give it two legs and it returns the hypotenuse; give it a leg and the hypotenuse and it returns the missing leg; give it a side and an angle and it returns the rest.
The check line in the working is there deliberately. It prints a squared plus b squared next to c squared, so you can see the theorem holding on your own numbers rather than trusting the answer. It also catches the commonest input error, which is entering the hypotenuse as a leg.
The altitude to the hypotenuse is included because it is awkward to derive and often needed in practice -- it is the shortest distance from the right angle to the opposite side, and it comes out as the product of the legs divided by the hypotenuse.
The page shows its working, not just its answer. Where there is a formula it is printed with your own numbers substituted in, so you can check the result rather than take it on trust -- which is the difference between a calculator you can use for something that matters and one you cannot.
Everything runs inside your browser. What you type is never uploaded, never logged and never stored, and the calculator keeps working if your connection drops after the page has loaded.
The right triangle calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
In a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. It only holds when one angle is exactly 90 degrees.
Measure 3 units along one wall and 4 along the other; the diagonal between them should be exactly 5. Any multiple works, and larger ones are more accurate.
Most likely the hypotenuse was shorter than a leg. The hypotenuse is always the longest side of a right triangle.
If the right triangle calculator is not quite what you need, these other free tools solve closely related problems, and there are 16 more in geometry calculators.
Triangle sides, angles, area and type from any three facts.
Distance between two points in 2D or 3D.
Sin, cos, tan and the inverse functions.
Area and perimeter for ten shapes, with the formula and the working.
Roof pitch, rafter length and roof area.
Checked and rebuilt on 2026-10-14. The method this calculator uses is described in the section above, and corrections go through the contact page.