Skip to content

Triangle Calculator

Enter three known measurements to solve for the missing sides and angles. If two triangles fit an SSA input, you can compare their measurements using the solution tabs.

Free, no sign-up · Last updated

US defaults ·

Area (square units)

6

Perimeter
12
Type
Right, scalene
Side a3
Angle A36.869898°
Side b4
Angle B53.130102°
Side c5
Angle C90°

Angles are in degrees. Side lengths and perimeter use the input unit. Area uses that unit squared.

Definition

What a triangle is

A triangle is a plane shape with three straight sides that meet at three vertices. Its interior angles add to 180°. A triangle can be classified by the relative lengths of its sides and separately by the sizes of its angles.

Match sides with
The angles opposite them
Two possible shapes
Can occur with two sides and a nonincluded angle
Area and perimeter
Use square units and length units, respectively

Identify what you measured

SSS uses all three lengths and is convenient when you can reach every edge. SAS uses two lengths and the angle at their shared endpoint. A short sketch can keep you from mistaking the angle opposite a side for the angle between two sides, which would change the problem into SSA.

With two known angles, the third angle comes from their sum. One length is still needed to give the triangle a scale. If you only know the angles, you can find the shape and relative proportions but there is no unique area or perimeter.

Recognize the ambiguous case

For SSA, you know angle A, its opposite side a, and side b. Picture side b as fixed, with the end of side a able to meet the ray from angle A at different positions. Depending on the lengths and angle, there can be two intersections, one intersection, or no intersection that produces a valid triangle.

When you see two solutions, use information from the original drawing or site. For example, knowing whether angle B is acute or obtuse distinguishes the two candidates. With only the entered measurements, there is no reason to prefer one valid result over the other.

Use area and perimeter for different tasks

Area measures the enclosed surface. Perimeter adds the three edge lengths. For a triangular cover, area helps estimate sheet material and perimeter helps estimate edging. Leave room for cutting losses, seams or overlaps separately when your project needs them.

The usual base times height formula works if you know the perpendicular height, which can lie outside an obtuse triangle. The calculator can instead use an included angle and two sides, or use only lengths through Heron’s formula. This avoids treating a slanted side as the perpendicular height.

Interpret the two type labels

A triangle can be described by its angles and by its sides at the same time. The angle label uses the largest angle: acute if it is below a right angle, obtuse if above, and right if it equals a right angle within numerical tolerance. The side label depends on whether all three sides, two sides, or no sides are equal.

Keep the type classification in context when the input numbers came from a tape measure or a drawing. Numerical tolerance helps with arithmetic rounding. It does not model the uncertainty of tools or imply that two lengths measured approximately are physically identical.

Step-by-step example

Find the angles, area and perimeter of a triangle with sides of 3, 4 and 5 units.

StepResult
Angle opposite side 336.8699°
Angle opposite side 453.1301°
Angle opposite side 590°
Perimeter12 units
Area6 square units
ClassificationRight, scalene

Formulas used

Side and angle relationships

Law of cosines: c² = a² + b² − 2ab cos(C)

Law of sines: a ÷ sin(A) = b ÷ sin(B) = c ÷ sin(C)

Perimeter = a + b + c; area = ab sin(C) ÷ 2

Heron area = √[s(s − a)(s − b)(s − c)], where s is half the perimeter.

a
side opposite angle A
b
side opposite angle B
c
side opposite angle C
A
angle opposite side a
B
angle opposite side b
C
angle opposite side c
s
half the perimeter
cos
cosine
sin
sine

Example: Sides 3, 4 and 5 give a right scalene triangle with perimeter 12, area 6 and angles 36.8699°, 53.1301° and 90°.

SSA candidates

sin(B) = b sin(A) ÷ a

Try B = arcsin(b sin(A) ÷ a) and its supplement. Keep each distinct angle with A + B < 180°.

a
side opposite the given angle A
b
second known side
A
given angle opposite a
B
candidate angle opposite b
sin
sine
arcsin
inverse sine

Example: With A = 30°, a = 7 and b = 10, angle B can be 45.5847° or 134.4153°.

When the answer can mislead

  • A pair of sides that adds exactly to the third gives a line segment and zero area.
  • Three angles fix the shape, but at least one side length is needed to fix the scale.
  • Before selecting a two-side input mode, check whether the given angle lies between the entered sides.

Questions

How do I match sides to angles?

Side a is across the triangle from angle A, side b is across from B, and side c is across from C. If you sketch the triangle, place the angle labels at the vertices first. Then write each lowercase label on the edge that does not touch its uppercase vertex.

What is the difference between ASA and AAS?

In ASA, the known side joins the two vertices with known angles. In AAS, the known side lies opposite one of the known angles. Either case fixes the triangle uniquely when the angles and side are valid, but you must choose the mode that matches your measurements.

Why does SSA sometimes give two solutions?

The sine of an acute angle also equals the sine of its obtuse supplement. If both of those choices leave room for the third angle, each describes a different valid triangle with the supplied side lengths. The calculator presents both solutions separately.

Can I enter a length in inches and another in feet?

Convert to one unit before you enter the lengths. The calculator treats bare numbers as comparable measurements. If all lengths are in feet, perimeter is in feet and area is in square feet. Angles always use degrees regardless of the length unit.

Why did my very narrow triangle fail to solve?

The two short sides must have a sum strictly greater than the longest side. Measurements rounded before entry can land on equality, even if the original triangle had a tiny positive area. Use more precise measurements and confirm that the sides were taken between the intended points.

Last updated How we check
Embed this calculator
Cite this calculator

Triangle Calculator. CalculatorLab. https://calculatorlab.site/calculators/triangle-calculator/. Last updated .