Math · Every step shown

Triangle Calculator

Solve a triangle's missing angles, sides, and area using the Law of Sines and the Law of Cosines.

Enter your numbers

Press Solve with steps to see the answer and how to get it.

Job: Trigonometry
Your answer

Press Solve with steps to see the answer and every step.

How it works, examples and FAQ

Law of Cosines: c² = a² + b² − 2ab·cos(C). Law of Sines: a ÷ sin(A) = b ÷ sin(B) = c ÷ sin(C). Area (from three sides, Heron's formula): √(s(s−a)(s−b)(s−c)), where s is the half-perimeter.

Example (SSS): sides 3, 4, 5 form a right triangle — angles 36.87°, 53.13°, and 90°, with an area of 6.

What's the Law of Cosines used for?
Finding a missing side when you know two sides and the angle between them, or finding an angle when you know all three sides.

What's the Law of Sines used for?
Finding a missing angle or side once you already know one matching angle-side pair, by keeping the ratio of each side to the sine of its opposite angle equal.

Can this solve any triangle?
This calculator handles the two most common starting points — three sides (SSS), or two sides with the included angle (SAS).

More math calculators

Snap a photo of a problem →   All math tools →   All calculators →

These calculators show the method as well as the answer, so you can learn the steps and check your own work. If a result ever looks wrong, tell us on the Contact page with the numbers you entered.

Save or print your results

On a phone, choose Save as PDF on the next screen to keep a copy.