Solving Triangles: The Foundation of Geometry, Engineering, and Construction
A triangle calculator solves all unknown sides and angles of a triangle when enough information is provided. Whether you are a student working through geometry homework, an engineer checking structural dimensions, or a carpenter laying out a roof, this tool eliminates manual trigonometry and delivers instant, accurate results.
Every triangle has three sides and three angles that always sum to 180 degrees. By entering just three known values in the right combination, the calculator can determine everything else about the triangle. Triangles are the most rigid shape in engineering: unlike squares or rectangles, a triangle cannot be deformed without changing the length of a side. This is why triangles form the basis of truss design, bridge construction, and structural analysis. For related geometry calculations, try our Pythagorean Theorem Calculator.
What This Calculator Does
Enter any valid combination of sides and angles and the calculator solves for the remaining unknowns, plus area and perimeter.
Inputs Required (choose one mode)
- SSS: All three side lengths
- SAS: Two sides and the included angle between them
- SSA: Two sides and an angle opposite one of them
- AAS: Two angles and a non-included side
- ASA: Two angles and the included side between them
Outputs Provided
- All three sides (a, b, c)
- All three angles (A, B, C) in degrees
- Area of the triangle
- Perimeter of the triangle
How the Calculation Works
The calculator applies the Law of Cosines and the Law of Sines depending on the known values provided.
Law of Cosines (used for SSS and SAS)
c² = a² + b² - 2ab × cos(C)
cos(A) = (b² + c² - a²) / (2bc)
When all three sides are known, the Law of Cosines calculates each angle by rearranging this formula. When two sides and the included angle are known, it calculates the third side directly.
Law of Sines (used for AAS, ASA, SSA)
a / sin(A) = b / sin(B) = c / sin(C)
This law relates each side to the sine of the opposite angle. It is used when angle-side combinations are known. Once two angles are known, the third is found by subtracting from 180 degrees.
Area Formula (Heron's Formula)
s = (a + b + c) / 2
Area = √(s(s-a)(s-b)(s-c))
How to Use the Calculator
- Select the combination of known values (SSS, SAS, SSA, AAS, or ASA)
- Enter the known side lengths or angles in the input fields
- Click Calculate
- View all sides, angles, area, and perimeter instantly
Example Calculation
Kevin, a surveyor in Colorado, uses SSS mode with sides a = 5, b = 7, c = 8 to determine the angles and area of a triangular land plot:
- Angle A: cos(A) = (49 + 64 - 25) / (2 x 7 x 8) = 88/112 = 38.21 degrees
- Angle B: cos(B) = (25 + 64 - 49) / (2 x 5 x 8) = 40/80 = 60.00 degrees
- Angle C: 180 - 38.21 - 60.00 = 81.79 degrees
- Semi-perimeter s: (5 + 7 + 8) / 2 = 10
- Area: square root of (10 x 5 x 3 x 2) = square root of 300 = 17.32 square units
- Perimeter: 5 + 7 + 8 = 20 units
Kevin uses the area result to estimate the property value at $50 per square unit, arriving at approximately $866 for this parcel. For calculating roof dimensions from triangle measurements, see our Roofing Calculator.
Real-World Scenarios
Construction and Land Surveying
Marcus, a surveyor in Texas, measures two sides of a triangular land plot (120 ft and 85 ft) and the angle between them (72 degrees). Using SAS mode, the calculator instantly finds the third boundary length of 138.4 ft and the total plot area of 4,847 square feet, saving hours of manual trigonometry on site. The 3-4-5 rule is another essential construction tool: measure 3 ft along one wall, 4 ft along the perpendicular, and the diagonal must be exactly 5 ft to confirm a square corner. Scale up proportionally for larger layouts: 6-8-10, 9-12-15, or 12-16-20.
Roof Truss Design
Linda, an architect in Boston, designs a roof truss with two rafters each 14 ft long meeting at a 36 degree ridge angle. Using the Law of Cosines: c squared = 196 + 196 - 2(14)(14) x cos(36) = 392 - 317.1 = 74.9, so c = 8.65 ft. This is the horizontal span of the ridge beam between the two rafter feet. Triangle calculations like this are fundamental to every roof truss, ramp, brace, and diagonal cut in construction. For calculating materials for the roof, try our Roofing Calculator.
Navigation and GPS Triangulation
David, a navigator on a research vessel, uses triangulation to determine his position. Knowing the distance to two landmarks (3.2 km and 4.8 km) and the angle between them (48 degrees) allows the SAS mode to calculate his exact position in the triangle formed with those reference points. GPS systems use a similar principle with satellites, though they work in three dimensions with spherical trigonometry rather than planar triangles.
Why This Calculation Matters
Triangles are the most fundamental shape in geometry and engineering. They are the basis for structural analysis because triangles are rigid: unlike a square or rectangle, a triangle cannot be deformed without changing the length of one of its sides. Every polygon can be divided into triangles for area calculation. Understanding triangle properties is essential in construction, engineering, physics, and navigation. The Law of Cosines is a generalization of the Pythagorean theorem applicable to all triangles, not just right triangles. When angle C equals 90 degrees, cos(C) becomes zero and the formula reduces to the familiar Pythagorean theorem.
This calculator removes the need to memorize multiple formulas and perform multi-step calculations by hand. It handles all five standard triangle-solving cases accurately and instantly. For right triangle problems specifically, use our Pythagorean Theorem Calculator.
Common Mistakes to Avoid
- Using the wrong combination: Not all three values define a unique triangle. Make sure you select the correct mode matching your known values. At least one known value must be a side, not just angles
- Triangle inequality violation: The sum of any two sides must be greater than the third side. If not, no triangle is possible. For example, sides 3, 4, and 8 cannot form a triangle because 3 + 4 is less than 8
- Angles not summing to 180: When entering angle values manually, verify they total less than 180 degrees for a valid triangle. If two angles sum to 180 or more, no valid triangle exists
- Mixing units: All side lengths must use the same unit. Do not mix centimeters with meters or inches with feet
- SSA ambiguity: The SSA case can sometimes produce two valid triangles, called the ambiguous case. The calculator returns the primary solution, but a second valid triangle may exist. Always check whether the alternative solution is relevant to your problem
Limitations of This Calculator
This calculator solves planar (flat) triangles in Euclidean geometry. It does not handle spherical triangles on the surface of a sphere, which are used in long-distance navigation and geodesy. It does not compute hyperbolic triangles. The SSA ambiguous case returns only the primary solution, not both possible triangles. The calculator works in degrees only, not radians or gradians. It does not calculate advanced properties such as medians, centroids, inradius, circumradius, or Euler lines. For advanced geometric work, use a computer algebra system like GeoGebra or Wolfram Mathematica.
Authoritative Research and Resources
- Khan Academy: High School Geometry and Trigonometry - Free educational resource covering the Law of Sines, Law of Cosines, Heron's formula, and triangle solving techniques. Includes video lessons, practice exercises, and worked examples for SSS, SAS, ASA, AAS, and SSA cases. Widely used in mathematics education from middle school through college level.
- LibreTexts: Further Applications of Trigonometry - Open-access textbook chapter covering the Law of Sines, Law of Cosines, and their applications to real-world problems including surveying, navigation, and engineering. Part of the OpenStax Precalculus textbook, peer-reviewed and widely adopted in college mathematics courses.
- NIST: Metric (SI) Program - The National Institute of Standards and Technology maintains the International System of Units (SI) used in scientific and engineering calculations. Relevant for ensuring consistent unit usage when solving triangle problems in professional contexts. On January 1, 2023, the US survey foot was retired and the international foot definition officially superseded it.