Skip to Content
Triangle Calculator — Sides, Angles, Area, Perimeter & More

Calculator

Sides

a: — | b: — | c: —
Solved side lengths

Angles

A: — | B: — | C: —
Angles in degrees (A+B+C=180°)

Area & perimeter

Area: — | Perimeter: —
Heron or trigonometric area; sum of all sides

Heights

h_a: — | h_b: — | h_c: —
Altitudes from A, B, and C

Radii

Inradius: — | Circumradius: —
r = A/s, R = a/(2 sin A)

Classification

Side-type: — | Angle-type: —
Equilateral/Isosceles/Scalene; Acute/Right/Obtuse
Scaled sketch of the solved triangle with labeled sides and angles.
Tip: Valid input sets include SSS, SAS, ASA, and AAS. Provide at least three values with one side. Angles must be in degrees.

Triangles: A complete guide to sides, angles, and area

Triangles are fundamental geometric figures defined by three sides and three angles. With the right inputs, you can solve all unknowns and derive area, perimeter, altitudes, and inscribed/circumscribed circle radii. This guide explains valid input cases and the formulas the calculator uses.

Valid input cases

  • SSS: Three sides known. Use law of cosines to find angles, then compute area via Heron’s formula.
  • SAS: Two sides and included angle known. Use law of cosines to find the third side, then law of sines for remaining angles.
  • ASA/AAS: Two angles and one side known. Use angle sum to find the third angle, then law of sines for remaining sides.

Core formulas

  • Law of cosines: \(c^2=a^2+b^2-2ab\cos C\), and cyclic permutations.
  • Law of sines: \(\frac{a}{\sin A}=\frac{b}{\sin B}=\frac{c}{\sin C}\).
  • Heron’s area: \(A=\sqrt{s(s-a)(s-b)(s-c)}\), where \(s=\frac{a+b+c}{2}\).
  • Trigonometric area: \(A=\frac{1}{2}ab\sin C\) for SAS.
  • Altitudes: \(h_a=\frac{2A}{a}\), etc.
  • Inradius: \(r=\frac{A}{s}\), Circumradius: \(R=\frac{a}{2\sin A}\) (or \(R=\frac{abc}{4A}\)).

Classification

  • By sides: Equilateral (a=b=c), Isosceles (two equal), Scalene (all different).
  • By angles: Acute (all < 90°), Right (one = 90°), Obtuse (one > 90°).

Best practices

  • Validate: Angles must sum to 180°; sides must satisfy the triangle inequality.
  • Use degrees consistently: This calculator accepts degrees for all angles.
  • Check rounding: Small rounding differences are normal; keep adequate precision in inputs.

Worked example

SAS: a=7, b=9, C=52°. By law of cosines, \(c=\sqrt{7^2+9^2-2\cdot7\cdot9\cos52°}\approx7.38\). Using law of sines, \(A\approx46.7°\), \(B\approx81.3°\). Area \(=\frac{1}{2}ab\sin C\approx24.7\). Perimeter \(\approx23.38\). Altitudes: \(h_a=2A/a\), etc. Radii: \(r=A/s\), \(R=a/(2\sin A)\).

Frequently asked questions

HOW TO pick inputs for a unique solution?

Use SSS, SAS, ASA, or AAS. SSA can be ambiguous; avoid unless you confirm which case applies. Always include at least one side.

HOW TO compute area reliably?

Prefer Heron’s formula for SSS and \( \frac{1}{2}ab\sin C \) for SAS. The calculator selects the appropriate method automatically.

HOW TO verify triangle inequality?

For any sides, ensure \(a+b>c\), \(b+c>a\), and \(c+a>b\). If violated, the triangle is invalid.

HOW TO handle rounding and precision?

Use sufficient decimal places for angles and sides. Rounding can slightly affect derived measures; keep inputs consistent.

HOW TO classify triangles after solving?

The tool displays side-type and angle-type. Check equality within a small tolerance for classification.