Triangle Calculator

Solve any triangle online. Find missing sides, angles, area and perimeter, including the hypotenuse of a right triangle, from three known measurements.

Enter any three measurements of your triangle, including at least one side, and the calculator fills in the rest: the other sides and angles, plus the area and perimeter. It works for right, acute and obtuse triangles, and it finds the hypotenuse of a right triangle.

Page units

Project:
Triangle
Triangle

Enter any three measurements, including at least one side. Each angle sits opposite the side with the same letter.

Which three measurements work?
  • All three sides.
  • Two sides and the angle between them.
  • Two angles and any one side.
  • Two sides and an angle that is not between them. This can give two different triangles.
Triangle diagramABCcab
Sides
Side a
—
Side b
—
Side c
—
Angles
Angle A
°
Angle B
°
Angle C
°

Calculation details

Enter three valid measurements to see the calculation steps.

Support ToolPrairie

Found our calculator helpful? Contributions are optional; no tax receipt is issued.

Practical tips

  • Enter only the three measurements you know. The calculator solves everything else.
  • Tick Right triangle when one angle is 90°. Angle B is then set for you and you only need two more measurements.
  • Click into a field to see which values still fit the measurements you have already entered.
  • Use the lock button on a value to keep it fixed. Once three values are locked, unlock one before changing another.

How the triangle calculation works

The calculator looks at which three measurements you entered and picks the matching rule. With three sides, or two sides and the angle between them, it uses the law of cosines. With two angles and a side, it finds the third angle because the three angles of a triangle add up to 180°, then uses the law of sines to find the remaining sides. With two sides and an angle that is not between them, the law of sines can point to two different triangles, so both are kept for you to compare. Area comes from two sides and the angle between them.

For sides 3 m, 4 m and 5 m, the law of cosines gives C = arccos((3² + 4² - 5²) ÷ (2 × 3 × 4)) = 90°. Area = 1/2 × 3 × 4 × sin(90°) = 6 m².For sides 3 ft, 4 ft and 5 ft, the law of cosines gives C = arccos((3² + 4² - 5²) ÷ (2 × 3 × 4)) = 90°. Area = 1/2 × 3 × 4 × sin(90°) = 6 ft².

In these formulas, sin and cos are the sine and cosine of an angle, arcsin and arccos (inverse sine and inverse cosine) give the angle that has a given sine or cosine, and √ is the square root. Lengths use in (inches), ft (feet), cm (centimeters) or m (meters), and areas use the matching square units, such as in² (square inches).

Worked examples

  • Three sides: sides of 3 m, 4 m and 5 m give angles of about 36.9°, 53.1° and 90°.Three sides: sides of 3 ft, 4 ft and 5 ft give angles of about 36.9°, 53.1° and 90°.
  • Two angles and a side: angles of 30° and 60° with a 10 m side opposite the 30° angle give a third angle of 90° and sides of about 17.3 m and 20 m.Two angles and a side: angles of 30° and 60° with a 10 ft side opposite the 30° angle give a third angle of 90° and sides of about 17.3 ft and 20 ft.
  • Two sides and an angle not between them: sides of 10 m and 15 m with a 30° angle opposite the 10 m side fit two different triangles, so the calculator shows both.Two sides and an angle not between them: sides of 10 ft and 15 ft with a 30° angle opposite the 10 ft side fit two different triangles, so the calculator shows both.

Scope and limits

This calculator solves one plane triangle from sides and angles. It does not parse radians or formulas, classify triangles, calculate medians or radii, give construction-code advice, or estimate materials and costs.

Triangle questions

Which measurements can I enter?

Any three measurements work as long as at least one is a side: all three sides, two sides and the angle between them, two angles and a side, or two sides and an angle that is not between them. Three angles alone are not enough because they give the shape but not the size. With Right triangle ticked, angle B is already 90°, so you only enter two more.

Why do I sometimes get two answers?

When you know two sides and an angle that is not between them, the side opposite that angle can swing to either of two positions. Both triangles can be valid, so the calculator shows both and lets you choose which one to view, share or print. Sometimes only one fits, and sometimes none does.

How do I find the hypotenuse of a right triangle?

Tick Right triangle, enter the two legs as sides a and c, and read the hypotenuse as side b. For example, legs of 3 and 4 give a hypotenuse of 5. The hypotenuse is the side opposite the 90° angle, and angle B is the 90° angle in this mode. Without the tick, no angle is assumed to be 90°, so side c is not automatically the hypotenuse.

Can I enter radians?

No. Angles are entered as decimal degrees with up to four decimal places. To convert radians to degrees, multiply by 180 and divide by π.

What happens if I enter more than three values?

Three measurements are enough, so entering a fourth clears the oldest unlocked value and the calculator works it out again. Your typed values are never overwritten by results. Use the lock button to keep a value fixed; once three values are locked, unlock one before changing another.

How do I find a missing side or angle of a triangle?

Enter the three measurements you know, with at least one side, and the missing sides and angles appear in the results. The three angles of a triangle always add up to 180°, so two known angles give the third.