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
From ancient land measurement to modern structural engineering — why triangle area remains one of the most practically important calculations in all of applied mathematics.
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 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.
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.
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.
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.
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 — 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.
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.
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.
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.
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.
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.
Four steps from triangle dimensions to a precise, method-appropriate area result.
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.
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.
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.
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.
Every formula this calculator uses, written out with variable definitions.
Six complete triangle area calculations showing every step.
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.
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.
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.
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. ✓
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.
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.
Formulas, triangle types, and engineering applications at a glance.
| Method | Known Values | Formula |
|---|---|---|
| Base & Height | b, h | (b × h) ÷ 2 |
| Heron's Formula | a, b, c | √(s(s−a)(s−b)(s−c)) |
| SAS | a, b, C° | ½ab sin(C) |
| Coordinates | x₁y₁, x₂y₂, x₃y₃ | |x₁(y₂−y₃)+x₂(y₃−y₁)+x₃(y₁−y₂)|÷2 |
| Equilateral | a | (√3÷4)a² |
| Type | Definition | Best Formula |
|---|---|---|
| Right | One 90° angle | Base & Height (legs are b and h) |
| Equilateral | All sides equal, all angles 60° | Equilateral formula |
| Isosceles | Two equal sides | Heron's or Base & Height |
| Scalene | No equal sides | Heron's Formula |
| Obtuse | One angle > 90° | Heron's or SAS |
| Acute | All angles < 90° | Any method |
| Field | Typical Application | Preferred Method |
|---|---|---|
| Surveying | Triangular land parcel area | Heron's (3 sides from tape/total station) |
| GIS / Mapping | Polygon area via triangulation | Coordinate formula |
| Structural Engineering | Gusset plate area | Base & Height or SAS |
| Architecture | Roof pitch and gable area | Base & Height |
| Manufacturing | Sheet metal blank area | Heron's or Coordinate |
| Education | Geometry curriculum | All methods |
What makes this tool stand apart from a simple formula sheet.
Base & Height, Heron's, SAS, Coordinates, and Equilateral — one tool covers every triangle geometry scenario.
Up to six decimal places, using JavaScript's native Math functions accurate to 15+ significant figures.
Seven length units from millimetres to yards — select once and all outputs carry the correct squared unit label.
A triangle illustration renders with each calculation, labelling the relevant dimensions for the active method.
Invalid inputs — triangle inequality violations, collinear coordinates, zero dimensions — are caught before calculation runs.
Two-column hero collapses to a single column on phones. All inputs are touch-friendly and keyboard-accessible.
Where precise triangle area calculation makes a material difference.
The errors most likely to produce a wrong triangle area — and how this calculator prevents them.
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.
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.
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.
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.
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.
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.
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 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.
Everything you need to know about calculating triangle area with this tool.
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.
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)).
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.
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.
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.
When two sides and their included angle are known: Area = ½ × a × b × sin(C), where C is the angle between sides a and b.
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.
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.
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.
Yes. You can enter measurements in millimetres, centimetres, metres, kilometres, inches, feet, or yards. The calculator displays area in the corresponding square unit.
Yes. All five methods and up to six decimal places of precision make this suitable for structural engineering, surveying, civil engineering, and CAD verification.
Yes. The step-by-step method selection and live SVG visualization make it an excellent learning tool for geometry students at all levels.
Yes. The two-column layout collapses to a single column on phones, and all inputs are touch-friendly.
Yes, this triangle area calculator is completely free to use with no signup required.
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.
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.