Area Calculator Custom Shape: How to Measure Any Plot
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator works out the area of any custom shape you draw or describe, using the shoelace formula (also called the surveyor’s formula). You enter the X and Y coordinates of each corner (vertex) of your shape in order around its perimeter, and the calculator returns the enclosed area in square units. It handles irregular polygons, concave shapes, and shapes with any number of sides, so you can measure a land plot, room outline, or garden bed without needing a single right angle.
Formula
The shoelace formula calculates the area of a simple polygon (one that doesn’t cross itself) from its vertex coordinates. For a polygon with n vertices, list the coordinates in order around the perimeter, then apply:
Area = ½ × | Σ (xi × yi+1 − xi+1 × yi) |
where (xi, yi) is the i-th vertex, and the sum runs from i = 1 to n, with the convention that (xn+1, yn+1) = (x1, y1) so the polygon closes. The absolute value ensures the area is positive regardless of whether you list the vertices clockwise or counterclockwise. The result is in the same square units as your coordinate system (e.g., if coordinates are in meters, the area is in square meters).
Worked Example
Using the default values from the calculator: a rectangle with vertices (0,0), (4,0), (4,3), (0,3). The coordinates are already in order clockwise. Apply the formula step by step:
- Sum of (xi × yi+1 − xi+1 × yi):
(0×0 − 4×0) + (4×3 − 4×0) + (4×3 − 0×3) + (0×0 − 0×3) = 0 + 12 + 12 + 0 = 24 - Area = ½ × |24| = 12 square meters
The calculator shows 12.00 m², matching the expected rectangle area (4 m × 3 m = 12 m²).
When to Use a Custom Shape Area Calculator
This tool is for any shape that isn’t a simple rectangle, circle, or triangle. Common uses include:
- Surveying an irregular land plot from a map or GPS coordinates
- Measuring the floor area of an L-shaped or oddly angled room
- Planning a garden bed, lawn, or paving area with curved or angled borders
- Estimating material quantities (mulch, concrete, turf) for non-rectangular areas
- Checking the area of a polygon from a drawing or CAD file
You can also use it to compute the area of a regular polygon (like a pentagon) if you know the coordinates of its vertices, but for regular shapes there are simpler formulas.
How to Enter Coordinates Correctly
The key is to list the vertices in order around the perimeter, either clockwise or counterclockwise, without skipping any. The polygon is assumed to close automatically from the last point back to the first. For example, to measure a simple L-shape with corners at (0,0), (5,0), (5,2), (2,2), (2,5), (0,5), enter:
- X coordinates: 0, 5, 5, 2, 2, 0
- Y coordinates: 0, 0, 2, 2, 5, 5
Make sure the number of X and Y entries matches. If you enter them out of order (e.g., crossing the shape), the formula will give a wrong result, often negative or nonsensical. Also, the shape must not self-intersect; for a bow-tie or figure-eight, the shoelace formula gives the algebraic area, which can be zero or misleading.
Common Mistakes and Misconceptions
A frequent error is mixing up coordinate units. If your coordinates are in feet, the area is in square feet; if in meters, square meters. Don’t mix feet and meters in the same list. Another mistake is forgetting to close the polygon—but the formula does that automatically, so you don’t need to repeat the first point at the end (though doing so is harmless). Some people think the formula only works for convex shapes, but it works for any simple polygon, including concave ones. However, it does not work for shapes with holes or curved edges; for those, you’d need to break them into simpler parts or use a different method.
Rounding can also cause small errors. If you round coordinates to whole numbers, the area may be off by a few percent for small shapes. For precise land measurements, use as many decimal places as you have.
Limitations and Alternatives
The shoelace formula assumes a flat, planar polygon. It doesn’t account for Earth’s curvature, so for very large areas (like a country) you’d need a geodesic area calculation. For shapes with curved boundaries, you can approximate by using many small straight segments (polygonization), but the more points you use, the more accurate the approximation. If you have a shape that is a combination of standard shapes (rectangle + triangle), you might find it easier to break it up and sum the individual areas. For a circle or ellipse, use the dedicated formulas (Ï€r² or Ï€ab) instead. For a triangle, Heron’s formula or ½×base×height is simpler if you know those dimensions.
Frequently Asked Questions
Can I use this for a shape with more than 10 sides? Yes, the calculator accepts any number of coordinate pairs, as long as you enter them all. The formula works for any polygon with 3 or more vertices.
What if my shape has a hole in it? The shoelace formula only works for a single simple polygon without holes. For a shape with a hole, calculate the outer area and the hole area separately, then subtract the hole area from the outer area.
Do I need to list the points in a specific direction? No, the absolute value in the formula makes the area positive whether you go clockwise or counterclockwise. Just keep them in order around the perimeter.
Can I measure an area from Google Maps using this? Yes, you can pick coordinates from a map (e.g., by right-clicking to get lat/long, then converting to a local coordinate system or using the lat/long as X/Y). However, for large areas, the curvature of the Earth may cause slight inaccuracies; for small plots it’s fine.
What units will the area be in? The area is in the square of whatever units you use for X and Y. If you enter meters, you get square meters; if feet, square feet. To convert, use 1 m² = 10.7639 ft².
Why is my result negative? It shouldn’t be, because the calculator uses absolute value. If you’re doing it by hand, a negative result just means you went in the opposite direction; take the absolute value. If you see a negative in the calculator, check that your coordinates are correct and that the polygon isn’t self-intersecting.
Related
Formula used
in x | X coordinate | m | 0 | 0 in y | Y coordinate | m | 0 | 0 list xs | X coordinates (comma-separated) | 0, 4, 4, 0 list ys | Y coordinates (comma-separated) | 0, 0, 3, 3 out area | Area | m² | abs(sum(i=1 to count(xs)-1, xs[i]*ys[i+1] - xs[i+1]*ys[i]) / 2) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.