Mortgage & Loans

Investing & Retirement

Salary, Tax & Business

India Finance

Health & Fitness

Math & Statistics

Date, Time & Everyday

Home, Construction & Science

Unit Converters

Triangle Calculator

Enter three known sides or angles and solve the whole triangle — every side and angle, plus area, perimeter, heights and the triangle type — with the working shown.

Free, no sign-upPrivate — runs in your browserUpdated October 2026
Live
Area
14.6969
Sides a, b, c
5, 6, 7
Angles A, B, C
44.4153°, 57.1217°, 78.463°
PerimeterSemi-perimeter 9
18
Triangle type
Scalene acute
Step-by-step solution
  1. Law of cosines for A: cos A = (b² + c² − a²) ÷ 2bc = (36 + 49 − 25) ÷ 84 = 0.714286, so A = 44.4153°.
  2. Law of cosines for B: cos B = (a² + c² − b²) ÷ 2ac = 0.542857, so B = 57.1217°.
  3. Angles sum to 180°: C = 180° − A − B = 78.463°.
  4. Area = ½·a·b·sin C = ½ × 5 × 6 × 0.979796 = 14.6969. Perimeter = a + b + c = 18.

Triangle properties

PropertyValue
Side a / angle A5 / 44.4153° (0.7752 rad)
Side b / angle B6 / 57.1217° (0.997 rad)
Side c / angle C7 / 78.463° (1.3694 rad)
Height to a / b / c5.8788 / 4.899 / 4.1991
Median to a / b / c6.0208 / 5.2915 / 4.272
Inradius r (= Area ÷ s)1.633
Circumradius R (= a ÷ 2 sin A)3.5722
At a glance

Enter three known sides or angles and solve the whole triangle — every side and angle, plus area, perimeter, heights and the triangle type — with the working shown.

FormulaLaw of sines: a ÷ sin A = b ÷ sin B = c ÷ sin C   |   Law of cosines: c² = a² + b² − 2ab·cos C
Also searched assolve triangle · law of cosines calculator · law of sines calculator · triangle angle calculator · triangle side calculator · sss sas asa

How to use the triangle calculator

Choose what you know about the triangle from the menu, then enter those three values. The calculator uses standard labelling: sides a, b and c are opposite angles A, B and C. Angles are in degrees. It then solves for every remaining side and angle and reports the area, perimeter, triangle type, all three heights and medians, the inradius and the circumradius, with each step of the law of sines or law of cosines written out.

  • SSS — three sides.
  • SAS — two sides and the angle between them (here a, b and C).
  • ASA — two angles and the side between them (A, B and c).
  • AAS — two angles and a side that is not between them (A, B and a).
  • SSA — two sides and an angle that is not between them (a, b and A). This is the "ambiguous case" and can have zero, one or two solutions.

Three angles alone (AAA) do not fix a triangle's size — every scaled copy has the same angles — so at least one side is always required.

Triangle formulas

Law of sines: a ÷ sin A = b ÷ sin B = c ÷ sin C   |   Law of cosines: c² = a² + b² − 2ab·cos C
Area = ½·a·b·sin C = √[s(s − a)(s − b)(s − c)]   (s = half the perimeter)

The law of cosines is a generalisation of the Pythagorean theorem: when C = 90°, cos C = 0 and it becomes c² = a² + b². The second area expression is Heron's formula, which needs only the three sides.

Worked example (SSS)

A triangle has sides a = 5, b = 6 and c = 7.

  1. cos A = (6² + 7² − 5²) ÷ (2 × 6 × 7) = 60 ÷ 84 = 0.7143, so A ≈ 44.42°.
  2. cos B = (5² + 7² − 6²) ÷ (2 × 5 × 7) = 38 ÷ 70 = 0.5429, so B ≈ 57.12°.
  3. C = 180° − 44.42° − 57.12° ≈ 78.46°.
  4. The semi-perimeter is s = 9, so by Heron's formula the area is √(9 × 4 × 3 × 2) = √216 ≈ 14.70. The perimeter is 18.

Because the largest angle is under 90° and all sides differ, this is a scalene acute triangle.

The ambiguous SSA case

When you know two sides and an angle opposite one of them, the law of sines gives sin B, and two angles share that sine: B and 180° − B. If both make a valid triangle (angles summing to less than 180°), there are two different solutions. With the defaults a = 5, b = 6 and A = 40°, sin B ≈ 0.7713, giving B ≈ 50.47° or B ≈ 129.53° — both valid — so the calculator shows both triangles. If side a is too short to reach the opposite side (sin B > 1), no triangle exists; if a ≥ b, exactly one triangle fits.

Tip: Always check the triangle inequality first: each side must be shorter than the other two combined. Sides of 2, 3 and 6 cannot make a triangle because 2 + 3 < 6.

Classifying triangles

By sidesRuleBy anglesRule
EquilateralAll sides equalAcuteAll angles < 90°
IsoscelesTwo sides equalRightOne angle = 90°
ScaleneNo sides equalObtuseOne angle > 90°

Practical uses

Surveyors use the law of sines to find distances to points they cannot reach (triangulation). Carpenters and roofers solve SAS triangles to cut angled pieces, and navigators combine bearings and distances the same way. For the area of other shapes, see the area calculator; for converting between angle measures or doing more trigonometry, use the scientific calculator.

Built and reviewed by the Calcivia editorial team following our editorial policy · Last updated .
Cite or link to this page

Using this triangle calculator in an article, report or homework? Copy a citation or a ready-made link:

APACalcivia. (2026). Triangle Calculator. Retrieved October 31, 2026, from https://www.calcivia.com/triangle-calculator/
MLA"Triangle Calculator." Calcivia, 2026, https://www.calcivia.com/triangle-calculator/. Accessed 31 Oct. 2026.
HTML link<a href="https://www.calcivia.com/triangle-calculator/">Triangle Calculator</a> by Calcivia
Was this calculator helpful?

Frequently asked questions

How do you solve a triangle with three sides?

Use the law of cosines to find one angle, for example cos A = (b² + c² − a²) ÷ 2bc, then a second angle the same way, and subtract both from 180° to get the third.

When do I use the law of sines vs the law of cosines?

Use the law of cosines for SSS and SAS, where you do not yet have a matching side–angle pair. Use the law of sines for ASA, AAS and SSA, where you know at least one side and its opposite angle.

How do you find the area of a triangle without the height?

With two sides and the included angle use Area = ½ab·sin C. With three sides use Heron’s formula: Area = √[s(s − a)(s − b)(s − c)], where s is half the perimeter.

Why can SSA give two triangles?

The law of sines gives a value of sin B, and both B and 180° − B have that sine. If both angles fit with angle A, two different triangles match the given information.

Do the angles of a triangle always add up to 180°?

Yes, in flat (Euclidean) geometry the interior angles of every triangle sum to exactly 180°. This is how the third angle is found once two are known.

Related calculators