Triangle Calculator
Use this triangle calculator to solve a general triangle from the information you already know. Choose SSS, SAS, ASA, AAS, or SSA, then calculate the missing sides, missing angles, area, perimeter, and triangle type with a clear teacher-style breakdown that explains what happens at each step.
All calculations use standard published formulas. Results are for informational use only.
Triangle solving mode
Step-by-step solution
Calculate a valid triangle to generate the full working.
Formula used
Three sides is the classic stability check. First confirm the triangle inequality, then use the Law of Cosines to turn side lengths into angles.
| Formula | Plain text expression | When it is used |
|---|---|---|
| Law of Cosines | c^2 = a^2 + b^2 - 2ab cos(C) | Use when two sides and the included angle are known, or when all three sides are known and you need an angle. |
| Heron's Formula | Area = sqrt(s(s-a)(s-b)(s-c)), where s = (a + b + c) / 2 | Best when all three side lengths are known. |
| Area from two sides | Area = 0.5 * a * b * sin(C) | Best when you know two sides and the included angle. |
| Angle sum | A + B + C = 180 | Every triangle uses this rule. |
Example explanation
Example thinking: if a teacher gives you sides 7, 8, and 9, you cannot start with the Law of Sines because no angles are known yet. The right path is triangle inequality first, then the Law of Cosines, then Heron's formula for area.
How to use this triangle calculator
- Pick the mode that matches your known measurements: SSS, SAS, ASA, AAS, or SSA.
- Enter only the values requested for that mode. Side labels tell you which angle each side is opposite.
- Press Calculate to solve the triangle. Use Example if you want to test the workflow with a ready-made geometry problem.
- Read the final answer summary first, then review the solved sides, solved angles, area, perimeter, type, and step-by-step explanation.
Introduction
A strong triangle calculator should do more than spit out three missing numbers. Most people using a triangle solver want to understand why the triangle works, whether the data is valid, which formula applies, and what the final shape means. That is especially true for students, teachers, engineers, surveyors, and anyone checking a geometry problem under time pressure. This page is designed to solve the triangle and explain the reasoning in plain language at the same time.
Instead of forcing every problem into one formula, the calculator follows the same decision-making process a good teacher would use. If you know three sides, it leans on the Law of Cosines. If you know two angles and one side, it finishes the angle set first and then uses the Law of Sines. If the problem falls into the SSA ambiguous case, it checks whether there are zero, one, or two valid triangles. That combination of accuracy, clarity, and method-based explanation is what turns a simple tool into a page people can rely on.
What this triangle calculator does
This page works as a general triangle solver for the triangle cases people actually need: SSS, SAS, ASA, AAS, and SSA. In each mode, the calculator reads your known side lengths and angles, validates them, solves the missing values, calculates the area and perimeter, and classifies the final shape. That makes it useful when you need a triangle side calculator, an triangle solver, or a full triangle solution with no guesswork.
The result is structured to be easy to scan. You get a clear final answer summary first, then separate blocks for solved sides, solved angles, area, perimeter, and triangle type. The dynamic step-by-step section explains how the result was reached, and the formula section shows the plain text math behind it. If your numbers do not describe a real triangle, the page tells you exactly why instead of returning a misleading output.
How to use the calculator
Start by choosing the mode that matches the information you already know. If you have all three sides, choose SSS. If you know two sides and the included angle, choose SAS. If you know two angles and one side, pick ASA or AAS depending on whether the known side sits between the known angles. If you are working with two sides and a non-included angle, use SSA to test the ambiguous case.
After selecting a mode, enter the values using the labeled inputs. Each side label tells you which angle it is opposite, and every angle field reminds you that the unit is degrees. Press Calculate to solve the triangle, Reset to clear the current mode, or Example to load a ready-made case. The result area then shows the final answer, formulas used, and the full worked explanation. This keeps the page friendly for beginners while still being efficient for repeat use.
Triangle solving methods explained
Triangle solving is really about matching the known information to the correct formula. SSS problems begin with the Law of Cosines because no angle-side pair is available yet. SAS also starts with the Law of Cosines because the included angle ties the two known sides together. ASA and AAS start with the angle sum rule, then move to the Law of Sines to scale the remaining sides. This is why a reliable triangle calculator with steps has to adapt the method to the selected mode instead of reusing the same script everywhere.
The SSA case deserves special care. Many thin calculators ignore it or force a single answer even when two different triangles are possible. A proper solver checks the sine ratio, tests each angle candidate, and rejects any candidate that pushes the total angle sum beyond 180 degrees. That is what this page does. When there are two valid triangles, both are shown clearly so you can compare the different side lengths, areas, and perimeters.
Law of Sines and Law of Cosines
The Law of Sines says a / sin(A) = b / sin(B) = c / sin(C). This formula is powerful because it links every side to its opposite angle. Whenever you know one complete side-angle pair, the Law of Sines is often the fastest path to the remaining values. That is why it appears in ASA, AAS, and sometimes later in SAS once the triangle has been partially solved. Many people search specifically for a law of sines calculator because it is the most natural triangle method once the angle structure is known.
The Law of Cosines looks more like an extension of the Pythagorean theorem: c^2 = a^2 + b^2 - 2ab cos(C). It is the right tool when you know all three sides or when you know two sides and the included angle. In practice, a good law of cosines calculator is essential for SSS and SAS because it can start the solution without needing a known angle-side pair. Together, the Law of Sines and Law of Cosines cover nearly every triangle-solving situation you will meet in school or applied work.
How area and perimeter are calculated
Area and perimeter are not afterthoughts. They are part of the full triangle solution. Perimeter is simple: add a + b + c. Area depends on what the mode gives you. When all three sides are known, Heron's formula is the standard method because it only needs the semiperimeter and the side lengths. When two sides and the included angle are known, the direct formula Area = 0.5 * a * b * sin(C) is usually cleaner and easier to explain. That is why this page can serve as both a triangle area calculator and a triangle perimeter calculator.
These measurements matter in real tasks, not just classroom examples. Area helps with land measurement, layout planning, truss design, and material estimation. Perimeter matters in framing, fencing, and any situation where you care about the outer boundary. By showing both values next to the solved sides and angles, the calculator turns a geometry answer into something more practical and easier to interpret.
Triangle types explained
Every solved triangle can be classified by sides and by angles. By sides, a triangle is equilateral when all three sides match, isosceles when two sides match, and scalene when all three sides differ. By angles, a triangle is acute when all three angles are under 90 degrees, right when one angle is exactly 90 degrees, and obtuse when one angle is greater than 90 degrees. These labels help you understand the overall shape faster than reading raw numbers alone.
This page combines both classifications into one final type such as scalene acute triangle or isosceles right triangle. That makes the result more useful for study and verification, especially when you are comparing different input cases. If you are researching triangle types, this dual classification is usually what you want because it summarizes both the side pattern and the angle behavior in one line.
Worked examples
Worked examples are the fastest way to build confidence with triangle methods. A three-side example shows why the Law of Cosines and Heron's formula belong together. A two-side-plus-angle example shows how the included angle changes the third side and area. A two-angle example shows how the angle sum rule and the Law of Sines work as a pair. Reviewing a few different cases helps you recognize which method fits which problem before you start typing.
That is why the page includes ready-made examples and an Example button in the calculator itself. You can load a sample triangle instantly, review the final answer, and compare the steps to your own homework or worksheet problem. This makes the calculator useful even when you are not solving your own numbers yet and just want to understand the method.
Common mistakes
One common mistake is mixing up which side is opposite which angle. In triangle notation, side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. If that pairing is wrong, the Law of Sines and Law of Cosines will still produce numbers, but the triangle will not represent the intended problem. Another frequent mistake is forgetting that trig functions in code use radians internally. This page handles the degree-to-radian conversion for you so the result stays correct.
Another mistake is assuming every input set must create a triangle. Invalid side lengths can fail the triangle inequality. Two known angles can add up to 180 degrees or more, which leaves no room for the third angle. SSA can create no triangle at all or two different triangles. Good geometry work is not just about calculation. It is also about checking whether the problem data is possible. That is why validation and clear error messages are part of the core solver.
Worked examples
Example 1 - Solve a triangle from three sides
Given a = 7, b = 8, c = 9
Method: SSS using the Law of Cosines and Heron's formula
A = 48.1896851 deg, B = 58.41186449 deg, C = 73.3984504 deg. Area = 26.83281573. Perimeter = 24.
Example 2 - Solve a triangle from two sides and the included angle
Given a = 10, b = 12, C = 35 deg
Method: SAS using the Law of Cosines
a = 10, b = 12, c = 6.88502065. A = 56.41631081 deg, B = 88.58368919 deg, C = 35 deg. Area = 34.41458618.
Example 3 - Solve a triangle from two angles and one side
Given A = 50 deg, B = 60 deg, c = 8
Method: ASA using the Law of Sines
a = 6.52165975, b = 7.37283988, c = 8. A = 50 deg, B = 60 deg, C = 70 deg. Perimeter = 21.89449963.
Example 4 - Solve a triangle from two angles and a non-included side
Given A = 40 deg, B = 65 deg, a = 9
Method: AAS using the Law of Sines
a = 9, b = 12.68968157, c = 13.52442441. A = 40 deg, B = 65 deg, C = 75 deg. Area = 55.1578102.
Frequently Asked Questions
How do you solve a triangle with 3 sides in this triangle calculator?
When all three sides are known, this triangle calculator first checks the triangle inequality, then uses the Law of Cosines to find the missing angles. After that, it applies Heron's formula to find the area and adds the sides for the perimeter. This is the standard SSS workflow used in classrooms, exams, and geometry textbooks.
What is the difference between a law of sines calculator and a law of cosines calculator?
The Law of Sines works best when you know an angle-side pair and need another side or angle. The Law of Cosines is the better tool when you know all three sides or when you know two sides with the included angle. In practice, the best triangle solver uses both formulas because different triangle cases need different starting methods.
Can this triangle solver show more than one answer?
Yes. The optional SSA mode handles the ambiguous case. Depending on the values, the same two sides and one non-included angle can produce no triangle, one triangle, or two valid triangles. When two answers exist, this page lists each solved triangle separately so you can compare the side lengths, angles, area, and perimeter without confusion.
How does this triangle calculator with steps help beginners?
The page does not stop at a final answer. It shows which method was chosen, writes the formula in plain text, substitutes the known values, and explains why the next step makes sense. That makes it useful both as a fast calculator and as a study tool for geometry homework, revision, and test preparation.
How do you find area with a triangle area calculator?
Area depends on what information you know. If all three sides are known, Heron's formula is the standard choice. If two sides and the included angle are known, the direct area formula Area = 0.5 * a * b * sin(C) is often faster. This page selects a method that matches the active triangle mode so the explanation stays consistent with the input.
What triangle types can this page identify?
The solved triangle is classified in two ways. By sides it can be equilateral, isosceles, or scalene. By angles it can be acute, right, or obtuse. The final type label combines both, such as scalene acute triangle or isosceles right triangle, so the result is easier to interpret at a glance.