How to Use the Triangle Calculator for Geometry & Trigonometry
A guide on calculating sides, angles, and area of triangles using the Pythagorean theorem, the Law of Sines, and the Law of Cosines.
Related Calculator
Use the Triangle Calculator to apply what you learn in this guide.
On this page
- Universal Geometric Laws Governing All Planar Triangles
- 1. The Interior Angle Sum Theorem
- 2. The Triangle Inequality Theorem
- Master Classification: Triangle Solving Strategies by Input Case
- 1. Right-Angled Triangles (Pythagorean Theorem & SOH-CAH-TOA)
- The Pythagorean Theorem
- Fundamental Trigonometric Ratios (SOH-CAH-TOA)
- 2. Oblique Triangles: The Law of Sines
- The Ambiguous SSA Case (0, 1, or 2 Solutions)
- 3. Oblique Triangles: The Law of Cosines
- Solving for Angles When All Three Sides Are Known (SSS)
- 4. Calculating the Area of a Triangle
- Standard Base-Height Formula
- Trigonometric (SAS) Area Formula
- Heron's Formula (SSS Area)
- Advanced Geometric Properties: Inradius & Circumradius
- Inradius (rrr)
- Circumradius (RRR)
- Step-by-Step Worked Examples
- Worked Example: Solving an SAS Triangle
- How to Use the Triangle Calculator
Triangles are the foundational polygon of Euclidean geometry, architectural engineering, computer graphics rendering, navigation, and celestial mechanics. Because any polygon with sides can be decomposed into interconnected triangles, mastering the mathematical principles governing triangles is essential across STEM disciplines and skilled construction trades.
However, solving an arbitrary triangle—determining all three side lengths ($a, b, c$), all three interior angles (), the enclosed surface area, perimeter, inradius, and circumradius—requires different mathematical theorems depending on which initial properties are known.
This definitive reference guide breaks down every geometric theorem used to solve triangles, explores right-angled and oblique geometries, explains how to navigate the ambiguous SSA case, and demonstrates how to use the Triangle Calculator to solve any triangle in seconds.
Universal Geometric Laws Governing All Planar Triangles
Before applying trigonometric laws, every two-dimensional triangle in Euclidean space must satisfy two fundamental mathematical axioms:
1. The Interior Angle Sum Theorem
The sum of the three interior angles in any planar triangle always equals exactly 180 degrees ( radians):
If two interior angles are known, the third angle is immediately determined without trigonometric ratios:
2. The Triangle Inequality Theorem
The sum of the lengths of any two sides of a triangle must strictly exceed the length of the remaining third side. If this condition is violated, the three line segments cannot physically connect to enclose a two-dimensional area:
For example, segments of lengths , , and cannot form a triangle because .
Master Classification: Triangle Solving Strategies by Input Case
Depending on the three parameters you know, use this reference table to identify the required mathematical theorem:
| Given Knowns | Case Name | Primary Theorem Used | Number of Possible Solutions |
|---|---|---|---|
| 3 Sides | SSS (Side-Side-Side) | Law of Cosines Law of Sines | Exactly 1 valid triangle (if inequality holds) |
| 2 Sides + Included Angle | SAS (Side-Angle-Side) | Law of Cosines Law of Sines | Exactly 1 unique triangle |
| 2 Angles + Included Side | ASA (Angle-Side-Angle) | Angle Sum Theorem Law of Sines | Exactly 1 unique triangle |
| 2 Angles + Non-Included Side | AAS (Angle-Angle-Side) | Angle Sum Theorem Law of Sines | Exactly 1 unique triangle |
| 2 Sides + Non-Included Angle | SSA (Side-Side-Angle) | Law of Sines (Ambiguous Case) | 0, 1, or 2 valid triangles |
| 3 Angles | AAA (Angle-Angle-Angle) | Similar triangles | Infinitely many (shape known, scale undefined) |
1. Right-Angled Triangles (Pythagorean Theorem & SOH-CAH-TOA)
When one of the interior angles is exactly ( radians), the triangle is a Right Triangle. Solving right triangles does not require the generalized Law of Cosines because the cosine of is zero.
The Pythagorean Theorem
For a right triangle with perpendicular legs and and hypotenuse (the longest side, opposite the right angle):
Fundamental Trigonometric Ratios (SOH-CAH-TOA)
For an acute angle in a right triangle:
- Sine ():
- Cosine ():
- Tangent ():
2. Oblique Triangles: The Law of Sines
The Law of Sines establishes that the ratio of each side length to the sine of its opposite angle is invariant across all three vertices:
Where is the radius of the triangle's circumscribed circle (circumradius).
The Ambiguous SSA Case (0, 1, or 2 Solutions)
When given two sides and a non-included acute angle (SSA, where you know , and angle ), the altitude from vertex to side is . Three distinct geometric outcomes can occur:
- : Side is too short to reach the baseline. Zero triangles exist.
- : Side reaches the baseline perpendicularly. Exactly one right triangle exists.
- : Side can swing in two directions, intersecting the baseline at two distinct points. Two valid triangles exist (one acute, one obtuse).
- : Side can only swing outward. Exactly one unique triangle exists.
3. Oblique Triangles: The Law of Cosines
The Law of Cosines is the universal generalization of the Pythagorean theorem for any planar triangle:
Solving for Angles When All Three Sides Are Known (SSS)
Rearranging the Law of Cosines allows you to calculate angles directly from side lengths:
Pro Tip: When solving an SSS triangle, always use the Law of Cosines to solve for the largest angle first (the angle opposite the longest side). Because the inverse cosine function () returns values from to , it unambiguously identifies whether the triangle has an obtuse angle ().
4. Calculating the Area of a Triangle
Depending on your known inputs, choose the most direct area formula:
Standard Base-Height Formula
When a base and its perpendicular altitude are known:
Trigonometric (SAS) Area Formula
When two sides and the included angle between them are known:
Heron's Formula (SSS Area)
When all three side lengths ($a, b, c$) are known without any angles or heights. First calculate the semi-perimeter ():
Then compute the enclosed area:
Advanced Geometric Properties: Inradius & Circumradius
In engineering, mechanical gearing, and computer graphics, calculating the circles inscribed within and circumscribed around a triangle is a routine requirement:
Inradius ()
The radius of the largest circle that fits completely inside the triangle, tangent to all three sides:
Circumradius ()
The radius of the circle that passes through all three vertices of the triangle:
Step-by-Step Worked Examples
Worked Example: Solving an SAS Triangle
Given: Side , Side , Included Angle . Find side , angles and , and the area.
Step 1: Find side using Law of Cosines:
Step 2: Find angle using Law of Sines:
Step 3: Find angle using the Angle Sum Theorem:
Step 4: Calculate the Area:
How to Use the Triangle Calculator
Our free Triangle Calculator eliminates manual trigonometric errors:
- Select Your Known Inputs: Choose your input combination from the dropdown: SSS, SAS, ASA, AAS, or SSA.
- Enter Values: Input your side lengths and angles (choose between Degrees and Radians).
- Instant Geometry Engine: The calculator validates the Triangle Inequality Theorem, checks for the ambiguous SSA case, and computes:
- All three sides ($a, b, c$) and all three interior angles ()
- Total Perimeter and Semi-Perimeter ()
- Enclosed Surface Area
- Triangle Classification (Acute, Right, or Obtuse; Scalene, Isosceles, or Equilateral)
- Inradius (), Circumradius (), and all three Altitudes ()
Frequently Asked Questions
What mathematical formula does the Triangle Calculator use?
The Triangle Calculator uses the Heron’s Area Formula & Law of Cosines equation: Area = √[ s(s-a)(s-b)(s-c) ] | c² = a² + b² - 2ab cos(C).