Triangle Calculator (SSS, SAS, ASA, AAS, SSA Solver with Area)
Solve any triangle from three sides, two sides and the included angle, two angles and a side, or the ambiguous SSA case — law of sines and cosines steps, area, perimeter, heights, inradius and circumradius.
Triangle Solver — interactive calculator, computed instantly in your browser.
Solving Any Triangle: Law of Sines, Law of Cosines, and the Ambiguous SSA Case
Five Given-Set Patterns, Two Laws, Zero Guesswork
| Given | Method | First Step |
|---|---|---|
| SSS — three sides | Law of cosines ×3 | cosA = (b² + c² − a²) ÷ 2bc |
| SAS — two sides + included angle | Law of cosines → law of sines | a² = b² + c² − 2bc·cosA |
| ASA — two angles + included side | Angle sum → law of sines | third angle = 180° − B − C |
| AAS — two angles + any side | Angle sum → law of sines | third angle = 180° − A − B |
| SSA — two sides + non-included angle | Ambiguous case — height test | h = b·sinA, compare with a |
| Worked Example | Key Result |
|---|---|
| SSS: sides 3, 4, 5 | Right triangle — A 36.87°, B 53.13°, C 90°, area 6, R = 2.5, r = 1 |
| SAS: b = 5, c = 7, A = 40° | a² = 74 − 70·cos40° = 20.377 → a = 4.5141, area = ½·5·7·sin40° = 11.249 |
| ASA: a = 10, B = 60°, C = 45° | A = 75° → b = 8.9658, c = 7.3205, area = 31.698 |
| SSA: a = 6, b = 9, A = 30° | h = 4.5 < 6 < 9 → two triangles: B = 48.59° (c = 11.767) or B = 131.41° (c = 3.827) |
Key Takeaway: The given pattern picks the law. SSS and SAS start with the law of cosines (it never produces an ambiguous angle); ASA and AAS start with the 180° angle sum and finish with the law of sines. Only SSA can produce zero, one, or two triangles — the height test h = b·sinA decides which.
"Solve the triangle" means finding all three sides and all three angles from whatever three pieces you were given (at least one of them a side). Two tools cover every case: the law of cosines for side-side-side and side-angle-side setups, and the law of sines once an angle-side pair is known. One pattern — SSA — can produce two valid triangles, and recognizing it is the difference between a correct answer and a confident wrong one.
1. Law of Cosines: SSS and SAS
The law of cosines generalizes the Pythagorean theorem to non-right triangles:
In SSS (three sides given), the rearranged cosine form recovers each angle directly: for sides 3, 4, 5, cosA = (16 + 25 − 9) ÷ 40 = 0.8, so A = 36.87°, B = 53.13°, and C = 90° — the theorem quietly confirms the triple is right. In SAS (two sides and the included angle), the standard form finds the missing side first. With b = 5, c = 7 and A = 40°: a² = 25 + 49 − 2×5×7×cos40° = 74 − 53.623 = 20.377, so a = 4.5141, and the area comes free from K = ½·b·c·sinA = 17.5 × sin40° = 11.249. Because the included angle pins the third side uniquely, SAS never has an ambiguous case.
2. Angle Sum + Law of Sines: ASA and AAS
Two angles immediately fix the third — the interior angles of a planar triangle always sum to 180°. From there the law of sines scales one known side onto the other two:
For ASA with a = 10, B = 60°, C = 45°: A = 180° − 60° − 45° = 75°, then b = 10·sin60°/sin75° = 8.9658 and c = 10·sin45°/sin75° = 7.3205, with area ½·a·b·sinC = 31.698. AAS is the same machinery with the side anywhere — the angle sum still runs first, then the sines. Notice the shared ratio 2R: that is the circumdiameter, which is why the law of sines also hands you the circumradius for free.
3. The Ambiguous SSA Case
SSA (two sides and a non-included angle) is the only pattern that can produce two triangles, because the sine function is positive in both quadrant I and II — sin(48.59°) = sin(131.41°) = 0.75. The height test decides the outcome before any solving: compute h = b·sinA and compare it with side a.
- a < h → no triangle: side a cannot reach the base line. Example: a = 4, b = 9, A = 30° gives h = 4.5, and 4 < 4.5 fails.
- a = h → exactly one right triangle (B = 90°).
- h < a < b → two triangles (the ambiguous case). Example: a = 6, b = 9, A = 30° gives sinB = 0.75, so B = 48.59° with C = 101.41° and c = 11.767, or B = 131.41° with C = 18.59° and c = 3.827.
- a ≥ b → exactly one triangle (the obtuse B would violate the angle sum).
One extra guard: if the given angle A is 90° or obtuse, side a must be the longest side or no triangle exists at all. The calculator runs all four branches live and shows both solutions when the case is ambiguous.
4. Derived Quantities: Area, Heights, Inradius, Circumradius
Once the six parts are known, the derived measurements fall out of three formulas. Heron's formula K = √(s(s−a)(s−b)(s−c)) with semiperimeter s = (a+b+c)/2 gives the area from sides alone — no height needed. Each height is ha = 2K/a (and cyclically), useful when a triangle is drawn with a labeled altitude. The inradius is r = K/s — the radius of the circle tangent to all three sides — and the circumradius is R = abc/(4K) = a/(2·sinA), the radius of the circle through all three vertices. For the 3-4-5 triangle: s = 6, K = 6, r = 1, R = 2.5 (half the hypotenuse — a right-triangle signature worth remembering). Right-triangle results are worth a sanity check against the 📐 Pythagorean Calculator, side slopes against the 📈 Slope Calculator, and any side length that comes out of an equation against the 🧮 Quadratic Formula Calculator — all inside the ➗ Math Hub.
🔗 Geometry & Algebra Cross-References
Triangles are where algebra meets geometry — verify a right triangle with the 📐 Pythagorean Calculator, measure the slope of any side with the 📈 Slope Calculator, and start from the ➗ Math Hub.
Side lengths feed distance and coordinate problems — the quadratic solver handles the algebra when a side comes from an equation, and exponent math powers the squares inside every formula above.
Frequently Asked Questions (Triangle Solver)
Use the law of cosines in its rearranged form for each angle: cosA = (b² + c² − a²) ÷ 2bc. For sides 3, 4, 5 this gives A = 36.87°, B = 53.13°, C = 90°. Then get the area from Heron's formula with semiperimeter s = 6: K = √(6×3×2×1) = 6.
When two sides and a non-included angle are given, the law of sines can produce two valid angles for B (an acute one and its 180° supplement) because sine is positive in both the first and second quadrants. The height test h = b·sinA decides: a < h means no triangle, a = h one right triangle, h < a < b two triangles, and a ≥ b exactly one.
Start with the law of cosines for SSS (find angles from three sides) and SAS (find the missing side from two sides and the included angle) — it never produces an ambiguous angle. Once you know an angle-side pair, the law of sines is faster for the remaining parts, which is why ASA and AAS problems begin with the 180° angle sum and then use sines.
Three routes: Heron's formula K = √(s(s−a)(s−b)(s−c)) from all three sides; K = ½·b·c·sinA from two sides and the included angle (SAS); or K = abc/(4R) if the circumradius is known. The calculator shows Heron's value alongside the side-based area check.
No. Roth IRAs have never had lifetime RMDs for the owner, and since 2024 SECURE 2.0 eliminated RMDs on employer Roth accounts (Roth 401(k), 403(b), 457) too. The catch is for heirs: non-spouse beneficiaries generally must empty inherited Roth accounts within 10 years under the SECURE Act.