Free online formula calculators

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.

Right Triangle Calculator
Result
Leg a6
Leg b8
Hypotenuse c10
Angle A36.87 °
Angle B53.13 °
Area24 sq units
Perimeter24

Link to this calculation

Formula

a2 + b2 = c2
sin A = a ÷ c   cos A = b ÷ c   tan A = a ÷ b
A + B = 90°
SymbolMeaning
a, bLegs; a is opposite angle A, b is opposite angle B
cHypotenuse, opposite the right angle
A, BThe two acute angles

How to Use This Calculator

  1. Choose the Known values (Legs a and b, Leg a and hypotenuse c, Leg a and angle A, Hypotenuse c and angle A).
  2. Enter the Leg a.
  3. Enter the Leg b.
  4. Enter the Hypotenuse c when Known values is Leg a and hypotenuse c or Hypotenuse c and angle A.
  5. Enter the Angle A (°) when Known values is Leg a and angle A or Hypotenuse c and angle A. The angle opposite leg a.
  6. Press Calculate. Results also update automatically as you type.

Worked Example

Using the values pre-filled in the calculator above:

Inputs
Known valuesLegs a and b
Leg a6
Leg b8
Results
Leg a6
Leg b8
Hypotenuse c10
Angle A36.87 °
Angle B53.13 °
Area24 sq units
Perimeter24

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.

Category: Geometry. Found a problem with this calculator? Let us know.