Right Triangle Calculator
Enter any two known values of a right triangle to find all three sides, both acute angles, the area and the perimeter.
| Leg a | 6 |
|---|---|
| Leg b | 8 |
| Hypotenuse c | 10 |
| Angle A | 36.87 ° |
| Angle B | 53.13 ° |
| Area | 24 sq units |
| Perimeter | 24 |
Link to this calculation – copied!
Formula
sin A = a ÷ c cos A = b ÷ c tan A = a ÷ b
A + B = 90°
| Symbol | Meaning |
|---|---|
| a, b | Legs; a is opposite angle A, b is opposite angle B |
| c | Hypotenuse, opposite the right angle |
| A, B | The two acute angles |
How to Use This Calculator
- Choose the Known values (Legs a and b, Leg a and hypotenuse c, Leg a and angle A, Hypotenuse c and angle A).
- Enter the Leg a.
- Enter the Leg b.
- Enter the Hypotenuse c when Known values is Leg a and hypotenuse c or Hypotenuse c and angle A.
- Enter the Angle A (°) when Known values is Leg a and angle A or Hypotenuse c and angle A. The angle opposite leg a.
- Press Calculate. Results also update automatically as you type.
Worked Example
Using the values pre-filled in the calculator above:
| Known values | Legs a and b |
|---|---|
| Leg a | 6 |
| Leg b | 8 |
| Leg a | 6 |
|---|---|
| Leg b | 8 |
| Hypotenuse c | 10 |
| Angle A | 36.87 ° |
| Angle B | 53.13 ° |
| Area | 24 sq units |
| Perimeter | 24 |
About This Calculation
A right triangle has one 90° angle, and that single fact means two measurements are enough to pin down everything else — as long as at least one of them is a side, since angles alone fix only the shape, not the size. The sides are linked by the Pythagorean theorem, and the angles by the trigonometric ratios often remembered as SOH-CAH-TOA: sine is opposite over hypotenuse, cosine is adjacent over hypotenuse, and tangent is opposite over adjacent.
Labelling matters. Here leg a is opposite angle A and leg b is opposite angle B, with the hypotenuse c always across from the right angle and always the longest side. The two acute angles must add up to 90°, which is a quick check on any answer. Make sure your angle is in degrees; mixing up degrees and radians is the most common cause of wildly wrong results.
Right-triangle trigonometry solves countless practical problems: the height of a tree or building from its distance and the angle to the top, the length of a ramp or ladder, roof pitch and rafter length, the run of a staircase, and component forces in physics. For a slope given as rise over run, the slope calculator converts it to an angle, and for non-right triangles try the triangle area calculator.
Frequently Asked Questions
- Can I solve a right triangle from two angles?
- No. Two angles fix the shape but not the size — infinitely many similar triangles share the same angles. You need at least one side length.
- How do I find the height of a building with this?
- Stand a known distance from the base and measure the angle of elevation to the top. The height is opposite that angle, so height = distance × tan(angle). At 30 m and 40°, that is 30 × 0.839 ≈ 25.2 m — then add your eye height.