📐 Math & Science

Triangle Calculator

Solve any triangle from any three known values — sides, angles or a mix. Calculates area, perimeter, all angles and all sides with a step-by-step solution and a live visual diagram.

SSS, SAS, ASA, AAS, SSA modes Step-by-step solution Live visual diagram SSA ambiguous case handled
AdSense — 728×90 Leaderboard

Triangle Calculator

Select input mode
Sides
Angles (degrees)
Side a is opposite angle A, side b opposite B, side c opposite C. Right triangle mode assumes C = 90°.
c b a C B A
Enter values above and click Solve triangle to see results.
AdSense — 728×90 Leaderboard
📊
Need a percentage or fraction?
The Fraction Calculator handles addition, subtraction, multiplication and division of fractions with step-by-step working — great alongside triangle work.
Fraction Calculator →
⭐ Ratings

Rate this tool

4.9
★★★★★
Based on 24,819 ratings
5
22,585
4
1,489
3
496
2
124
1
125
Was this triangle calculator helpful?
Thank you!
Features

Step-by-step solution, visual diagram and SSA ambiguous case — what most solvers skip

Most triangle calculators return numbers without explaining how they were reached. This tool shows every formula applied, draws a scaled diagram of the solved triangle, and correctly identifies and handles the SSA ambiguous case where two valid triangles may exist.

All input modes
SSS (three sides), SAS (two sides and included angle), ASA (two angles and included side), AAS (two angles and non-included side), SSA (two sides and non-included angle) and Right triangle mode.
Step-by-step solution
Every calculation step is shown — which law was applied (Law of Cosines, Law of Sines), the formula used and the numerical result. Absent from most free triangle solvers.
Live visual diagram
A scaled SVG diagram of the solved triangle updates with labelled sides and angles. Gives an immediate sense check that the solution is geometrically correct.
SSA ambiguous case
When two sides and a non-included angle are given, two triangles may be valid. This tool detects and reports both solutions, explaining which conditions determine each case.
Right triangle mode
Dedicated mode for right triangles using Pythagoras’ theorem and basic trig ratios. Enter any two values and the calculator finds the remaining side, angles, hypotenuse and trigonometric ratios.
Triangle type detection
After solving, the triangle is classified: acute, obtuse, right, equilateral, isosceles or scalene. Useful for homework and exam preparation where classification is required.
How to use

How to solve a triangle

1
Choose your input mode
Select the mode that matches what you know: SSS if you have all three sides, SAS if you have two sides and the angle between them, ASA or AAS if you have two angles and a side, SSA for two sides and a non-included angle, or Right for a right triangle.
2
Enter your known values
Type the values you know into the enabled fields. Side a is opposite angle A, side b opposite B, side c opposite C. The mode determines which fields are active. Leave the others blank.
3
Click Solve triangle
The calculator applies the appropriate law (Pythagoras, Law of Cosines or Law of Sines) and fills in all missing values. Area and perimeter are calculated and the triangle is classified.
4
Read the steps and check the diagram
The step-by-step section shows every formula used so you can follow and verify the solution. The diagram scales to the solved triangle for a visual sense check.
Comparison

LazyTools vs other triangle calculators

Most free triangle calculators return numbers without explaining how they were reached. Step-by-step working, SSA ambiguous case handling and a live diagram together are absent from the major free options.

Feature⭐ LazyTools calculator.netmathsisfun.comomnicalculator.com
SSS, SAS, ASA, AAS modes
SSA ambiguous case✔ Both solutions⚠ Partial
Step-by-step solution⚠ Basic
Live visual diagram✔ Scaled SVG⚠ Static
Triangle type classification
Right triangle mode
No ads / no signup⚠ Ads⚠ Ads⚠ Ads
Quick reference

Triangle formulas and laws

Formula / LawExpressionUsed for
Law of Cosinesa² = b² + c² - 2bc cos(A)SSS and SAS — finding angles from sides or missing side
Law of Sinesa/sin(A) = b/sin(B) = c/sin(C)ASA, AAS, SSA — finding sides from angles
Angle sumA + B + C = 180°Finding third angle when two are known
Heron's formulaArea = sqrt(s(s-a)(s-b)(s-c))Area from three sides; s = (a+b+c)/2
SAS areaArea = (1/2) ab sin(C)Area from two sides and included angle
Pythagorasa² + b² = c²Right triangles only; c is hypotenuse
PerimeterP = a + b + cSum of all three sides

Triangle type classifications

TypeConditionProperties
Equilaterala = b = cAll angles 60°; 3 lines of symmetry
IsoscelesTwo sides equalTwo base angles equal; 1 line of symmetry
ScaleneAll sides differentAll angles different; no lines of symmetry
RightOne angle = 90°Pythagoras applies; hypotenuse is longest side
AcuteAll angles < 90°All altitudes fall inside the triangle
ObtuseOne angle > 90°One altitude falls outside the triangle
Complete guide

Triangle Calculator — Area, Perimeter, Angles and All Sides Explained

A triangle is uniquely determined (up to congruence) when exactly three independent values are known, provided they form a consistent and valid configuration. The six measurable quantities of a triangle are three sides (a, b, c) and three angles (A, B, C). Any three of these values — in the right combination — are enough to calculate all six. The process of finding all six values from a partial set is called “solving the triangle”.

Triangle calculator area perimeter angles online free

Calculating all properties of a triangle from a given set of inputs follows a well-defined algorithm based on which combination is provided. Three sides (SSS) uses the Law of Cosines to find each angle: cos(A) = (b² + c² - a²) / (2bc). Once all angles are known, area is found using Heron’s formula: Area = sqrt(s(s-a)(s-b)(s-c)) where s is the semi-perimeter (a+b+c)/2. Two sides and the included angle (SAS) also uses the Law of Cosines, then the Law of Sines for the remaining angles. Two angles and any side (ASA or AAS) uses the angle sum to find the third angle, then the Law of Sines to find the remaining sides.

Right triangle calculator with all sides and angles

A right triangle has one angle equal to 90°. Knowing any two of the three sides, or one side and one acute angle, is sufficient to solve it completely. The three sides relate through Pythagoras’ theorem: a² + b² = c² where c is the hypotenuse. The angles relate to sides through trigonometric ratios: sin(A) = opposite/hypotenuse = a/c, cos(A) = adjacent/hypotenuse = b/c, tan(A) = opposite/adjacent = a/b. The two acute angles always sum to 90°. This tool’s Right triangle mode applies these relationships automatically.

How to solve a triangle calculator SSS SAS

The choice of formula depends on which values are known. SSS (three sides known): apply the Law of Cosines three times to find each angle, then use Heron’s formula for area. SAS (two sides and included angle known): apply the Law of Cosines once to find the third side, then the Law of Sines for the remaining angles. The included angle must be between the two known sides. If the angle is not between the two sides, use SSA mode instead. ASA (two angles and included side): find the third angle using the angle sum, then apply the Law of Sines twice. AAS (two angles and non-included side): same approach as ASA after finding the third angle.

Triangle law of cosines calculator

The Law of Cosines is a generalisation of Pythagoras’ theorem that applies to all triangles: c² = a² + b² - 2ab cos(C). When angle C is 90°, cos(90°) = 0 and the formula reduces to c² = a² + b². The Law of Cosines is used whenever two sides and the angle between them (SAS) are known — to find the third side — or when all three sides (SSS) are known — to find the angles. It is particularly useful because it avoids the SSA ambiguity that afflicts the Law of Sines in certain configurations.

Oblique triangle solver

An oblique triangle is any triangle that does not contain a right angle — it may be acute (all angles less than 90°) or obtuse (one angle greater than 90°). Solving oblique triangles always requires either the Law of Cosines or the Law of Sines, as Pythagoras’ theorem does not apply. The ambiguous case (SSA) is unique to oblique triangles: given two sides and an angle not between them, zero, one or two valid triangles may exist depending on whether the given side is shorter, equal to or longer than the height of the triangle from the opposite vertex.

Heron formula triangle area calculator

Heron’s formula calculates the area of a triangle from its three side lengths alone, without needing any angles: Area = sqrt(s(s-a)(s-b)(s-c)) where s is the semi-perimeter s = (a+b+c)/2. This is especially useful in SSS problems where angles are not initially known. For example, a triangle with sides 3, 4, 5 has s = 6, and Area = sqrt(6 x 3 x 2 x 1) = sqrt(36) = 6. An equivalent formula using two sides and the included angle is Area = (1/2)ab sin(C), which is used in SAS configurations and typically more numerically stable.

Frequently asked questions

These are standard abbreviations for the types of information given about a triangle. S = Side, A = Angle. SSS means three sides are known. SAS means two sides and the included angle (the angle between the two known sides) are known. ASA means two angles and the included side. AAS means two angles and a non-included side. SSA means two sides and a non-included angle — this is the ambiguous case where two triangles may be possible.
When two sides and a non-included angle are given, the Law of Sines can produce two values for the unknown angle (since sin(x) = sin(180-x)). This means two different triangles may satisfy the given conditions. The number of solutions depends on the relative lengths of the sides: if the side opposite the given angle is shorter than the height from the opposite vertex, no triangle exists; if it equals the height, exactly one right triangle exists; if it is longer but shorter than the adjacent side, two triangles exist; if it is equal to or longer than the adjacent side, exactly one triangle exists.
There are several equivalent methods. If the base and height are known: Area = (1/2) x base x height. If two sides and the included angle are known: Area = (1/2)ab sin(C). If all three sides are known, Heron's formula applies: Area = sqrt(s(s-a)(s-b)(s-c)) where s = (a+b+c)/2. For a right triangle, the two legs serve as base and height: Area = (1/2) x leg1 x leg2.
Use the Law of Cosines when you know SSS (three sides) or SAS (two sides and the included angle). It is the only law that works directly in these cases. Use the Law of Sines when you know ASA (two angles and the included side), AAS (two angles and any side) or SSA (two sides and a non-included angle). The Law of Sines is simpler to apply but can produce the ambiguous case with SSA. For right triangles, Pythagoras and basic trig ratios are the simplest approach.
An acute triangle has all three angles less than 90 degrees. A right triangle has exactly one angle equal to 90 degrees. An obtuse triangle has exactly one angle greater than 90 degrees. A triangle cannot have more than one angle that is 90 degrees or more, because the angles must sum to exactly 180 degrees. These classifications can also be determined from side lengths alone: if c is the longest side, the triangle is right if c squared equals a squared plus b squared, obtuse if c squared is greater, and acute if c squared is less.
Use Heron's formula: Area = sqrt(s(s-a)(s-b)(s-c)) where s is the semi-perimeter (a+b+c)/2. For example, a triangle with sides 5, 6, 7: s = (5+6+7)/2 = 9. Area = sqrt(9 x 4 x 3 x 2) = sqrt(216) = approximately 14.70. Enter all three sides in SSS mode in this calculator and the area is calculated automatically, along with all three angles.
No. For three lengths to form a valid triangle, each side must be strictly less than the sum of the other two — this is called the triangle inequality. For example, sides of 1, 2, 10 cannot form a triangle because 1 + 2 = 3 which is less than 10. The longest side must be less than the sum of the other two. This calculator validates inputs and reports an error if the triangle inequality is violated.
The hypotenuse is the side opposite the right angle — always the longest side of a right triangle. It is conventionally labelled c. Its length is found using Pythagoras: c = sqrt(a squared plus b squared). For example, a right triangle with legs 3 and 4 has hypotenuse sqrt(9+16) = sqrt(25) = 5. The 3-4-5 triangle is the most commonly cited Pythagorean triple. Others include 5-12-13, 8-15-17 and 7-24-25.
Related tools

More free math and science tools