Guide

THE TOOLBOX / SCHOOL & GEOMETRY MATH

Triangle Calculator —
SSS, SAS, ASA, AAS & SSA Solver.

Find every missing side, angle, area, perimeter, altitude, median, inradius, and circumradius instantly. Includes a live scaled SVG diagram, Law of Sines & Cosines step-by-step derivations, and automatic SSA ambiguous-case detection.

Presets:
Live Scaled Diagram
A (48.2°)B (58.4°)C (73.4°)c = 9a = 7b = 8
Solved Triangle Properties
ScaleneAcute Triangle
Area
26.833 cm²
Perimeter
24 cm
Semiperimeter (s)
12 cm
Side a
7 cm
Side b
8 cm
Side c
9 cm
Angle A
48.19°
Angle B
58.41°
Angle C
73.4°
Altitudes, Medians & Circle Radii
Altitudes (hₐ, hᵦ, hᶜ)7.67, 6.71, 5.96
Medians (mₐ, mᵦ, mᶜ)7.76, 7, 6.02
Inradius (r)2.2361 cm
Circumradius (R)4.6957 cm
Step-by-Step Trigonometric Derivation (SSS)
  1. Law of Cosines for A: cos(A) = (b² + c² − a²) / (2bc) → A = 48.19°
  2. Law of Cosines for B: cos(B) = (a² + c² − b²) / (2ac) → B = 58.412°
  3. Angle sum property: C = 180° − A − B = 73.398°
  4. Heron's Formula: s = 12, Area = √(s(s−a)(s−b)(s−c)) = 26.8328

FORMULAS & WORKED EXAMPLES

How to solve any triangle using the Law of Cosines, Law of Sines, and Heron’s formula.

1. SSS (Three Sides Known)

Given a = 7, b = 8, c = 9, use the Law of Cosines: cos(A) = (b² + c² − a²) / (2bc) = (64 + 81 − 49) / 144 = 0.6667, giving A ≈ 48.19°. Repeat for B and subtract from 180° for C.

2. SAS (Two Sides & Included Angle)

Given a = 6, b = 9, and included angle C = 110°, find the third side with c = √(a² + b² − 2ab·cos(C)) ≈ 12.41, then compute area directly via ½·a·b·sin(C) ≈ 25.37.

3. ASA & AAS (Two Angles & One Side)

First find the missing third angle using A + B + C = 180°. Then apply the Law of Sines (a / sin(A) = b / sin(B) = c / sin(C)) to calculate the remaining two sides cleanly.

Triangle Solver Reference Table

CaseKnown InputsPrimary FormulaUnique Solution?
SSSSides a, b, ccos(A) = (b² + c² − a²) / (2bc)Yes, if triangle inequality holds
SASSides a, b & angle Cc = √(a² + b² − 2ab·cos(C))Yes, for 0° < C < 180°
ASAAngles A, B & side ca = c·sin(A) / sin(180° − A − B)Yes, if A + B < 180°
AASAngles A, B & side ab = a·sin(B) / sin(A)Yes, if A + B < 180°
SSASides a, b & angle Asin(B) = b·sin(A) / a0, 1, or 2 solutions (Ambiguous Case)
RightLegs a, b (C = 90°)c = √(a² + b²), A = arctan(a/b)Yes, always unique

Frequently Asked Questions

What triangle cases can this triangle calculator solve?

It solves all six standard trigonometry cases: SSS (three sides), SAS (two sides and the included angle), ASA (two angles and the included side), AAS (two angles and a non-included side), SSA (including both solutions of the ambiguous case), and Right Triangles.

What is the SSA ambiguous case in trigonometry?

When you know two sides and a non-included angle (SSA), the opposite side can sometimes swing to meet the base at two different points—forming one acute triangle and one obtuse triangle. This calculator automatically detects the ambiguous case and lets you switch between Solution 1 and Solution 2.

How is triangle area calculated when only three sides (SSS) are known?

Using Heron’s Formula: first find the semiperimeter s = (a + b + c) / 2, then compute Area = √(s(s − a)(s − b)(s − c)).

Why does the calculator say the triangle inequality is violated?

In Euclidean geometry, the sum of the lengths of any two sides must be strictly greater than the length of the third side (a + b > c, a + c > b, and b + c > a). If not, the three segments cannot close to form a triangle.

What are the inradius (r) and circumradius (R) of a triangle?

The inradius r = Area / s is the radius of the largest circle that fits inside the triangle tangent to all three sides. The circumradius R = (abc) / (4 × Area) is the radius of the circle passing through all three vertices. You can toggle both circles on the live SVG diagram.

Does this triangle solver support radians as well as degrees?

Yes. Use the Angles selector to switch between Degrees (°) and Radians (rad) for both inputs and computed results. All calculations run 100% locally in your browser.