Skip to content
FiftyCalc Free calculators for all 50 states

Triangle Calculator

Test cases replayed : 6 of 6 match · Methodology · No outside source listed

Choose what you know about the triangle, enter those values, and get every side, every angle, the area and the perimeter.

Result

Sample figures

Area (square units)—

Side a —

  • Side b—
  • Side c—
  • Angle A (degrees)—
  • Angle B (degrees)—
  • Angle C (degrees)—
  • Perimeter (length units)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Triangle Calculator

What you know: choose SSS: sides a, b, c, SAS: sides a, b and angle C between them, ASA: angles A, B and side c between them or AAS: angles A, B and side a. Prefilled example: SSS: sides a, b, c.

Side a (length units; SSS, SAS, AAS): enter 0 or more. Prefilled example: 3.

Side b (length units; SSS, SAS): enter 0 or more. Prefilled example: 4.

Side c (length units; SSS, ASA): enter 0 or more. Prefilled example: 5.

Angle A opposite side a (ASA, AAS), in °: enter a number from 0 to 180. Prefilled example: 40.

Angle B opposite side b (ASA, AAS), in °: enter a number from 0 to 180. Prefilled example: 60.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. What you know: choose SSS: sides a, b, c, SAS: sides a, b and angle C between them, ASA: angles A, B and side c between them or AAS: angles A, B and side a.
  2. Side a (length units; SSS, SAS, AAS): enter 0 or more.
  3. Side b (length units; SSS, SAS): enter 0 or more.
  4. Side c (length units; SSS, ASA): enter 0 or more.
  5. Angle A opposite side a (ASA, AAS), in °: enter a number from 0 to 180.
  6. Angle B opposite side b (ASA, AAS), in °: enter a number from 0 to 180.
  7. Angle C opposite side c (SAS), in °: enter a number from 0 to 180.
  8. Read the result: Area (square units); the panel also shows Side a, Side b, Side c, Angle A (degrees), Angle B (degrees), Angle C (degrees) and Perimeter (length units).

How this calculator works

SAS uses the law of cosines, c² = a² + b² − 2ab cos C. ASA and AAS first find the third angle (the angles add up to 180°), then the other sides with the law of sines, a ÷ sin A = b ÷ sin B = c ÷ sin C.

Once the three sides are known, each angle comes from the law of cosines, for example cos A = (b² + c² − a²) ÷ 2bc, and the area from Heron's formula √(s(s − a)(s − b)(s − c)), with s the half-perimeter.

Sides that break the triangle inequality (one side as long as the other two together) or angles adding up to 180° or more give a dash. The ambiguous SSA case is not handled.

Worked example

What you knowSSS: sides a, b, c
Side a (length units; SSS, SAS, AAS)3
Side b (length units; SSS, SAS)4
Side c (length units; SSS, ASA)5
Angle A opposite side a (ASA, AAS)40 °
Angle B opposite side b (ASA, AAS)60 °
Angle A (degrees)36.8699
Angle B (degrees)53.1301
Angle C (degrees)90
Area (square units)6
Perimeter (length units)12

Frequently asked questions

What are the angles of a 3-4-5 triangle?

About 36.87°, 53.13° and exactly 90°: it is a right triangle, with an area of 6.

How do I find the third side from two sides and the angle between them?

Use the law of cosines. With a = 5, b = 7 and C = 60°, c = √(25 + 49 − 70 × 0.5) = √39 ≈ 6.245.

What is the ASA case?

Two angles and the side between them. With A = 40°, B = 60° and c = 10, C = 80°, a ≈ 6.527 and b ≈ 8.7939.

Questions answered

Related calculators