Triangle Calculator

Solve a complete Euclidean triangle from SSS, SAS, ASA/AAS, SSA or right-triangle data. The calculator validates impossible inputs and explicitly reports the two-solution SSA ambiguous case when it occurs.

Angle A is between sides b and c.
Side a is opposite angle A.
Side a must be opposite known angle A.
SSA can produce zero, one or two valid triangles.
Optional display precision

Calculations use full internal precision. This changes only displayed decimal places.

Your Solved Triangle

Sides a • b • c0
Angles A • B • C0
Area • Perimeter0
Solved Triangle0

Enter the required values for the selected case. Side a is opposite angle A, side b is opposite B, and side c is opposite C.

Second valid SSA solution

Sides: 0

Angles: 0

Area / perimeter: 0

Calculation breakdown

Solver caseSSS
Side a0
Side b0
Side c0
Angle A0
Angle B0
Angle C0
Perimeter0
Semiperimeter0
Area0
Altitude to side c0
Inradius0
Circumradius0

Transparent formula

SSS/SAS use the Law of Cosines; ASA/AAS and SSA use the Law of Sines plus A + B + C = 180°.

Area is checked from the solved sides with Heron’s formula: K = √[s(s−a)(s−b)(s−c)], where s = (a+b+c)/2.

SSA is tested for every valid arcsine branch, so a second triangle is shown instead of being silently discarded when the ambiguous case exists.

Triangle Calculator for SSS, SAS, ASA, AAS, SSA and Right Triangles

A complete triangle solver needs more than one formula. Three sides call for the Law of Cosines; two sides with their included angle also start with the Law of Cosines; two angles and one side are naturally solved with the angle-sum rule and Law of Sines; and SSA is special because the same inputs can sometimes describe two different triangles. SonoCalculator separates those cases instead of pretending every set of three numbers behaves the same way.

Triangle Notation: Which Side Is Opposite Which Angle?

The calculator follows standard notation for triangle ABC: side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. OpenStax uses the same opposite-side convention when introducing triangle geometry and trigonometric laws. Keeping the pairing correct is essential because the Law of Sines matches each side only with its opposite angle.

All angle inputs in this calculator are degrees. Side units are optional: choose a real unit such as cm, m, in or ft, or stay unitless for textbook exercises. Area automatically uses the squared form of the selected side unit.

How to Use the Triangle Calculator

  1. Choose the known-information case. Pick SSS, SAS, ASA/AAS, SSA or Right triangle.
  2. Enter only the fields shown for that case. Labels tell you which angle is opposite or included between which sides.
  3. Use positive side lengths and angles between 0° and 180°.
  4. Press Solve Triangle. The solver validates whether a Euclidean triangle exists.
  5. For SSA, check for a second solution. If the ambiguous case produces two valid triangles, both are displayed.

SSS: Solve a Triangle from Three Sides

With all three sides known, the triangle is determined provided the triangle inequality holds. The Law of Cosines finds the angles:

cos A = (b² + c² − a²) ÷ (2bc) cos B = (a² + c² − b²) ÷ (2ac) C = 180° − A − B

Computing two angles with inverse cosine and taking the third from the 180° angle sum reduces small floating-point inconsistencies. The calculator also uses Heron’s formula for area once the sides are known.

SAS: Two Sides and the Included Angle

For sides b and c with included angle A, first solve the opposite side a:

a² = b² + c² − 2bc cos A

Once the third side is known, the triangle becomes an SSS problem. This avoids the ambiguity associated with SSA because the included angle fixes how the two known sides open away from one another.

SAS also gives a direct area formula, K = ½bc sin A. The calculator solves all three sides and then checks area from the solved geometry.

ASA and AAS: Two Angles and One Side

In Euclidean geometry, the three interior angles of a triangle sum to 180°. Therefore two known angles immediately determine the third:

C = 180° − A − B

With side a opposite angle A, the Law of Sines gives the remaining sides:

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

ASA and AAS are grouped in one mode because the solving mathematics is the same once two angles and one opposite side-angle pair are known.

SSA and the Ambiguous Case

SSA means two sides and an angle that is not included between them. This is the one common triangle case where valid inputs do not always produce exactly one triangle. OpenStax explicitly describes SSA as the ambiguous case: depending on the geometry, there may be zero, one or two solutions.

Given side a opposite known angle A and another side b, the Law of Sines gives:

sin B = b sin A / a

If that ratio is greater than 1, no triangle exists. If it is valid, inverse sine gives a principal angle B₁. But sine has the same positive value at B₁ and 180° − B₁, so a second candidate B₂ may also exist. Each candidate is valid only if A + B < 180°.

Many simple triangle calculators return only the principal arcsine result and silently lose the second triangle. This calculator checks both branches and displays the second valid solution explicitly.

Right Triangle Mode

A right triangle has one 90° angle. In this calculator, C = 90° and side c is the hypotenuse. If both legs are known:

c = √(a² + b²)

If the hypotenuse c and one leg a are known:

b = √(c² − a²)

The acute angles can then be found from inverse trigonometric ratios or from the Law of Cosines. The hypotenuse must be longer than either leg; otherwise the entered measurements cannot form a non-degenerate right triangle.

Triangle Area: Heron’s Formula and Trigonometric Area

Once all three sides are known, Heron’s formula is universal for ordinary Euclidean triangles:

s = (a + b + c) ÷ 2 K = √[s(s − a)(s − b)(s − c)]

When two sides and their included angle are known, an equivalent trigonometric form is:

K = ½bc sin A

For a right triangle with legs a and b, this reduces to K = ab/2.

Altitude, Inradius and Circumradius

After area K is known, the altitude to side c is:

h₍c₎ = 2K / c

The inradius—the radius of the circle tangent to all three sides—is:

r = K / s

The circumradius—the radius of the circle passing through all three vertices—is:

R = abc / (4K)

These are useful derived measures, but they do not replace the primary solved sides and angles. For a nearly degenerate triangle, area approaches zero and the circumradius can become very large.

How the Calculator Detects Impossible Triangles

Three positive side lengths must satisfy the triangle inequality: the sum of any two sides must be greater than the third. For sorted sides x ≤ y ≤ z, it is enough to test x + y > z. Equality would make a flat, zero-area degenerate triangle rather than an ordinary triangle.

Angle inputs must also leave room for a positive third angle. For ASA/AAS, A + B must be less than 180°. For SAS, the included angle must be strictly between 0° and 180°. For SSA, every arcsine candidate is tested against the same angle-sum condition.

Worked Triangle Examples

SSS: 3, 4, 5

The sides form a right triangle. Angles are approximately 36.87°, 53.13° and 90°. Area = 6 and perimeter = 12.

SAS: b = 7, c = 9, A = 60°

Law of Cosines gives a = √(7²+9²−2·7·9·cos60°) = √67 ≈ 8.185. The remaining angles then follow from the solved sides.

ASA/AAS: a = 10, A = 50°, B = 60°

C = 70°. Law of Sines gives b ≈ 11.305 and c ≈ 12.267.

SSA example with two valid triangles

Let a = 10, b = 12 and A = 40°. Then sin B = 12 sin40° / 10 ≈ 0.7713. One solution uses B ≈ 50.48°. The supplementary possibility B ≈ 129.52° also leaves a positive third angle because 40° + 129.52° is still below 180°. Therefore two distinct triangles satisfy the same SSA data.

SSA example with no triangle

If a = 5, b = 10 and A = 40°, then b sin A / a ≈ 1.286, which is greater than 1. No real angle B has a sine greater than 1, so no Euclidean triangle matches those measurements.

Common Triangle Solver Mistakes

Triangle Calculator FAQs

Can three sides always make a triangle?

No. The sum of the two shorter sides must be greater than the longest side.

What information uniquely determines a triangle?

SSS, SAS, ASA and AAS determine a unique ordinary triangle when the inputs are valid. SSA may determine zero, one or two triangles. AAA determines only similarity, not size.

Why can SSA have two answers?

The sine of an acute angle equals the sine of its supplementary angle. If both candidate angles leave a positive third angle, two different triangles fit the same SSA data.

What is the Law of Sines?

It states a/sin A = b/sin B = c/sin C. It is especially useful when a known side-angle opposite pair is available.

What is the Law of Cosines?

For side a opposite A, a² = b² + c² − 2bc cos A, with equivalent forms for b and c.

How do I find triangle area from three sides?

Use Heron’s formula with semiperimeter s = (a+b+c)/2, then K = √[s(s−a)(s−b)(s−c)].

How do I solve a right triangle?

If two legs are known, use the Pythagorean theorem for the hypotenuse. If the hypotenuse and one leg are known, subtract squares and take the square root for the other leg.

Can I enter only three angles?

No, because AAA fixes only the triangle’s shape. At least one side length is needed to determine scale.

Why is Solved Triangle the blue result?

The main user intent is the complete solved geometry. The blue card reports whether one or two valid triangles were found, while the supporting cards immediately show the primary sides, angles, area and perimeter.

Important note: This Triangle Calculator assumes ordinary Euclidean plane geometry and degree-measured input angles. Real measurements may contain uncertainty, so mathematically precise outputs can exceed the accuracy justified by the original data. Very thin or nearly degenerate triangles are especially sensitive to measurement and rounding error. For surveying, structural, navigation or other high-consequence work, verify measurements, coordinate conventions and required professional methods independently.