Figuro.net

Triangle Calculator

Solve triangle equations for angles, sides, and area using the Law of Cosines, the Law of Sines, and Heron's formula — enter any valid combination of three known sides or angles.

Enter values and press Calculate to see the result here.

How this is calculated

Angles are found using the law of cosines; area uses Heron's formula with semi-perimeter s = (a+b+c)/2.

Solving triangles

"Solving" a triangle means finding all unknown sides and angles from a known combination of sides and/or angles. Depending on what's given (SSS, SAS, ASA, AAS, or SSA), different trigonometric laws apply — the Law of Sines, the Law of Cosines, or basic angle-sum rules.

The Law of Cosines

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

Used when you know two sides and the included angle (SAS), or all three sides (SSS) and need to find an angle by rearranging the formula.

The Law of Sines

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

Used when you know two angles and a side (AAS or ASA), or two sides and a non-included angle (SSA) — though SSA can sometimes produce two valid triangle solutions (the "ambiguous case").

Basic triangle facts

RuleFormula
Angle sumA + B + C = 180°
Area (base & height)Area = ½ × base × height
Area (SAS)Area = ½ab·sin(C)
PerimeterP = a + b + c

Right triangles (special case)

When one angle is exactly 90°, the simpler Pythagorean theorem applies directly: a² + b² = c², where c is the hypotenuse. Right triangles are a special case of the more general laws above, and trigonometric ratios (sine, cosine, tangent) work directly off the two non-right angles.

Which method to use, given what's known

Worked example — SSS triangle with sides 7, 8, 9

Using Heron's formula: s = (7+8+9)/2 = 12. Area = √[12(12−7)(12−8)(12−9)] = √(12×5×4×3) = √720 ≈ 26.83. Using the Law of Cosines to find angle A (opposite side 7): cos(A) = (8²+9²−7²)/(2×8×9) = 96/144 = 0.667, so A ≈ 48.19°. The remaining angles follow similarly, summing to 180°.

Frequently asked questions

Why does SSA sometimes give two possible triangles? Because the sine function is positive for both an angle and its supplement, so two different triangle shapes can satisfy the same given measurements.

When can't a triangle be formed? When the given three sides don't satisfy the triangle inequality (each side must be shorter than the sum of the other two), no valid triangle exists.

Is the Law of Cosines just a generalized Pythagorean theorem? Yes — when the included angle is exactly 90°, cos(90°)=0, and the Law of Cosines reduces exactly to the Pythagorean theorem.

What's Heron's formula used for? It calculates a triangle's area directly from its three side lengths alone, without needing to know any angle or height first — useful whenever only SSS data is available.

How do I know which law to use — Sines or Cosines? Use the Law of Cosines when you have three sides (SSS) or two sides plus the included angle (SAS); use the Law of Sines when you have two angles and a side (AAS/ASA) or two sides and a non-included angle (SSA).

What's the difference between an included and non-included angle? An included angle sits directly between the two known sides (as in SAS); a non-included angle is opposite one of the two known sides instead (as in SSA), which is why SSA can produce an ambiguous result.

Can a triangle have more than one right angle? No — since all three angles must sum to exactly 180°, having two 90° angles would leave no room for a third positive angle, so at most one angle can be 90° (or more, obtuse) in any valid triangle.

What triangle equations does this calculator solve? This triangle equations calculator solves for unknown sides and angles using the Law of Cosines, the Law of Sines, the angle-sum rule (A + B + C = 180°), and Heron's formula for area — covering SSS, SAS, ASA, AAS, and SSA cases.

How does a law of cosines triangle calculator work? It plugs your known values into c² = a² + b² − 2ab·cos(C), then rearranges the formula to solve for whichever side or angle is unknown — that's exactly what happens automatically when you enter values above.

Another worked example

For a triangle with sides 5, 6, and 7, Heron's formula gives a semi-perimeter of 9, and an area of √(9×4×3×2) = √216 ≈ 14.7 square units — the three angles can then be found individually using the law of cosines.

What affects the result

How to use this calculator

  1. Enter the lengths of all three sides of the triangle.
  2. Press Calculate to see all three angles and the triangle's area.

Common mistakes to avoid

Key terms explained

Law of cosines: A formula relating a triangle's side lengths to the cosine of one of its angles.

Heron's formula: A method for finding a triangle's area directly from its three side lengths.

Triangle inequality: The rule that the sum of any two sides of a triangle must exceed the third side.

Triangle ratios: side ratios, special triangles and trig ratios

Triangle ratios compare the lengths of the sides, and triangles with the same ratios are similar. The tables below list the ratios used most often.

TriangleSide ratioNotes
3-4-5 right triangle3 : 4 : 53² + 4² = 5²
5-12-13 right triangle5 : 12 : 135² + 12² = 13²
8-15-17 right triangle8 : 15 : 178² + 15² = 17²
7-24-25 right triangle7 : 24 : 257² + 24² = 25²
45-45-90 right triangle1 : 1 : √2Hypotenuse is about 1.414 × a leg
30-60-90 right triangle1 : √3 : 2Long leg is about 1.732 × the short leg
Equilateral triangle1 : 1 : 1All angles are 60°

Similar triangles. If two triangles have the same side ratios, one is an enlargement of the other. Multiply every side of a 3-4-5 triangle by 2 and you get 6-8-10, with the same angles.

Trig ratios in a right triangle. sin A = opposite ÷ hypotenuse, cos A = adjacent ÷ hypotenuse and tan A = opposite ÷ adjacent. In a 3-4-5 triangle, sin A = 3 ÷ 5 = 0.6, cos A = 4 ÷ 5 = 0.8 and tan A = 3 ÷ 4 = 0.75.

How to find the area of a triangle

What you knowFormulaExample
Base and heightArea = ½ × base × heightBase 10, height 6 → 30
Three sides (SSS)Heron: s = (a + b + c) ÷ 2, Area = √(s(s − a)(s − b)(s − c))Sides 7, 8, 9 → s = 12, area = √720 ≈ 26.83
Two sides and the angle between them (SAS)Area = ½ × a × b × sin Ca = 8, b = 10, C = 30° → 20
Equilateral triangleArea = (√3 ÷ 4) × a²a = 6 → about 15.59

The calculator above does these steps for you: enter the sides and angles you know and it returns the missing sides, the angles, the perimeter and the area.

More triangle questions

How do I find the area of a triangle with a calculator? Choose the sides or angles you know. Base × height ÷ 2 works when you have a base and its height, Heron's formula works from three sides, and ½ × a × b × sin C works from two sides and the angle between them.

What are the ratios of a 30-60-90 triangle? The sides are in the ratio 1 : √3 : 2, so the short leg is half the hypotenuse and the long leg is about 1.732 times the short leg. A 45-45-90 triangle has sides in the ratio 1 : 1 : √2.

← Browse all calculators and tools