Triangle Calculator
Solve any triangle from three known values. Get every side, angle, the area, perimeter and heights, with a scaled diagram.
Triangle Calculator: Solve Any Triangle
Every triangle has six measurements: three sides and three angles. Here’s the useful bit: in most cases you only need three of them, including at least one side, to work out all the rest.
That’s what “solving a triangle” means, and it’s what this calculator does.
Choose the tab that matches what you know (SSS, SAS, ASA, AAS or SSA) and enter your three values.
You’ll get every missing side and angle, plus the area, perimeter, all three heights, the inradius and circumradius, and the type of triangle. There’s also a drawing to scale and the full working.
Unlike our Pythagorean Theorem Calculator, which only handles right triangles, this one works for any triangle.
How to Use the Triangle Calculator
The labels follow the usual rule: side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. Angles are in degrees.
| Tab | What you know | Example |
|---|---|---|
| SSS | All three sides | a = 5, b = 6, c = 7 |
| SAS | Two sides and the angle between them | a = 5, C = 60°, b = 8 |
| ASA | Two angles and the side between them | A = 45°, c = 10, B = 60° |
| AAS | Two angles and a side not between them | A = 40°, B = 75°, a = 9 |
| SSA | Two sides and an angle not between them | a = 7, b = 9, A = 40° |
Three angles on their own (AAA) can’t be solved. They fix the shape but not the size, so you could draw that triangle as big or as small as you like.
The Formulas Behind It
Angle sum
A + B + C = 180°. Know two angles and you always know the third.
Law of cosines
c² = a² + b² − 2ab·cos C. Use it to find the third side for SAS, or an angle when all three sides are known: cos A = (b² + c² − a²) ÷ 2bc.
When C = 90°, cos C = 0 and it turns into Pythagoras’ a² + b² = c².
Law of sines
a ÷ sin A = b ÷ sin B = c ÷ sin C. This is the one for ASA, AAS and SSA, where you know an angle and the side opposite it.
Area
- Two sides and the angle between them: Area = ½ab·sin C
- Base and height: Area = ½ × base × height
- Three sides (Heron’s formula): Area = √(s(s − a)(s − b)(s − c)), where s = (a + b + c) ÷ 2
Worked Examples
Example 1: SSS with sides 5, 6 and 7
cos A = (36 + 49 − 25) ÷ 84 = 0.7143, so A ≈ 44.42°. In the same way B ≈ 57.12°, which leaves C ≈ 78.46°.
With Heron’s formula, s = 9 and the area is √(9 × 4 × 3 × 2) = √216 ≈ 14.70.
Example 2: SAS, a = 5, b = 8 and C = 60°
c² = 25 + 64 − 2 × 5 × 8 × 0.5 = 49, so c = 7. Area = ½ × 5 × 8 × sin 60° ≈ 17.32.
Example 3: ASA, A = 45°, B = 60° and c = 10
C = 75°. Then a = 10 × sin 45° ÷ sin 75° ≈ 7.32 and b = 10 × sin 60° ÷ sin 75° ≈ 8.97.
Example 4: a roof truss
A roof spans 8 m and each rafter rises at 35°. That’s ASA with c = 8 and A = B = 35°, so C = 110°.
Each rafter is 8 × sin 35° ÷ sin 110° ≈ 4.88 m long, before any overhang.
The SSA Ambiguous Case
SSA is the odd one out. When you know two sides and an angle that isn’t between them, there may be no triangle, one triangle or two different triangles that fit.
Picture side a swinging from one end of side b. It might be too short to reach the base, it might just touch it, or it might cross it in two places.
For example, a = 7, b = 9 and A = 40° gives two valid triangles: one with B ≈ 55.73° and c ≈ 10.84, and another with B ≈ 124.27° and c ≈ 2.95.
The calculator shows both, so you can pick the one that matches your drawing or the question.
Types of Triangle
- Equilateral: all three sides equal, every angle 60°.
- Isosceles: two equal sides and two equal angles.
- Scalene: all sides different.
- Acute: every angle under 90°. Right: one angle is exactly 90°. Obtuse: one angle is over 90°.
Frequently Asked Questions
How do I find the third side of a triangle?
If you know two sides and the angle between them, use the SAS tab (law of cosines). If you know two angles and one side, use ASA or AAS (law of sines).
For a right triangle with two sides, the Pythagorean theorem is quickest.
Why does it say my sides can’t make a triangle?
The two shorter sides must add up to more than the longest one. Sides of 3, 4 and 8 can’t meet, because 3 + 4 = 7 is less than 8.
How do I find the height of a triangle?
Height = 2 × area ÷ base. The calculator gives the height to each of the three sides, since each side can be the base.
Can I use feet and inches?
Yes, as long as every side uses the same unit. Turn feet and inches into decimal feet or into inches before you enter them. Angles don’t need units.
What are the inradius and circumradius?
The inradius is the radius of the biggest circle that fits inside the triangle. The circumradius is the radius of the circle that passes through all three corners.
Both are useful in design and geometry problems, and you can explore circles further with our Circle Calculator.
Related Calculators
More free tools from our Math Calculators collection:
Link to this calculator
Teacher, blogger or student? Share this free Triangle Calculator with your readers or class by pasting this code into your website:

About the author
Tahir Mehmood
Tahir Mehmood is the founder of Digital Designs SEO LTD, a UK company, with five years of hands-on experience in SEO, content writing and web development. He builds and maintains the calculators on All in Calculators and keeps them up to date. Spotted an error? Contact us and we will fix it.
Last updated: 27 November 2026