Triangle Calculator
Comprehensive Tool for Solving Triangles with Complete Analysis and Geometry Calculations
Quick Navigation
Solve Any Triangle
Enter 3 values including at least 1 side. Leave other fields blank.
Additional Properties
Triangle Properties Reference
Triangle Classification
Isosceles: Two sides equal
Scalene: No sides equal
Right: One angle = 90°
Obtuse: One angle > 90°
Sum of any two sides > third
Longest side opposite largest angle
Triangle Inequalities
- Triangle Inequality: Sum of any two sides must be greater than the third side
- Angle Sum: All three interior angles must sum to 180 degrees
- No Angle Zero: Each angle must be greater than 0 degrees
- Maximum Angle: No angle can be greater than or equal to 180 degrees
Special Triangles
| Triangle Type | Angles | Side Ratios | Properties |
|---|---|---|---|
| 30-60-90 | 30°, 60°, 90° | 1 : √3 : 2 | Right triangle with specific angles |
| 45-45-90 | 45°, 45°, 90° | 1 : 1 : √2 | Isosceles right triangle |
| Equilateral | 60°, 60°, 60° | 1 : 1 : 1 | All sides and angles equal |
Essential Triangle Formulas
Pythagorean Theorem (Right Triangles)
a² + b² = c²Used for right triangles where c is hypotenuse (longest side opposite 90° angle)
Law of Cosines
a² = b² + c² - 2bc·cos(A)b² = a² + c² - 2ac·cos(B)c² = a² + b² - 2ab·cos(C)Used when you know two sides and included angle, or all three sides
Law of Sines
a/sin(A) = b/sin(B) = c/sin(C) = 2RUsed when you know angle-side pairs. R is circumradius.
Area Formulas
Area = (1/2) × base × heightArea = (1/2) × a × b × sin(C)Area = √(s(s-a)(s-b)(s-c)) [Heron's Formula]where s = (a+b+c)/2 (semiperimeter)
Inradius and Circumradius
Inradius: r = Area / sCircumradius: R = a / (2×sin(A))
Medians
mₐ = √(2b² + 2c² - a²) / 2m_b = √(2a² + 2c² - b²) / 2m_c = √(2a² + 2b² - c²) / 2Medians connect vertices to opposite side midpoints
Understanding Triangles
Triangles are fundamental geometric shapes consisting of three straight sides, three vertices (corners), and three interior angles. Named after their vertices, a triangle with vertices A, B, and C is denoted as △ABC. Triangles form the basis of trigonometry and appear throughout mathematics, engineering, architecture, and natural phenomena.
Triangle geometry combines multiple disciplines: plane geometry (angles and sides), trigonometry (sine, cosine, tangent), and algebra (solving for unknowns). Understanding triangles is essential for surveying, navigation, architecture, physics, and countless practical applications. Whether calculating building roof angles, determining distances in surveying, or analyzing forces in physics, triangle calculations are indispensable.
This calculator solves any triangle given sufficient information—typically three values including at least one side. It employs the law of sines, law of cosines, and Pythagorean theorem to compute all remaining values. Beyond basic side and angle calculations, it provides area, perimeter, medians, inradius, and circumradius for complete geometric analysis.
Key Features & Capabilities
This comprehensive calculator provides complete triangle analysis:
How to Use This Calculator
Step-by-Step Guide
- Gather Information: Identify what you know about your triangle. You need exactly three values, including at least one side.
- Identify Valid Combinations: Valid input combinations include:
- Three sides (SSS)
- Two sides + included angle (SAS)
- Two angles + included side (ASA)
- Two angles + non-included side (AAS)
- Two sides + non-included angle (SSA - may have ambiguous cases)
- Select Angle Unit: Choose degrees (°) or radians (rad). Degrees recommended unless working with trigonometric functions.
- Enter Known Values: Input the three known measurements in corresponding fields. Leave unknown fields blank—do not enter zeros for unknown values.
- Click Calculate: Press "Calculate Triangle" to solve.
- Review Complete Solution: See all sides, angles, area, perimeter, and properties instantly calculated.
- Verify Triangle Type: Note the automatically identified triangle type (e.g., isosceles acute).
- Copy or Continue: Use results or perform new calculations.
What Information You Need
The calculator requires exactly three values with at least one side. No configuration with only angles (no sides) can be solved, as angles alone determine shape but not size. Here's what works:
- Three Sides (SSS): Most straightforward. Law of Cosines computes all angles.
- Two Sides + Included Angle (SAS): Law of Cosines finds third side; Law of Sines finds remaining angles.
- Two Angles + Any Side (AAS/ASA): Third angle from sum = 180°. Law of Sines finds remaining sides.
- Two Sides + Non-included Angle (SSA): May have 0, 1, or 2 solutions (ambiguous case). Calculator handles all possibilities.
Complete Formulas Reference
The Law of Cosines
To find side c: c² = a² + b² - 2ab·cos(C)To find angle C: C = arccos((a² + b² - c²) / (2ab))Used when: You know two sides and included angle, or all three sides
The Law of Sines
a / sin(A) = b / sin(B) = c / sin(C)Rearranged:
a = b × sin(A) / sin(B)sin(A) = a × sin(B) / bUsed when: You know one angle-side pair and need to find others
Pythagorean Theorem (Right Triangles Only)
a² + b² = c²Where c is hypotenuse (side opposite 90° angle)
Special right triangles: 30-60-90 and 45-45-90
Area Calculations
Method 1: Area = (1/2) × base × heightMethod 2: Area = (1/2) × a × b × sin(C)Method 3: Area = √(s(s-a)(s-b)(s-c)) [Heron's]where s = (a + b + c) / 2 (semiperimeter)Choose based on what you know
Inradius and Circumradius
Inradius (inscribed circle): r = Area / sCircumradius (circumscribed circle): R = a / (2×sin(A))Where s is semiperimeter and Area computed using Heron's formula or other method
Medians (From Vertices to Opposite Side Midpoints)
Median to side a: mₐ = (1/2)√(2b² + 2c² - a²)Median to side b: m_b = (1/2)√(2a² + 2c² - b²)Median to side c: m_c = (1/2)√(2a² + 2b² - c²)All three medians intersect at centroid (center of mass)
Triangle Types and Properties
Classification by Sides
Equilateral Triangle
All three sides equal length (a = b = c). All angles equal 60°. Highest symmetry. Formula simplifies: Area = (√3/4) × a².
Isosceles Triangle
Two sides equal length (a = b, or b = c, or a = c). Two angles equal. The side that differs is the base. Angles opposite equal sides are equal.
Scalene Triangle
All three sides different lengths (a ≠ b ≠ c). All angles different. Most general case. No special symmetries.
Classification by Angles
Acute Triangle
All angles less than 90° (A < 90°, B < 90°, C < 90°). All angles are "acute" (sharp). Can be equilateral, isosceles, or scalene.
Right Triangle
Exactly one angle equals 90°. The side opposite the right angle is called the hypotenuse (longest side). Pythagorean theorem applies: a² + b² = c².
Obtuse Triangle
One angle greater than 90° (obtuse angle). Other two angles must be acute. Cannot have more than one obtuse angle (angles sum to 180°).
Important Triangle Properties
| Property | Description | Mathematical Statement |
|---|---|---|
| Angle Sum | All interior angles sum to 180 degrees | A + B + C = 180° |
| Triangle Inequality | Sum of any two sides exceeds third | a + b > c, b + c > a, a + c > b |
| Exterior Angle | Exterior angle equals sum of non-adjacent interior angles | Exterior = B + C (if exterior to A) |
| Largest Angle | Largest angle opposite longest side | If a is longest, then A is largest |
| Isosceles Base Angles | Base angles of isosceles triangle equal | If a = b, then A = B |
Key Theorems and Laws
Pythagorean Theorem
For any right triangle with legs a and b, and hypotenuse c:
a² + b² = c²
This fundamental theorem connects algebra and geometry. The converse is also true: if a² + b² = c² for a triangle's sides, the triangle is right-angled. Special right triangles with simple integer side ratios (Pythagorean triples) include 3-4-5, 5-12-13, and 8-15-17.
Law of Sines
For any triangle:
a / sin(A) = b / sin(B) = c / sin(C) = 2RWhere R is the circumradius (radius of circle passing through all vertices)
This law connects sides and opposite angles proportionally. Useful for finding unknown sides or angles when you know an angle-side pair.
Law of Cosines
For any triangle:
a² = b² + c² - 2bc·cos(A)b² = a² + c² - 2ac·cos(B)c² = a² + b² - 2ab·cos(C)
Generalizes the Pythagorean theorem (when any angle is 90°, the cosine term becomes zero, yielding a² + b² = c²). Useful when you know two sides and included angle, or all three sides.
Heron's Formula
To find area when all three sides are known:
Area = √(s(s-a)(s-b)(s-c))where s = (a + b + c) / 2 (semiperimeter)
Elegant formula requiring only side lengths—no angles or height needed. Derived from other area formulas but remarkably efficient.
Worked Examples
Example 1: Solving with Three Sides (SSS)
Problem: Given a = 5, b = 6, c = 7. Find all angles and area.
cos(A) = (b² + c² - a²) / (2bc) = (36 + 49 - 25) / (2×6×7) = 60/84 ≈ 0.714
A = arccos(0.714) ≈ 44.4°
cos(B) = (a² + c² - b²) / (2ac) = (25 + 49 - 36) / (2×5×7) = 38/70 ≈ 0.543
B = arccos(0.543) ≈ 57.1°
C = 180° - 44.4° - 57.1° = 78.5°
Find Area using Heron's Formula:
s = (5 + 6 + 7) / 2 = 9
Area = √(9×4×3×2) = √216 ≈ 14.7
Example 2: Right Triangle with Pythagorean Theorem
Problem: Right triangle with legs a = 3, b = 4. Find hypotenuse c and angles.
Using Pythagorean Theorem:
c² = a² + b² = 9 + 16 = 25
c = 5
Find angles:
sin(A) = a / c = 3 / 5 = 0.6
A = arcsin(0.6) ≈ 36.87°
sin(B) = b / c = 4 / 5 = 0.8
B = arcsin(0.8) ≈ 53.13°
C = 90° (given)
Area = (1/2) × 3 × 4 = 6
Example 3: Two Sides and Included Angle (SAS)
Problem: Given a = 7, b = 8, C = 60°. Solve triangle.
c² = a² + b² - 2ab·cos(C)
c² = 49 + 64 - 2(7)(8)·cos(60°)
c² = 113 - 112(0.5) = 113 - 56 = 57
c ≈ 7.55
Find remaining angles using Law of Sines:
sin(A) / a = sin(C) / c
sin(A) = 7 × sin(60°) / 7.55 = 7 × 0.866 / 7.55 ≈ 0.803
A ≈ 53.5°
B = 180° - 60° - 53.5° = 66.5°
Example 4: Finding Area Different Ways
Problem: Triangle with a = 6, b = 8, C = 45°. Find area using two methods.
Area = (1/2) × a × b × sin(C)
Area = (1/2) × 6 × 8 × sin(45°)
Area = 24 × 0.707 ≈ 17.0
Method 2 - Find third side, then use Heron's Formula:
c² = a² + b² - 2ab·cos(C)
c² = 36 + 64 - 96·cos(45°) = 100 - 67.9 = 32.1
c ≈ 5.67
s = (6 + 8 + 5.67) / 2 = 9.835
Area = √(9.835 × 3.835 × 1.835 × 4.165) ≈ 17.0
Example 5: Equilateral Triangle Properties
Problem: Equilateral triangle with side a = 10. Find area, inradius, circumradius.
Area = (√3 / 4) × a² = (√3 / 4) × 100 ≈ 43.3
Semiperimeter s = (10 + 10 + 10) / 2 = 15
Inradius r = Area / s = 43.3 / 15 ≈ 2.89
Circumradius R = a / (2 × sin(60°)) = 10 / (2 × 0.866) ≈ 5.77
Note: R = 2r for equilateral triangles
Frequently Asked Questions
Solve Your Triangle Today
Whether you're a student learning geometry, an architect designing structures, a surveyor measuring land, or an engineer analyzing forces, this comprehensive triangle calculator solves any configuration instantly with complete geometric analysis. Get all sides, angles, area, perimeter, medians, and circle properties in seconds. Fast, accurate, and completely free.