Triangles & laws of sines/cosines
Triangle Calculator: Law of Sines, Cosines & Heron
Solve any triangle from 3 values. SSS, SAS, ASA, AAS. Law of Sines, Law of Cosines, Heron's formula. Inradius, circumradius, medians.
By Jeff Beem
Updated
Triangle Calculator
Enter any 3 values (at least one side). The rest are solved using the Law of Sines and Cosines.
Understanding Triangle Geometry
Our triangle calculator solves any triangle from three known values (at least one side). Whether you have SSS, SAS, ASA, or AAS, we apply the correct law. Law of Sines, Law of Cosines, or Heron's formula, and show every step in the Step-by-Step Calculation. Trusted by students and educators for geometry homework and surveying.
Workflow Tips
Geometric Profile
Step-by-Step Tabs
Dynamic Schematic
Knowledge Base
Triangle properties depend on what you know. We apply Law of Cosines (SSS/SAS), Law of Sines (angle-side pairs), and Heron's formula (area from sides):
Law of Cosines: SSS or SAS, find missing angles or the third side:
Law of Sines: When you have an angle and its opposite side, the ratio is constant:
Heron's Formula: Area from three sides only, no height needed. Semi-perimeter s = (a+b+c)/2, then:
Triangle Calculator: Angles, Sides, Area | Law of Sines & Cosines
Free triangle calculator: solve any triangle from 3 known values. SSS, SAS, ASA, AAS. Law of Sines, Law of Cosines, Heron's formula. Inradius, circumradius, medians. Step-by-Step Calculation. Trusted by students and educators. No sign-up.
What This Triangle Calculator Does
Purpose & Use Cases
- Input:Any 3 of: sides a, b, c; angles A, B, C (degrees).
- Output:All 6 values, area, perimeter, inradius, circumradius, medians.
How the Math Works
- Worked example (SSS):Sides a = 5, b = 7, c = 9. Semi-perimeter s = (5+7+9)/2 = 10.5. Area = √(10.5 × 5.5 × 3.5 × 1.5) ≈ 17.41. Angle C = arccos((25 + 49 − 81) / (2 × 5 × 7)) = arccos(−0.1) ≈ 95.7° (obtuse triangle).
- Worked example (SAS):Sides a = 8, b = 6, angle C = 60°. Third side c = √(64 + 36 − 96·cos60°) = √(100 − 48) = √52 ≈ 7.21. Area = ½ × 8 × 6 × sin(60°) ≈ 20.78.
How to Use This Calculator
The Three Laws, When the Calculator Uses Each
Law of Sines
Law of Cosines
Heron's Formula
When to Use Each Method
Triangle Calculator FAQ
What combinations of sides and angles can I enter?
Why does it say "Invalid triangle"?
How is area calculated?
What is the Law of Cosines?
What is the Law of Sines?
Mathematical Reference Note
Calculation Logic: This tool uses standard mathematical algorithms. While we strive for accuracy, errors in logic or user input can result in incorrect data.
Verification: Results should be cross-checked if used for important academic, professional, or personal calculations.
Standard Terms: This tool is provided free of charge and as-is. CalcRegistry provides no warranty regarding the accuracy or fitness of these results for your specific needs.