Triangle Calculator
Enter the three sides of any triangle to find its area (Heron's formula), perimeter, and all three interior angles (law of cosines). Works for any valid triangle.
A triangle is the simplest polygon — three sides, three angles, three vertices. Despite this simplicity, triangles underpin nearly all of geometry, trigonometry, and computer graphics. Every polygon can be decomposed into triangles; every 3D surface (in computer graphics) is approximated by a triangle mesh; every navigational triangulation rests on triangle geometry.
Triangles are classified by: **Angles:** - **Acute**: all angles < 90°. - **Right**: one angle = 90°. - **Obtuse**: one angle > 90°.
**Sides:** - **Equilateral**: all sides equal (and all angles 60°). - **Isosceles**: two sides equal. - **Scalene**: all sides different.
Given any three sides (SSS case), this calculator finds: - **Area**: using Heron's formula A = √(s(s-a)(s-b)(s-c)), where s = (a+b+c)/2. - **Perimeter**: P = a + b + c. - **All three angles**: using Law of Cosines.
A valid triangle requires the **triangle inequality**: each side must be less than the sum of the other two. If sides are 3, 4, 9: not valid (3 + 4 = 7 < 9).
Common applications: land surveying (triangulation), engineering (truss design, structural analysis), navigation, computer graphics (triangle meshes), astronomy (parallax measurements), construction (roof rafters, geometric design), and any geometry involving three-sided shapes.
Inputs
Results
Area
6 sq units
Perimeter
12
Semi-Perimeter
6
Angle A
36.8699°
Angle B
53.1301°
Angle C
90°
Formula
How to use this calculator
- Enter three side lengths.
- Calculator returns area (Heron's formula), perimeter, and three angles.
- Verify triangle inequality: each side < sum of others.
- For right triangle check: a² + b² = c² where c is longest.
- Sum of angles always 180°.
- For specific triangles: 3-4-5, 5-12-13 are right triangles.
Worked examples
Classic 3-4-5 right triangle
**Scenario:** Triangle with sides 3, 4, 5. Area and angles? **Calculation:** s = 6. A = √(6×3×2×1) = √36 = 6. Angles: arccos((16+25-9)/40) = 37°; arccos((9+25-16)/30) = 53°; arccos((9+16-25)/24) = 90°. **Result:** Area = 6, angles ~37°, 53°, 90° (right triangle). The 3-4-5 Pythagorean triple is the most famous integer right triangle. Used since ancient times for "squaring" corners in construction.
Equilateral triangle
**Scenario:** Triangle with sides 10, 10, 10. All sides equal. **Calculation:** s = 15. A = √(15×5×5×5) = √(1875) ≈ 43.30. Alternative formula: A = (√3/4) × 100 ≈ 43.30. All angles 60° (equilateral). **Result:** Area ≈ 43.3 sq units. Perimeter = 30. All angles 60°. Equilateral triangles have unique properties — maximum symmetry, simplest tessellation, foundation of triangular grids.
Land plot triangle
**Scenario:** Triangular lot: 50 m, 75 m, 90 m. **Calculation:** s = 107.5. A = √(107.5 × 57.5 × 32.5 × 17.5) ≈ √(3,510,000) ≈ 1873 m². **Result:** ~1873 m² area (~0.19 hectares, ~0.46 acre). Verify triangle inequality: 50+75=125 > 90 ✓; 50+90=140 > 75 ✓; 75+90=165 > 50 ✓. Valid triangle. Used in real estate, land surveying for irregular plots.
When to use this calculator
**Use triangle calculator for:**
- **Land surveying**: triangulated plot calculations. - **Engineering**: truss member analysis. - **Architecture**: roof rafter geometry. - **Construction**: framing angles, structural elements. - **Computer graphics**: mesh calculations. - **Astronomy**: parallax measurements. - **Navigation**: triangulation from known points. - **Geometry homework**: area and angle problems.
**Three sides given (SSS):**
This case uniquely determines a triangle (given triangle inequality holds).
For two sides + angle: see Law of Cosines (SAS) or Law of Sines. For two angles + side: Law of Sines. For three angles: not unique (similar triangles possible).
**Triangle validity check:**
Triangle inequality: largest side < sum of other two.
If sides are 5, 6, 12: 12 > 5+6 = 11. Invalid — no such triangle exists.
Always verify before computing.
**Common applications:**
- **Land surveying**: irregular plots as triangles. - **Civil engineering**: bridge truss analysis. - **Architecture**: roof gables, triangular facades. - **Computer graphics**: 3D modeling. - **Game development**: collision detection. - **GPS triangulation**: position from satellites. - **Photography**: rule of thirds, compositions.
**Pythagorean triples:**
Integer right triangle sides: - 3-4-5 (most famous) - 5-12-13 - 7-24-25 - 8-15-17 - 9-40-41 - 20-21-29
And their multiples (6-8-10, etc.).
**Right triangle check from sides:**
If a² + b² = c² (where c is longest): right triangle. For 3-4-5: 9 + 16 = 25 ✓. For 7-24-25: 49 + 576 = 625 ✓.
**Triangle classifications:**
**By angles:** - Acute: all < 90°. Pythagorean inequality: a² + b² > c² for longest c. - Right: one = 90°. Pythagorean equality. - Obtuse: one > 90°. Pythagorean: a² + b² < c².
**By sides:** - Equilateral: a = b = c. - Isosceles: at least two sides equal. - Scalene: all sides different.
**Software:**
- **Excel**: implement Heron's formula manually. - **Python (numpy)**: import math; use formulas. - **CAD**: built-in triangle tools and area calculation. - **GIS**: polygon area for any shape. - **Triangle solvers**: dedicated calculators online.
**Pitfalls:**
- **Triangle inequality**: always verify before computing. - **For very thin triangles**: numerical precision issues. - **Heron's for thin triangles**: can lose precision (use alternative). - **Sides vs angles**: keep separate. - **For SSA case**: ambiguous (use Law of Sines). - **For 3D triangles**: use vector methods.
**Educational notes:**
Triangle properties appear in: - 5th-6th grade: classification. - 7th-9th grade: area, perimeter, Pythagorean. - High school geometry: detailed properties. - Trigonometry: solving any triangle. - Calculus: derived areas, optimization. - Computer graphics: foundational.
**Pitfalls (continued):**
- **For very small or large triangles**: precision matters. - **For complex polygon triangulation**: many small triangles. - **For mixed unit calculations**: ensure consistency. - **Heron's vs coordinate methods**: choose based on input.
Common mistakes to avoid
- Triangle inequality violation: sides given that can't form a triangle.
- Confusing sides with angles in problems.
- For right triangle identification: not checking Pythagorean inequality.
- For very thin triangles: numerical precision issues with Heron's.
- Mixing units between sides.
- For SSS case: forgetting to verify validity.
- Computing angles in wrong units (radians vs degrees).
- Triangle area without correct height (must be perpendicular).
Frequently Asked Questions
Sources & further reading
Related Calculators
Pythagorean Theorem Calculator
Find the missing side of a right triangle using a² + b² = c².
Law of Cosines Calculator
Solve a triangle using the law of cosines for SSS (three sides) or SAS (two sides and included angle) cases.
Law of Sines Calculator
Solve a triangle using the law of sines for AAS (two angles + non-included side) or ASA (two angles + included side) cases.
Area Calculator
Calculate the area of common shapes: circle, rectangle, triangle, and trapezoid.