Triangle Calculator (General)

This calculator solves any triangle from the minimum information you have, working out every missing side and angle plus the area and perimeter, using the law of cosines and the law of sines. Choose what you know: three sides (SSS), two sides and the included angle (SAS), two angles and the included side (ASA), two angles and a non-included side (AAS), or two sides and a non-included angle (SSA). Enter your known sides in any consistent unit and known angles in degrees, and the calculator shows only the fields relevant to your case, alongside a diagram that updates to match your triangle. It returns every side length, every angle, the area in square units, the perimeter, the longest side, and whether the triangle is acute, right or obtuse, and equilateral, isosceles or scalene. Because the SSA case can be ambiguous, with two triangles fitting the same measurements, it checks for a second valid solution and shows it separately when one exists. Use it for geometry homework, trade measurements, navigation problems, or whenever you know part of a triangle and need the rest. If your values cannot form a valid triangle, such as angles summing to 180 degrees or more, the calculator flags this rather than showing a wrong answer. Results are given to four significant figures, so verify critical measurements independently for construction or engineering use.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
Standard geometry  Law of cosines and law of sines. Handles SSS, SAS, ASA, AAS, and SSA cases including the ambiguous (two-solution) case.

1. Known Information

Side a, angle C (the angle between sides a and b), side b.

2. Triangle Diagram

C A B b a c

Side a is opposite angle A, side b opposite B, side c opposite C.

Triangle Solution

Area
15.1554
Square units
Perimeter
18.245
Units
Longest Side
7
Units
Triangle Type
Acute / Scalene
By angles / sides

All Sides

Side a (opposite A)5
Side b (opposite B)7
Side c (opposite C)6.245
Perimeter (a + b + c)18.245

All Angles

Angle A (opposite a)43.8979°
Angle B (opposite b)76.1021°
Angle C (opposite c)60°
Sum of angles180°

Second Solution (SSA Ambiguous Case)

The given information also describes a second valid triangle:

Side a: -
Side b: -
Side c: -
Angle A: -
Angle B: -
Angle C: -
Area: -
Perimeter: -
Result: Enter your triangle values above.

How to Solve Any Triangle

A triangle has six measurements: three sides (a, b, c) and three angles (A, B, C). You need to know at least three of these (with at least one being a side) to determine the triangle. The two main tools for solving triangles are the law of cosines and the law of sines.

The Law of Cosines

The law of cosines relates all three sides to one of the angles:

c² = a² + b² − 2ab·cos(C)

This is used in two cases:

The Law of Sines

The law of sines relates sides to their opposite angles:

a / sin(A) = b / sin(B) = c / sin(C)

This is used in the ASA, AAS, and SSA cases. For ASA and AAS, the third angle is found first (angles sum to 180°), then the remaining sides are found by proportion. SSA requires care because it may produce two solutions.

Worked Example (Default Values)

Given side a = 5, angle C = 60°, side b = 7 (SAS case):

  1. Find side c using the law of cosines: c² = 5² + 7² − 2 × 5 × 7 × cos(60°) = 25 + 49 − 35 = 39, so c = √39 ≈ 6.245
  2. Find angle A using the law of sines: sin(A) = a × sin(C) / c = 5 × sin(60°) / 6.245 ≈ 0.6934, so A ≈ 43.90°
  3. Find angle B = 180° − 60° − 43.90° = 76.10°
  4. Area = ½ × a × b × sin(C) = ½ × 5 × 7 × sin(60°) ≈ 15.155 sq units
  5. Perimeter = 5 + 7 + 6.245 ≈ 18.245 units

These are the values shown in the results when the calculator loads with its default inputs.

The Five Solvable Cases

CaseKnown ValuesMethodUnique Solution?
SSSAll three sidesLaw of cosines for each angleYes (if valid triangle)
SASTwo sides, included angleLaw of cosines, then law of sinesYes
ASATwo angles, included sideThird angle = 180 − sum; law of sinesYes
AASTwo angles, non-included sideThird angle = 180 − sum; law of sinesYes
SSATwo sides, non-included angleLaw of sines; check ambiguous case0, 1, or 2 solutions

Triangle Types

Once all angles are known, a triangle can be classified:

Related Calculators

Method: Law of cosines (c² = a² + b² − 2ab·cos(C)) and law of sines (a/sin(A) = b/sin(B) = c/sin(C)). Area by the formula ½ab·sin(C). SSA ambiguous case checked by comparing the given side against the perpendicular height. Standard Euclidean geometry; angles must sum to 180°.

This calculator works in Euclidean (flat) geometry. Results are to four significant figures. For very small or very large values, verify the result independently. Angle inputs must be in degrees and must sum to less than 180° for any two angles entered.