Enter the two legs and get the hypotenuse, both angles, area and perimeter — no trig tables needed.

Right Triangle Calculator

Enter the two legs and get the hypotenuse, both angles, area and perimeter — no trig tables needed.

Free to use Angles + area + perimeter Full working shown Save PDF · PNG · Share

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for leg a (opposite angle a).

One leg adjacent to the right angle.

Enter a valid value for leg b (opposite angle b).

The other leg.

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Right Triangle Calculator tinyexe.comFree online calculators

TinyExe · Right Triangle Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Leg a (opposite angle A)

—

Leg b (opposite angle B)

—

Result

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Right Triangle Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      To solve a right triangle from its two legs, square and add them and take the square root for the hypotenuse: legs 3 and 4 give sqrt(25) equals 5. The area is half the product of the legs, the angle opposite leg a is arctangent of a over b, and the two acute angles always sum to ninety degrees.

      • Hypotenuse c = sqrt(a^2 + b^2) (Pythagoras)
      • Area = a x b / 2 because the legs are base and height
      • Acute angles sum to 90 degrees; angle A = atan(a/b)

      Classic integer right triangles (Pythagorean triples)

      Reference values for this calculator.

      Leg aLeg bHypotenuse
      345
      51213
      81517
      72425
      202129

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      c = sqrt(a^2 + b^2) ; Area = a x b / 2 ; Angle A = atan(a / b), Angle B = 90 deg - A

      Ideas enhancement: from just the two legs this returns the hypotenuse plus both acute angles, area and perimeter in one run, so it serves as hypotenuse, angle and area calculator at once.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      The classic 3-4-5

      Legs a = 3, b = 4

      CalculationSteps
      c = sqrt(9 + 16) = sqrt(25) = 5. Area = 3 x 4 / 2 = 6. Angle A = atan(3/4) = 36.87 degrees, angle B = 53.13 degrees.Hypotenuse 5, area 6, angles 36.87 and 53.13 degrees.

      Result

      Example 2

      Isosceles right triangle

      Legs a = 1, b = 1

      CalculationSteps
      c = sqrt(1 + 1) = sqrt(2) = 1.4142. Area = 0.5. Both acute angles are 45 degrees.Hypotenuse 1.4142, area 0.5, angles 45 and 45 degrees.

      Result

      Example 3

      Steeper triangle

      Legs a = 5, b = 12

      CalculationSteps
      c = sqrt(25 + 144) = sqrt(169) = 13. Area = 5 x 12 / 2 = 30. Angle A = atan(5/12) = 22.62 degrees, angle B = 67.38 degrees.Hypotenuse 13, area 30, angles 22.62 and 67.38 degrees.

      Result

      How to use this calculator

      Step 1

      Enter leg a, one of the two sides forming the right angle.

      Step 2

      Enter leg b, the other side forming the right angle.

      Step 3

      Read the hypotenuse from c = sqrt(a squared plus b squared).

      Step 4

      Check the acute angles: angle A is atan(a/b) and angle B is 90 degrees minus A.

      Step 5

      Use the area (a times b divided by 2) or perimeter for your layout or material estimate.

      In short: A right triangle is a triangle with one 90-degree angle; the side opposite it is the hypotenuse, and the other two sides are the legs.

      Frequently asked questions

      How do I find the hypotenuse?

      Square both legs, add the squares, and take the square root: c = sqrt(a^2 + b^2). For legs 3 and 4 that is sqrt(9 + 16) = sqrt(25) = 5.

      How do I find the angles of a right triangle?

      The acute angle opposite leg a is atan(a/b), and the other acute angle is 90 degrees minus the first. The right angle itself is always 90 degrees.

      Can I use this if I know the hypotenuse and one leg?

      Solve the missing leg first with b = sqrt(c^2 - a^2), then enter both legs here. This tool is scoped to the two-legs case stated on the page.

      What is the area of a right triangle?

      Half the product of the two legs, because the legs are perpendicular and act as base and height: area = a x b / 2.

      What units does it use?

      Any consistent length unit: if the legs are in metres, the hypotenuse is in metres and the area in square metres. Angles are always in degrees.

      About this calculator

      A right triangle calculator solves a triangle that contains one 90-degree angle from its two legs: it finds the hypotenuse (the long side opposite the right angle), both acute angles, the area and the perimeter in one calculation.

      Every right triangle obeys the Pythagorean theorem: the square of the hypotenuse equals the sum of the squares of the legs. That single relation is why two legs are enough to fix the whole triangle — the hypotenuse follows from c = sqrt(a^2 + b^2), and the shape (and therefore both angles) is then completely determined.

      The angles come from the tangent ratio: the tangent of the angle opposite leg a is a/b, so the angle is the arctangent of that ratio. Because the three angles of any triangle sum to 180 degrees and one of them is 90, the two acute angles always sum to 90 degrees — a fast sanity check on any answer. The area needs no extra height measurement because the legs are already perpendicular: each leg is the height relative to the other.

      Use it whenever a real problem has a genuine right angle: checking a ramp or roof pitch, squaring a foundation or deck corner, finding a ladder's reach, working out a screen's diagonal, or any school trigonometry question that starts from two perpendicular sides.

      How to calculate it yourself

      Step 1

      Write down the two legs, a and b, in the same unit.

      Step 2

      Square each leg and add the squares: a^2 + b^2.

      Step 3

      Take the square root of the sum — that is the hypotenuse c.

      Step 4

      Find angle A with atan(a/b) and angle B as 90 degrees minus A.

      Step 5

      Compute the area as a x b / 2 and, if needed, the perimeter as a + b + c.

      Real-life examples

      Squaring a deck frame

      A builder checks a rectangular deck frame 3 m by 4 m: if the diagonal measures exactly the calculated hypotenuse, the corners are true right angles.

      Diagonal = sqrt(3^2 + 4^2) = sqrt(25) = 5 m.

      The diagonal should measure 5.00 m; a longer or shorter tape reading means the frame is racked and needs adjusting.

      Ladder reach on a house wall

      A ladder's foot stands 2.5 m from a wall and the ladder must reach a gutter. Treating the wall and ground as the legs with a = 2.5 and b = 6 gives the ladder length needed.

      c = sqrt(2.5^2 + 6^2) = sqrt(6.25 + 36) = sqrt(42.25) = 6.5 m.

      A 6.5 m ladder just reaches; in practice the builder chooses the next size up for safe overlap.

      Ideas & use cases

      • Squaring check: measure both legs of a foundation corner and compare the real diagonal tape reading with the calculated hypotenuse to prove the corner is square.
      • Screen and TV sizing: enter a screen's width and height as the legs — the hypotenuse is the advertised diagonal size, so you can verify a 16:9 panel's true dimensions.
      • Roof pitch what-if: fix the horizontal run as one leg and try different rises as the other leg to see how rafter length (hypotenuse) and pitch angle change.

      Limitations & sources

      • Solves the triangle from the two legs only. If you know the hypotenuse plus a leg or an angle, rearrange Pythagoras or use the Triangle Calculator first.

      Sources: Pythagoras theorem and elementary trigonometry: standard references (e.g. OpenStax Algebra and Trigonometry, right-triangle chapter)

      Right Triangle Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results