Free tool
Triangle calculator, sides, angles and the drawing.
Type any three known values among the sides and angles of a triangle and get the rest: the other sides and angles, the area, perimeter, heights, inradius and circumradius, with a drawing to scale and each step. It handles SSS, SAS, ASA, AAS and the ambiguous SSA case with both triangles. Right triangle mode is a Pythagorean theorem calculator.
Type what you know
In a right triangle angle C is 90 degrees, a and b are the legs and c is the hypotenuse. Give any two values, with at least one side.
Try an example
Side a is opposite angle A, b opposite B and c opposite C. Fill exactly three boxes (two in right triangle mode). Numbers like sqrt(2) work.
Worked out in your browser. Nothing is sent anywhere.
Guide
How to use a triangle calculator, with worked examples.
A triangle calculator solves a triangle from three known values: sides a, b and c, and the angles A, B and C opposite them. Type any three, with at least one side, and it works out the rest: the other sides and angles, the area, perimeter, heights, inradius and circumradius, with a drawing to scale and every step. It handles SSS, SAS, ASA, AAS and the tricky SSA case, and a right triangle mode is a Pythagorean theorem calculator.
How to use the triangle calculator
- Pick Any triangle or Right triangle.
- Fill three boxes among Side a, Side b, Side c and Angle A, Angle B, Angle C. In right triangle mode fill two, because angle C is 90 degrees.
- Choose Degrees or Radians under Angles in. In radians you can type pi/6.
- The results update as you type. Given values are marked given and the new ones found. The drawing is to scale.
- Try Try an example for a quick start. Copy result copies the answer as text.
Which case is it
| You know | Name | Method |
|---|---|---|
| Three sides | SSS | Law of cosines for the angles |
| Two sides and the angle between them | SAS | Law of cosines for the third side |
| Two angles and the side between them | ASA | Third angle, then the law of sines |
| Two angles and a side not between them | AAS | Third angle, then the law of sines |
| Two sides and an angle not between them | SSA | Law of sines, maybe two answers |
The Pythagorean theorem
In a right triangle, a² + b² = c², where c is the hypotenuse, the side opposite the right angle. With legs 6 and 8: 36 + 64 = 100, so c = 10. With a hypotenuse of 13 and a leg of 5: b² = 169 − 25 = 144, so b = 12. In Right triangle mode you give any two values and the calculator gives the third side, both acute angles, the area and the rest. With a side and an angle it uses sine, cosine and tangent: a hypotenuse of 10 and A = 30° gives a = 10 × sin 30° = 5 and b = 10 × cos 30° = 8.660.
Special right triangles
A 45-45-90 triangle has sides in the ratio 1 : 1 : √2. A 30-60-90 triangle has sides in the ratio 1 : √3 : 2. The 3-4-5 triangle and its multiples, such as 6-8-10, also have whole number sides, as do 5-12-13, 8-15-17 and 7-24-25. The calculator names them when it finds one.
Worked example: SAS
Sides a = 7 and b = 9 with the angle between them C = 50°. The law of cosines gives c² = 49 + 81 − 2 × 7 × 9 × cos 50° = 130 − 80.99 = 49.01, so c = 7.0006. Then sin A = 7 × sin 50° ÷ 7.0006, so A = 49.994° and B = 180° − 50° − 49.994° = 80.006°. The area is ½ × 7 × 9 × sin 50° = 24.130.
The ambiguous case: SSA
Two sides and an angle that is not between them can fit zero, one or two triangles. Take A = 30°, a = 5 and b = 8. Then sin B = 8 × sin 30° ÷ 5 = 0.8, and B can be 53.130° or 180° − 53.130° = 126.870°. Both work, because each leaves room for a third angle: C = 96.870° gives c = 9.928, and C = 23.130° gives c = 3.928. The calculator shows both triangles. If sin B comes out above 1 there is no triangle, and when a is at least as long as b there is exactly one.
Area, heights and circles
- Area comes from Heron's formula, √(s(s − a)(s − b)(s − c)) where s is half the perimeter, or from ½ab sin C.
- Height to a side is 2 × area ÷ that side.
- Inradius is the area ÷ s, the radius of the circle that fits inside. Circumradius is abc ÷ (4 × area), the circle through all three corners.
Common problems
- Sides that cannot close. The two shorter sides must add up to more than the longest. 1, 2 and 10 cannot make a triangle, and the calculator says why.
- Angles that add up to 180 or more. A triangle's angles sum to exactly 180°, so two angles must total less than that.
- Only angles. Three angles give the shape but not the size, so a side is needed.
- Degrees or radians. Check the Angles in box. 1 radian is 57.296°.
For a ratio between a width and a height use the aspect ratio calculator, for roots and powers the scientific calculator, and for converting lengths the unit converter.
Questions
Good to know.
How do I solve a triangle?
Give three values, at least one a side. The calculator picks the right case and the right law, then lists every side and angle, the area and the steps.
How do I use the Pythagorean theorem?
Add the squares of the two legs and take the square root to get the hypotenuse: c = √(a² + b²). To find a leg, subtract: a = √(c² − b²). Use Right triangle mode and type any two sides.
What does ambiguous case mean?
With two sides and an angle that is not between them (SSA), the other angle can have two sizes that add up to 180 degrees. Sometimes both make a real triangle, so there are two answers. The calculator shows both.
Can I solve a triangle with only angles?
No. Three angles only fix the shape. You need at least one side to fix the size.
What is the 3-4-5 triangle?
A right triangle whose sides are in the ratio 3 : 4 : 5, because 9 + 16 = 25. Any multiple, like 6-8-10 or 30-40-50, is also a right triangle.
How is the area worked out?
The Heron formula from the three sides, or half of two sides times the sine of the angle between them. Both give the same number.
Can I type pi or a square root?
Yes. Choose Radians and type pi/6, or type sqrt(2) in any box.
Is the drawing to scale?
Yes. The triangle is drawn from the solved sides and angles, so its shape is true. Only the size on screen is scaled to fit.
Is anything sent anywhere?
No. It all runs in your browser, and your last numbers are remembered on this device only.