Guide
Area of an irregular shape: three methods that actually work
Three methods cover every irregular shape you'll meet in practice: rooms, plots, plans. Pick by what you have.
By Buğra SözeriPublished Updated
“Area of an irregular shape” covers a wide range of practical problems: the floor space of an L-shaped room, the lot size of a five-sided property, the surface of a roof with skylights subtracted, the footprint of a free-form garden bed. There’s no single formula. Three methods cover most cases: decomposition into triangles, the shoelace formula for polygons, and the trapezoidal rule for curves.
Method 1: decompose into triangles
Any polygon can be split into triangles. Compute each triangle’s area separately, sum. Works for shapes you can sketch and measure.
Triangle area: (base × height) / 2. If you know all three side lengths but no height, use Heron’s formula:
s = (a + b + c) / 2
area = √(s × (s−a) × (s−b) × (s−c))Practical workflow for an L-shaped room: split it into two rectangles, compute each, sum. For an irregular five-sided plot, pick the most-acute vertex, draw lines to the two non-adjacent vertices, you get three triangles. Measure each set of sides; apply Heron.
Method 2: the shoelace formula
For a polygon with known vertex coordinates (typical of survey data, CAD output, or anything you can place on a grid), the shoelace formula computes area directly. Given vertices (x₁, y₁), (x₂, y₂), …, (xₙ, yₙ) listed in order (clockwise or counterclockwise):
area = |Σ (xᵢ × yᵢ₊₁ − xᵢ₊₁ × yᵢ)| / 2Where the indices wrap around at the end (i.e., xₙ₊₁ = x₁). The absolute value handles the sign issue from clockwise vs counterclockwise winding.
Worked example. Quadrilateral with vertices (0, 0), (4, 0), (5, 3), (1, 4):
- 0×0 − 4×0 = 0
- 4×3 − 5×0 = 12
- 5×4 − 1×3 = 17
- 1×0 − 0×4 = 0
- Sum: 29. Area = 29 / 2 = 14.5 square units.
Shoelace is the right tool when you have coordinates. For digitised maps, screen-coordinate measurements, or any survey data, it’s exact and fast.
Method 3: the trapezoidal rule (for curved boundaries)
When the boundary is a curve rather than straight segments — a riverbank, a free-form garden, the perimeter of a non-convex blob — sample the boundary at regular intervals and treat each strip as a trapezoid.
area ≈ Δx × (y₁/2 + y₂ + y₃ + … + yₙ₋₁ + yₙ/2)Where Δx is the spacing between samples and yᵢ are the boundary heights. Accuracy improves quadratically as you increase the sample count.
Practical case: measuring the cross-section of an unevenly-cut lawn. Lay a long tape down the long axis. Every 1 m, measure the perpendicular width of the lawn. Sum every other measurement plus half the first and last, multiply by 1 m. Done.
Real-world shapes: subtractions
Many practical problems are “regular minus a hole.” A roof minus the skylights. A room minus the inset cabinet. A floor minus the staircase footprint. Compute the outer area by any of the methods above, compute each subtracted area the same way, then subtract.
Two non-obvious gotchas with subtractions:
- Wall thickness. Floor plans typically show interior dimensions; the wall thickness adds up fast over multiple rooms. For total square footage (which is usually measured to the outside of exterior walls), add the wall thickness back in.
- Sloped surfaces. Roof area is not the same as the building footprint. Multiply the footprint by 1/cos(slope angle) to get the true roof area. A 30° roof has 15% more surface than the footprint suggests.
Picking the right method
| You have | Use |
|---|---|
| Straight edges, side lengths you can measure | Decomposition + Heron |
| Vertex coordinates (CAD, survey, digitised map) | Shoelace formula |
| Curved or wavy boundary | Trapezoidal rule |
| Mixed (straight + curved) | Decompose: shoelace for the polygon part, trapezoidal for the curve |
| A photo, no measurements | Place a known-length reference (ruler, doormat) in the photo; scale pixel-area accordingly |
Common pitfalls
- Units. If you measure in centimetres, area comes out in cm². Multiply by 0.0001 for m². Get the units right before you sign anything.
- Closing the polygon.The shoelace formula assumes the last vertex connects back to the first. List vertices in order; don’t skip the closing edge in your mental walk-around.
- Self-intersecting polygons.Shoelace gives the signed area of a polygon; self-intersecting shapes (figure-8s, twisted quadrilaterals) produce partial-cancellation that doesn’t match the intuitive area. Decompose into simple sub-polygons instead.
The pragmatic workflow
For a real room or plot: sketch it on graph paper, mark the vertex coordinates, apply shoelace. The whole calculation takes 5 minutes and is exact if your measurements are. For curved boundaries (a meandering riverfront lot, an organic-shaped garden), use the trapezoidal rule with whatever sample resolution your tape measure can manage.
Walkthrough: an L-shaped living room
Concrete numbers. The room is an L: the main rectangle is 5.20 m × 4.10 m, with a 1.80 m × 2.40 m bay extending off the long wall.
- Decomposition: two rectangles. Main =
5.20 × 4.10 = 21.32 m². Bay =1.80 × 2.40 = 4.32 m². Total = 25.64 m². - Shoelace cross-check. Place the origin at a corner. Vertices in order: (0,0), (5.20,0), (5.20,1.85), (7.00,1.85), (7.00,4.25), (0,4.25). Sum of
xᵢyᵢ₊₁ − xᵢ₊₁yᵢacross the six edges = 51.28. Area =|51.28| / 2 = 25.64 m². Same answer to the centimetre. - Practical use: at $45/m² for engineered oak flooring including underlay, the material cost is
25.64 × 45 = $1,154. Add 7-10% waste for off-cuts at the L corner → order 27.7-28.2 m².
Common mistakes
- Mixing units mid-calculation.A wall measured 4'3" combined with a width 1.30 m silently turns into nonsense. Convert everything to one unit before multiplying.
- Vertex order matters for shoelace. Random (non-sequential) vertex ordering produces a wrong number — often negative, sometimes uninterpretable for self-intersecting paths. Walk the perimeter in one direction.
- Floor plan vs gross area.Real-estate listings often quote “gross internal area” (interior to exterior walls) but tax authorities want “net internal area” (interior only). They can differ by 8-15% in a multi-room dwelling. Read the local measurement standard (e.g. RICS Code of Measuring Practice, ANSI Z765-2021).
- Photo-based area without scale calibration.Snapshotting a plot from drone or satellite imagery without a known-length reference can be 20-30% off due to lens distortion and perspective. Place a known-length tape or use survey-grade control points.
- Forgetting to close non-orthogonal polygons.A 5-sided plot where vertices were measured by GPS gives coordinates that don’t exactly close — the survey term is “closure error.” Distribute the closure error proportionally (Bowditch rule) before applying shoelace.
When these methods don’t apply
- 3D surfaces. A sloped roof, a hill, a dome — projecting to 2D gives footprint, not surface area. Multiply by
sec(slope)for uniform slopes; use numerical surface integration for irregular ones. - Fractal-edge boundaries. Coastlines, forest perimeters, river deltas: the measured length and area depend on the resolution at which you sample (Mandelbrot 1967). Specify the sample resolution alongside any reported number.
- Spherical or geographic areas.A large plot of land on the Earth’s surface needs a geodetic calculation, not planar shoelace. PostGIS and Turf.js implement Vincenty’s formulae for this.
- Stretched or rubber-sheet materials.Fabric, leather, and rubber lose 5-15% area when cut relative to the lay-flat measurement. Always measure under the use conditions, not the stockroll conditions.
Sources: NIST/SEMATECH e-Handbook of Statistical Methods (numerical integration); Burden and Faires,Numerical Analysis (10th ed., 2016) §4.3; RICS Code of Measuring Practice (6th ed.); ANSI Z765-2021 (Square Footage Method for Calculating).
Frequently asked questions
- What is the easiest way to calculate the area of an irregular room?
- Split the room into rectangles or right triangles, calculate each piece using length × width (or base × height ÷ 2 for triangles), then sum all parts. An L-shaped 5.2 m × 4.1 m room with a 1.8 m × 2.4 m bay has a total of 25.64 m².
- When should I use the shoelace formula instead of decomposition?
- Use the shoelace formula when you have GPS or CAD coordinates for each vertex — it is faster and exact for any polygon with known vertex positions. Decomposition is better when you can only measure side lengths on-site.
- How accurate is the trapezoidal rule for curved land boundaries?
- Accuracy improves quadratically with sample count. Taking measurements every 0.5 m instead of every 1 m cuts the error by a factor of four. For most practical purposes, 10–20 samples across the longest dimension is sufficient.
- Does the shoelace formula work for concave (non-convex) shapes?
- Yes — the shoelace formula works for any simple (non-self-intersecting) polygon regardless of whether it is convex or concave. Just list vertices in consistent order (all clockwise or all counterclockwise) and take the absolute value of the result.
- How do I handle a shape that mixes straight edges and curves?
- Decompose the boundary: use the shoelace formula for the straight-sided polygon portion and the trapezoidal rule for the curved portion, then combine the two areas.
- Why does floor plan area differ from real-estate listed area?
- Real-estate listings often quote gross internal area (measured to interior face of exterior walls), while architects use net internal area (excluding walls). The difference is typically 8–15% in a multi-room dwelling. Check whether your measurement follows RICS or ANSI Z765-2021 standards.
Sources & references
Authoritative references cited by this piece. Verified by Buğra Sözeri on the dates shown and re-checked at every deploy.
- NIST Digital Library of Mathematical Functions — Authoritative compendium for the area formulas (Heron, Shoelace, regular polygon) used in the methods discussed(as of )
- Gauss CF — Shoelace formula (Surveyor's formula) — Mathematical reference for the polygon-area-from-vertices formula recommended for surveyed lots(as of )
- Heron of Alexandria — Metrica (~AD 60) — Source for the three-sides triangle area formula used in the triangulation method(as of )
- American Congress on Surveying and Mapping — Definitions of Surveying — Industry reference for survey-grade polygon area calculation methods(as of )
Related
Published May 16, 2026 · Last reviewed May 31, 2026