Triangle Calculator
Solve any triangle from three of its sides and angles: SSS, SAS, ASA, AAS, or SSA, where there can be two answers. Get every side and angle, the area, perimeter, heights, medians, inradius and circumradius, drawn to scale.
How to Use
- Fill in any three of the six boxes, at least one of them a side. Angle A is opposite side a, B opposite b, C opposite c.
- Leave the other three blank; the calculator works out which case it is (SSS, SAS, ASA, AAS or SSA).
- Read the area, perimeter, all three angles and the type of triangle.
- The table lists every side and angle, the heights, medians, inradius and circumradius.
- If two different triangles fit (the ambiguous SSA case), both are drawn and listed.
Worked Example
Three sides: 7, 10, 5. By the law of cosines, cos A = (10² + 5² − 7²) ÷ (2 × 10 × 5) = 76 ÷ 100, so A = 40.54°; similarly B = 111.80° and C = 27.66°. Heron’s formula with s = 11 gives the area √(11 × 4 × 1 × 6) = 16.25.
Two angles and a side: A = 40°, B = 60°, c = 10. C = 180° − 40° − 60° = 80°. By the law of sines a = 10 × sin 40° ÷ sin 80° = 6.527 and b = 10 × sin 60° ÷ sin 80° = 8.794.
The common mistake: missing the second triangle. For a = 6, b = 8, A = 30°, a calculator’s arcsin gives B = 41.81°, but B = 138.19° works too, because sin 138.19° = sin 41.81° and 138.19° + 30° is still under 180°. Both triangles are real.
Show Work
Formulas
Triangulation
Heron of Alexandria gave his area formula in the Metrica around 60 AD, and the law of sines for plane triangles was written down by the Persian mathematician Nasir al-Din al-Tusi in the 13th century. Al-Kashi stated the law of cosines in a trigonometric form in the 15th century, which is why it is called his theorem in France.
Solving triangles became the basis of mapping. The Great Trigonometrical Survey of India (1802–1871) measured a chain of triangles across the subcontinent with a single measured baseline and thousands of angles, and along the way determined the height of Mount Everest.
About This Calculator
This calculator solves a triangle from any three of its six parts, working out the case itself. It handles the ambiguous SSA case properly, showing both triangles when two exist and explaining when none does, and gives the area, perimeter, type, all three heights and medians, the inradius and the circumradius, with a drawing to scale.
Everything runs in your browser; nothing is sent anywhere.
Related calculators: Pythagorean Theorem Calculator, Trigonometry Calculator, and Computational Geometry Toolkit.
Frequently Asked Questions
Which three values do I need?
Any three that include at least one side. Three sides (SSS), two sides and the angle between them (SAS), two angles and a side (ASA or AAS) each fix exactly one triangle. Three angles fix only the shape, not the size. Two sides and an angle not between them (SSA) can give zero, one or two triangles.
What is the law of sines?
In any triangle a / sin A = b / sin B = c / sin C: each side divided by the sine of its opposite angle gives the same number (twice the circumradius). With A = 40°, B = 60° and c = 10, C = 80° and a = 10 × sin 40° ÷ sin 80° = 6.527.
What is the law of cosines?
c² = a² + b² − 2ab cos C, Pythagoras’ theorem corrected for an angle that isn’t 90°. It finds the third side from two sides and the angle between them, and any angle from three sides. For b = 5, c = 7 and A = 49°: a² = 25 + 49 − 70 cos 49° = 28.08, so a = 5.299.
Why are there sometimes two triangles?
With two sides and an angle opposite one of them (SSA), the law of sines gives a sine, and two angles share each sine: x and 180° − x. For a = 6, b = 8, A = 30°: sin B = 8 × 0.5 ÷ 6 = 0.667, so B is 41.81° or 138.19°, and both fit. If side a were less than b sin A = 4, no triangle would exist at all.
How do I find the area from three sides?
With Heron’s formula: s = (a + b + c) ÷ 2, then area = √(s(s − a)(s − b)(s − c)). For sides 7, 10 and 5: s = 11, area = √(11 × 4 × 1 × 6) = √264 ≈ 16.25. With two sides and the angle between them it is simply ½ab sin C.
How do I use the Triangle Calculator?
Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.
Is it free? Does it work without internet?
Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.
Where does my data go?
Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.
Common Use Cases
Land plots
A plot with sides 70, 100 and 50 m covers 1,625 m² (Heron).
Surveying
Angles of 40° and 60° from a 10 m baseline put the point 6.53 m from one end.
Roof trusses
Two 5 m rafters meeting at 100° span 7.66 m.
Navigation
Find the distance off a course from two bearings and the distance run.
Homework
See both answers in the ambiguous SSA case.
Last updated: