DoesWhatAnswersSlangEmojisCalculatorsTriviaPlayBlog

Trivia Questions and Weird Facts

Geometry

Triangle Calculator

Choose the measurements you have and solve the triangle in one place. The result includes area, perimeter, all three sides and all three angles, with labels that make the opposite-side relationships explicit.

Loading the calculator. It runs in your browser, so JavaScript needs to be on.

How to use the Triangle Calculator

  1. Choose Three sides (SSS), Two sides + included angle (SAS), or Two angles + included side (ASA).
  2. In SSS, enter sides a, b and c. In SAS, enter sides a and b plus the angle C between them.
  3. In ASA, enter angles A and B plus side c, which lies between those angles. All angles use degrees.
  4. Select the length unit and read the solved values. Angle A faces side a, angle B faces side b, and angle C faces side c.

The formula

For three sides, Heron's formula is Aarea = √(s(s-a)(s-b)(s-c)), with s = (a+b+c)/2. The code uses an equivalent rearrangement to reduce cancellation. SAS uses c2 = a2 + b2 - 2ab cos C. ASA uses C = 180 - A - B and the sine rule a/sin A = b/sin B = c/sin C.

Worked example

Sides 3 cm, 4 cm and 5 cm give an area of 6 cm^2 and a perimeter of 12 cm. Angle C, opposite the 5 cm side, is 90 degrees. Entering sides 3 and 4 with included angle C = 90 degrees gives the same result.

The included angle belongs between the known sides

For SAS, angle C is the corner where sides a and b meet. A known angle opposite one of those sides describes a different problem and can produce two possible triangles. This calculator avoids that ambiguous SSA case by asking specifically for the included angle. A quick sketch with lowercase side names and uppercase opposite angles can prevent a swapped input.

Three lengths must pass the triangle inequality

Every pair of sides must add to more than the third side. Lengths 1, 2 and 3 lie flat and do not enclose an area, so they are rejected. Lengths 3, 4 and 5 do form a triangle. Very thin triangles can be sensitive to tiny measurement errors even when the mathematical solution exists.

Compare the three angles as a quick check

The angles add to 180 degrees, and the largest side must face the largest angle. An equilateral triangle has three 60-degree angles. A triangle with one angle greater than 90 degrees is obtuse; its perpendicular height may fall outside the base segment, but the area formula still works.

Triangle Calculator questions

Can three angles determine a triangle's size?

No. Three angles determine shape but leave scale unknown. Enter at least one side length with two angles to obtain area and perimeter.

Can I solve a triangle with sides 1, 2 and 3?

No. Those lengths make a flat line because 1 + 2 equals 3. A valid triangle needs a strict greater-than relationship for every pair.

Does this work for right triangles?

Yes. Enter all three sides or use SAS with the included angle set to 90 degrees. The dedicated right triangle calculator also solves from just two legs.

Related calculators