COC

Free Geometry Tool

Triangle Area Calculator

The triangle is geometry's workhorse. It is the simplest polygon that encloses area, structurally the most rigid shape in engineering, and the foundational building block of almost every complex shape in CAD, GIS, and finite-element analysis. Calculating the area of a triangle correctly, and quickly, is a skill that reaches from high school geometry homework to the site office of a civil engineer measuring a land parcel.

This calculator supports five mathematically complete methods: base and height, Heron's formula from three sides, SAS from two sides and their included angle, the coordinate geometry shoelace formula, and the special-case equilateral formula. It accepts seven length units, provides up to six decimal places of precision, renders a live SVG diagram of the triangle with each calculation, and is designed equally for students, teachers, architects, surveyors, structural and civil engineers, CAD operators, and manufacturers.

✓ No signup  ·  ✓ Five methods  ·  ✓ Live SVG diagram  ·  ✓ Metric & imperial

Triangle Area Calculator

Enter a positive base
Enter a positive height

Triangle Diagram

Complete Guide to Triangle Area Calculation

From ancient land measurement to modern structural engineering — why triangle area remains one of the most practically important calculations in all of applied mathematics.

Every complex shape begins with a triangle

The triangle is the only polygon that is inherently rigid under load — add a diagonal to a square and it becomes two triangles, which is exactly why trusses, bridges, and roof frames work. But before any of that structural logic applies, there is a more fundamental question: how much area does a triangle enclose? Area determines material quantity, land value, surface coverage, and structural capacity. Every calculation in surveying, architecture, engineering, and manufacturing eventually traces back to this single question, and the five methods this calculator supports cover every scenario where that question arises.

The base and height method: the first formula every student learns

The relationship Area = (Base × Height) ÷ 2 follows directly from the area of a rectangle. Any triangle can be embedded inside a rectangle of the same base and height; the triangle always occupies exactly half the rectangle's area. The critical detail — one that produces the most common errors — is that height must be perpendicular to the base. For a right triangle this is obvious; for an obtuse triangle the perpendicular height may fall outside the physical triangle altogether, projecting from the base's extension rather than from within the shape. This formula is ideal whenever a direct height measurement is available, such as in classroom geometry or when a drawing explicitly shows a perpendicular dimension.

Heron's Formula: calculating area from three known sides

Discovered — or more likely compiled from earlier sources — by Heron of Alexandria in the first century AD, Heron's Formula is the method of choice when three side lengths are known but no angle or height is measured directly. The formula first computes the semi-perimeter s = (a + b + c) ÷ 2, then applies Area = √(s(s−a)(s−b)(s−c)). This is the go-to method in field surveying when a tape measure or total station gives three side distances but heights are impractical to measure directly. The triangle inequality must be satisfied — each side must be shorter than the sum of the other two — or the expression under the square root becomes negative, indicating that no real triangle can be formed from the given dimensions.

Types of triangles and their area properties

Right triangles have one 90° angle; their area is simply half the product of the two legs, since the legs serve directly as base and perpendicular height. Isosceles triangles have two equal sides and a plane of symmetry; their height can be computed from the equal side and base using the Pythagorean theorem before applying the base-height formula. Scalene triangles have no equal sides and require Heron's Formula or a measured height. Equilateral triangles, where all three sides are equal, have the special formula Area = (√3 ÷ 4) × a², which is derived directly from the isosceles case with all sides equal.

The SAS formula: two sides and an included angle

When two sides of a triangle and the angle between them are known — the SAS (Side-Angle-Side) configuration — the area formula is Area = ½ × a × b × sin(C), where C is the included angle in degrees or radians. This is the standard formula in structural engineering and mechanical design, where members of known length meet at a measured or designed joint angle. It is also widely used in navigation and surveying when bearing and distance measurements define two sides emanating from a common point.

The coordinate geometry formula: triangles on maps and CAD drawings

When a triangle is defined by three vertex coordinates in a Cartesian or geographic coordinate system — as happens routinely in GIS software, CAD design, and computational geometry — the Shoelace Formula (also called the Surveyor's Formula) gives the area directly: Area = |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)| ÷ 2. The absolute value handles the sign ambiguity that arises from the order in which vertices are listed. This formula scales effortlessly to any units because it inherits the unit system of the coordinate axes, making it the natural choice for any application where coordinates already exist in a digital dataset.

Equilateral triangles in architecture and manufacturing

Equilateral triangles — all three sides and all three angles equal — appear with special frequency in decorative architecture, crystal structures, and precision manufacturing because of their high symmetry. The compact formula Area = (√3 ÷ 4) × a² makes it trivial to compute the area of a regular triangular panel from a single side measurement, and the derived height formula h = (√3 ÷ 2) × a is useful when the panel must fit within a specified vertical clearance.

Surveying applications: measuring triangular land parcels

Land surveyors routinely divide irregular parcels into triangles, compute each triangle's area separately, and sum the results — a method known as triangulation. When three corner pegs are placed and the distances between all three are measured with a total station or laser rangefinder, Heron's Formula immediately gives the parcel area without any requirement to measure angles. For larger parcels measured with GPS, the coordinate formula on the reported vertex positions gives direct area computation. This calculator is therefore directly applicable to land area measurement and cadastral surveying.

Civil and structural engineering

Triangular cross-sections, gusset plates, and truss panels appear throughout structural engineering, and their area feeds directly into section property calculations, weight estimates, material procurement, and finite element mesh generation. Engineers routinely use Heron's Formula when fabrication drawings provide only dimension chains without explicit heights, and the SAS formula when joint angles are the primary design variables.

Architecture and construction

Hip roofs, dormer windows, gable ends, and vaulted ceilings all involve triangular surfaces whose area must be calculated to estimate roofing material, cladding, insulation, and structural loads. Floor plans frequently include triangular offcuts at corners and bay windows. The base-height method is most common in construction practice, with Heron's Formula as the fallback when site-measured dimensions do not include perpendicular heights.

CAD and GIS applications

Modern CAD systems represent curved surfaces as meshes of triangles (triangulated irregular networks, or TINs), making triangle area calculation a fundamental computational primitive in 3D modelling, terrain analysis, and rendering. GIS platforms use triangular decomposition to compute parcel areas from polygon vertices, and the coordinate formula is the direct implementation of this computation. Understanding how triangle area is calculated is therefore prerequisite knowledge for anyone working with spatial data or geometric modelling.

Manufacturing and materials

Sheet metal cutting, fabric pattern making, glass cutting, and composite laminate layup all involve triangular panels whose area determines material yield and waste. Knowing the exact area of each panel allows manufacturers to optimise nesting — the arrangement of shapes on a sheet to minimise scrap — and to estimate material cost per unit before production begins.

How This Calculator Works

Four steps from triangle dimensions to a precise, method-appropriate area result.

1

Choose a Method

Select the calculation method that matches the information you have: base and height, three sides, two sides and an angle, three vertex coordinates, or equilateral side length.

2

Enter Measurements

Type in dimensions using any of seven length units — millimetres through yards — and any angle in degrees. Irrelevant fields hide automatically so the form always shows exactly what each method needs.

3

Automatic Calculation

The correct formula is applied instantly using JavaScript's built-in Math.sqrt(), Math.sin(), and Math.abs(). Results appear in the chosen unit squared, alongside semi-perimeter, height, and perimeter where the method provides them.

4

Engineering Precision

Select up to 6 decimal places. Invalid inputs — violated triangle inequality, collinear coordinates, zero dimensions — trigger inline error messages before any calculation runs. The SVG diagram updates with each valid result.

Mathematical Formulas

Every formula this calculator uses, written out with variable definitions.

Area = (Base × Height) ÷ 2

Heron's Formula

s = (a + b + c) ÷ 2 Area = √(s(s−a)(s−b)(s−c))

SAS Formula

Area = ½ × a × b × sin(C°)

Coordinate (Shoelace)

Area = |x₁(y₂−y₃) + x₂(y₃−y₁) + x₃(y₁−y₂)| ÷ 2

Equilateral Triangle

Area = (√3 ÷ 4) × a² Height = (√3 ÷ 2) × a Perimeter = 3a
Base — any side of the triangle used as the reference side; height must be perpendicular to it.
Height — the perpendicular distance from the opposite vertex to the base line (may fall outside the triangle).
s — semi-perimeter: half the triangle's total perimeter, used as the intermediate term in Heron's Formula.
C — included angle in degrees, converted to radians internally via (C × π ÷ 180) for the sin() function.
(x₁,y₁), (x₂,y₂), (x₃,y₃) — Cartesian coordinates of the three triangle vertices in any consistent unit.
a — side length of the equilateral triangle; all three sides are equal in an equilateral triangle.

Step-by-Step Worked Examples

Six complete triangle area calculations showing every step.

Example 1 — Base & Height: base 10, height 8

Area = (Base × Height) ÷ 2 = (10 × 8) ÷ 2 = 80 ÷ 2 = 40 square units

A triangle with base 10 cm and perpendicular height 8 cm encloses exactly 40 cm², or half the 10 × 8 = 80 cm² rectangle that surrounds it.

Example 2 — Heron's Formula: sides 5, 6, 7

s = (5 + 6 + 7) ÷ 2 = 9 Area = √(9 × (9−5) × (9−6) × (9−7)) = √(9 × 4 × 3 × 2) = √216 ≈ 14.70 square units

All three sides satisfy the triangle inequality, and the result ≈ 14.70 can be verified by computing the triangle's height from the base-height formula and matching areas.

Example 3 — SAS: sides 10 and 12, included angle 45°

Area = ½ × a × b × sin(C) = ½ × 10 × 12 × sin(45°) = 60 × 0.70711 ≈ 42.43 square units

The sine of 45° is exactly √2 ÷ 2 ≈ 0.70711. The result ≈ 42.43 is maximised when the angle is 90° (sin = 1), at which point the formula reduces to the right-triangle leg formula.

Example 4 — Coordinates: (0,0), (6,0), (3,5)

Area = |x₁(y₂−y₃) + x₂(y₃−y₁) + x₃(y₁−y₂)| ÷ 2 = |0(0−5) + 6(5−0) + 3(0−0)| ÷ 2 = |0 + 30 + 0| ÷ 2 = 30 ÷ 2 = 15 square units

With the base on the x-axis from (0,0) to (6,0) — a base of 6 — and apex at height 5, this result = 15 agrees with the base-height formula: (6 × 5) ÷ 2 = 15. ✓

Example 5 — Equilateral: side 8

Area = (√3 ÷ 4) × 8² = (1.73205 ÷ 4) × 64 ≈ 27.71 sq units Height = (√3 ÷ 2) × 8 = 0.86603 × 8 ≈ 6.93 units Perimeter = 3 × 8 = 24 units

An equilateral triangle of side 8 encloses ≈ 27.71 square units with an internal height of ≈ 6.93 units — a useful cross-check when designing regular triangular panels.

Example 6 — Land Survey: triangular plot, sides 42 m, 55 m, 63 m

s = (42 + 55 + 63) ÷ 2 = 80 m Area = √(80 × (80−42) × (80−55) × (80−63)) = √(80 × 38 × 25 × 17) = √(1,292,000) ≈ 1137.0 m²

A triangular parcel with three measured boundary lengths totals approximately 1137 m² — about 0.114 hectares — calculated entirely from field measurements with no perpendicular height required.

Quick Reference Tables

Formulas, triangle types, and engineering applications at a glance.

Triangle Area Formulas Summary

MethodKnown ValuesFormula
Base & Heightb, h(b × h) ÷ 2
Heron's Formulaa, b, c√(s(s−a)(s−b)(s−c))
SASa, b, C°½ab sin(C)
Coordinatesx₁y₁, x₂y₂, x₃y₃|x₁(y₂−y₃)+x₂(y₃−y₁)+x₃(y₁−y₂)|÷2
Equilaterala(√3÷4)a²

Triangle Types and Properties

TypeDefinitionBest Formula
RightOne 90° angleBase & Height (legs are b and h)
EquilateralAll sides equal, all angles 60°Equilateral formula
IsoscelesTwo equal sidesHeron's or Base & Height
ScaleneNo equal sidesHeron's Formula
ObtuseOne angle > 90°Heron's or SAS
AcuteAll angles < 90°Any method

Engineering Applications

FieldTypical ApplicationPreferred Method
SurveyingTriangular land parcel areaHeron's (3 sides from tape/total station)
GIS / MappingPolygon area via triangulationCoordinate formula
Structural EngineeringGusset plate areaBase & Height or SAS
ArchitectureRoof pitch and gable areaBase & Height
ManufacturingSheet metal blank areaHeron's or Coordinate
EducationGeometry curriculumAll methods

Benefits of Using This Calculator

What makes this tool stand apart from a simple formula sheet.

5

Five Calculation Methods

Base & Height, Heron's, SAS, Coordinates, and Equilateral — one tool covers every triangle geometry scenario.

🎯

Engineering Precision

Up to six decimal places, using JavaScript's native Math functions accurate to 15+ significant figures.

📏

Automatic Unit Handling

Seven length units from millimetres to yards — select once and all outputs carry the correct squared unit label.

Live SVG Diagram

A triangle illustration renders with each calculation, labelling the relevant dimensions for the active method.

Inline Validation

Invalid inputs — triangle inequality violations, collinear coordinates, zero dimensions — are caught before calculation runs.

📱

Mobile-Friendly

Two-column hero collapses to a single column on phones. All inputs are touch-friendly and keyboard-accessible.

Real-World Applications

Where precise triangle area calculation makes a material difference.

  • Architecture — calculating gable end area, dormer window facings, and triangular floor plan offcuts.
  • Construction — estimating roofing material, cladding, and insulation for pitched roof faces.
  • Surveying — measuring triangular land parcels and subdivisions from boundary distances.
  • Civil engineering — computing cross-sectional areas of embankments, cuttings, and retaining walls.
  • Structural engineering — sizing triangular gusset plates, web fillets, and bracket supports.
  • GIS and mapping — computing polygon areas by triangular decomposition of spatial datasets.
  • CAD design — verifying mesh triangle areas in 3D surface models and finite element analysis.
  • Manufacturing — estimating sheet metal blanks, fabric panels, and composite laminate cuttings.
  • Interior design — calculating material quantities for triangular decorative panels and ceiling features.
  • Roofing — determining the surface area of hip and gable roof sections for material ordering.
  • Land planning — measuring irregularly shaped parcels decomposed into triangular sub-areas.
  • Mathematics education — demonstrating the relationship between different triangle area formulas with live computation.
½bh h b Triangle Area

Common Mistakes to Avoid

The errors most likely to produce a wrong triangle area — and how this calculator prevents them.

Using the wrong formula for the available data

Trying to apply the base-height formula when only three side lengths are known leads to guessing an incorrect height. Always match the formula to exactly the measurements you have.

Violating the triangle inequality

Three sides that don't satisfy the rule "each side < sum of other two" cannot form any triangle. Heron's formula produces an imaginary result, and this calculator flags the error before calculating.

Using a non-perpendicular height

The base-height formula requires the height to be a true perpendicular from the base to the opposite vertex, not a slant side. Using a slant gives an area larger than the actual triangle.

Mixing measurement units mid-calculation

Entering a base in centimetres and a height in millimetres produces an area that is neither cm² nor mm². Always confirm all dimensions are in the same unit before calculating.

Using the exterior angle in SAS

The SAS formula requires the included angle between the two sides — the interior angle. Using the supplement (180° minus the correct angle) gives an incorrect sine value and a wrong area.

Collinear coordinates producing zero area

If all three coordinate points lie on the same straight line, the Shoelace Formula correctly returns zero — but this usually indicates a data entry error rather than a valid degenerate triangle.

Confusing area with perimeter

Area is measured in square units (cm², m²); perimeter is measured in linear units (cm, m). They are entirely different properties. Always check the units of the result to confirm area — not perimeter — was calculated.

Rounding intermediate values

Rounding the semi-perimeter or sine value mid-calculation compounds errors in the final result. This calculator carries full floating-point precision through all intermediate steps and rounds only the displayed output.

Frequently Asked Questions

Everything you need to know about calculating triangle area with this tool.

How do you calculate the area of a triangle?

The simplest method is Area = (Base × Height) ÷ 2, where height is perpendicular to the base. When the height is unknown, use Heron's Formula from three sides, the SAS formula from two sides and an included angle, or the coordinate formula from three vertex points.

What is Heron's Formula?

Heron's Formula calculates triangle area from three side lengths. First compute the semi-perimeter s = (a + b + c) ÷ 2, then Area = √(s × (s−a) × (s−b) × (s−c)).

When should I use each calculation method?

Use Base & Height when you have a perpendicular height. Use Heron's Formula when you know all three sides. Use SAS when you know two sides and the angle between them. Use Coordinates when you have vertex positions on a grid or map. Use Equilateral when all three sides are equal.

Can I calculate area from coordinates?

Yes. The Shoelace Formula gives Area = |x₁(y₂−y₃) + x₂(y₃−y₁) + x₃(y₁−y₂)| ÷ 2, working for any triangle defined by three (x,y) vertex points.

What if my sides don't form a valid triangle?

Three sides form a valid triangle only if each side is less than the sum of the other two (the triangle inequality). If this is violated, Heron's Formula produces a negative value under the square root, and no real area exists.

What is the SAS formula for triangle area?

When two sides and their included angle are known: Area = ½ × a × b × sin(C), where C is the angle between sides a and b.

How do I calculate an equilateral triangle area?

For an equilateral triangle with all sides equal to a: Area = (√3 ÷ 4) × a². The height is (√3 ÷ 2) × a and the perimeter is 3a.

Which formula is most accurate?

All formulas are mathematically exact. Accuracy depends on the precision of your input measurements. The Base & Height method is simplest; Heron's Formula is most robust for field measurements where only side lengths are known.

Why is my calculated area zero?

A zero area usually means the three points are collinear (on a straight line), or that a base or height of zero was entered. Check that your coordinates or dimensions describe a proper triangle with no zero-length sides.

Does this calculator support unit conversion?

Yes. You can enter measurements in millimetres, centimetres, metres, kilometres, inches, feet, or yards. The calculator displays area in the corresponding square unit.

Can engineers use this calculator?

Yes. All five methods and up to six decimal places of precision make this suitable for structural engineering, surveying, civil engineering, and CAD verification.

Can students use this calculator?

Yes. The step-by-step method selection and live SVG visualization make it an excellent learning tool for geometry students at all levels.

Is this calculator mobile friendly?

Yes. The two-column layout collapses to a single column on phones, and all inputs are touch-friendly.

Is this calculator free?

Yes, this triangle area calculator is completely free to use with no signup required.

How accurate are the calculations?

Calculations use JavaScript's built-in Math.sqrt(), Math.sin(), and Math.PI accurate to approximately 15 significant figures. Select up to 6 decimal places of displayed precision.

Ready to Calculate Triangle Area?

Instantly compute triangle area using any of five mathematical methods — base and height, Heron's formula, SAS, coordinates, or equilateral — with engineering precision and a live diagram.