Select the calculation method below based on the values you know (Sides or Angles).
Trigonometry is one of the most practical branches of mathematics, used in everything from construction and engineering to GPS navigation and computer graphics. At the heart of trigonometry lies the triangle—a simple three-sided polygon that holds complex mathematical relationships. This guide will walk you through the geometry behind our Triangle Calculator, helping you understand how to solve for unknown sides, angles, area, and perimeter using the standard trigonometric laws.
Before diving into calculations, it helps to identify what kind of triangle you are working with. Triangles are typically classified by their sides and their angles.
Regardless of the type, the sum of internal angles in any Euclidean triangle is always 180 degrees (or π radians).
Our calculator determines which formula to apply based on the inputs you provide. Here are the primary mathematical laws used in the background.
The Law of Cosines is a generalization of the Pythagorean Theorem applicable to any triangle, not just right-angled ones. It relates the lengths of the sides to the cosine of one of its angles.
Formula: c² = a² + b² - 2ab · cos(C)
This law is essential when you have:
The Law of Sines states that the ratio of the length of a side to the sine of its opposite angle is constant for all three sides of the triangle.
Formula: a / sin(A) = b / sin(B) = c / sin(C)
This law is used when solving:
To calculate the area of a triangle when only the three side lengths (a, b, c) are known, we use Heron's Formula. It does not require knowing the height.
First, calculate the semi-perimeter (s): s = (a + b + c) / 2.
Then, the Area = √[s(s-a)(s-b)(s-c)].
Geometry problems usually present you with 3 known values. Depending on which values you have, you must select the correct mode in our calculator.
Use this mode when you know the lengths of all three sides (a, b, c) but no angles. This is common in construction when checking if a physical structure is square or calculating corner angles for fitting materials.
Calculation Steps: The calculator first checks the "Triangle Inequality Theorem," which states that the sum of any two sides must be greater than the third side (a + b > c). If valid, it applies the Law of Cosines to find the three angles.
Use this mode when you know two sides (e.g., a and b) and the angle between them (Angle C). The angle must be the "included" angle; otherwise, it becomes an SSA problem.
Calculation Steps: The calculator finds side c using the Law of Cosines. Once all three sides are known, it calculates the remaining angles.
Use this mode when you know two angles and the side connecting them (the included side). For example, if you are surveying land and measure two corners and the distance between them.
Calculation Steps: Since the sum of angles is 180°, the third angle is easily found (180° - A - B). Then, the Law of Sines is used to find the remaining two sides.
Similar to ASA, but the known side is not between the two known angles. For example, knowing Angle A, Angle B, and Side a.
Calculation Steps: The third angle is calculated first (Angle C = 180° - A - B). Then the Law of Sines is applied to find sides b and c.
This is the most complex scenario in triangle geometry. You know two sides and an angle that is NOT between them (e.g., Side a, Side b, and Angle A). This is called "ambiguous" because three outcomes are possible:
Our calculator automatically detects these scenarios. If two solutions exist, a dropdown menu will appear allowing you to toggle between "Solution 1" and "Solution 2".
Beyond finding missing sides and angles, our tool provides three other critical properties:
If you are getting an error message or unexpected result, check for these common issues:
Architecture & Construction: Calculating roof pitches, truss angles, and floor layouts relies heavily on SSS and SAS calculations.
Surveying: Measuring the distance between two inaccessible points (like across a river) often uses the Law of Sines (ASA/AAS methods).
Machining & CNC: Determining tool paths and cutting angles requires precise trigonometric solutions to ensure parts fit together correctly.