Triangle Calculator

A triangle calculator is an online geometry tool that solves unknown side lengths, interior angles, area, and perimeter for any triangle. Enter three known values, such as two sides and one angle or all three sides, to calculate all missing dimensions instantly. The tool uses fundamental geometric laws like the Pythagorean theorem, the Law of Sines, and the Law of Cosines to deliver exact results for right, isosceles, equilateral, and scalene triangles.

Triangle Parameters
Calculation Results

Enter triangle parameters to see results

Provide at least 3 values (combination of sides and angles)

How to Solve a Triangle Using Known Values

Solving a triangle means finding the measures of all three sides and all three interior angles. Geometric rules require at least three known measurements to compute the remaining parts. At least one of these known values must be a side length. Knowing three angles alone only determines the shape, not the size.

Different initial measurements require specific mathematical methods:

Side-Side-Side (SSS)

When all three side lengths are known, the angles can be found using the Law of Cosines. The lengths must satisfy the triangle inequality theorem, where the sum of any two sides must be greater than the third side.

Side-Angle-Side (SAS)

When two sides and the included angle between them are known, the third side is found using the Law of Cosines. Once all three sides are known, the remaining angles are easily computed.

Angle-Side-Angle (ASA) & Side-Angle-Angle (SAA)

When two angles and one side are given, finding the third angle is simple because all interior angles sum to 180 degrees. The remaining missing sides are calculated using the Law of Sines.

Side-Side-Angle (SSA)

When two sides and a non-included angle are provided, the calculation uses the Law of Sines. This scenario is called the ambiguous case because it can yield two valid triangles, one unique triangle, or no possible triangle at all.

Fundamental Triangle Formulas and Theorems

Calculating triangle properties relies on a few key mathematical formulas.

The Interior Angle Sum Theorem

The three interior angles of any Euclidean triangle always sum to 180 degrees (or pi radians).

Angle A + Angle B + Angle C = 180°

If two angles are known, subtract their sum from 180 degrees to find the final angle.

Pythagorean Theorem

For a right triangle where one angle is 90 degrees, the relationship between the sides is governed by the Pythagorean theorem formula.

a² + b² = c²

Here, c represents the hypotenuse (the longest side opposite the right angle), while a and b are the two shorter legs.

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.

a / sin(A) = b / sin(B) = c / sin(C)

This law is useful when dealing with ASA, SAA, or SSA configurations.

Law of Cosines

The Law of Cosines generalizes the Pythagorean theorem to any triangle, making it essential for SSS and SAS cases.

c² = a² + b² - (2 × a × b × cos(C))

To solve for an angle when three sides are known, rearrange the formula:

cos(C) = (a² + b² - c²) / (2 × a × b)

How to Calculate Triangle Area and Perimeter

Understanding how to calculate the boundary and interior space of a geometric shape depends on the available measurements.

Finding the Perimeter

The perimeter is the total distance around the outside of the shape. To find it, sum the lengths of all three sides:

Perimeter = a + b + c

Standard Area Formula (Base and Height)

When the length of the base and the perpendicular height are known, use the standard area equation:

Area = 0.5 × base × height

Trigonometric Area Formula

When two sides and the angle between them (SAS) are known, calculate area without knowing the height:

Area = 0.5 × a × b × sin(C)

Heron's Formula

When all three side lengths are available but the height is unknown, use Heron's formula. First, calculate the semiperimeter (s):

s = (a + b + c) / 2

Then calculate the area using:

Area = √(s × (s - a) × (s - b) × (s - c))

Learn how this compares to other two-dimensional boundaries using our area calculator.

Classifying Triangles by Sides and Angles

Triangles are grouped into distinct categories based on side equality or angle measurements.

ClassificationPrimary CharacteristicKey Property
Equilateral3 equal sidesAll interior angles equal 60°
Isosceles2 equal sidesAngles opposite equal sides are equal
Scalene0 equal sidesAll sides and angles have different values
Right1 angle equals 90°Governed by the Pythagorean theorem
Obtuse1 angle is greater than 90°Can only have one obtuse angle
AcuteAll angles are less than 90°All three angles must be acute

Special right triangles, such as the 30-60-90 or 45-45-90 configurations, have fixed side ratios that allow quick calculations without complex trigonometry. Work through these relationships directly with our right triangle solver.

Advanced Properties: Inradius, Circumradius, and Medians

Beyond basic sides and angles, triangles have several advanced geometric properties.

Triangle Medians and Centroid

A median is a straight line segment drawn from a vertex to the midpoint of the opposite side. Every triangle has three medians. The point where all three medians intersect is called the centroid, which serves as the geometric center of gravity.

Inradius

The inradius is the radius of the largest circle that can fit inside the triangle, touching all three sides. It is computed using the area and semiperimeter:

Inradius = Area / s

Circumradius

The circumradius is the radius of the circle that passes through all three vertices of the triangle. It is calculated using the side length and opposite angle:

Circumradius = a / (2 × sin(A))

Frequently Asked Questions

What is the minimum information required to solve a triangle?

You need at least three known values, and at least one of those values must be a side length. Knowing three angles alone is not enough to determine side lengths.

Can a triangle have two right angles?

No. The interior angles of a triangle always add up to 180 degrees. If two angles were 90 degrees, their sum would equal 180 degrees, leaving 0 degrees for the third angle, which prevents the shape from closing.

How do you know if three side lengths can form a triangle?

Apply the triangle inequality theorem. The sum of the lengths of any two sides must be strictly greater than the length of the remaining side. For example, sides of lengths 3, 4, and 5 form a valid triangle, but sides 2, 3, and 6 cannot.

What is the ambiguous case in trigonometry?

The ambiguous case occurs when solving a triangle using two sides and a non-included angle (SSA). Depending on the side lengths, this combination can yield two distinct valid triangles, one right triangle, or no possible triangle.

How do you convert angle units between degrees and radians?

To convert degrees to radians, multiply the angle by pi and divide by 180. To convert radians to degrees, multiply by 180 and divide by pi.