CalculatorBudy Official Logo
Browse Calculators

Triangle Calculator — All 6 Solvers

Select the calculation method below based on the values you know (Sides or Angles).

1. SSS Triangle Calculator Known: 3 Sides

Calculate angles and area when all three side lengths are known using the Law of Cosines.
ABC
C
side b
side a
side c
A
B
Side a
-
Side b
-
Side c
-
Angle A
-
Angle B
-
Angle C
-
Perimeter
-
Area
-
Heights (ha/hb/hc)
-

2. SAS Calculator (Side-Angle-Side) Known: 2 Sides + Angle

Find the third side when you know two sides and the included angle.
ABC
C
side b
side a
side c
A
B
Side a
-
Side b
-
Side c
-
Angle A
-
Angle B
-
Angle C
-
Perimeter
-
Area
-
Heights (ha/hb/hc)
-

3. ASA Calculator (Angle-Side-Angle) Known: 2 Angles + Side

Calculates triangle sides given two angles and the included side.
ABC
C
side b
side a
side c
A
B
Side a
-
Side b
-
Side c
-
Angle A
-
Angle B
-
Angle C
-
Perimeter
-
Area
-
Heights (ha/hb/hc)
-

4. AAS Calculator (Angle-Angle-Side)

Solve the triangle using two angles and a non-included side.
ABC
C
side b
side a
side c
A
B
Side a
-
Side b
-
Side c
-
Angle A
-
Angle B
-
Angle C
-
Perimeter
-
Area
-
Heights (ha/hb/hc)
-

5. SSA Calculator (Ambiguous Case) Complex

Solves for 0, 1, or 2 triangles given two sides and a non-included angle.
ABC
C
side b
side a
side c
A
B
Side a
-
Side b
-
Side c
-
Angle A
-
Angle B
-
Angle C
-
Perimeter
-
Area
-
Heights (ha/hb/hc)
-

6. General Solver (2 Angles + 1 Side)

A quick way to solve AAS or ASA triangles without selecting a specific mode.
ABC
C
side b
side a
side c
A
B
Side a
-
Side b
-
Side c
-
Angle A
-
Angle B
-
Angle C
-
Perimeter
-
Area
-
Heights (ha/hb/hc)
-

How to use the Triangle Calculator

  1. Each calculator section is separate. Use the inputs shown in that section (names are shown on the diagram).
  2. Enter values according to the section title (e.g., SSS requires a, b, c). Angles default to degrees unless you change the unit.
  3. Click the section's Calculate button. Results (sides, angles, perimeter, area, heights) appear on the right and numeric values are printed on the diagram.
  4. For SSA, the calculator will list multiple solutions if the ambiguous case occurs — choose a solution from the SSA dropdown to display it.
  5. Use Clear in each section to reset only that section.

Complete Guide to Solving Triangles: Formulas, Methods, and Calculator Logic

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.

1. Understanding Triangle Classifications

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.

Classification by Sides

Classification by Angles

Regardless of the type, the sum of internal angles in any Euclidean triangle is always 180 degrees (or π radians).

2. Key Trigonometric Formulas Used in This Calculator

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

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

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:

Heron's Formula (Area Calculation)

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)].

3. Detailed Breakdown of Calculator Modes

Geometry problems usually present you with 3 known values. Depending on which values you have, you must select the correct mode in our calculator.

SSS Solver (Side-Side-Side)

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.

SAS Solver (Side-Angle-Side)

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.

ASA Solver (Angle-Side-Angle)

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.

AAS Solver (Angle-Angle-Side)

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.

SSA Solver (The Ambiguous Case)

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:

  1. No Solution: The known side is too short to reach the other side, meaning no triangle can be formed.
  2. One Solution: A unique triangle is formed (often a right triangle).
  3. Two Solutions: The known side can swing in two directions, creating two valid triangles with different shapes (one acute, one obtuse).

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".

4. Calculating Area, Perimeter, and Heights

Beyond finding missing sides and angles, our tool provides three other critical properties:

5. Common Geometry Errors & Troubleshooting

If you are getting an error message or unexpected result, check for these common issues:

Frequently Asked Questions (FAQ)

❓ Can I calculate a triangle if I only have 1 side and 1 angle?
No. You must have at least three values to solve a triangle, and at least one of them must be a side length. Knowing only three angles (AAA) gives you the shape (similar triangles) but not the size/scale.
❓ What is the difference between SAS and SSA?
In SAS (Side-Angle-Side), the angle is "included," meaning it is physically located between the two known sides. This always produces one unique solution. In SSA (Side-Side-Angle), the angle is opposite one of the sides, which can lead to zero, one, or two possible triangles (the Ambiguous Case).
❓ How does the calculator handle Right Triangles?
Right triangles are just specific cases of general triangles. You can solve them using these tools (e.g., enter 90 degrees as one angle), or simply use the Pythagorean theorem (a² + b² = c²) if you have two sides.
❓ Why are there three different height values?
Every triangle has three heights (altitudes), one corresponding to each base (side a, side b, side c). The height is the perpendicular line drawn from the vertex to the opposite base.
❓ Is this calculator accurate for large numbers?
Yes, the tool uses double-precision floating-point JavaScript math. However, extreme values or very tiny angles might encounter slight rounding errors. You can adjust the "Precision" dropdown to see more decimal places.

Real-World Applications

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.