Right triangle calculator

Two legs determine everything else about a right triangle.

Hypotenuse
5m
≈ Rounded Right triangle solver
Angle opposite a
36.869 90 degrees
Angle opposite b
53.130 10 degrees
Area
6
Perimeter
12
Altitude to the hypotenuse
2.4
Inradius
1
Circumradius
2.5
Show the working
  1. Leg a = 3
  2. Leg b = 4
  3. Hypotenuse = hypot(3, 4) = 5
  4. Angle opposite a = 5 > 0 ? deg(asin(clamp(3/5, -1, 1))) : 0 = 36.8699
  5. Angle opposite b = 90 - 36.8699 = 53.1301
  6. Area = 3*4/2 = 6
  7. Perimeter = 3 + 4 + 5 = 12
  8. Inradius = (3 + 4 - 5)/2 = 1
  9. Circumradius = 5/2 = 2.5
  10. Altitude to the hypotenuse = 5 > 0 ? 3*4/5 : 0 = 2.4

Values are shown to six significant figures here; the arithmetic itself runs on exact fractions and is only rounded where a number is printed.

Scenarios & local history

Compare a saved scenario

Recent calculations

    The formula

    • c = sqrt(a^2 + b^2)
    • inradius = (a + b - c)/2, circumradius = c/2
    • altitude to the hypotenuse = ab/c

    The circumcentre of a right triangle sits exactly on the midpoint of the hypotenuse.

    Related calculators

    Settings

    Theme

    System follows your operating system and changes with it.

    Text size
    High contrast

    Maximises text and border contrast and removes the grid background.

    Graph-paper background

    Round to
    Notation
    Thousands separators
    Decimal mark
    Nearest fraction

    Shows the result as the nearest tape-measure fraction, with the error it costs.


    Accessibility & interaction
    Reduce motion Stops interface animations even when the operating system does not.
    Underline links Keeps links visually distinct without relying on colour.
    Larger touch targets Makes buttons and form controls easier to tap.
    Shorter reading lines Limits article width for easier scanning.
    Monochrome display Removes colour as an information cue.
    Always-visible focus Makes the keyboard focus ring persistent and stronger.
    Verbose screen-reader results Announces the complete conversion equation.
    Sticky action bars Keeps converter and calculator actions within reach.
    Select values on focus Replaces a value immediately when you start typing.
    Left-handed mobile layout Moves key mobile actions toward the left thumb.

    Your data

    Settings, recent conversions and favourites live in this browser only. Nothing is sent anywhere.

    Offline library