Solve any triangle using Side-Side-Side (SSS), Angle-Side-Angle (ASA), or Side-Angle-Side (SAS) methods. Get all angles, sides, area, and perimeter with detailed step-by-step solutions.
Given: side a = 5, side b = 6, side c = 7
Step 1 — Check validity: 5+6 > 7 ✓, 6+7 > 5 ✓, 5+7 > 6 ✓ → Triangle is valid.
Step 2 — Semiperimeter: s = (5+6+7)/2 = 9
Step 3 — Area (Heron's formula): √(9×4×3×2) = √216 = 14.697 sq units
Step 4 — Angle A: cos A = (6²+7²-5²)/(2×6×7) = 60/84 = 0.714 → A = 44.42°
Step 5 — Angle B: cos B = (5²+7²-6²)/(2×5×7) = 38/70 = 0.543 → B = 57.12°
Step 6 — Angle C: cos C = (5²+6²-7²)/(2×5×6) = 12/60 = 0.200 → C = 78.46°
Perimeter: 5+6+7 = 18 units
Given: A = 50°, B = 60°, side c = 8 (between A and B)
Step 1 — Angle C: C = 180° - 50° - 60° = 70°
Step 2 — Side a (Law of Sines): a = 8 × sin(50°)/sin(70°) = 8 × 0.7660/0.9397 = 6.52 units
Step 3 — Side b (Law of Sines): b = 8 × sin(60°)/sin(70°) = 8 × 0.8660/0.9397 = 7.37 units
Step 4 — Area: 0.5 × a × b × sin(C) = 0.5 × 6.52 × 7.37 × sin(70°) = 22.58 sq units
Perimeter: 6.52 + 7.37 + 8 = 21.89 units
Given: a = 5, b = 7, included angle C = 45°
Step 1 — Side c (Law of Cosines): c² = 5² + 7² - 2×5×7×cos(45°) = 25+49-70×0.7071 = 74-49.50 = 24.50
c = √24.50 = 4.95 units
Step 2 — Angle A (Law of Sines): sin A = 5×sin(45°)/4.95 = 5×0.7071/4.95 = 0.714 → A = 45.56°
Step 3 — Angle B: B = 180° - 45° - 45.56° = 89.44°
Step 4 — Area: 0.5 × 5 × 7 × sin(45°) = 0.5 × 35 × 0.7071 = 12.37 sq units
Perimeter: 5 + 7 + 4.95 = 16.95 units
A triangle is a three-sided polygon with three angles that always sum to 180°. Our calculator supports three common solution methods depending on which measurements you know.
For any triangle with sides a, b, and c:
Before calculating, verify that three sides satisfy the triangle inequality theorem. A triangle with sides 1, 2, and 4 is impossible.
JavaScript's Math.sin() and Math.cos() use radians. Always convert degrees to radians (multiply by π/180) for correct results.
Always verify that the three angles sum to 180°. Small rounding differences (e.g., 179.99°) are normal in floating-point calculations.
All side lengths must use the same unit. Mixing meters and centimeters will give incorrect results. The area will be in square units of whatever unit you use.
A triangle is a three-sided polygon that is one of the fundamental shapes in geometry. Every triangle has three sides, three angles, and three vertices. The sum of its interior angles is always 180 degrees (or π radians), regardless of the triangle's shape or size.
Triangles can be classified by their side lengths (equilateral, isosceles, scalene) or by their angles (acute, right, obtuse). Our calculator works with any triangle type — simply choose the data you have available.
Triangle calculations are essential in many fields: engineering (truss design, forces), architecture (roof angles, structural loads), navigation (triangulation, GPS), computer graphics (3D rendering, mesh generation), surveying (distance measurement), and physics (vector components, force analysis).
Our Triangle Calculator makes it easy to solve any triangle using three common methods. Here's how each mode works:
When to use: You know all three side lengths of a triangle but need to find the angles and area.
How it works: The calculator first checks if the side lengths satisfy the triangle inequality theorem (a+b>c, b+c>a, a+c>b). If valid, it uses the Law of Cosines to find each angle, Heron's formula to find the area, and sums the sides for the perimeter.
When to use: You know two angles and the side between them. This is common in surveying and navigation.
How it works: The third angle is found by subtracting the known angles from 180°. Then the Law of Sines is used to calculate the two unknown sides. Area is found using ½·ab·sin(C).
When to use: You know two sides and the angle between them. This is common in construction and engineering.
How it works: The Law of Cosines finds the third side. Then the Law of Sines finds the smaller of the two remaining angles, and the third angle is 180° minus the sum of the known ones.
Truss bridges, roof rafters, and scaffolding all rely on triangular structures for strength. Triangle calculations ensure correct fit and load distribution.
Surveyors use triangulation to measure distances and create maps. By measuring angles and a baseline distance, they can calculate unknown distances.
3D models are built from thousands of triangles (polygons). Rendering engines use triangle calculations for lighting, shading, and perspective projection.
GPS satellites use triangulation to determine your position. Knowing distances to multiple satellites (spheres of position) pinpoints your exact location.
⚠️ Important Note: This Triangle Calculator is for educational and informational purposes only. While every effort has been made to ensure accuracy, results should be verified independently for critical applications such as construction, engineering, surveying, or navigation. Always consult a qualified professional for triangle-related decisions in high-stakes contexts.