Skip to content
CalculatorBuddy

Triangle Calculator

Solve any triangle from three parts (SSS, SAS, ASA/AAS, or SSA). Get sides, angles, area, heights, medians, inradius, circumradius, and triangle type.

ExampleSample values — edit any field to see your result.

Angle at vertex C, opposite side c. Default 60° with a = b = 1 is equilateral.

Side opposite angle B (between vertices A and C).

Side opposite angle A (between vertices B and C).

Leave blank if unknown. Enter any 3 positive values, including at least one side.

Side opposite angle C (the base between A and B). Leave blank if unknown.

Leave blank if unknown. Enter any 3 positive values, including at least one side.

Angle unit

Angles are interpreted in this unit. Interior angles must be between 0° and 180° (0 and π rad).

Results update as you type.

Area

Equilateral Triangle

0.43301

Estimated result

Solved by
SAS (two sides and the included angle)
Side a
1.00000
Side b
1.00000
Side c
1.00000
Angle ∠A
60° = 1.0472 rad = π/3
Angle ∠B
60° = 1.0472 rad = π/3
Angle ∠C
60° = 1.0472 rad = π/3
Perimeter p
3.00000
Semiperimeter s
1.50000
Height ha
0.86603
Height hb
0.86603
Height hc
0.86603
Median ma
0.86603
Median mb
0.86603
Median mc
0.86603
Inradius r
0.28868
Circumradius R
0.57735
Vertex coordinates
A[0, 0] B[1, 0] C[0.5, 0.86603]
Centroid
[0.5, 0.28868]
Incenter
[0.5, 0.28868]
Circumcenter
[0.5, 0.28868]

Vertices & centers

PointCoordinates
VerticesA[0, 0] B[1, 0] C[0.5, 0.86603]
Centroid[0.5, 0.28868]
Incenter[0.5, 0.28868]
Circumcenter[0.5, 0.28868]

Enter any three of sides a, b, c and angles A, B, C — including at least one side — and this calculator fills in the rest. It covers SSS, SAS, ASA/AAS, and the SSA ambiguous case (zero, one, or two triangles), then reports area, perimeter, heights, medians, inradius, circumradius, and vertex coordinates.

Formula

Side a is opposite angle A, b opposite B, and c opposite C. The law of cosines handles SSS and SAS:

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

The law of sines handles ASA, AAS, and SSA:

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

Area from two sides and the included angle, or from Heron's formula once all three sides are known:

area = (1/2) · a · b · sin(C)
area = √(s(s − a)(s − b)(s − c))
s = (a + b + c) / 2

Heights, medians, and the two radii follow from the solved triangle:

ha = 2 · area / a
ma = (1/2) · √(2b² + 2c² − a²)
r = area / s
R = a / (2 sin A)

Vertices are placed with A at (0, 0) and B at (c, 0), matching the usual diagram. The centroid, incenter, and circumcenter are computed from those coordinates.

SSA is the ambiguous case: after finding sin B = b sin(A) / a, both B and 180° − B can be valid. Both solutions are listed when they form a triangle.

Given three parts

CaseKnownMethod
SSSThree sidesLaw of cosines for each angle
SASTwo sides and the included angleLaw of cosines for the third side
ASA / AASTwo angles and any sideAngle sum, then law of sines
SSATwo sides and a non-included angleLaw of sines; 0, 1, or 2 triangles

The sum of any two sides must exceed the third. Interior angles must be between 0° and 180° and add to 180°.

Examples

Default equilateral (C = 60°, a = 1, b = 1)

SAS with two equal sides and a 60° included angle is equilateral: c = 1, every angle is 60°, area 0.43301, perimeter 3, heights and medians 0.86603, inradius 0.28868, circumradius 0.57735.

SAS a = 7, b = 9, C = 30°

c ≈ 4.56955, area 15.75, ∠A ≈ 49.991°, ∠B ≈ 100.009°. One obtuse angle makes this an obtuse scalene triangle.

SSS 3-4-5 right triangle

Sides 3, 4, 5 satisfy 3² + 4² = 5², so ∠C is 90°, area 6, inradius 1, and circumradius 2.5 (half the hypotenuse).

SSA two solutions (A = 30°, a = 5, b = 8)

Possible 1: c ≈ 9.9282, ∠B ≈ 53.13°, ∠C ≈ 96.87°, area ≈ 19.856. Possible 2: c ≈ 3.9282, ∠B ≈ 126.87°, ∠C ≈ 23.13°, area ≈ 7.856.

Frequently asked questions

How many values do I need to solve a triangle?
Enter any three positive values, including at least one side. Three angles alone only determine the shape, not the size, so a side is required. More than three given values are rejected — clear the extras and solve from three.
What is the SSA ambiguous case?
Two sides and a non-included angle (SSA) can describe zero, one, or two triangles. When two work, the calculator shows Possible 1 (the acute arcsin solution) and Possible 2 (the supplementary angle). If the opposite side is too short to reach the other side, no triangle exists.
Which formulas are used?
SSS and SAS use the law of cosines. ASA, AAS, and SSA use the law of sines. Area is (1/2)ab sin(C) (same as Heron's formula once all sides are known). Heights are 2×area / side; the inradius is area / s; the circumradius is a / (2 sin A).
How are triangles classified?
By sides: equilateral (all equal), isosceles (two equal), or scalene (all different). By angles: acute (all under 90°), right (one 90° angle), or obtuse (one angle over 90°). Equilateral is listed on its own because it is both equilateral and acute.
When should I use radians?
Switch Angle unit to Radians to enter π/6 as 0.5236 (π/6) instead of 30°. Interior angles must stay between 0 and π. The results still list every angle in both degrees and radians.

Related calculators