Triangle Calculator
Calculate the area, perimeter, angles, and side lengths of any triangle. Enter your known values and let the calculator solve the rest using proven geometric formulas.
Triangle Calculator
Inputs
Enter parameters to calculate Area, Perimeter, and missing sides/angles.
Understanding Triangle Properties and Formulas
A triangle is the simplest polygon in geometry, formed by three straight line segments that connect three non-collinear points. Every triangle has three sides, three vertices, and three interior angles. Despite its simplicity, the triangle is the foundation of trigonometry, structural engineering, and countless real-world applications, from roof trusses to satellite navigation.
Types of Triangles by Sides
Triangles are classified by their side lengths into three categories. An equilateral triangle has all three sides of equal length, which also means all three interior angles are exactly 60 degrees. An isosceles triangle has exactly two sides of the same length, and the angles opposite those equal sides are also equal. A scalene triangle has no sides of equal length, so all three interior angles differ as well. Recognizing the type of triangle you are working with often simplifies the calculation because equilateral and isosceles triangles have built-in symmetry that reduces the number of unknowns.
Types of Triangles by Angles
Triangles can also be classified by their largest interior angle. An acute triangle has all three angles less than 90 degrees. A right triangle has one angle that is exactly 90 degrees, making it the cornerstone of the Pythagorean theorem and trigonometric ratios. An obtuse triangle has one angle greater than 90 degrees. Every triangle falls into exactly one of these angle-based categories while simultaneously belonging to one of the side-based categories, so you could have, for instance, an isosceles right triangle.
Area Formulas
The most familiar area formula is A = 1/2 × base × height, where the base is any side of the triangle and the height is the perpendicular distance from that base to the opposite vertex. When the height is not directly measurable, Heron's formula provides an elegant alternative. First compute the semi-perimeter s = (a + b + c) / 2, then calculate A = √(s(s − a)(s − b)(s − c)). For problems involving two sides and the included angle, the SAS area formula is A = 1/2 × a × b × sin(C). Each formula serves a different set of known values, so choosing the right one is the first step in any triangle area problem.
The Pythagorean Theorem
The Pythagorean theorem states that in a right triangle, a² + b² = c², where c is the hypotenuse (the side opposite the 90-degree angle) and a and b are the two legs. This relationship allows you to find any missing side when the other two are known. The converse is equally useful: if the side lengths of a triangle satisfy the equation, the triangle is a right triangle. Well-known Pythagorean triples include 3-4-5, 5-12-13, and 8-15-17.
Angle Sum Property and Trigonometric Relationships
In Euclidean geometry, the interior angles of any triangle always sum to exactly 180 degrees. This means that knowing two angles immediately gives you the third. The Law of Sines states that a/sin(A) = b/sin(B) = c/sin(C), connecting each side to its opposite angle. The Law of Cosines generalizes the Pythagorean theorem to any triangle: c² = a² + b² − 2ab·cos(C). Together, these laws allow you to solve any triangle when at least three independent elements (sides or angles) are known.
Real-World Applications
- Surveying and Navigation: Surveyors use triangulation to measure distances to remote points by forming triangles and applying trigonometric laws.
- Architecture and Engineering: Triangular trusses distribute weight efficiently, making them essential in bridge and roof design.
- Computer Graphics: 3D models are rendered as meshes of triangles because any polygon can be decomposed into triangles for efficient computation.
- Astronomy: Stellar parallax uses triangle geometry to measure distances to nearby stars from different positions in Earth's orbit.
Triangle Formula Reference Table
Quick-reference formulas for common triangle calculations used in geometry, trigonometry, and standardized tests.
| Calculation | Formula | When to Use |
|---|---|---|
| Area (base-height) | A = 1/2 × b × h | Base and perpendicular height are known |
| Area (Heron's) | √(s(s-a)(s-b)(s-c)) | All three sides known, height unknown |
| Area (SAS) | A = 1/2 × a × b × sin(C) | Two sides and included angle known |
| Perimeter | P = a + b + c | All three sides known |
| Semi-perimeter | s = (a + b + c) / 2 | Needed for Heron's formula |
| Pythagorean Theorem | c² = a² + b² | Right triangles only |
| Law of Cosines | c² = a² + b² − 2ab cos(C) | Any triangle (SSS or SAS) |
| Law of Sines | a/sin(A) = b/sin(B) = c/sin(C) | Any triangle (AAS or ASA) |
Step-by-Step Triangle Examples
Work through these three examples to practice the most common triangle calculation techniques: base-height area, Heron's formula, and finding a missing angle.
Example 1: Area of a Right Triangle
A right triangle has legs of 6 cm and 8 cm. Find its area and hypotenuse.
- Step 1: Identify the base and height. In a right triangle the two legs serve as base and height: b = 6, h = 8.
- Step 2: Apply the area formula: A = 1/2 × 6 × 8 = 24 cm²
- Step 3: Find the hypotenuse using the Pythagorean theorem: c = √(6² + 8²) = √(36 + 64) = √100 = 10 cm
- Step 4: Perimeter = 6 + 8 + 10 = 24 cm
Area = 24 cm², Hypotenuse = 10 cm, Perimeter = 24 cm
Example 2: Area Using Heron's Formula
Find the area of a triangle with sides a = 7, b = 8, and c = 9.
- Step 1: Calculate the semi-perimeter: s = (7 + 8 + 9) / 2 = 24 / 2 = 12
- Step 2: Compute each factor: s − a = 12 − 7 = 5, s − b = 12 − 8 = 4, s − c = 12 − 9 = 3
- Step 3: Multiply under the radical: 12 × 5 × 4 × 3 = 720
- Step 4: Take the square root: A = √720 ≈ 26.83 square units
Area ≈ 26.83 square units
Example 3: Finding a Missing Angle
A triangle has two known angles of 55° and 80°. Find the third angle and determine the triangle type.
- Step 1: Apply the angle-sum property: A + B + C = 180°
- Step 2: Substitute known values: 55° + 80° + C = 180°
- Step 3: Solve for C: C = 180° − 55° − 80° = 45°
- Step 4: Classify: All three angles (55°, 80°, 45°) are less than 90°, so this is an acute triangle. All angles are different, and since the sides opposite different angles have different lengths, it is also scalene.
Third angle = 45° (acute scalene triangle)
Frequently Asked Questions
Frequently Asked Questions
Was this calculator helpful?
Your rating helps other students discover this tool.
Related Calculators
Explore other calculators to help with your academic planning and success.


