17.3205
sq units
20
units
—
°
—
°
—
°
—
17.3205
sq units
20
units
—
°
—
°
—
°
—
The Triangle Calculator is a comprehensive geometric tool that computes all essential properties of any triangle when you know the lengths of its three sides. Whether you are a student solving geometry homework, an engineer designing structural components, or an architect planning floor layouts, this calculator delivers instant and accurate results for area, perimeter, all interior angles, and the classification of your triangle.
Triangles are the most fundamental polygon in Euclidean geometry. Every polygon with more than three sides can be decomposed into triangles, making the triangle the building block of all planar geometry. The study of triangles dates back to ancient civilizations: Babylonian clay tablets from around 1800 BCE contain problems about triangles, and the Egyptians used the 3-4-5 right triangle to survey land after the annual Nile floods. Greek mathematicians, particularly Euclid and Heron of Alexandria, formalized the relationships between sides and angles that we still use today.
This calculator uses Heron's formula to determine the area from three sides alone, without requiring knowledge of any angle or height. Heron's formula, attributed to Heron of Alexandria (c. 10-70 CE), is elegant in its simplicity: first compute the semi-perimeter, then apply a single square-root expression. The formula works for every valid triangle, regardless of its shape or orientation.
For the interior angles, the calculator employs the Law of Cosines, a generalization of the Pythagorean theorem that applies to all triangles. Given three side lengths, the Law of Cosines yields the cosine of each angle, from which the angle itself is recovered using the inverse cosine function. The three computed angles always sum to exactly 180 degrees, providing a useful consistency check.
Beyond raw measurements, the calculator classifies your triangle by two criteria simultaneously. By side lengths, a triangle is equilateral (all sides equal), isosceles (exactly two sides equal), or scalene (all sides different). By angles, a triangle is right (one 90-degree angle), obtuse (one angle greater than 90 degrees), or acute (all angles less than 90 degrees). These combined classifications yield descriptors such as "Isosceles Right" or "Scalene Obtuse" that fully characterize the triangle's geometry.
Practical applications of triangle calculations span virtually every technical field. In civil engineering, triangulated trusses distribute loads efficiently because triangles are inherently rigid. In surveying and navigation, triangulation determines unknown positions from known reference points. In computer graphics, meshes of triangles approximate curved surfaces for rendering. In physics, vector decomposition relies on right-triangle relationships. Even in everyday life, tasks like cutting fabric, tiling floors, or estimating the area of an irregularly shaped garden plot often reduce to triangle calculations.
Enter the three side lengths below, and the calculator will instantly provide the area, perimeter, all three interior angles, and the triangle's classification. For valid results, ensure that the side lengths satisfy the triangle inequality: the sum of any two sides must exceed the third side.
The Triangle Calculator uses two classical results from Euclidean geometry to derive all triangle properties from three side lengths $$a$$, $$b$$, and $$c$$.
Step 1: Semi-perimeter. Compute the semi-perimeter:
$$s = \frac{a + b + c}{2}$$
Step 2: Area via Heron's Formula. The area of the triangle is:
$$A = \sqrt{s(s - a)(s - b)(s - c)}$$
This formula is derived from the Law of Cosines and algebraic manipulation. It requires no height measurement, making it ideal when only side lengths are known.
Step 3: Perimeter. The perimeter is simply:
$$P = a + b + c$$
Step 4: Interior Angles via the Law of Cosines. Each angle is found using the inverse cosine of a ratio involving the squares of the sides:
$$\alpha = \arccos\left(\frac{b^2 + c^2 - a^2}{2bc}\right)$$
$$\beta = \arccos\left(\frac{a^2 + c^2 - b^2}{2ac}\right)$$
$$\gamma = \arccos\left(\frac{a^2 + b^2 - c^2}{2ab}\right)$$
The angles are converted from radians to degrees by multiplying by $$\frac{180}{\pi}$$. The identity $$\alpha + \beta + \gamma = 180°$$ always holds.
Step 5: Classification. The triangle is classified by comparing side lengths for the side-based type and by checking whether the largest angle equals, exceeds, or falls below 90° for the angle-based type.
The Area represents the total surface enclosed within the triangle, measured in square units. This value is critical in land surveying, material estimation, and structural design.
The Perimeter gives the total boundary length. This is useful when calculating fencing requirements, trim lengths, or the circumference of triangular objects.
The three Angles always sum to 180°. Angle A is opposite side a, angle B is opposite side b, and angle C is opposite side c. The largest angle is always opposite the longest side.
The Triangle Type combines side-based classification (equilateral, isosceles, scalene) with angle-based classification (acute, right, obtuse). For example, "Scalene Obtuse" means all sides differ and one angle exceeds 90°. This classification helps identify which specialized formulas and properties apply to your specific triangle.
Inputs
Results
Semi-perimeter s = (5+7+8)/2 = 10. Area = sqrt(10 * 5 * 3 * 2) = sqrt(300) = 17.3205. Angle A = arccos((49+64-25)/(2*7*8)) = arccos(88/112) = 38.21°. Angle B = arccos((25+64-49)/(2*5*8)) = arccos(40/80) = 60°. Angle C = 180 - 38.21 - 60 = 81.79°. All angles < 90°, so acute. All sides different, so scalene.
Inputs
Results
Semi-perimeter s = (3+4+5)/2 = 6. Area = sqrt(6*3*2*1) = sqrt(36) = 6. Angle C = arccos((9+16-25)/(2*3*4)) = arccos(0) = 90°. This confirms the classic 3-4-5 Pythagorean triple. Since 3² + 4² = 5² exactly, angle C is a right angle.
The triangle inequality states that the sum of any two sides must be greater than the third side: a + b > c, a + c > b, and b + c > a. If any of these conditions fails, no triangle can be formed with those side lengths. This calculator assumes valid inputs that satisfy the triangle inequality.
Heron's formula is mathematically exact for Euclidean triangles. Computational accuracy depends on floating-point precision. For very flat triangles (where one side nearly equals the sum of the other two), numerical errors can amplify. For typical triangles, results are accurate to many decimal places.
Yes. Enter all three sides and the calculator will automatically detect the right angle (90°) and classify it accordingly. For a dedicated right-triangle tool where you only need two sides, see the Right Triangle Calculator.
The calculator is unit-agnostic. If you enter side lengths in centimeters, the area is in square centimeters and angles are in degrees. The same logic applies to inches, meters, feet, or any consistent unit.
The type is a two-part classification. Side-based: equilateral (all sides equal), isosceles (two sides equal), or scalene (all different). Angle-based: right (one 90° angle), obtuse (one angle > 90°), or acute (all angles < 90°). These are combined, e.g., "Isosceles Obtuse."
Due to floating-point rounding in computer arithmetic, the three computed angles may differ from 180° by a tiny amount (typically less than 0.001°). This is a normal numerical artifact and does not indicate an error in the calculation.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!