Triangle Calculator

What are the missing sides and angles of your triangle?

Enter any three triangle measurements (sides or angles) to calculate all remaining properties including area, perimeter, and missing dimensions.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Imagine trying to build a rigid triangle frame from three metal rods. Once you fix the length of all three rods, there is exactly one way they can connect — every angle is locked in place. This physical reality reflects the mathematical principle that any three measurements of a triangle (as long as one is a side) completely determine all other measurements.

The calculator uses three fundamental relationships. When you know all three sides, the Law of Cosines reveals each angle by comparing how the triangle differs from a right triangle. When you know two sides and the angle between them, the same law finds the third side. When you know one side and two angles, the Law of Sines uses proportional relationships to find the remaining sides.

For area calculation, the tool applies Heron's formula, which needs only the three side lengths. This ancient formula computes area using the semi-perimeter (half the total perimeter) in a way that avoids needing to know any angles or heights directly.

When To Use This
Right tool, right situation

Use this calculator when you need exact geometric measurements for construction, engineering, or design projects where precision matters. Carpenters use it to verify corner angles and diagonal braces. Surveyors apply it to measure inaccessible distances by triangulation. Fabric designers calculate material requirements for triangular patterns.

The calculator works well for homework problems, roof calculations, and any situation where you have partial triangle measurements but need complete information. It is particularly valuable when physical measurement is difficult — you can measure two accessible sides and one angle, then calculate the inaccessible third side.

Avoid this tool for approximate or flexible measurements where exactness is unnecessary. If you are just sketching a rough triangular garden bed or estimating fabric needs with significant waste tolerance, simpler approximation methods may be more practical than precise trigonometric calculation.

Common Mistakes
Why results sometimes look wrong

The most common error is trying to solve a triangle with insufficient information, particularly entering three angles without any side lengths. Since triangles with identical angles can be any size, you need at least one side length as a scale reference. Many people also violate the triangle inequality without realizing it — if two sides are 5 and 7 units, the third side must be between 2 and 12 units.

Angle measurement confusion causes frequent errors. Some calculators expect radians while others use degrees, and mixing these units produces meaningless results. Additionally, when working with obtuse triangles (having one angle greater than 90 degrees), people often expect all calculations to follow right-triangle rules, leading to incorrect manual verification.

Precision errors compound when chaining calculations. If you solve for one unknown measurement and then use that result to find another, small rounding errors can accumulate. The calculator minimizes this by solving directly from your original inputs rather than using intermediate calculated values whenever possible.

The Math
Worked examples and deeper derivation

The Law of Cosines extends the Pythagorean theorem to all triangles, not just right triangles. For a triangle with sides a, b, c, it states that c² = a² + b² - 2ab cos(C), where C is the angle opposite side c. When angle C equals 90 degrees, the cosine term becomes zero and you get the familiar a² + b² = c².

The Law of Sines establishes that the ratio of any side to the sine of its opposite angle remains constant: a/sin(A) = b/sin(B) = c/sin(C). This relationship lets you find unknown sides when you know angles, or unknown angles when you know sides.

Heron's formula calculates area as √[s(s-a)(s-b)(s-c)] where s is the semi-perimeter (a+b+c)/2. This works because it essentially finds the area by decomposing the triangle into smaller right triangles, though the algebra hides this geometric insight.

Construction Layout Triangle
Building corner with sides 12 feet, 9 feet, and 15 feet
Area is 54 square feet with angles of 53.1°, 36.9°, and 90°. This is actually a right triangle, confirming the corner is perfectly square for construction.
Fabric Pattern Triangle
Triangular fabric piece with 8-inch and 6-inch sides meeting at a 120° angle
The third side calculates to 12.17 inches with an area of 20.78 square inches. The large angle creates an obtuse triangle, requiring extra fabric consideration.
Survey Property Boundary
Land parcel corner with angles 45°, 67°, and one side measuring 200 feet
The third angle is 68° and the property triangle has an area of 18,794 square feet (0.43 acres). All sides and the total boundary length help determine fencing costs.
Expert Unlock
The thing most explanations skip

Professional surveyors know that triangulation accuracy depends critically on the angle between measured baselines — narrow angles amplify measurement errors exponentially. When the angle between two known sides is less than 30 degrees or greater than 150 degrees, small measurement errors in the sides create large errors in the calculated third side.

How do I solve triangles with missing measurements?

What triangle measurements do I need to calculate the rest?
You need any three measurements, but they must include at least one side length. Valid combinations include three sides, two sides and one angle, or one side and two angles. You cannot solve a triangle with only three angles because infinite triangles can have the same angles but different sizes.
Why does my triangle calculation say invalid or impossible?
Triangles must follow the triangle inequality rule where any two sides added together must be longer than the third side. Also, all three angles must sum to exactly 180 degrees, and each angle must be greater than 0 degrees but less than 180 degrees.
How accurate are triangle calculations using trigonometry?
The calculations use exact mathematical formulas including the Law of Cosines, Law of Sines, and Heron's formula for area. Results are mathematically precise given your input measurements, with rounding only applied for display purposes to 1-2 decimal places.

Need something this doesn't cover?

Suggest a tool — we'll build it →