Right Triangle Calculator

Quick answer

The right triangle calculator solves a right triangle from any two values (two sides, one side and an angle, or the area and a leg) and gives all sides, angles, area, perimeter and the height to the hypotenuse.

Leg a
3
Leg b
4
Hypotenuse c
5
Angle α
36.869898
Angle β
53.130102
Area
6
Perimeter
12
Height to the hypotenuse
2.4

A right triangle is completely determined by two independent values. This calculator covers every useful combination, so whether you measured two sides of a ramp, one side and the slope angle, or know the area of a triangular plot, you get the whole triangle.

How to use the Right Triangle Calculator

  1. What do you know?
  2. Leg a (opposite α)
  3. Leg b (adjacent to α)
  4. Hypotenuse c
  5. Angle α
  6. Area

Results update as you type, and everything is calculated in your browser.

How it works

Choose what you know. Missing legs come from the Pythagorean theorem or SOH-CAH-TOA, the angles from arctan, and the height to the hypotenuse from the area.

Inputs explained

Field What to enter
What do you know? Choose one: Legs a and b, Leg a and hypotenuse c, Leg b and hypotenuse c, Angle α and leg a …
Leg a (opposite α) Units: cm, m, mm, in, ft, yd …
Leg b (adjacent to α) Units: cm, m, mm, in, ft, yd …
Hypotenuse c Units: cm, m, mm, in, ft, yd …
Angle α Units: °, rad, π rad, grad, turn
Area Units: cm², m², mm², in², ft², yd² …

What each result means

  • Hypotenuse c = sqrt([Leg a]^2 + [Leg b]^2)
  • Angle α = deg(atan([Leg a]÷[Leg b]))
  • Angle β = 90 – [Angle α]
  • Area = [Leg a]×[Leg b]÷2
  • Perimeter = [Leg a] + [Leg b] + [Hypotenuse c]
  • Height to the hypotenuse = [Leg a]×[Leg b]÷[Hypotenuse c]

Example values

How the main result changes when Leg a changes and everything else stays at the example values above:

Leg a (opposite α) (cm) Hypotenuse c (cm)
1.5 4.272
2.25 4.5894
3 5
3.75 5.4829
4.5 6.0208
6 7.2111

Formula

a² + b² = c², sin α = a/c, cos α = b/c, tan α = a/b Area = ab/2, h = ab/c

Worked example

Inputs: What do you know?: Legs a and b; Leg a (opposite α): 3 cm; Leg b (adjacent to α): 4 cm.
Results: Leg a = 3 cm; Leg b = 4 cm; Hypotenuse c = 5 cm; Angle α = 36.869898 °; Angle β = 53.130102 °; Area = 6 cm²; Perimeter = 12 cm; Height to the hypotenuse = 2.4 cm.

Key terms

Right triangle
A triangle with a 90° angle.

Frequently asked questions

How many values do I need?

Two, at least one of which is a length.

What is the height to the hypotenuse?

The altitude from the right angle: h = ab/c.

Can a right triangle have an obtuse angle?

No. The other two angles add to 90°.

What is the circumradius of a right triangle?

Half the hypotenuse.

Sources

  1. OpenStax: Algebra and Trigonometry 2e
  2. OpenStax: Prealgebra 2e
  3. Wolfram MathWorld: Right triangle

Cite this calculator

Speedy Calculator. (2026). Right Triangle Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/right-triangle/