Triangle Calculator
Calculate sides, angles, area, and perimeter of any triangle using 6 different solving methods
Selected Mode
Enter all three sides of the triangle Enter two sides and the included angle Enter two angles and the included side Enter two angles and a non-included side Enter two sides and a non-included angle (ambiguous case) Enter base and height for area calculation
Triangle Calculated
Area
Perimeter
Triangle Sides
Side a
Side b
Side c
Triangle Angles
Angle A
Angle B
Angle C
Find this triangle calculator helpful?
Share it with students and professionals!
Related Calculators
Other calculators you might find useful.
Covariance Calculator
Calculate how two variables change together with sample and population covariance
Permutation Calculator
Calculate nPr permutations with step-by-step solutions
Integral Calculator
Calculate definite and indefinite integrals with step-by-step solutions
Variance Calculator
Calculate population and sample variance with detailed statistics
Ratio Simplifier Calculator
Simplify any ratio to its lowest terms with step-by-step GCD calculation
Log Base 10 Calculator
Calculate common logarithms with step-by-step solutions and antilog conversions
About Triangle Calculator
What is a Triangle Calculator?
A triangle calculator is a versatile geometry tool that helps you solve any triangle problem by calculating missing sides, angles, area, and perimeter. Whether you know three sides, two sides and an angle, or other combinations, this calculator provides complete triangle solutions.
How to Use This Calculator
-
Select Calculation Mode: Choose from 6 solving methods based on what information you have:
- SSS (Side-Side-Side): When you know all three sides
- SAS (Side-Angle-Side): When you know two sides and the included angle
- ASA (Angle-Side-Angle): When you know two angles and the included side
- AAS (Angle-Angle-Side): When you know two angles and a non-included side
- SSA (Side-Side-Angle): When you know two sides and a non-included angle
- Base × Height: For simple area calculation when you know base and height
-
Enter Known Values: Input the measurements you have available.
-
View Complete Solution: Get all sides, all angles, area, perimeter, and triangle classification.
Triangle Formulas
Area Formulas
Heron's Formula (when you know all three sides):
s = (a + b + c) / 2
Area = √[s(s-a)(s-b)(s-c)]
Where s is the semi-perimeter.
Base × Height Formula:
Area = (base × height) / 2
SAS Formula (two sides and included angle):
Area = (1/2) × a × b × sin(C)
Side and Angle Relationships
Law of Cosines:
c² = a² + b² - 2ab × cos(C)
cos(C) = (a² + b² - c²) / (2ab)
Law of Sines:
a/sin(A) = b/sin(B) = c/sin(C)
Angle Sum Property:
A + B + C = 180°
Perimeter
Perimeter = a + b + c
Triangle Types
Classification by Sides
- Equilateral: All three sides are equal
- Isosceles: Two sides are equal
- Scalene: All sides are different
Classification by Angles
- Acute: All angles are less than 90°
- Right: One angle equals 90°
- Obtuse: One angle is greater than 90°
Solving Methods Explained
SSS (Side-Side-Side)
When you know all three sides, use:
- Heron's formula to find the area
- Law of Cosines to find each angle
- Triangle inequality to validate (a+b>c, a+c>b, b+c>a)
SAS (Side-Angle-Side)
When you know two sides and the included angle:
- Law of Cosines to find the third side
- Law of Sines to find remaining angles
- Direct area formula: (1/2)ab×sin(C)
ASA (Angle-Side-Angle)
When you know two angles and the included side:
- Angle sum property to find third angle
- Law of Sines to find remaining sides
- Area using SAS formula
AAS (Angle-Angle-Side)
When you know two angles and a non-included side:
- Similar to ASA, find third angle first
- Law of Sines to find remaining sides
- Calculate area and perimeter
SSA (Side-Side-Angle) - Ambiguous Case
When you know two sides and a non-included angle:
- Warning: This can have 0, 1, or 2 solutions!
- Use Law of Sines carefully
- Check if the given angle is opposite the given side
Real-World Applications
- Construction: Roof framing, truss design, and structural analysis
- Navigation: Triangulation for GPS and maritime navigation
- Surveying: Land measurement and mapping
- Engineering: Stress analysis and force vectors
- Architecture: Building design and space planning
- Computer Graphics: 3D modeling and rendering
Frequently Asked Questions
What's the difference between SSS and SAS?
SSS means you know all three sides, while SAS means you know two sides and the angle between them. SAS requires knowing the specific angle that's between the two known sides.
Why is SSA called the ambiguous case?
SSA can produce two different valid triangles (or sometimes none) because the given side opposite the known angle can "swing" to two different positions while maintaining all the given measurements.
Can any three sides form a triangle?
No! The triangle inequality theorem states that the sum of any two sides must be greater than the third side. For example, sides of 1, 2, and 5 cannot form a triangle because 1+2 is not greater than 5.
What's the easiest way to calculate triangle area?
If you know the base and height, use Area = (base × height) / 2. This is the most straightforward formula. If you only know the sides, use Heron's formula.
How accurate are the angle calculations?
This calculator uses JavaScript's built-in trigonometric functions, providing accuracy to approximately 15-16 significant digits, which is more than sufficient for practical applications.
What units can I use?
The calculator works with any consistent unit of measurement (inches, feet, meters, centimeters, etc.). Just ensure all measurements use the same unit. Angles can be entered in degrees or radians.
Triangle Inequality Theorem
For any valid triangle with sides a, b, and c:
- a + b > c
- a + c > b
- b + c > a
If any of these conditions fail, a triangle cannot be formed.
Common Triangle Properties
| Triangle Type | Sides | Angles | Special Properties |
|---|---|---|---|
| Equilateral | All equal | All 60° | Maximum symmetry, all medians equal |
| Isosceles | Two equal | Two equal | Symmetrical about one axis |
| Right | Any | One 90° | Pythagorean theorem applies |
| 3-4-5 Triangle | 3, 4, 5 | 90° | Common Pythagorean triple |
Historical Note
Triangle geometry has been studied for over 4,000 years. The ancient Babylonians and Egyptians used triangle calculations for construction and land surveying. Greek mathematicians like Euclid and Pythagoras formalized many triangle theorems we still use today.
Educational Note: This calculator is designed for educational and practical purposes. For critical engineering or construction applications, always verify calculations with professional tools and consult experts.