1. Home
  2. Math
  3. Right Triangle Calculator

Right Triangle Calculator

Any two values solve a right triangle, as long as at least one is a side. Legs 5 and 12 give a hypotenuse of 13, angles of 22.62° and 67.38°, and an area of 30.

Know only a ramp’s length and its angle? Choose “Hypotenuse + angle” to get the rise and the run straight away.

I know both legs

Answer —

How we got this

    Your next step

    Your answer carries over, so you don’t have to type it again.

    SOH CAH TOA

    For an acute angle α in a right triangle:

    RatioFormulaMemory aid
    Sinesin α = opposite ÷ hypotenuseSOH
    Cosinecos α = adjacent ÷ hypotenuseCAH
    Tangenttan α = opposite ÷ adjacentTOA

    The two acute angles always add up to 90°, and a² + b² = c².

    Special right triangles

    TriangleSide ratioExample
    45°-45°-90°1 : 1 : √2Legs 1, hypotenuse 1.414
    30°-60°-90°1 : √3 : 2Short leg 1, long leg 1.732, hypotenuse 2

    In a 30-60-90 triangle the short leg (opposite 30°) is exactly half the hypotenuse.

    Worked example: a wheelchair ramp

    A ramp rises 0.5 m at an angle of 4.8°. Leg a = 0.5 opposite α = 4.8°. Hypotenuse c = 0.5 ÷ sin 4.8° ≈ 5.98 m of ramp; run b = 0.5 ÷ tan 4.8° ≈ 5.95 m.

    Other properties

    • Area = a × b ÷ 2.
    • Height to the hypotenuse h = a × b ÷ c.
    • Inradius r = (a + b − c) ÷ 2.
    • Circumradius R = c ÷ 2: the hypotenuse is a diameter of the circumscribed circle.

    Frequently asked questions

    How do I solve a right triangle?

    You need two values including at least one side. Use a² + b² = c² for sides and sine, cosine or tangent for angles.

    How do I find an angle from two sides?

    Use the inverse tangent: α = arctan(a ÷ b), where a is opposite α and b is next to it.

    Can I solve a right triangle with just two angles?

    No. Angles fix the shape but not the size. You need at least one side.

    What is the height of a right triangle?

    The legs are heights of each other. The height to the hypotenuse is a × b ÷ c.

    Last updated · Written and checked by the AzCalculator team · Calculations run in your browser with full precision and are rounded only for display. How we build calculators