Triangle Area Calculator

Compute triangle area using three vertex coordinates (shoelace formula) or three side lengths (Heron's formula). Instantly get area, perimeter, triangle type, and semiperimeter. Visualize coordinate triangles on an interactive canvas.

? Coordinate Mode
? Side Length Mode (Heron)
Enter any real numbers. Default right triangle (3-4-5) area = 6.
? Right (3-4-5): A(0,0) B(4,0) C(0,3)
? Equilateral: A(0,0) B(2,0) C(1,1.732)
? Acute scalene: A(1,2) B(5,3) C(2,6)
⛛ Obtuse: A(0,0) B(5,0) C(2,1)
⚖️ Isosceles: A(0,0) B(4,0) C(2,3)
Enter positive side lengths satisfying triangle inequality (sum of any two > third). Default 3-4-5 triangle.
? 3-4-5 (Right)
? 5-5-6 (Isosceles acute)
? 7-7-7 (Equilateral)
⛛ 6-6-8 (Obtuse isosceles)
⚠️ 5-13-12 (Right, 5-12-13)
Privacy first: All calculations are performed locally in your browser. No data is sent to any server.

Two Powerful Methods: Coordinates & Side Lengths

This calculator supports the two most common ways to determine triangle area: using vertex coordinates (shoelace formula) or using three side lengths (Heron's formula). Both methods are mathematically equivalent and validated against each other.

Coordinate (Shoelace): Area = ½ | x₁(y₂ - y₃) + x₂(y₃ - y₁) + x₃(y₁ - y₂) |

Side Length (Heron): Area = √[ s(s - a)(s - b)(s - c) ], where s = (a+b+c)/2

Whether you are a student solving geometry problems, a land surveyor with corner coordinates, or an engineer with side measurements, this tool adapts to your workflow.

Why Use Both Modes?

  • Coordinate Mode: Visualize the triangle in real time. Perfect for analytic geometry, computer graphics, and verifying homework.
  • Side Length Mode: Directly input sides from physical measurements, historical data, or trigonometry problems. Heron's formula works for any triangle, even without angles or coordinates.
  • Cross-validation: You can test the same triangle using both modes to ensure consistency.

Step-by-Step Derivation & Validation

Heron's Formula in Depth: Heron of Alexandria (c. 10–70 AD) proved that the area depends only on side lengths. Given a, b, c, compute semiperimeter s. The formula Area = √[s(s-a)(s-b)(s-c)] is derived from the law of cosines and is extremely robust. Our implementation includes strict triangle inequality validation: if any side is non-positive or a + b ≤ c (and permutations), the tool shows an error.

Shoelace (Coordinate) Method: The determinant formula generalizes to any polygon. For triangles, it reduces to half the absolute value of the cross product. This method is exact for any real coordinates, even negative or fractional.

Real-World Applications

Case Study: Fencing a Triangular Plot

A farmer measures three sides of a field: 120 m, 150 m, and 200 m. Using side-length mode, the area is computed via Heron's formula: s = 235 m, area = √[235×(115)×(85)×(35)] ≈ 8966 m². The calculator also determines the triangle is obtuse (200² > 120²+150²). This helps in planning materials and cost estimation.

Historical Authority & Mathematical Rigor

The shoelace formula is credited to the Swiss mathematician Albrecht Ludwig Friedrich Meister (1724–1788). Heron's formula predates modern algebra and remains a cornerstone of Euclidean geometry. This tool references peer-reviewed sources: MathWorld, Encyclopedia of Mathematics, and the classic Geometry Revisited by Coxeter & Greitzer. Every calculation is deterministic, using double-precision floating point (IEEE 754).

Common Misconceptions Clarified

  • Heron's formula only works for right triangles: False — it works for all triangles, including acute, obtuse, and degenerate (area zero).
  • Side lengths must be integers: No — any positive real numbers satisfying triangle inequality are valid.
  • Coordinate order matters for area sign: The tool always returns absolute area (positive).

How to Use Each Mode

  1. Coordinate Mode: Select the "Coordinate Mode" tab. Enter x,y for each vertex. Click "Calculate Area" to see area, perimeter, triangle type, and an interactive graph.
  2. Side Length Mode: Switch to "Side Length Mode". Input three positive side lengths. The tool automatically checks triangle inequality. Results show area, perimeter, semiperimeter, and triangle type (acute/right/obtuse).
  3. Use the preset examples to quickly explore classic triangles (3-4-5, equilateral, isosceles).

Illustrative Reference Table

Triangle Type Side Lengths (a,b,c) Area (sq units) Perimeter Classification
Right (3-4-5) 3, 4, 5 6.00 12.00 Right
Equilateral 7, 7, 7 21.22 21.00 Acute
Isosceles Acute 5, 5, 6 12.00 16.00 Acute
Obtuse Scalene 6, 6, 10 16.58 22.00 Obtuse
Right (5-12-13) 5, 12, 13 30.00 30.00 Right

Frequently Asked Questions

Yes, the shoelace formula works with any real numbers. The graph will automatically scale to show the triangle.

The calculator displays a clear warning. No area is computed because a valid triangle cannot exist.

The canvas scales coordinates to fit the viewport while preserving proportions. For extremely skewed triangles, pixel rounding may occur, but numeric results remain precise to 15 decimals.

Side lengths alone do not determine a unique position/orientation in 2D space. For visualization, please use coordinate mode. The numeric area is still accurate.

Trusted geometry reference – This tool follows Euclidean principles verified against authoritative sources: Weisstein, Eric W. "Triangle Area." MathWorld; Coxeter, H.S.M. "Geometry Revisited" (1967). Reviewed by GetZenQuery Tech team, last updated April 2026.