Triangle Calculator
Any three values give the whole triangle, with exact answers and steps.
Type any three values of a triangle, at least one of them a side, to get the rest: every side and angle, the area and the working, drawn to scale with corners you can drag.
Two angles and a side not between them (AAS). Each angle sits opposite the side with its letter.
More optionsNo length unit
Length unit
A label for the answers; the maths is the same in any unit.
ExampleSide c
13.6603
Exactly 5 + 5√3. The triangle is acute and scalene.
Type your own values, or drag a corner.
Drag the round handles on the corners.
| Side | Opposite angle |
|---|---|
| a = 10given | A = 45°given |
| b = 12.2474exactly 5√6 | B = 60°given |
| c = 13.6603exactly 5 + 5√3 | C = 75°exactly 75° = 5π/12 rad |
Area (75 + 25√3)/2 ≈ 59.1506Perimeter 15 + 5√3 + 5√6 ≈ 35.9077
Area, perimeter, heights and circlesEvery other measurement of this triangle
| Area | (75 + 25√3)/2 ≈ 59.1506 square units |
|---|---|
| Perimeter | 15 + 5√3 + 5√6 ≈ 35.9077 |
| Height to side a | 11.8301 |
| Height to side b | 9.6593 |
| Height to side c | 8.6603 |
| Inradius (inscribed circle) | 3.2946 |
| Circumradius (circle through the corners) | 7.0711 |
| Angles in radians | A 0.7854, B 1.0472, C 1.309 |
How this works: 4 sources,
How this works
Method
Any three parts with at least one side fix the triangle. Three sides, or two sides and the angle between them, go through the law of cosines; two angles and a side through the angle sum and the law of sines; two sides and an angle not between them through the quadratic c = b·cos A ± √(a² − b²·sin² A), which gives two triangles, one or none. Decimals are floating point to 4 places; alongside them, values are kept exact with square roots of whole numbers (multiples of 15° have exact sines), and the area comes from Heron’s formula in squared sides, so 5, 6, 7 gives exactly 6√6.
Sources
How it’s tested
22 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: any three values, both triangles in the ambiguous case, exact answers, worked steps, a drawing you can drag and seven focused pages.
Key facts
- The three angles of a flat triangle always add up to 180° (Euclid, Elements I.32).
- Three sides, two sides with the angle between them, or two angles with a side each fix exactly one triangle; two sides with another angle can fit two, one or none.
- The law of cosines, c² = a² + b² − 2ab·cos C, is Pythagoras with a correction for angles other than 90°.
All 7 triangle calculators
Right triangles · Any triangle · Area and coordinates
Common questions
Which three values do I need?
Any three of the six parts, as long as one is a side: three sides (SSS), two sides and the angle between them (SAS), two sides and another angle (SSA), or two angles and a side (ASA or AAS). Three angles alone fix the shape but not the size, so they are not enough.
What happens when I type a fourth value?
The calculator keeps your three most recent values and clears the oldest, and says which one it cleared. Empty boxes show the solved values in grey, so you can see the whole triangle while you type.
How does dragging the drawing work?
Drag the top corner to reshape the triangle and the corner on the base to stretch it; the values you typed update as you go. Pick a value under “Keep fixed while dragging” to hold it: a held side makes the corner swing on a circle, and a held angle makes it slide along a line.
Why are some answers shown as square roots?
Because they are exact. Angles of 30°, 45°, 60° and the other multiples of 15° have sines and cosines made of square roots, and sides squared and added often aren’t perfect squares. The calculator keeps forms like 5√6 or 5 + 5√3 beside the decimals when they are short enough to help.