Right Triangle Solver logo
Right Triangle Solver

Right Triangle Calculator

Enter two measurements, one of them a side, and solve the whole triangle: missing sides, acute angles, area, and more, with every step shown.

52 focused calculators with step-by-step solutions. Free, no sign-up, runs in your browser.

Browse all 52 calculators arrow_downward

Solve a Right Triangle

Enter any two values, including at least one side, and the calculator finds the missing sides, acute angles, area, perimeter, altitude, and radii. Two angles alone cannot fix a triangle's size, so at least one side is required.

Enter any 2 valid right-triangle values.

Angle mode Radian entries like pi/6 are supported.

Solve sides, angles, and derived measures. View formulas and steps.

Show Formulas Used
Side a-
-
Side b-
-
Hypotenuse c-
-
Angle A-
-
Angle B-
-
Area-
Perimeter-
Altitude h-
Semiperimeter s-
Inradius r-
Circumradius R-
Segment p-
Segment q-

Live Visualization

Right Triangle Diagram

Scaled
a = input b = input c = result A = — B = — h = —

a:c ratio

-

b:c ratio

-

tan(A)

-

Solution Steps

  1. 01 Enter at least 2 values with at least one side.

What Is a Right Triangle?

A right triangle has one angle of exactly 90°. The two sides forming that angle are the legs, and the side opposite it is the hypotenuse, the longest side of the triangle. The other two angles are acute, and together they add up to 90°: A + B = 90°.

Because one angle is already fixed at 90°, two independent measurements, one of them a side, are enough to determine every other side and angle.

The parts of a right triangle

The right angle sits at vertex C. Side a faces angle A, side b faces angle B, and side c, the hypotenuse, faces the right angle.

Standard notation used in the solver

  • a: leg opposite angle A.
  • b: leg opposite angle B.
  • c: hypotenuse, opposite the 90° angle and always the longest side.
  • A and B: acute angles, with A + B = 90°.
  • C: the right angle, 90°.
  • h: altitude from vertex C to the hypotenuse.
  • p: hypotenuse segment adjacent to leg a; q: hypotenuse segment adjacent to leg b.
  • r: inradius; R: circumradius.
Right triangle labelled with two legs, hypotenuse, right angle, and acute angles.
Legs a and b meet at the right angle C. The hypotenuse c faces the right angle, and A + B = 90°.

Core Right Triangle Formulas You Need First

Before solving any question, identify what values are known and choose the formula family that matches that input type.

Side formulas

  • Pythagorean theorem: a² + b² = c².
  • Hypotenuse from both legs: c = √a² + b².
  • Missing leg from hypotenuse and one leg: a = √c² − b² or b = √c² − a². The subtraction stays inside the square root, and c must be longer than the known leg.
  • Special triangles: 45-45-90 and 30-60-90 triangles have fixed side ratios, so one known side determines the rest.
Three-four-five right triangle illustrating the Pythagorean theorem.
The 3-4-5 triangle: 3² + 4² = 5², so the hypotenuse is 5.

Angle and trigonometric formulas

  • Ratios for angle A: sin(A) = a / c, cos(A) = b / c, tan(A) = a / b.
  • Angle from two legs: A = arctan(a / b), then B = 90° − A.
  • Angle from other sides: A = arcsin(a / c) or A = arccos(b / c), depending on which sides are known.
  • Angle mode: use the degree/radian switch to match the units of the angle you enter.

Measurement and geometry formulas

  • Area: (a × b) / 2. Perimeter: P = a + b + c. Semiperimeter: s = (a + b + c) / 2.
  • Altitude to the hypotenuse: h = (a × b) / c.
  • Hypotenuse projections: p = a² / c and q = b² / c, with p + q = c. Segment p sits next to leg a; segment q sits next to leg b.
  • Inradius: r = (a + b − c) / 2. Circumradius: R = c / 2.

How to Solve a Right Triangle

  1. Identify the known measurements: write down the sides, angles, and units exactly as given.
  2. Work out what is known and what is missing: which sides and angles do you have, and which do you need?
  3. Select the formula that matches your inputs: a side formula, a trig ratio, or an inverse trig relation.
  4. Substitute the known values into the formula, keeping the units consistent.
  5. Calculate the missing measurement, keeping full precision until the final step.
  6. Repeat for each remaining unknown until the triangle is fully solved.
  7. Check the result: c must be the longest side, A + B must equal 90°, and the values must satisfy the formula used.

How This Solver Presents Step-by-Step Results

The solver shows the formula it used, your values substituted into it, the computed answer, and a short explanation, so each step can be checked.

  • Formula: the exact relation selected for your inputs.
  • Substitution: your input values placed into that relation.
  • Answer: the computed value, with its unit.
  • Explanation: short clarity note for quicker understanding.

Worked Example: The 3-4-5 Triangle

Take the classic 3-4-5 triangle, legs a = 3 and b = 4. Here is the full solve, in the same order the calculator follows.

  • Problem: legs a = 3 and b = 4. Find the hypotenuse, the acute angles, the area, and the altitude.
  • Hypotenuse: c = √a² + b² = √3² + 4² = √25 = 5. The result is longer than either leg, as it must be.
  • Angles: A = arctan(a / b) = arctan(3 / 4) = 36.87°. Then B = 90° − 36.87° = 53.13°.
  • Area and perimeter: area = (3 × 4) / 2 = 6 square units; perimeter = 3 + 4 + 5 = 12 units; semiperimeter s = 12 / 2 = 6 units.
  • Altitude: h = (a × b) / c = (3 × 4) / 5 = 2.4 units. Check: p = 9 / 5 = 1.8 and q = 16 / 5 = 3.2, and 1.8 + 3.2 = 5.

Practical Use Cases

  • Classroom and exam practice: work through geometry and trigonometry problems with steps you can check.
  • Ladders and ramps: find a ladder's reach or a ramp's length from measurements taken on site.
  • Rectangular spaces: find the diagonal of a room, plot, or frame from its length and width.
  • Construction layouts: check squaring with the 3-4-5 rule, and verify rise, run, and stringer length on stairs and decks.
  • Slopes and drawings: turn a slope or an angled drawing dimension into exact side lengths.

Worked Example: How High Does a Ladder Reach?

Problem: a 5 m ladder rests against a vertical wall, with its base 3 m from the wall. How high does it reach?

  • Given: hypotenuse c = 5 m, horizontal leg = 3 m, unknown vertical leg h.
  • Formula: h = √c² − a².
  • Substitution: h = √5² − 3² = √25 − 9 = √16 = 4 m.

Final answer: the ladder reaches 4 m up the wall. The ladder, wall, and floor form a right triangle only when the wall is vertical and the ground is level, and this model does not replace ladder-safety rules.

Five-metre ladder leaning against a wall with a three-metre base distance and four-metre height.
A 5 m ladder with its base 3 m from the wall reaches 4 m up the wall.

Accuracy Checklist Before You Finalize

  • Keep all side inputs in the same unit before solving.
  • Check that the hypotenuse c is longer than either leg.
  • Use the degree/radian switch that matches your angle inputs.
  • Round only at the final answer, not during intermediate steps.
  • Cross-check with one related calculator when precision matters.
  • Confirm the two acute angles add up to 90°, allowing a small difference from rounded display decimals.

Reference Values

Compare common right-triangle families and their hypotenuse values. These are the triples that show up most often in textbooks, exams, and site work.

Triangle Hypotenuse
3-4-5 triangle 5.000
5-12-13 triangle 13.000
8-15-17 triangle 17.000
9-12-15 triangle 15.000
8-15-17 triangle 17.000
9-12-15 triangle 15.000

The Complete Collection

All Tool Calculators

52 calculators

All-in-one calculator

1 calculator

Enter any two values of a right triangle and solve for every missing side and angle, or jump to a focused calculator.

Special right triangles

3 calculators

Shortcuts for 45-45-90 and 30-60-90 triangles.

Pythagorean triples

4 calculators

Integer side lengths satisfying the Pythagorean relationship.

Latest Guides and Worked Examples

Frequently Asked Questions

Answers to the most common right-triangle solving questions.

01 What information do I need to solve a right triangle?

Two independent measurements, including at least one side. Two legs, one leg and the hypotenuse, or one side and one acute angle are all enough. Two angles alone fix the shape but not the size, so they cannot determine the side lengths.

02 Can I solve a right triangle using two sides?

Yes. Two legs give the hypotenuse through the Pythagorean theorem, and one leg plus the hypotenuse gives the other leg. The acute angles then follow from inverse trig ratios.

03 Can I solve a right triangle using one side and one angle?

Yes. With one acute angle and one side, sine, cosine, or tangent gives the remaining sides, and the second angle is 90° minus the known angle.

04 How do I calculate the hypotenuse?

If both legs are known, use c = √a² + b². For legs 3 and 4, c = √9 + 16 = √25 = 5.

05 How do I find a missing leg?

Use a = √c² − b² or b = √c² − a², with the whole subtraction inside the square root. The hypotenuse must be longer than the known leg, or the inputs cannot form a right triangle.

06 Why is the hypotenuse the longest side?

Because c² = a² + b², and both a² and b² are positive, c² is larger than either a² or b² alone. So c is longer than either leg.

07 Why might rounded angles not add up to exactly 90°?

The exact angles always add to 90°, but displayed values are rounded to two decimals. Two rounded values can add to 89.99° or 90.01°. The small difference is rounding, not an error in the triangle.

08 When should I use a specialized right-triangle calculator?

Use a focused calculator when you need one job done well, such as an area from altitude, a projection, or a 30-60-90 triangle. The homepage solver covers the full triangle; the focused tools go deeper on a single measurement.