Triangle Calculator

In short: the famous 3-4-5 triangle has angles 36.87°, 53.13° and 90°, an area of 6 and a perimeter of 12 — enter the parts you know and this calculator finds every part you do not.

Solving a triangle completely

"Solving" a triangle means finding every side and every angle from partial information, and this calculator does it for the three patterns that determine a triangle uniquely: three sides (SSS), two sides with the angle between them (SAS), and two angles with a side (ASA/AAS). Alongside the missing pieces it reports the area, the perimeter, and two classifications — right, acute or obtuse by its angles, and equilateral, isosceles or scalene by its sides. The machinery is the classical toolkit of trigonometry: the law of cosines (a generalisation of Pythagoras, c² = a² + b² − 2ab cos C) recovers angles from sides and the third side from SAS data, the law of sines (a / sin A = b / sin B = c / sin C) carries a known side across to the others once the angles are known, and the angles of any flat triangle always sum to exactly 180 degrees, which supplies the third angle for free in ASA mode.

Triangles deserve this attention because they are the rigid unit of the built and measured world. A quadrilateral frame can rack and lean; a triangle cannot change shape without changing a side length, which is why bridges, roof trusses, cranes and survey networks are triangulated. Surveyors measured whole countries by chaining triangles from a single carefully measured baseline, using exactly the ASA logic in this page: two angles observed from the ends of a known side fix every other distance in the figure. The same three modes cover school geometry, carpentry angles, navigation fixes and the mesh of triangles that computer graphics uses to model every curved surface.

Worked examples

Sides 3, 4 and 5 (SSS): the law of cosines gives the angle opposite the side of length 3 as 36.87°, opposite 4 as 53.13°, and opposite 5 as 90° — so this is a right triangle, and scalene, since all sides differ. Heron's formula with s = 6 gives area √(6 × 3 × 2 × 1) = 6, and the perimeter is 12. The 3-4-5 is the smallest whole-number right triangle and was used with knotted ropes to lay out right angles long before it was proved.

SAS: a = 5, b = 7, included angle C = 60°: the law of cosines gives c = √(25 + 49 − 2 × 5 × 7 × cos 60°) = √39 = 6.2450, and the area is ½ × 5 × 7 × sin 60° = 15.16.

An impossible triangle, sides 2, 3 and 9: 2 + 3 = 5, which is not more than 9, so the two short sides cannot meet around the long one. The calculator refuses it and explains the triangle inequality rather than returning imaginary angles.

Common triangles worth recognising

TriangleSidesAnglesArea
Smallest right triangle3, 4, 536.87°, 53.13°, 90°6
Isosceles right1, 1, 1.414245°, 45°, 90°0.5
Equilateral, side 22, 2, 260°, 60°, 60°1.7321
Half-equilateral1, 1.7321, 230°, 60°, 90°0.8660

These four recur constantly in textbooks and in practice because their angles are the landmarks of trigonometry: 30, 45, 60 and 90 degrees, whose sines and cosines have exact values. Recognising a 3-4-5 in a word problem, or spotting that a triangle is half of an equilateral, often solves the question before any formula is needed — but the calculator will confirm it either way.

Rules and notes

Angles are in degrees throughout, and in ASA mode the two angles must sum to less than 180 degrees, since the third angle is whatever remains. In SAS mode the included angle must be the one between the two given sides — entering a non-included angle instead describes the ambiguous SSA case, where two different triangles can fit the same data, and that case is deliberately not offered here. All sides must be positive, and SSS inputs must satisfy the triangle inequality on every pairing. Results are rounded to four decimal places for display; classifications are decided from the full-precision values, so a triangle that is right-angled to within rounding is reported as right.

Frequently asked questions

What information do I need to solve a triangle?

Any combination that pins the shape down uniquely: three sides (SSS), two sides and the angle between them (SAS), or two angles and a side (ASA or AAS). One side and one angle, or three angles alone, are not enough — three angles fix the shape but not the size, so infinitely many triangles of different sizes share them. This calculator offers the three sufficient patterns as its modes.

What is the triangle inequality?

The rule that any two sides of a triangle must add up to more than the third side: a + b > c, a + c > b and b + c > a. It is common sense once pictured — a side that is too long cannot be reached by the other two, however they swing. Sides of 2, 3 and 9 fail it (2 + 3 is not more than 9), so no such triangle exists, and this calculator refuses the input with that explanation rather than returning nonsense.

How is the area of a triangle calculated without a height?

By Heron's formula when all three sides are known: take the semi-perimeter s = (a + b + c) / 2, then area = √(s(s − a)(s − b)(s − c)). For the 3-4-5 triangle, s = 6 and the area is √(6 × 3 × 2 × 1) = √36 = 6. When two sides and the included angle are known, the equivalent route is area = ½ab sin C. Both are used here depending on the mode, and they agree wherever both apply.

What makes a triangle right, acute or obtuse?

Its largest angle. Exactly 90 degrees makes it right-angled, the case the Pythagorean theorem describes. Under 90 degrees the triangle is acute — all three angles are sharp. Over 90 degrees it is obtuse, with one blunt corner. There is a side-based test too: compare the square of the longest side with the sum of the squares of the other two; equal means right, less means acute, greater means obtuse.

What is the difference between equilateral, isosceles and scalene?

Equilateral triangles have all three sides equal, and therefore all three angles at 60 degrees. Isosceles triangles have exactly two equal sides and two equal angles, opposite those sides. Scalene triangles have all sides and all angles different. The classification is independent of the right/acute/obtuse one: the 3-4-5 triangle is both right-angled and scalene, and both labels are reported by this calculator.

Related tools

Formulas and worked examples last verified: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.