The Triangle Solver All Cases Interactive Calculator is a comprehensive tool for solving any triangle configuration when you know three measurements (sides or angles). Whether you're working with SSS (side-side-side), SAS (side-angle-side), ASA (angle-side-angle), AAS (angle-angle-side), or SSA (side-side-angle) cases, this calculator determines all unknown sides, angles, and triangle properties. Engineers, surveyors, architects, and students use this tool daily for structural analysis, land surveying, navigation, and geometric problem-solving where complete triangle solutions are required.
📐 Browse all free engineering calculators
Quick Navigation
Triangle Diagram
Triangle Solver Calculator
Triangle Solving Equations
Law of Cosines
c² = a² + b² − 2ab·cos(C)
a² = b² + c² − 2bc·cos(A)
b² = a² + c² − 2ac·cos(B)
Where: a, b, c = triangle sides (units), A, B, C = angles opposite those sides (degrees)
Law of Sines
a/sin(A) = b/sin(B) = c/sin(C)
Where: a, b, c = triangle sides (units), A, B, C = angles opposite those sides (degrees)
Triangle Angle Sum
A + B + C = 180°
Where: A, B, C = interior angles of the triangle (degrees)
Heron's Formula for Area
Area = √[s(s−a)(s−b)(s−c)]
s = (a + b + c)/2
Where: s = semi-perimeter (units), a, b, c = triangle sides (units)
Right Triangle Pythagorean Theorem
c² = a² + b²
Where: c = hypotenuse (units), a, b = legs of right triangle (units)
Theory & Engineering Applications
Fundamental Triangle Solving Methods
Triangle solving encompasses the systematic determination of all six elements of a triangle (three sides and three angles) when given three independent pieces of information. The field of trigonometry provides several powerful theorems that enable complete triangle solutions across all possible configurations. Understanding which theorem to apply depends critically on the known elements: the Law of Cosines excels when you know three sides or two sides and the included angle, while the Law of Sines handles cases involving two angles and a side or two sides and a non-included angle. The fundamental angle sum property (A + B + C = 180°) provides the third angle once two are known, completing the angular solution.
A critical but often overlooked aspect of triangle solving is the ambiguous case in SSA (side-side-angle) configurations. When you know two sides and an angle opposite one of them, the Law of Sines can yield two mathematically valid solutions, one solution, or no solution depending on the relationship between the sides and angle. Specifically, when the known angle is acute and the side opposite it is shorter than the other known side, two distinct triangles can satisfy the constraints—one with an acute angle and one with an obtuse angle for the unknown angle opposite the second known side. This ambiguity has practical implications in surveying and navigation, where selecting the geometrically correct solution requires additional contextual information about the physical configuration being measured.
The Law of Cosines: Derivation and Application
The Law of Cosines represents a generalization of the Pythagorean theorem applicable to all triangles, not just right triangles. For a triangle with sides a, b, c and angle C opposite side c, the law states c² = a² + b² − 2ab·cos(C). This formula can be derived using vector geometry or by dropping a perpendicular from one vertex to the opposite side and applying the Pythagorean theorem twice. When angle C equals 90°, cos(C) becomes zero, and the formula reduces to the familiar Pythagorean theorem. The negative sign before the cosine term is essential: for acute angles (cos C positive), it reduces the sum a² + b², while for obtuse angles (cos C negative), it increases the sum, correctly reflecting that obtuse triangles have longer opposite sides than predicted by the Pythagorean theorem.
In structural engineering, the Law of Cosines enables force resolution in non-orthogonal truss members. Consider a roof truss with a 8.5-meter horizontal bottom chord, a 6.2-meter sloped top chord, and a 127° internal angle at their junction. Using c² = a² + b² − 2ab·cos(C), we calculate c² = (8.5)² + (6.2)² − 2(8.5)(6.2)·cos(127°). Computing: c² = 72.25 + 38.44 − 105.4·(−0.6018) = 72.25 + 38.44 + 63.43 = 174.12, yielding c = 13.20 meters for the diagonal member length. This calculation is essential for ordering the correct member sizes and verifying that stress concentrations remain within acceptable limits.
The Law of Sines and Angular Solutions
The Law of Sines establishes that the ratio of each side length to the sine of its opposite angle remains constant for all three sides of any triangle: a/sin(A) = b/sin(B) = c/sin(C). This elegant relationship enables solving for unknown sides when two angles and one side are known (AAS or ASA cases), or for unknown angles when two sides and one angle are known (SSA case). The law derives from the relationship between triangle area and the sine function: Area = (1/2)ab·sin(C) = (1/2)bc·sin(A) = (1/2)ac·sin(B). Rearranging these equal expressions yields the sine law directly.
Surveying applications frequently employ the Law of Sines for distance measurements where direct measurement proves impossible. A surveyor measuring across a river establishes a baseline of 47.3 meters along one bank and measures angles of 53.8° and 71.4° from the baseline endpoints to a target point on the opposite bank. The angle at the target point is 180° − 53.8° − 71.4° = 54.8°. Using the Law of Sines to find the distance from the first baseline endpoint to the target: d/sin(71.4°) = 47.3/sin(54.8°). This yields d = 47.3 · sin(71.4°)/sin(54.8°) = 47.3 · 0.9478/0.8175 = 54.87 meters. The surveyor can now calculate the river width by multiplying this distance by sin(53.8°) to get the perpendicular distance: 54.87 · 0.8059 = 44.22 meters.
Worked Example: Complete Triangle Solution for Structural Analysis
Consider a triangular steel brace in a building frame where engineers need all dimensions for fabrication. The design specifications provide two sides and the included angle (SAS case): side a = 3.75 meters (horizontal member), side b = 2.90 meters (sloped member), and angle C = 68.5° between them. We must determine side c, angles A and B, the perimeter, and the triangular area for material quantity estimation.
Step 1: Apply the Law of Cosines to find side c:
c² = a² + b² − 2ab·cos(C)
c² = (3.75)² + (2.90)² − 2(3.75)(2.90)·cos(68.5°)
c² = 14.0625 + 8.41 − 21.75·cos(68.5°)
c² = 14.0625 + 8.41 − 21.75·(0.3665)
c² = 14.0625 + 8.41 − 7.971
c² = 14.5015
c = 3.808 meters
Step 2: Use the Law of Sines to find angle A:
a/sin(A) = c/sin(C)
sin(A) = a·sin(C)/c
sin(A) = 3.75·sin(68.5°)/3.808
sin(A) = 3.75·(0.9304)/3.808
sin(A) = 0.9164
A = arcsin(0.9164) = 66.43°
Step 3: Calculate angle B using the angle sum property:
B = 180° − A − C
B = 180° − 66.43° − 68.5°
B = 45.07°
Step 4: Calculate the perimeter:
P = a + b + c = 3.75 + 2.90 + 3.808 = 10.458 meters
Step 5: Calculate the area using Heron's formula:
s = P/2 = 10.458/2 = 5.229 meters (semi-perimeter)
Area = √[s(s−a)(s−b)(s−c)]
Area = √[5.229(5.229−3.75)(5.229−2.90)(5.229−3.808)]
Area = √[5.229·(1.479)·(2.329)·(1.421)]
Area = √[25.426]
Area = 5.042 square meters
This complete solution provides the fabricator with exact cutting lengths (a=3.75m, b=2.90m, c=3.808m), welding angles (66.43°, 68.5°, 45.07°), total linear material needed (10.458m accounting for waste), and surface area for coating specifications (5.042 m²). The precision of these calculations directly impacts construction accuracy and material efficiency.
Engineering Applications Across Industries
In aerospace engineering, triangle solving enables precise airframe stress analysis. Wing truss configurations transmit lift forces through triangular members where designers must calculate load distributions. A wing rib section might form a triangle with a 2.18-meter chord length, a 0.87-meter height strut, and a 2.35-meter diagonal member. Engineers use SSS solving to determine internal angles, which then inform finite element analysis for stress concentration predictions at riveted joints. The calculated angles determine the vector components of forces in each member, critical for ensuring that tensile and compressive stresses remain within aluminum alloy yield limits throughout the flight envelope.
Civil engineering surveyors rely extensively on triangle solving for topographic mapping and boundary determination. When measuring property boundaries in rugged terrain where direct measurement is impossible, surveyors establish control networks of triangles with carefully measured angles and one precisely measured baseline. Using the Law of Sines iteratively, they propagate distance measurements across entire survey regions. A typical cadastral survey might measure a 127.6-meter baseline with angles of 47.2° and 68.9° to an inaccessible corner monument, yielding the monument distances of 156.8 meters and 183.4 meters with centimeter-level accuracy essential for legal property descriptions.
Navigation systems employ spherical triangle solving (a generalization of plane triangles to curved surfaces) for great-circle route calculations. While marine and aviation navigation uses spherical trigonometry, short-range navigation can approximate small regions as plane triangles. A vessel traveling from point A to point B might use radar to detect a lighthouse at point C, measuring the angle to the lighthouse from the ship's heading and knowing the distance to the lighthouse from nautical charts. With one more angle measurement or distance, the navigator can solve the triangle completely to verify the ship's position, critical for avoiding hazards in restricted waters.
Robotics and computer-aided manufacturing use triangle solving for inverse kinematics calculations. A robotic arm with two segments of lengths L1 and L2 must position its end effector at coordinates (x, y). This creates a triangle with sides L1, L2, and the distance √(x² + y²) from the base to the target. Solving this triangle yields the joint angles needed to achieve the desired position. For a robot arm with 0.45m and 0.38m segments reaching to a point 0.60m away, triangle solving determines that the elbow joint must flex to a specific angle (calculated as 74.2° using the Law of Cosines), enabling precise positioning for tasks like welding or component assembly.
The field of geodesy applies triangle solving to determine Earth's shape and gravitational field variations. Geodetic triangulation networks historically formed the basis for national coordinate systems, with massive triangles spanning hundreds of kilometers between mountain peaks. Modern GPS has largely replaced classical triangulation, but the mathematical principles remain identical—solving triangles formed by satellite positions and ground receivers to determine precise three-dimensional coordinates. Engineers designing bridges, tunnels, and other infrastructure still reference these geodetic control networks for project datum establishment.
For those working with engineering calculations, mastering triangle solving provides foundational geometric problem-solving skills applicable across mechanical design, civil construction, aerospace analysis, and robotic programming.
Practical Applications
Scenario: Roof Truss Design Verification
Marcus, a structural engineer at a residential construction firm, is verifying shop drawings for a complex hip roof truss system. The architect's plans show a truss with a 7.32-meter bottom chord and a 5.85-meter top chord meeting at a 114° angle. Before approving fabrication of 47 identical trusses, Marcus needs to calculate the exact length of the diagonal web member to ensure it matches the steel supplier's cutting list. He enters the two known sides and included angle (SAS case) into the triangle solver, which calculates the diagonal member as 11.24 meters. The calculator also provides all three angles (37.8°, 114°, and 28.2°) and the triangular area of 18.63 square meters, allowing Marcus to verify material quantities and confirm that the connection angles are achievable with standard gusset plates. This five-minute calculation prevents a potential $8,400 fabrication error and ensures the roof structure will meet load requirements.
Scenario: Marine Navigation Position Fix
Captain Elena is navigating her research vessel along the Norwegian coast in foggy conditions. She identifies two lighthouses on her radar: Lighthouse A at bearing 042° and Lighthouse B at bearing 107°. Her nautical chart shows these lighthouses are 8.7 nautical miles apart. By measuring the angle between the two bearings (107° - 042° = 65°) and recognizing this forms an ASA triangle case (she knows two angles at her vessel position and the side between the lighthouses), Elena uses the triangle solver to calculate her exact distances from each lighthouse: 7.14 nm from Lighthouse A and 9.38 nm from Lighthouse B. She plots these distances as circles on her chart, and their intersection reveals her precise position, confirming she is safely in the 50-meter depth channel and 2.3 nm from the nearest subsurface obstruction. This traditional navigation technique, validated by electronic positioning, provides critical redundancy when GPS signals are unreliable in high-latitude regions.
Scenario: Robotic Arm Programming
Javier, a robotics technician at an automotive assembly plant, is programming a new welding robot arm to reach specific weld points on vehicle chassis. The robot has a shoulder segment of 0.62 meters and an elbow segment of 0.48 meters. A critical weld point is located 0.83 meters from the robot's shoulder pivot at floor level. Javier enters these three side lengths (SSS case) into the triangle solver to determine the exact joint angles required. The calculator reveals that the shoulder joint must rotate to 72.4° from horizontal and the elbow must bend to 83.7° to position the welding torch precisely at the target point. He also learns the angle at the weld point is 23.9°, which tells him the approach angle for the torch. After inputting these angles into the robot controller, the arm positions perfectly on the first attempt, eliminating the two hours of manual teaching that would typically be required and allowing Javier to program 23 additional weld points in the same shift.
Frequently Asked Questions
What is the ambiguous case in triangle solving and when does it occur? +
Can a triangle be solved with only the three angles known? +
What causes "no triangle exists" errors and how can I identify them before calculating? +
Why do my calculated angles sometimes not add up to exactly 180 degrees? +
How does triangle solving extend to three-dimensional geometry and spatial problems? +
What accuracy should I expect from triangle calculations in real-world engineering applications? +
Free Engineering Calculators
Explore our complete library of free engineering and physics calculators.
Browse All Calculators →🔗 Explore More Free Engineering Calculators
About the Author
Robbie Dickson — Chief Engineer & Founder, FIRGELLI Automations
Robbie Dickson brings over two decades of engineering expertise to FIRGELLI Automations. With a distinguished career at Rolls-Royce, BMW, and Ford, he has deep expertise in mechanical systems, actuator technology, and precision engineering.