Math

Triangle Calculator

Live

Solve SSS, included-angle SAS, and ASA/AAS triangles with a labeled diagram, remaining measurements, area, and perimeter.

About Triangle Calculator

The Triangle Calculator turns a valid set of known measurements into a complete triangle. Enter all three sides for SSS, two sides and their included angle for SAS, or two angles and one side for ASA/AAS. The visual solver labels every side and opposite angle, identifies the method used, and calculates area, perimeter, and semi-perimeter. Side lengths may use any unit as long as all known sides use the same one; the resulting area is in that unit squared.

Enter known triangle measurements

Workspace

Visual model

Adjust the values below to turn the calculation into a visual, interpretable result.

Complete the fields to prepare a result.

Side opposite angle A, in the same length unit as b and c.

Side opposite angle B.

Side opposite angle C.

Angle opposite side a; greater than 0° and less than 180°.

Angle opposite side b; greater than 0° and less than 180°.

Angle opposite side c; greater than 0° and less than 180°.

Solved triangle

Enter an SSS, SAS, or ASA/AAS measurement set.

Triangle solution method

Law of Cosines for SSS/SAS; Law of Sines and A + B + C = 180° for ASA/AAS; area = √[s(s−a)(s−b)(s−c)] where s = (a+b+c)÷2.

How it works

For SSS, the solver first checks the triangle inequality and finds angles with the Law of Cosines. For SAS, it finds the missing side from the included angle, then completes the angles. For ASA/AAS, it completes the 180-degree angle sum and scales remaining sides with the Law of Sines. Once all sides are known, Heron’s formula gives the area.

Practical guide

Solve supported triangle dimensions and area from a valid set of sides or angles.

Triangle Calculator worked example

The page’s example models checking a triangle with enough independent measurements. Change one assumption at a time so the effect on area, side a and side b remains easy to explain.

Treat the displayed area, side a and side b as the result of the example inputs, not as a default recommendation for a different situation.

Assumptions

  • The entered the stated values describe the same scenario and use the units shown beside each field.
  • The calculation applies the stated method consistently and rounds only for display unless the tool says otherwise.

Limitations

  • For SSS, the solver first checks the triangle inequality and finds angles with the Law of Cosines. For SAS, it finds the missing side from the included angle, then completes the angles. For ASA/AAS, it completes the 180-degree angle sum and scales remaining sides with the Law of Sines. Once all sides are known, Heron’s formula gives the area.
  • The result covers the inputs exposed by this tool; omitted context can change a real-world answer.

Common mistakes

  • entering impossible side lengths or using degrees as radians.
  • Changing an input without checking the other assumptions can make the comparison misleading.
When to use Triangle Calculator
Approach Best for Trade-off
Triangle Calculator A transparent calculation that reports area, side a and side b. Accuracy depends on the entered assumptions and the documented method.
dynamic geometry software when a diagram and construction constraints matter Situations that need different inputs, verification, or broader context. May take longer, cost more, or produce a result that is not directly comparable.

Examples

A 3–4–5 right triangle

Example input
{
    "side_a": 3,
    "side_b": 4,
    "side_c": 5
}
Expected result
{
    "side_a": 3,
    "side_b": 4,
    "side_c": 5,
    "angle_a_deg": 36.8699,
    "angle_b_deg": 53.1301,
    "angle_c_deg": 90,
    "area": 6,
    "perimeter": 12,
    "semi_perimeter": 6,
    "solve_method": "SSS"
}

Two sides with an included angle

Example input
{
    "side_a": 7,
    "side_b": 9,
    "angle_c": 60
}
Expected result
{
    "side_a": 7,
    "side_b": 9,
    "side_c": 8.185353,
    "angle_a_deg": 49.3129,
    "angle_b_deg": 70.6871,
    "angle_c_deg": 60,
    "area": 27.2798,
    "perimeter": 24.185353,
    "semi_perimeter": 12.092677,
    "solve_method": "SAS"
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. Non-right triangles: Law of Cosines and Heron’s formula

Frequently asked questions

Which triangle measurement sets can I enter?

Use three sides (SSS), two sides plus the angle between them (SAS), or two angles plus any one side (ASA/AAS). The ambiguous SSA case is intentionally not inferred because it can describe zero, one, or two triangles.

Why must all side units match?

Triangle formulas compare and add side lengths directly. You may use inches, feet, meters, or another unit, but every known side must use the same unit; area is returned in that unit squared.

Why do three sides sometimes produce an error?

The triangle inequality requires every pair of sides to add to more than the remaining side. Values such as 2, 3, and 5 collapse into a line and do not form a triangle.

How is triangle area calculated?

Once all three sides are known, the calculator uses Heron’s formula with semi-perimeter s = (a+b+c)/2. Displayed values are rounded, while the calculation uses full internal precision.