Triangle Calculator

Calculate area, perimeter, all angles and side lengths for any triangle. Enter any known values to solve the rest.

Solve Any Triangle

SSS (3 sides)
SAS (2 sides + angle)
ASA (2 angles + side)
Right Triangle
Any unit (cm, ft, m)

Enter any two values — the third will be calculated.

Triangle Results
Area
--
Perimeter
--
Type
--
Side a
--
Side b
--
Side c
--
Angle A
--
Angle B
--
Angle C
--

Triangle Calculator — Solve Any Triangle Instantly

A triangle is fully defined when three independent measurements are known — any combination of sides and angles (provided at least one side is given). The triangle calculator solves for all remaining properties: sides, angles, area, perimeter and triangle type. It supports four input methods corresponding to the standard geometric cases: SSS (three sides), SAS (two sides and the included angle), ASA (two angles and the side between them), and the special case of right triangles using the Pythagorean theorem. Every triangle property can be calculated from these inputs using the laws of sines, cosines and Heron's formula.

The Law of Sines and Law of Cosines

Two fundamental theorems make all triangle calculations possible. The law of sines states that the ratio of any side to the sine of its opposite angle is constant: a/sin(A) = b/sin(B) = c/sin(C). This allows finding unknown sides and angles in ASA and AAS configurations. The law of cosines is a generalisation of the Pythagorean theorem: c^2 = a^2 + b^2 - 2ab x cos(C). When C = 90 degrees, cos(90) = 0 and the equation reduces to c^2 = a^2 + b^2, the Pythagorean theorem. The law of cosines handles SSS (finding angles) and SAS (finding the third side). Together these two laws solve any non-degenerate triangle. Use our square root calculator when working through the Pythagorean theorem manually, and our area calculator for other shape area calculations beyond triangles.

Known InputsCaseMethodSolves For
3 sides (a, b, c)SSSLaw of cosines + Heron's formulaAll angles, area, perimeter
2 sides + included angleSASLaw of cosines then sinesThird side, other angles, area
2 angles + any sideASA / AASLaw of sinesThird angle, other sides, area
Right triangle, 2 sidesRightPythagorean theoremThird side, angles, area
2 sides + non-included angleSSALaw of sines (ambiguous)May have 0, 1, or 2 solutions

Heron's Formula — Area from Three Sides

Heron's formula calculates triangle area from all three side lengths without requiring the height, making it extremely useful when the height is not directly measurable. The formula: first calculate the semi-perimeter s = (a + b + c) / 2, then Area = sqrt(s x (s-a) x (s-b) x (s-c)). Example: triangle with sides 5, 7 and 8. Semi-perimeter s = (5+7+8)/2 = 10. Area = sqrt(10 x 5 x 3 x 2) = sqrt(300) = 17.32 square units. Heron's formula is attributed to Heron of Alexandria (around 60 AD) though it may have been known earlier. It is particularly useful in surveying and construction where all side lengths can be measured directly but heights cannot. Use our square root calculator to compute the square root step in Heron's formula manually, and our percentage calculator to compare triangle areas as percentages.

Triangle Classification — Types and Properties

Triangles are classified in two independent systems. By side lengths: equilateral triangles have all three sides equal and all three angles equal to 60 degrees — they are a special case of both isosceles and acute triangles. Isosceles triangles have exactly two equal sides, with the two angles opposite those sides also equal. Scalene triangles have all three sides and all three angles different. By interior angles: acute triangles have all three angles less than 90 degrees. Right triangles have exactly one 90-degree angle, making the law of cosines reduce to the Pythagorean theorem and enabling trigonometric ratios (sin, cos, tan) to be defined directly. Obtuse triangles have exactly one angle greater than 90 degrees. A triangle can belong to one category from each system simultaneously — an isosceles right triangle (like the 45-45-90 triangle used extensively in geometry) or a scalene acute triangle are both common. The sum of interior angles is always exactly 180 degrees for any flat (Euclidean) triangle regardless of type or size.

Triangle TypeSide ConditionAngle ConditionArea Formula Available
Equilaterala = b = cA = B = C = 60 degA = (sqrt(3)/4) x s^2
Isoscelesa = b, c differentA = B, C differentHeron or 0.5 x b x h
ScaleneAll differentAll differentHeron or SAS formula
Righta^2 + b^2 = c^2One angle = 90 degA = 0.5 x leg1 x leg2
ObtuseAny comboOne angle > 90 degHeron or SAS formula
AcuteAny comboAll angles < 90 degHeron or SAS formula

The Pythagorean Theorem and Special Right Triangles

The Pythagorean theorem (a^2 + b^2 = c^2) is the most famous theorem in mathematics and the foundation of Euclidean geometry. Several special right triangles with integer or simple ratio side lengths appear repeatedly in geometry, trigonometry and practical measurement. The 3-4-5 triangle: 3^2 + 4^2 = 9 + 16 = 25 = 5^2. This is the most commonly used Pythagorean triple. Carpenters use the 3-4-5 ratio to check whether corners are square — if a corner measuring 3 feet by 4 feet has a diagonal of exactly 5 feet, the corner is a right angle. The 5-12-13 triple: 5^2 + 12^2 = 25 + 144 = 169 = 13^2. The 8-15-17 triple. The 45-45-90 triangle: legs are equal and the hypotenuse is leg x sqrt(2). The 30-60-90 triangle: sides are in ratio 1 : sqrt(3) : 2, originating from the equilateral triangle bisected. Our fraction calculator helps when working with ratio-based triangle dimensions, and our ratio calculator handles proportional scaling of any triangle.

Practical Applications of Triangle Calculations

Triangle geometry underlies an enormous range of real-world applications. Construction and surveying: the 3-4-5 method ensures square corners, and triangulation allows distances to inaccessible points to be measured using only angles and one known baseline. Navigation: GPS triangulation uses signal time differences from multiple satellites (effectively the SSS or SAS case in three dimensions) to determine position to within metres. Architecture and engineering: roof pitch calculations, truss design and structural load analysis all involve triangle geometry. The most stable structural shape is a triangle — a rigid polygon that cannot be deformed without changing side lengths. In contrast, squares and rectangles can be pushed into parallelograms without changing side lengths. This is why triangular trusses are used in bridges, roofs and towers. Computer graphics: all 3D objects are rendered as collections of triangles (triangle meshes) because any polygon can be decomposed into triangles and GPUs are optimised to process triangles efficiently. Use our area calculator for related shape calculations and our percentage calculator to compare measurements as proportions.

The triangle inequality theorem — which states that the sum of any two sides of a triangle must be greater than the third side — is the fundamental constraint that determines whether three given lengths can form a valid triangle. If a=3, b=4, c=9, then 3+4=7 which is less than 9, so no triangle exists with these dimensions. Our calculator checks this condition automatically and alerts you if the inputs cannot form a valid triangle. This constraint has a beautiful geometric interpretation: if you tried to physically join three rods of these lengths, the two shorter ones together would not reach from one end of the longer rod to the other. Use our square root calculator for Pythagorean theorem calculations and our fraction calculator when working with fractional side lengths or angle measurements. Triangles appear throughout nature and human design in ways that reflect their unique geometric properties. In nature, the triangular arrangement of atoms in crystalline structures provides the most efficient close-packing. Spiderwebs use triangular sections for maximum strength-to-material-weight ratio. Mountain peaks form triangular profiles in cross-section because erosion removes material in ways that naturally produce stable triangular slopes. In human design, the Eiffel Tower uses triangular lattice structures throughout because triangles distribute load more efficiently than any other polygon. Road signs are triangular in many countries specifically because the shape is immediately distinctive from circular or rectangular signs. The ancient Egyptians used the 3-4-5 right triangle to lay out the square bases of the pyramids — measuring ropes with knots at intervals of 3, 4 and 5 units to construct perfect right angles without modern tools. The same technique is still used by construction workers today to verify corners are square on large-scale projects. Our area calculator covers all other common shapes alongside triangles, and our ratio calculator handles proportional scaling of triangle dimensions for any project that requires maintaining triangle proportions at a different size.

Frequently Asked Questions

How do I calculate the area of a triangle? +
Three methods: (1) If you know base and height: Area = 0.5 x base x height. (2) If you know all three sides (SSS): Heron's formula -- s = (a+b+c)/2, Area = sqrt(s(s-a)(s-b)(s-c)). (3) If you know two sides and the included angle (SAS): Area = 0.5 x a x b x sin(C). Our calculator handles all three automatically from your inputs.
What is the Pythagorean theorem? +
In a right triangle, the square of the hypotenuse equals the sum of squares of the other two sides: a^2 + b^2 = c^2, where c is the hypotenuse. Example: legs 3 and 4 give hypotenuse = sqrt(9+16) = sqrt(25) = 5. Common Pythagorean triples: 3-4-5, 5-12-13, 8-15-17. Enter any two sides in the Right Triangle mode above to find the third.
How do I find a missing angle in a triangle? +
All interior angles sum to 180 degrees. If you know two angles, the third = 180 - A - B. If you know all three sides, use law of cosines: cos(A) = (b^2 + c^2 - a^2) / (2bc). If you know two sides and an angle, use law of sines: a/sin(A) = b/sin(B). Select SSS or SAS mode in our calculator to find all angles automatically.
What is Heron's formula? +
Heron's formula finds triangle area from three side lengths without needing the height. Semi-perimeter: s = (a+b+c)/2. Area = sqrt(s x (s-a) x (s-b) x (s-c)). Example: sides 5, 7, 8 -- s = 10, Area = sqrt(10 x 5 x 3 x 2) = sqrt(300) = 17.32. Useful when height is not directly measurable but all sides can be measured.
What are the types of triangles? +
By sides: equilateral (all equal, all angles 60 deg), isosceles (two equal sides and angles), scalene (all different). By angles: acute (all angles under 90 deg), right (one angle exactly 90 deg), obtuse (one angle over 90 deg). A triangle can combine one from each group -- isosceles right triangle (45-45-90) is both isosceles and right.
How do I calculate triangle perimeter? +
Perimeter = a + b + c (sum of all three sides). If one side is missing, find it first using the Pythagorean theorem (right triangles) or law of cosines (other triangles), then add all three. Our calculator finds all three sides from any valid combination of inputs and displays the perimeter automatically.
What is the law of cosines? +
c^2 = a^2 + b^2 - 2ab x cos(C), where C is the angle opposite side c. To find an angle from three sides: cos(C) = (a^2 + b^2 - c^2) / (2ab). When C = 90 degrees, cos(90) = 0 and the formula becomes c^2 = a^2 + b^2 -- the Pythagorean theorem. The law of cosines generalises the Pythagorean theorem to all triangles.