Triangle Calculator
Compute triangle sides, angles, and area.
About this tool
Enter the three side lengths to get the area, all three angles and the perimeter. Sides 7, 8, 9 give an area of 26.8328 and angles 48.1897°, 58.4119° and 73.3985°.
How to use
How it works
The area comes from Heron's formula and each angle from the law of cosines. A triangle exists only if each side is shorter than the sum of the other two, so 1, 2, 5 is rejected. The angles always add to 180°.
s = (a + b + c) ÷ 2 Area = √(s(s − a)(s − b)(s − c)) cos A = (b² + c² − a²) ÷ 2bc
Worked example
A scalene triangle
- Input
- a = 7, b = 8, c = 9
- Output
- Area 26.8328; angles 48.1897°, 58.4119°, 73.3985°; perimeter 24
- Walkthrough
- s = 12. Area = √(12 × 5 × 4 × 3) = √720 = 26.8328. The angles sum to 48.1897 + 58.4119 + 73.3985 = 180.
Limitations
- Needs all three sides; for two sides and an angle use the law of cosines or sines.
- Sides that break the triangle inequality return Invalid triangle.
Questions
What is the area of a triangle with sides 3, 4 and 5?
What are the angles of a 7-8-9 triangle?
Can sides 1, 2 and 5 make a triangle?
Features
- Area, angles and perimeter
- Invalid-triangle check
- Runs in your browser
Guides
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Area of triangles intuition
Khan Academy
Builds intuition for triangle area before you rely on Heron’s formula from three sides on this page.
Watch on YouTubeThe Pythagorean theorem intro
Khan Academy
a²+b²=c² foundation for right-triangle tools.
Watch on YouTube
- Heron's Formula
Math is Fun
Step-by-step Heron from three side lengths. Mirrors how this SSS calculator gets area when you do not have a base-height pair.
- Triangles
Math is Fun
Side and angle vocabulary for SSS work. Helps interpret the law-of-cosines angles this tool returns with area.