Skip to content

Online Right Triangle Calculator

    Find the missing sides and angles of a right triangle from two known measurements. Choose the pair you have in this right triangle calculator, then enter the lengths and any required angle.

    Geometry & measurements

    Right Triangle Calculator

    Find a missing side or angle from two known measurements. See the triangle’s area, perimeter and slope in the same calculation.

    Known measurements

    Adjacent Opposite Hypotenuse θ

    Sides accept decimals or fractions, such as 3.5 or 3 1/2. Opposite and adjacent are relative to angle θ.

    For right triangle calculations on your phone, Unit Converter is free to download. Its Construction Calculator includes a TRIG tool for finding sides and angles.

    How to use this tool

    1. Under Calculate from, choose the pair you know: two sides, Angle + adjacent, or Angle + opposite.
    2. Choose the units for the visible sides, then enter those lengths. Where an angle is required, enter Angle θ in degrees.
    3. Click Calculate. Use Result units for the side lengths, perimeter and area.

    What is a right triangle?

    A right triangle has one right angle, measuring 90°. Its other two angles are acute, meaning smaller than 90°, and together they add up to 90°. The two sides that meet at the right angle are called the legs.

    Right triangles describe the diagonal across a rectangle, the profile of a ramp and the relationship between a roof’s rise, run and slope length. A right triangle calculator finds missing lengths and angles from measurements you already know, helping connect a drawing’s horizontal and vertical dimensions to its diagonal.

    Identifying the hypotenuse, opposite and adjacent sides

    Opposite and adjacent name the two legs relative to a chosen acute angle, shown as θ in the diagram:

    Hypotenuse
    The side across from the right angle. It is always the longest side.
    Opposite
    The leg across from θ, without touching that angle.
    Adjacent
    The leg that meets θ. The hypotenuse also touches θ, but is not called the adjacent side in these formulas.

    Choosing the other acute angle swaps the opposite and adjacent labels. The hypotenuse stays the same. Rotating the drawing does not change these relationships.

    Finding the missing side of a right triangle

    The Pythagorean theorem relates the three side lengths. If a and b are the legs and c is the hypotenuse:

    a² + b² = c²

    When both legs are known, the hypotenuse is the square root of the sum of their squared lengths. When the hypotenuse and one leg are known, subtract the leg’s square from the hypotenuse’s square, then take the square root:

    • Hypotenuse: c = √(a² + b²)
    • Missing leg: a = √(c² − b²)

    The side lengths in these formulas use the same unit. The positive square root gives a length, and the hypotenuse must be longer than either leg.

    Finding angles with right triangle trigonometry

    The ratios of the sides determine the acute angles. The three basic relationships in right triangle trigonometry are:

    • sin θ = opposite ÷ hypotenuse
    • cos θ = adjacent ÷ hypotenuse
    • tan θ = opposite ÷ adjacent

    With both legs known, the inverse tangent gives the angle:

    θ = arctan(opposite ÷ adjacent)

    Here, arctan means the angle whose tangent equals the side ratio. The other acute angle is 90° − θ. Conversely, a known acute angle and adjacent length give opposite = adjacent × tan θ; a known angle and opposite length give adjacent = opposite ÷ tan θ. The calculator uses degrees for angles.

    Area and perimeter

    The legs are perpendicular, so they serve as the base and height when finding the area of a right triangle. Its perimeter is the distance around all three sides:

    Area = opposite × adjacent ÷ 2
    Perimeter = opposite + adjacent + hypotenuse

    Area measures the triangular region, useful when measuring a triangular panel or section of a drawing. It is expressed in square units. Perimeter measures the boundary and uses length units.

    Rise, run, pitch and percent grade

    When the adjacent leg is horizontal and the opposite leg is vertical, they become the run and rise. The hypotenuse follows the slope. This makes the same triangle useful for describing an incline in degrees, percent grade or rise-per-12 pitch.

    Percent grade = rise ÷ run × 100
    Pitch, as rise per 12 units of run = rise ÷ run × 12

    Both ratios use rise and run in matching units. As the USGS explanation of slope describes, run is the horizontal distance, rather than the distance along the incline. Using the sloping length in its place would give a different ratio. The calculator displays the angle, pitch and grade together so these descriptions can be compared.

    More tools: Browse all calculators and unit converters.

    Solve right triangles on your phone

    Keep right triangle calculations handy with Unit Converter’s Construction Calculator tools. Download it free from the App Store or Google Play.

    Leave a Reply

    Your email address will not be published. Required fields are marked *