Right Triangle Calculator: Sides, Area, Angles
Solve a right triangle from two legs or a leg and the hypotenuse — get the third side, perimeter, area, all three altitudes, and both acute angles.
Right triangle formulas
A right triangle has one 90° angle. The two legs , meet at that angle; the hypotenuse (always the longest side) is opposite it, and the three sides satisfy the Pythagorean theorem .
Given any two sides, this calculator solves the third, then derives the full triangle:
| Quantity | Formula |
|---|---|
| Perimeter | |
| Semi-perimeter | |
| Area | |
| Altitude to | |
| Altitude to | |
| Altitude to | |
| Acute angle | |
| Acute angle |
Solving from two legs
Example: legs a = 6, b = 8
Since 100 is a perfect square, the hypotenuse comes out exactly whole. Not every pair of legs does — legs 1 and 1 give a hypotenuse of , an irrational number, even though the area () is still exact.
Solving from a leg and the hypotenuse
Example: leg a = 5, hypotenuse c = 13
This is the well-known 5-12-13 triple. Entering a hypotenuse that isn't longer than the known leg — say c = 5 with a leg of 8 — has no solution; the calculator flags it rather than showing a nonsensical result.
Common mistakes
- Mixing up the altitude to the hypotenuse with a leg. is a distinct length from both legs — for a 6-8-10 triangle it's 4.8, not 6 or 8.
- Using the hypotenuse in the area formula. only works with the two legs, since they're the perpendicular pair; using the hypotenuse instead gives a meaningless number.
- Forgetting the hypotenuse must be the longest side. A right triangle can't close if the "hypotenuse" you enter is shorter than (or equal to) the other known leg.
Where this shows up
- Construction and measurement: any 90°-angle layout problem — squaring a foundation, cutting a roof rafter, laying out a ramp — reduces to a right triangle.
- Trigonometry: the right triangle is the foundation of sine, cosine, and tangent; its two acute angles here are found the same way any right-triangle angle is.
- Related shapes: an isosceles right triangle and an equilateral triangle split down the middle are both special cases built from the same right-triangle relationships.
This calculator is a direct extension of the Pythagorean Theorem calculator — it solves the same missing-side problem, then goes further to derive the full triangle: perimeter, area, every altitude, and both acute angles. It's also closely related to the isosceles triangle (a right isosceles triangle is just this shape with ), the Law of Sines, and the equilateral triangle.
Frequently asked questions
- What is a right triangle?
- A triangle with exactly one 90° angle. The two shorter sides meeting at the right angle are the legs (, ); the side opposite the right angle, always the longest, is the hypotenuse (). They satisfy .
- How do I find the area of a right triangle?
- The two legs are perpendicular, so one can serve as the base and the other as the height: . For legs 6 and 8, .
- How do I find the third side if I only know two sides?
- Given both legs, . Given the hypotenuse and one leg, rearrange to . Either way this calculator shows the exact simplified radical alongside a decimal approximation.
- What is the altitude to the hypotenuse?
- It is the perpendicular distance from the right angle down to the hypotenuse, . Unlike the other two altitudes (each just the OTHER leg), is a genuinely new length — for legs 6 and 8 it works out to .
- How do I find the two acute angles?
- From the two legs, angle (opposite leg ) is , and angle . For legs 6 and 8, and .
- Why must the hypotenuse be longer than the known leg?
- The hypotenuse is always the longest side of a right triangle — it's the one opposite the 90° angle. If the entered hypotenuse isn't strictly longer than the known leg, no right triangle can close, so c² − a² would be zero or negative.
- Why are two of the three altitudes just the other leg?
- Because the two legs are already perpendicular to each other. The altitude to leg is the perpendicular distance from the opposite vertex to line — and that distance IS leg , since by definition of the right angle. Only the altitude to the hypotenuse needs its own formula.
- How is this related to the Pythagorean theorem?
- Every calculation here starts from the Pythagorean theorem, , to solve the missing side. This calculator goes further, using that resolved side to derive the full triangle: perimeter, area, all three altitudes, and both acute angles.