FREE · INSTANT RESULT · WITH THE FORMULA
Home / Math / Triangle Calculator
Geometry · Triangle

Triangle Calculator

Enter the three side lengths to get the area, perimeter, all three angles, and the triangle type.

Area (Heron)
6
Perimeter
12
Angles (opposite a, b, c)
36.9° · 53.1° · 90°
Right triangle
Area = √(s(s−a)(s−b)(s−c)), s = (a+b+c)/2

TL;DR: A triangle calculator is a digital tool that computes the unknown properties of a triangle, such as side lengths, angles, area, and perimeter, from a set of known values.

  • Requires at least three known measurements (e.g., three sides, or two sides and an angle).
  • Solves all types of triangles: right-angled, isosceles, equilateral, and scalene.
  • Uses core formulas like the Pythagorean theorem, the Law of Sines, and the Law of Cosines.
  • Outputs include all side lengths, all angle measures, area, perimeter, heights, and medians.
  • Handles specific cases like SSS (Side-Side-Side) and SAS (Side-Angle-Side).

What Is a Triangle Calculator?

A triangle calculator is an online tool designed to compute the missing geometric properties of a triangle when at least three of its parameters are known. Users input values such as side lengths or angle measures, and the calculator automatically determines all remaining unknown values. This process eliminates the need for manual calculations using complex trigonometric formulas.

The primary inputs for a triangle calculator are combinations of its six main characteristics: three sides (a, b, c) and three angles (A, B, C). Based on these inputs, the tool can compute the area, perimeter, height (altitude), medians, and other advanced attributes like the inradius and circumradius. These calculators work for any valid triangle, from right-angled to scalene.

How to Use a Triangle Calculator

To use a triangle calculator, you must first identify at least three known measurements of your triangle. The tool will then use these values to solve for the rest.

  • Step 1: Identify Knowns. Determine which side lengths (a, b, c) and/or angle measures (A, B, C) you have. For a right-angled triangle, one angle is already known to be 90 degrees.
  • Step 2: Select the Calculation Mode. Choose the input combination that matches your known data. Common options include SSS (Side-Side-Side), SAS (Side-Angle-Side), ASA (Angle-Side-Angle), and AAS (Angle-Angle-Side).
  • Step 3: Enter the Values. Input your known numbers into the corresponding fields. Ensure you are using consistent units for side lengths and the correct units for angles (degrees or radians).
  • Step 4: Review the Results. The calculator will instantly display all computed properties, often including a visual diagram of the solved triangle.

Key Formulas Used in Triangle Calculations

Triangle calculators rely on fundamental geometric and trigonometric formulas to solve for unknown properties. These principles form the logical basis for how the tool derives its answers from a limited set of inputs.

FormulaApplicationDescription
Sum of AnglesAny triangleThe sum of the three interior angles always equals 180°. (A + B + C = 180°)
Pythagorean TheoremRight-angled trianglesThe square of the hypotenuse (c) is equal to the sum of the squares of the other two sides (a and b). (a² + b² = c²)
Law of SinesAny triangleThe ratio of the length of a side to the sine of its opposite angle is constant for all three sides. (a/sin(A) = b/sin(B) = c/sin(C))
Law of CosinesAny triangleRelates the lengths of the sides to the cosine of one of its angles. (c² = a² + b² - 2ab cos(C))
Area Formula (Base-Height)Any triangleArea = (1/2) × base × height.
Area Formula (Trigonometry)Any triangle (given SAS)Area = (1/2)ab sin(C).
Heron's FormulaAny triangle (given SSS)Calculates the area using only the lengths of the three sides.

Solving Different Types of Triangles

Calculators can solve for any type of triangle, but the underlying properties of each shape simplify the required inputs and calculations.

Right-Angled Triangle

A right-angled triangle has one angle that is exactly 90 degrees. This property allows for the use of the Pythagorean theorem and basic trigonometric ratios (SOH-CAH-TOA). To solve a right triangle, you only need two other pieces of information besides the 90-degree angle, such as two side lengths or one side length and one acute angle.

Isosceles and Equilateral Triangles

An isosceles triangle has two equal sides and two equal base angles opposite those sides. If you know one of the equal angles, you can immediately find the other. An equilateral triangle is even simpler: all three sides are equal, and all three angles are 60 degrees. For an equilateral triangle, knowing just one side length is enough to determine all other properties.

Scalene Triangle

A scalene triangle has no equal sides and no equal angles. Solving a scalene triangle requires more general formulas like the Law of Sines and the Law of Cosines. You must provide three known values, such as the lengths of all three sides (SSS) or two sides and their included angle (SAS), for the calculator to find a unique solution.

Common Calculation Scenarios

You can uniquely define and solve a triangle given certain combinations of three measurements. However, one combination, SSA, is known as the ambiguous case because it may yield more than one possible triangle.

CaseKnown InformationMethod UsedResult
SSSSide-Side-SideLaw of Cosines, then Law of SinesOne unique triangle.
SASSide-Angle-SideLaw of Cosines, then Law of SinesOne unique triangle.
ASAAngle-Side-AngleSum of angles, then Law of SinesOne unique triangle.
AASAngle-Angle-SideSum of angles, then Law of SinesOne unique triangle.
SSASide-Side-AngleLaw of SinesAmbiguous Case: 0, 1, or 2 possible triangles.
AAAAngle-Angle-AngleNot solvableDefines a family of similar triangles, not a specific one.

Frequently Asked Questions

How many values do you need to solve a triangle?

You generally need three known values to solve a triangle, such as three sides (SSS) or two sides and an angle (SAS). Knowing only the three angles (AAA) is insufficient because it defines shape but not size.

Can you solve a triangle with only two sides?

No, knowing only two sides is not enough to determine a unique triangle. A third piece of information is required, such as the third side's length (SSS) or the measure of an angle.

What is the ambiguous case for a triangle?

The ambiguous case, or SSA (Side-Side-Angle), occurs when two sides and a non-included angle are known. This configuration can result in zero, one, or two possible triangles, depending on the side lengths and angle measure.

Do online triangle calculators show the steps?

Many online triangle calculators provide the step-by-step calculations, showing which formulas were used to arrive at the solution. This feature is especially helpful for students learning geometry and trigonometry.