Right Triangle Calculator
Enter leg a and leg b to find hypotenuse, angles, area, and perimeter
A right triangle calculator is a tool that finds the missing sides, angles, area, and perimeter of a right triangle once you enter a couple of known values. Rather than working through the Pythagorean theorem or trigonometric ratios by hand, the calculator applies those formulas instantly and returns every property of the triangle in one step. It’s a handy shortcut for geometry homework, drafting and construction layouts, surveying, and any physics or engineering problem that boils down to a 90-degree triangle.
Quick Answer
A right triangle calculator is a free online tool that solves for unknown sides, angles, area, and perimeter of a right triangle using the Pythagorean theorem and trigonometric functions. Enter any valid pair of known measurements, and it returns the rest of the triangle’s dimensions in seconds — accurate, repeatable, and far less error-prone than solving by hand.
What Makes Right Triangles So Useful
A right triangle is defined by having exactly one 90-degree angle. That single constraint is what makes the shape so mathematically convenient: it connects the two legs and the hypotenuse through the Pythagorean theorem, and it ties the angles to the side lengths through sine, cosine, and tangent. Because of that relationship, right triangles show up constantly in fields that have nothing to do with a math classroom — structural framing, roof pitches, ramp angles, land surveying, navigation headings, and even how a computer renders 3D graphics.
For example, if the two legs of a right triangle measure 3 and 4 units, the calculator will return:
- Hypotenuse: 5
- Area: 6 square units
- Perimeter: 12 units
- The two remaining acute angles
That’s the classic 3-4-5 triangle, but the same logic scales to any set of measurements you enter.
How a Right Triangle Calculator Works
Once you provide enough known information, the calculator selects the right formula and solves for everything else. It generally needs one of the following combinations to work:
- Two side lengths (any two of the three sides)
- One side and one non-right angle
- The hypotenuse plus one leg
- Other valid pairings that leave only one unknown relationship
After you hit calculate, it returns:
- The missing side length(s)
- The missing angle(s)
- The hypotenuse
- The area
- The perimeter
- Often, a step-by-step breakdown of how it got there
This automation removes the arithmetic slip-ups that tend to creep in with manual trig calculations, especially when square roots or decimal angles are involved.
The Formulas Behind the Calculator
Pythagorean Theorem
The core relationship for any right triangle is:
a² + b² = c²
where a and b are the two legs and c is the hypotenuse (the side opposite the right angle, and always the longest side). Rearranged, you can solve for any one of the three sides as long as you know the other two:
- c = √(a² + b²)
- a = √(c² − b²)
- b = √(c² − a²)
Area
Area = ½ × base × height
For a right triangle, the two legs double as the base and height, so this is usually the simplest area formula to apply — no need to find a separate height measurement.
Perimeter
Perimeter = Side A + Side B + Hypotenuse
Simply the sum of all three sides.
Trigonometric Ratios
When an angle is known instead of a side, the calculator switches to trigonometry:
- sin(θ) = opposite / hypotenuse
- cos(θ) = adjacent / hypotenuse
- tan(θ) = opposite / adjacent
These let the calculator work backward and forward between angles and side lengths, and they’re also how it finds the two acute angles once all three sides are known (using inverse sine, cosine, or tangent).
Formula Components at a Glance
| Component | Description |
| Side A | One leg of the right triangle |
| Side B | The second leg of the right triangle |
| Hypotenuse | The longest side, opposite the right angle |
| Area | The space enclosed by the triangle |
| Perimeter | The combined length of all three sides |
| Angles | Two acute angles plus the fixed 90° angle |
How to Use a Right Triangle Calculator
- Enter whatever side lengths or angles you already know.
- Make sure the input combination you’ve chosen is actually solvable (see the list above).
- Double-check that all measurements are in the same unit.
- Click calculate.
- Read off the missing sides, angles, area, and perimeter.
- Apply the results to your homework, design, or field measurement.
Most calculators support all of the following in one tool: Pythagorean calculations, trigonometric solving, side and angle calculations, and area/perimeter output — making it useful across math class, architecture, construction planning, and land surveying alike.
Common Mistakes to Avoid
Entering the wrong side length. A small typo in one measurement throws off the hypotenuse, both angles, the area, and the perimeter, since every value depends on the inputs. Double-check numbers before calculating.
Mislabeling the hypotenuse. The hypotenuse is always the longest side and always sits opposite the right angle. Plugging a leg into the hypotenuse field (or vice versa) will produce a triangle that doesn’t actually exist.
Mixing units. Entering one side in centimeters and another in meters — without converting first — will silently corrupt every downstream result. Convert everything to a single unit before you start.
Using it on a non-right triangle. These formulas only hold when one angle is exactly 90°. Acute or obtuse triangles need the Law of Sines or Law of Cosines instead.
Not providing enough information. You generally need at least two known values, with at least one being a side length, or the triangle is underdetermined and can’t be solved.
Confusing area with perimeter. Area is the enclosed space (in square units); perimeter is the total edge length (in linear units). They answer different questions and aren’t interchangeable.
Rounding too early. If you’re working through the trig by hand, carry extra decimal places until the final step — early rounding compounds into a noticeably wrong answer, especially with angle calculations.
Skipping the sanity check. After calculating, glance at the results — does the hypotenuse look like the longest side? Do the angles add up to 90° for the two acute angles? A quick check catches most input errors immediately.
Conclusion
A right triangle calculator takes the manual work out of applying the Pythagorean theorem and trigonometric ratios, returning sides, angles, area, and perimeter in a single step. Whether you’re checking geometry homework, laying out a roof pitch, or surveying a plot of land, it trades a few minutes of hand calculation for an instant, accurate result — as long as you enter clean, correctly-labeled measurements in matching units.
