Math · FREE ONLINE TOOL

Triangle Calculator

Solve SSS, SAS, ASA or ambiguous SSA triangles, with angles, area and derived measurements such as altitudes, medians and radii.

Choose known measurements

Your inputs

Triangle with sides a, b and c opposite vertices A, B and C
s = (a+b+c)/2; area = √[s(s−a)(s−b)(s−c)].Diagram is not to scale.

Enter all three sides in the same length unit. Side a is opposite angle A, side b is opposite B, and side c is opposite C. The two shorter sides must add up to more than the longest.

Which measurements do I need?

The sum of any two sides must exceed the third. Angles are calculated from normalized side geometry. Altitudes, medians, radii and centers are also shown in coordinates A=(0,0), B=(c,0), with C above the x-axis.

Calculations run in your browser. No account needed.

EXAMPLE RESULTCalculated locally
Area
6 square units
Perimeter
12
Side a
3
Side b
4
Side c
5
Angle A
36.87 °
Angle B
53.13 °
Angle C
90 °
Semiperimeter
6
Altitude to a
4
Altitude to b
3
Altitude to c
2.4
Median from A
4.27
Median from B
3.61
Median from C
2.5
Inradius
1
Circumradius
2.5
Vertex A
(0, 0)
Vertex B
(5, 0)
Vertex C
(3.2, 2.4)
Centroid
(2.73, 0.8)
Incenter
(3, 1)
Circumcenter
(2.5, 0)

About this result

s = (3 + 4 + 5) ÷ 2 = 6 length units. A = √[s(s − a)(s − b)(s − c)] = 6 square units.

Clear inputs. Transparent methods.
My workspace

Calculate with your inputs to save a result or compare scenarios.

How it works

Illustration for Triangle Calculator: a triangle and ruler.
Three sidess = (a+b+c)/2; area = √[s(s−a)(s−b)(s−c)].
A useful distinction

An angle label determines the SSA case

For a = 10, b = 12 and A = 30°, A must be opposite side a. Entering an angle between a and b instead describes SAS; the same three numbers can therefore represent a different triangle problem.

Can the same two sides enclose different areas?

Side lengths
8 cm, 10 cm
Area. A (30°) → 20 cm². B (90°) → 40 cm².
Can the same two sides enclose different areas?
Included angleCalculationArea
A 30°0.5 × 8 × 10 × sin(30°)20 cm²
B 90°0.5 × 8 × 10 × sin(90°)40 cm²

Choosing a triangle-solving case

Three sides, two sides with an included angle, and two angles with a side provide different starting information. Select the matching case rather than placing an unrelated measurement in an available field. A side-side-angle problem can have ambiguous solutions, which is why the selected method matters. Check whether the entered values can form a triangle before interpreting its area or angles.

Match the solver to SSS, SAS, ASA/AAS or SSA data

Three sides uses SSS. Two sides & included angle uses SAS, where the angle lies between those sides. Two angles & side uses a side a opposite angle A together with angles A and B. Two sides & a non-included angle uses SSA and may have multiple solutions.

A side label is tied to its opposite angle: side a faces A, b faces B and c faces C. Choose degrees or radians for angular inputs. The calculated angular outputs are labeled in degrees.

Work a three-side example with Heron’s formula

For sides 5, 5 and 6, the semiperimeter is s=(5+5+6)/2=8. Heron’s formula gives area √[8(8−5)(8−5)(8−6)]=√144=12 square units. The perimeter is 16 and the height to the base of length 6 is 2×12/6=4.

A 5–5–6 isosceles triangle
QuantityCalculationResult
Semiperimeter(5+5+6)/28
Area√(8×3×3×2)12 square units
Perimeter5+5+616 units
Height to side 62×12/64 units

Understand why SSA can produce two triangles

With a=10, b=12 and A=30°, the sine rule gives sin(B)=12×sin(30°)/10=0.6. Both B≈36.8699° and B≈143.1301° can leave a positive third angle. They produce different triangles, so retaining only the principal inverse-sine angle would miss a valid solution.

The solver checks candidate angles and reports every valid solution within its supported precision. If the sine ratio exceeds 1 or the remaining angle is not positive, the measurements cannot form the proposed triangle.

Validate dimensions and interpret the coordinate-based results

For SSS, the two shorter sides must sum to more than the longest side. Equality is a collapsed line with zero area, not a triangle. Three angles without any length cannot determine an absolute area or perimeter.

Additional centers and geometric measures use the stated reference coordinates A=(0,0), B=(c,0), with C above the x-axis. These are coordinates of the mathematical model, not a geolocation or a surveyed orientation. Lengths share a unit and areas use its square.

Three sides: formula and assumptions

s = (a+b+c)/2; area = √[s(s−a)(s−b)(s−c)].

The sum of any two sides must exceed the third. Angles are calculated from normalized side geometry. Altitudes, medians, radii and centers are also shown in coordinates A=(0,0), B=(c,0), with C above the x-axis.

Use Three sides

Two sides & included angle: formula and assumptions

c² = a²+b²−2ab cos(C); area = ab sin(C)/2.

The angle must lie strictly between 0° and 180°. Angular inputs can use degrees or radians. Calculated angles are shown in degrees.

Use Two sides & included angle

Two angles & side: formula and assumptions

a/sin(A) = b/sin(B) = c/sin(C), with C = 180°−A−B.

The sum of the given angles must be less than 180°. Angular inputs can use degrees or radians. Calculated angles are shown in degrees.

Use Two angles & side

Two sides & a non-included angle: formula and assumptions

sin(B)=b sin(A)/a. Both B and 180°−B must be checked.

SSA can give no triangle, one triangle, or two triangles. Solutions with nonpositive remaining angles are excluded. Angular inputs can use degrees or radians. Calculated angles are shown in degrees.

Use Two sides & a non-included angle

Worked example

Using the Three sides example:

Inputs
Side a
3
Side b
4
Side c
5
Method

s = (a+b+c)/2; area = √[s(s−a)(s−b)(s−c)].

Result

Example result

Area: 6 square units

Perimeter: 12

Side a: 3

Side b: 4

Side c: 5

Angle A: 36.87 °

Angle B: 53.13 °

Angle C: 90 °

Semiperimeter: 6

Altitude to a: 4

Altitude to b: 3

Altitude to c: 2.4

Median from A: 4.27

Median from B: 3.61

Median from C: 2.5

Inradius: 1

Circumradius: 2.5

Vertex A: (0, 0)

Vertex B: (5, 0)

Vertex C: (3.2, 2.4)

Centroid: (2.73, 0.8)

Incenter: (3, 1)

Circumcenter: (2.5, 0)

s = (3 + 4 + 5) ÷ 2 = 6 length units. A = √[s(s − a)(s − b)(s − c)] = 6 square units.

These are illustrative inputs. Change the values to explore a different scenario.

Formula references

References explain the underlying methods; they do not imply endorsement or individual professional review of Finflo.

Common questions

Why can the SSA case have two triangles?

A non-included angle can match two supplementary angle candidates. Only candidates with valid positive remaining angles form solutions.

What condition must three side lengths satisfy?

Every side must be shorter than the sum of the other two. Equality would form a degenerate straight-line shape.

What is the difference between SAS and SSA?

In SAS, the known angle lies between the two known sides. In SSA, it is opposite one of them; that case can produce zero, one or two triangles.

Why do sides 3, 4 and 7 fail?

The shorter sides add to exactly the longest side, so the shape collapses to a line. A nondegenerate triangle requires a strict inequality.

Can three angles give the area?

No. Angles determine shape but not scale. A side length or other suitable size measurement is needed.

Are the returned center coordinates map coordinates?

No. They use the calculator’s mathematical placement of the vertices. They do not specify a location or orientation on Earth.

See our methodology and editorial policy.