Triangle Calculator
Solve any triangle using SSS, SAS, ASA, AAS, or right-triangle mode. Get sides, angles, area, perimeter, and a live SVG diagram with step-by-step solutions.
Enter all values above to solve the triangle.
Key Formulae
Law of Cosines c² = a² + b² − 2ab·cos(C)
Law of Sines a/sin(A) = b/sin(B) = c/sin(C)
Heron's Formula Area = √(s(s−a)(s−b)(s−c)), s = (a+b+c)/2
SAS Area Area = 0.5 × a × b × sin(C)
How to use Triangle Calculator
-
Choose a solving mode
Select SSS (three sides), SAS (two sides + angle), ASA (two angles + side), AAS (two angles + side), or Right Triangle from the tabs.
-
Enter the known values
Fill in the sides and angles you know. Leave unknown fields empty — the tool calculates them.
-
View all triangle properties
All missing sides, angles, area, and perimeter appear with labels identifying each result.
-
Check the live SVG diagram
The triangle diagram updates in real time as you enter values, giving a visual check on the geometry.
-
Expand the step-by-step solution
Click 'Show steps' to see which law (sines, cosines, or Pythagorean theorem) was applied and how.
Triangle Calculator FAQ
What do SSS, SAS, ASA, and AAS mean?
What is the Pythagorean theorem?
What is the law of sines?
What is the law of cosines?
How is triangle area calculated?
What if the triangle is impossible?
How are triangle types detected?
Can I solve an obtuse triangle?
Can I use this for homework?
Is any data sent to a server?
Background
Enter any combination of known sides and angles to solve a triangle completely. Choose from five input modes: SSS uses the law of cosines to find all angles; SAS applies the law of cosines then law of sines; ASA and AAS use the law of sines; right-triangle mode applies the Pythagorean theorem and basic trigonometry. All missing sides, angles, area, and perimeter are calculated and displayed. The tool automatically detects triangle type: equilateral, isosceles, scalene, right, acute, or obtuse. A live SVG diagram updates as you change values, making it easy to visualize the triangle. Step-by-step solution is shown for each mode. The triangle inequality theorem is checked — invalid inputs trigger a clear error message. Useful for geometry, trigonometry, physics, surveying, and engineering. All processing runs in your browser.
Related tools
Area & Perimeter Calculator
Calculate area and perimeter for rectangles, triangles, circles, trapezoids, ellipses, and regular polygons with formula diagrams.
Circle Calculator
Calculate radius, diameter, circumference, and area from any single value. Arc length and sector area included with an SVG diagram.
Scientific Calculator
A full-featured scientific calculator with trigonometry, logarithms, exponents, roots, memory functions, and calculation history. Full keyboard support.
Volume & Surface Area Calculator
Calculate volume and surface area for spheres, cylinders, cones, cubes, rectangular prisms, pyramids, and more. Capacity conversion included.
Quadratic Equation Solver
Solve ax² + bx + c = 0 with real or complex roots, discriminant, vertex form, axis of symmetry, and a step-by-step parabola graph.