If you know three measurements of a triangle—sides, angles, or a mix—that's enough to find everything else, but you have to match your method to the case at hand (SSS, SAS, ASA, AAS, or SSA). Get this wrong, and your answers won't add up, especially in the notorious SSA case where you can get two triangles instead of one. The calculator below lets you input any three values you know and handles the number crunching to fill in the rest—lengths, angles, area, perimeter. This is the kind of geometry you run into in real engineering: frame analysis, surveying, path-finding, or even something like a simple 2-joint robot arm. Down the page, you'll find the key formulas, a worked example pulled from actual shop drawings, detailed explanations of every method, and an FAQ that points out the common sticking points—like how ambiguous cases pop up, and what level of precision is actually practical for field work.
What is triangle solving?
Triangle solving is just working out all the unknown side lengths and angles if you know three of the six values. If you tell the calculator any three of those—doesn’t matter if it’s sides or angles—it’ll run the right trigonometry and work out the rest.
Simple Explanation
A triangle only has six main values: three sides and three angles. If you lock in any three of those (with at least one side), the rest are fixed, and the rest can be calculated. The calculator checks what you’ve got and picks from the Law of Sines, Law of Cosines, or the angle sum, depending on your inputs.
📐 Browse all 1000+ Interactive Calculators
Quick Navigation
Triangle Diagram
How to Use This Calculator
- Select your triangle case from the dropdown — SSS, SAS, ASA, AAS, SSA, or Right Triangle.
- Enter the known side lengths in the units of your choice (meters, inches, feet — consistent units only).
- Enter any known angle values in degrees.
- Click Calculate to see your result.
Triangle Solver Calculator
This calculator is intended for education, concept evaluation, and preliminary design. Results are based on the equations and assumptions described on this page, but cannot account for every real-world load case, tolerance, material property, environmental condition, installation detail, safety factor, code, or regulatory requirement. Verify all inputs, assumptions, units, and results independently before selecting components or using the result in a real application. Safety-critical, structural, medical, lifting, transportation, or regulated applications must be reviewed by a qualified engineer.
Triangle Solver Interactive Visualizer
Adjust any three triangle measurements to instantly solve all unknown sides, angles, area, and perimeter. Watch the triangle reshape in real-time as you change values.
SIDE C
100.0 mm
AREA
2400 mm²
PERIMETER
240.0 mm
FIRGELLI Automations — Interactive Engineering Calculators
Triangle Solving Equations
If you know two sides and the angle in between, use this version of the Law of Cosines:
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)
If you've got two angles and a side, you'll need the Law of Sines:
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)
Once you know two angles, the third is always 180° minus the other two:
Triangle Angle Sum
A + B + C = 180°
Where: A, B, C = interior angles of the triangle (degrees)
To get the area from just side lengths, Heron's formula works:
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)
For right triangles, the Pythagorean theorem gives you the missing side:
Right Triangle Pythagorean Theorem
c² = a² + b²
Where: c = hypotenuse (units), a, b = legs of right triangle (units)
Simple Example
Case: SSS — Three sides known
Side a = 3, Side b = 4, Side c = 5
Angle A = arccos((16 + 25 − 9) / 40) = 36.87°
Angle B = arccos((9 + 25 − 16) / 30) = 53.13°
Angle C = 180 − 36.87 − 53.13 = 90.00°
Area = 6.00 square units, Perimeter = 12.00 units
Theory & Engineering Applications
Fundamental Triangle Solving Methods
Solving a triangle is about working out all six details—three sides and three angles—given any three you already know (as long as at least one’s a side). You’ll get nowhere trying to use the wrong formula for your situation: the Law of Cosines covers “all sides known” (SSS) or “two sides and included angle” (SAS). The Law of Sines comes into play if you have a side with two angles (AAS or ASA), or two sides and an angle not in between them (SSA). The sum of angles saves time—if you know two angles, just subtract from 180° to get the third.
The main pitfall is the ambiguous SSA case. If you know two sides and an angle opposite one of them, the Law of Sines sometimes spits out two possible triangles, sometimes one, sometimes none. This happens mostly when the known angle is acute and its opposite side is shorter than the adjacent side. You’ll need extra info (like drawings or practical context) to figure out which triangle actually fits your physical scenario—classic issue in surveying and navigation work.
The Law of Cosines: Derivation and Application
The Law of Cosines is a direct extension of Pythagoras, but for triangles that aren’t right-angled. Let’s say you’ve got a triangle with sides a, b, c, and you know angle C opposite side c. The relationship is c² = a² + b² − 2ab·cos(C). If that angle C is 90°, cos(90°) is zero, and you’re right back to Pythagoras. Watch the minus sign: for acute angles the third side is a bit shorter than naïvely adding a² + b², and for obtuse angles it’s longer.
Practical example: you’re checking if a truss member will fit. The bottom chord is 8.5 m, the slope is 6.2 m, and the angle between them is 127°. Using c² = a² + b² − 2ab·cos(C): c² = 72.25 + 38.44 − 105.4·(−0.6018). That last term turns positive, and you get c = 13.20 meters. That’s the number the shop needs for cutting, and you use it to look up allowable stress and member deflection after the fact.
The Law of Sines and Angular Solutions
The Law of Sines simply says the ratio of a triangle’s side to the sine of its opposite angle is constant: a/sin(A) = b/sin(B) = c/sin(C). This isn’t just elegant—it’s exactly how you get unknown sides if you have any two angles and a side (ASA, AAS) or, if handled carefully, unknown angles from two sides and a non-included angle (SSA). It comes down to relating area: (1/2)ab·sin(C), (1/2)bc·sin(A), (1/2)ac·sin(B)—set those equal, follow the algebra, and you get the Law of Sines.
Picture a survey job: baseline is 47.3 m, measured angles are 53.8° and 71.4°. The last angle is 54.8°. You want the distance across a river: d/sin(71.4°) = 47.3/sin(54.8°), so d = 54.87 m. To find the width directly across, use d times sin(53.8°) and you get 44.22 m. All done without setting foot in the river.
Worked Example: Complete Triangle Solution for Structural Analysis
Say you’re fabricating a steel brace—two segments known, angle between known, and you need everything else for the cut sheet (SAS case): a = 3.75 m, b = 2.90 m, angle C = 68.5°.
Step 1: Side c using Law of Cosines:
c² = (3.75)² + (2.90)² − 2(3.75)(2.90)·cos(68.5°)
c² = 14.0625 + 8.41 − 7.971
c² = 14.5015
c = 3.808 m
Step 2: Angle A with Law of Sines:
sin(A) = 3.75·sin(68.5°)/3.808 = 0.9164
A = arcsin(0.9164) = 66.43°
Step 3: Angle B by subtraction:
B = 180° − 66.43° − 68.5° = 45.07°
Step 4: Perimeter = 3.75 + 2.90 + 3.808 = 10.458 m
Step 5: Area via Heron’s formula:
s = 10.458/2 = 5.229 m
Area = √[5.229·1.479·2.329·1.421] = √[25.426] = 5.042 m²
Now you’ve got cut sizes, weld angles, the total material needed, and the coated surface. Nothing magical, just applying the right routines so the fabricators get exactly what they need and you keep errors down to a minimum.
Engineering Applications Across Industries
In aerospace, solving basic triangles lets you break down force paths through an airframe, especially in wing structures where each truss member turns into an SSS problem with unique angles that feed directly into stress and deflection checks. Say you’ve got a triangle of members—two are fixed lengths, and the diagonal is measured—now you solve angles and distribute loads correctly at your connections.
Surveying is straight-up triangle solving in the wild. A control network is just a series of triangles, each solved for distance based on at least one good baseline and a string of angle measurements (often with a total station). You use the Law of Sines repeatedly until you’ve mapped out all your points—even when you’ll never reach some of them in person.
Short-range navigation (coastal, not intercontinental) uses basic plane triangles, measuring bearings and known distances to determine your actual position. You punch your measurements into the triangle solver and find where you are, without waiting for a GPS fix.
For robotics or CNC, triangles map directly to joint angles. A two-link robot arm with known segment lengths and a required reach forms a triangle: you use SSS to get the angles, then program the joints accordingly. If the robot’s segments are 0.45 m and 0.38 m and it needs to reach 0.60 m, the Law of Cosines tells you exactly how much the “elbow” has to bend.
Geodesy and large-scale mapping usually mean spherical triangles (not plane), but the underlying logic is the same: with enough knowns, solve for everything else. Whole national coordinate systems rest on this math, and engineers keep referencing these calculations long after initial surveys are done.
If you’re spending time with engineering calculators, knowing how and when to apply these triangle routines is one of those core skills—doesn’t matter if you’re designing a bracket, laying out a field, or programming a robot.
Practical Applications
Scenario: Roof Truss Design Verification
Marcus is on shop drawing review for a complicated hip roof truss. The plans give him a 7.32-meter bottom chord and a 5.85-meter top chord meeting at 114°. Before anything can be built, he needs the diagonal member’s length. The calculator gives him 11.24 meters—at this stage, that’s what he sends to the steel shop. Along with that, he gets the remaining angles and area, allowing him to check material quantities and confirm those angles are actually fabricable using off-the-shelf gusset plates. Doing this check now stops expensive cutting mistakes and keeps the job on schedule.
Scenario: Marine Navigation Position Fix
Captain Elena runs bearings to two lighthouses in the fog—she gets 042° and 107°, and her chart says the lighthouses are 8.7 nautical miles apart. She subtracts bearings to get a 65° angle and feeds these as ASA (two angles at her location, one side between the other two points) into the triangle calculator. The result: 7.14 nm from Lighthouse A and 9.38 nm from Lighthouse B. She plots circles of those radii and knows exactly where she is relative to the hazards—without needing a GPS fix.
Scenario: Robotic Arm Programming
Javier is setting up a welding robot. The arm has segments of 0.62 m and 0.48 m, with a critical reach of 0.83 m. Inputting the three side lengths into the triangle solver gives him the actual shoulder and elbow angles—72.4° and 83.7°, with a 23.9° approach at the work point. Instead of trial and error, first-try programming puts the torch right on target, and Javier keeps the line moving faster than by manual teaching alone.
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.
📹 Video Walkthrough — Triangle Solver All Cases Interactive Calculator
📹 Video Walkthrough — Triangle Solver All Cases Interactive Calculator
Need to implement these calculations?
Explore the precision-engineered motion control solutions used by top engineers.
