Triangle Calculator

Solve any triangle from SSS, SAS, ASA or AAS — get all sides, angles, area, perimeter, in- and circumradius and type, with a live scaled diagram.

Your triangle

Pick a method, fill the three knowns. Results update live.

length
a
length
b
length
c
Triangle typeAcute, Scalene
Live calculation

Triangle area

17.32

sides 5, 7, 8 · perimeter 20 · angles 38.21°, 60°, 81.79°

Perimeter

20

a + b + c

Semi-perimeter

10

s = P / 2

Inradius

1.7321

r = area / s

Circumradius

4.0415

R = a / (2 sin A)

Scaled diagram vertices A B C, sides a b c
ElementValueDefinition
Side a5Opposite vertex A
Side b7Opposite vertex B
Side c8Opposite vertex C
Angle A38.21°At vertex A, opposite side a
Angle B60.00°At vertex B, opposite side b
Angle C81.79°At vertex C, opposite side c

The Method

How any triangle is solved

Any triangle is uniquely determined by three independent pieces of information from SSS, SAS, ASA, or AAS. The calculator picks the right strategy for each case: the law of cosines c² = a² + b² − 2ab cos(C) recovers the missing side in SSS and SAS, and the law of sines a / sin A = b / sin B = c / sin C = 2R handles ASA and AAS. With all three sides and all three angles known, Heron's formula gives the area, and standard identities give the inradius, circumradius, and triangle type.

Working for current triangle

A + B + C = 180° · a / sin A = b / sin B = c / sin C
P perimeter (20)
s semi-perimeter (10)
area Heron (17.32)
R circumradius (4.0415)

About This Tool

What Is a Triangle Calculator?

A triangle calculator solves any triangle from three known pieces of information — choosing between the four congruence cases SSS, SAS, ASA, and AAS. Given any of these, it returns the full set of unknowns: every side, every angle, the area, the perimeter, the semi-perimeter, the inradius, the circumradius, and the triangle's type (acute / right / obtuse, and scalene / isosceles / equilateral).

Under the hood, the tool uses the two classical relationships of trigonometry. The law of cosines generalises the Pythagorean theorem to any triangle (right-angled or not) and is the natural tool when you know all three sides (SSS) or two sides and the included angle (SAS). The law of sines says that each side divided by the sine of its opposite angle is a constant — equal to the circumdiameter — and is the natural tool when you know two angles and any side (ASA or AAS). Once all three sides are determined, Heron's formula gives the area without ever needing an altitude.

Triangle solving is foundational across geometry, trigonometry, surveying, navigation, engineering, computer graphics, and architecture. Anywhere you need to recover the shape of a triangular region from partial measurements — from triangulating a position with GPS to laying out a roof truss — these four cases cover the practical work. The tool is also a clear teaching aid: it draws the triangle to scale, labels every vertex and side, and reports the formulas it used so you can follow the working.

This calculator uses double-precision floating-point arithmetic — accurate to about 15–17 significant figures. It runs entirely in your browser: no sign-up, no tracking, no data sent to any server. Use it for homework, exam revision, engineering reference, or any quick geometric check.

Four Methods

Solve SSS, SAS, ASA, and AAS triangles — the four congruence cases.

Sides & Angles

Every side and angle computed from the laws of sines and cosines.

Area & Perimeter

Heron's formula plus perimeter and semi-perimeter — no altitude needed.

In & Circumradius

Radii of the inscribed and circumscribed circles for every solved triangle.

Live Diagram

A scaled SVG drawing with labelled vertices, sides, and angles.

100% Free & Private

No account, no tracking — every calculation runs locally in your browser.

How to Use This
Triangle Calculator

Pick a method, fill three knowns, and read every other side and angle in seconds.

1

Pick a Method

Use the tabs to choose SSS (three sides), SAS (two sides and the included angle), ASA (two angles and the included side), or AAS (two angles and a non-included side).

2

Enter Your Three Knowns

Type each value into the labelled fields. Angles are in degrees. Side names follow the convention: side a is opposite vertex A, and so on.

3

Read the Area & Stats

The headline shows the area; the stat tiles report the perimeter, semi-perimeter, inradius, and circumradius.

4

Inspect the Diagram

The SVG diagram draws your triangle to scale, with vertices A, B, C and sides a, b, c labelled — handy for sanity-checking the result.

5

Check the Element Table

The table shows every side and angle with its definition — perfect for pasting into a homework solution.

6

Read the Type & Working

The footer flags acute / right / obtuse and scalene / isosceles / equilateral; the formula card shows the laws and steps used.

Frequently Asked Questions

Everything you need to know about triangle solving, sides, angles, and triangle properties.

These are the four standard congruence cases for triangles — the four sets of three independent pieces of information that pin down a triangle up to congruence. SSS = three sides; SAS = two sides and the angle between them; ASA = two angles and the side between them; AAS = two angles and a side not between them. Any of these is enough to recover every other side and angle.

The law of cosines generalises the Pythagorean theorem to any triangle: c² = a² + b² − 2ab cos(C), where C is the angle opposite side c. When C = 90° the cosine is zero and you get back c² = a² + b². It's the natural tool for SSS (solve for an angle when all three sides are known) and SAS (solve for the third side when two sides and the included angle are known).

The law of sines says that in any triangle, the ratio of each side to the sine of its opposite angle is the same constant: a / sin A = b / sin B = c / sin C = 2R, where R is the circumradius. It's used to solve ASA and AAS triangles, and it gives the circumradius directly from any side-angle pair.

This calculator uses Heron's formula. With semi-perimeter s = (a + b + c) / 2, the area is √(s(s − a)(s − b)(s − c)). The advantage is that it works from the three sides alone — you don't need an altitude or a particular angle. For triangles where you already know an angle, you can also use ½·a·b·sin(C), which is mathematically equivalent.

SSA (two sides and a non-included angle) is the famous ambiguous case: depending on the values, it can produce zero, one, or two valid triangles. Because the answer isn't unique, this calculator omits SSA — use SAS or AAS if you can reconfigure your knowns. If you're stuck with SSA in a textbook problem, apply the law of sines to find the second angle and check whether the result fits inside (0°, 180°) — it may also produce a second valid solution (180° − that angle).

The inradius r is the radius of the largest circle that fits inside the triangle, tangent to all three sides. It equals area / s, where s is the semi-perimeter. The circumradius R is the radius of the unique circle that passes through all three vertices, and equals a / (2 sin A) — the same constant from the law of sines. Both are useful for inscribed/circumscribed problems and for some advanced geometric identities.

Triangles are classified by angles and by sides. By angles: acute (all angles < 90°), right (one angle = 90°), obtuse (one angle > 90°). By sides: scalene (all sides different), isosceles (two sides equal), equilateral (all three sides equal, which forces all angles = 60°). Every triangle has one label from each list — for example, "acute scalene" or "right isosceles".

This is the triangle angle-sum theorem: in Euclidean geometry, the three interior angles of any triangle sum to 180° (or π radians). The classic proof draws a line through one vertex parallel to the opposite side and uses alternate interior angles. The theorem fails on a curved surface — on a sphere the angles sum to more than 180°; in hyperbolic geometry, less.

The triangle inequality says the sum of any two sides of a triangle is strictly greater than the third side: a + b > c, b + c > a, and a + c > b. If this fails for your three side lengths, no triangle exists with those sides. The calculator will flag impossible side triples — they cannot be drawn without one side overshooting the sum of the other two.

Yes — the SSS/SAS/ASA/AAS framework is exactly what surveyors and navigators use to solve triangulation problems. Field measurements typically give you two angles from a known baseline (ASA) or two sides and an angle (SAS). The calculator gives you the missing side or angle, the area, and the diagram. For high-precision surveying, account for Earth-curvature and atmospheric refraction — flat-earth Euclidean triangle solving is fine for distances under a few kilometres.

The calculator uses IEEE 754 double-precision floating point, accurate to about 15–17 significant figures. For triangles with very obtuse angles or very nearly degenerate shapes (one angle close to 0° or 180°), small input errors can amplify into noticeable output errors — this is a property of the geometry, not the implementation. For critical engineering use, double-check with independent calculation or symbolic algebra.

Yes — the diagram is drawn from the computed coordinates of the three vertices and scaled to fit the SVG viewport. Relative side lengths are accurate; absolute size depends on the viewport dimensions. The labels A, B, C identify the vertices; a, b, c identify the opposite sides, following the standard convention.