Triangle Calculator

degrees
Formula
SAS: c² = a² + b² − 2ab·cos(C), Area = 0.5·a·b·sin(C) | SSS: Area = √(s(s−a)(s−b)(s−c))

For SAS (two sides and the included angle), the law of cosines gives the third side, and then the law of sines finds the remaining angles. Area is 0.5 times the product of the two known sides times the sine of the included angle. For SSS (three sides), the law of cosines finds each angle, and Heron's formula computes the area using the semi-perimeter s = (a+b+c)/2.

Loading calculator…
TL;DR

Enter two sides and an angle (SAS) or three sides (SSS) to find the triangle's area, all angles, perimeter, and type.

Find a triangle's area, all sides, and all angles from two sides and the included angle (SAS) or three sides (SSS). Uses the law of cosines and Heron's formula. Also identifies whether the triangle is right, acute, or obtuse.

Knowing a triangle's full geometry from partial information is a common task in construction, surveying, and geometry class. The law of cosines extends the Pythagorean theorem to any triangle, not just right triangles. Give it two sides and the angle between them (SAS), or all three sides (SSS), and the full picture follows. For SAS, the law of cosines computes the missing side, then the law of sines fills in the remaining angles. Area is simply half the product of the two known sides and the sine of the included angle. For SSS, the same law works in reverse: each angle is found by rearranging the equation. The triangle type classification uses the largest angle. If it equals 90 degrees, the triangle is right. Less than 90 is acute, greater than 90 is obtuse.

You came here because

Common situations

  • Land surveying: Surveyors often measure two sides and the angle between them. Entering those three values gives the full parcel dimensions without extra fieldwork.
  • Construction and carpentry: Cutting rafters or bracing requires knowing all angles. Start from the known dimensions and use SAS or SSS to confirm every angle before cutting.
  • Geometry homework: Verify law of cosines and Heron's formula results instantly. Enter your given values and check each step of the worked output against your own work.
  • Navigation and mapping: GPS-based distance calculations between three points reduce to triangle problems. SSS mode handles any such configuration and returns all bearings.

Under the hood

How the calculation works

  1. 1Select SAS (two sides, one angle) or SSS (three sides) from the calculation type.
  2. 2For SAS, enter sides a and b and the angle C between them in degrees.
  3. 3For SSS, enter all three sides a, b, and c.
  4. 4The calculator applies the law of cosines to find any unknown sides or angles.
  5. 5Area is computed using the sine formula (SAS) or Heron's formula (SSS).
  6. 6The triangle is classified as right, acute, or obtuse based on the largest angle.

Show me

A real example

Example: SAS with a=3, b=4, C=90°

  1. 1c² = 3² + 4² − 2(3)(4)cos(90°) = 9 + 16 − 0 = 25
  2. 2c = 5
  3. 3sin(A) = 3 × sin(90°) / 5 = 0.6, A = 36.87°
  4. 4B = 180° − 90° − 36.87° = 53.13°
  5. 5Area = 0.5 × 3 × 4 × sin(90°) = 6
  6. 6Perimeter = 3 + 4 + 5 = 12
Result: Area = 6, Perimeter = 12, right triangle (3-4-5 Pythagorean triple)

Watch out for

What can go wrong

  • Entering the wrong angle for SAS: Angle C must be the angle between sides a and b, not an angle opposite one of them. Entering the wrong angle produces a valid but incorrect result with no error message.
  • Using degrees when the formula expects radians: This calculator accepts degrees and converts internally. If you are checking the result by hand, remember to convert your angle to radians before applying cos or sin.
  • Ignoring the triangle inequality for SSS: Three positive numbers do not always form a triangle. If a + b is not greater than c (for any permutation), no real triangle exists. The calculator flags this as an error.
  • Confusing area with perimeter: Area is in square units. Perimeter is in the same units as the sides. If sides are in meters, area is in m² and perimeter is in m. The calculator returns raw numbers, so unit tracking is up to you.

Glossary

Related concepts

TermDefinition
Law of cosinesGeneralizes the Pythagorean theorem: c² = a² + b² − 2ab·cos(C). When C = 90°, the cosine term drops to zero and the result is a² + b² = c².
Law of sinesStates that a/sin(A) = b/sin(B) = c/sin(C). Used here to find the remaining angles after the law of cosines provides the third side.
Heron's formulaComputes triangle area from all three side lengths using the semi-perimeter s = (a+b+c)/2. Area = √(s(s−a)(s−b)(s−c)). No angle needed.
Triangle inequalityFor a valid triangle, each side must be less than the sum of the other two. If any side violates this, no triangle exists with those dimensions.

Make it better

Pro tips

  • Use SAS for construction problems: If you know two lengths and the angle between them, SAS is always available from a single measurement setup. SSS requires all three lengths, which sometimes needs an extra measurement.
  • Check right-angle problems with the Pythagorean shortcut: For a 90-degree included angle, cos(90°) = 0 so the law of cosines becomes a² + b² = c². You can verify the result by checking that the two shorter sides satisfy the Pythagorean theorem.
  • Confirm triangle type before fabricating parts: The triangle-type field tells you right, acute, or obtuse at a glance. An unexpected obtuse result from a supposed right-angle joint means your angle measurement is off.
  • Scale inputs proportionally to preserve shape: To find angles for a similar triangle of different size, multiply all sides by the same factor. Angles do not change when sides scale uniformly.

Common questions

Frequently asked questions

For related calculations, try the Circle Calculator, or Percentage Calculator. Browse all Calculator Online calculators for the full catalog.

Methodology

This calculator uses the standard triangle calculator formula. Results match those from established financial, scientific, and health references.

Reviewed by

Calculator Online Editorial Team. All formulas verified against authoritative sources before publication.

Last updated

2026-05-24

Sources & References