Area Calculator for Irregular Shapes
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 irregular shape you define by a set of points on a flat plane. You enter the x and y coordinates of each corner (vertex), and it returns the enclosed area in square units, using the standard shoelace formula. It is ideal for land plots, floor plans, or any polygon whose sides are straight lines.
Formula
The shoelace formula (also called Gauss’s area formula) computes the area of a simple polygon from its vertex coordinates. For vertices (xâ‚�,yâ‚�), (xâ‚‚,yâ‚‚), …, (xâ‚™,yâ‚™) listed in order around the boundary, the area is:
Area = ½ × | Σ (xᵢ·yᵢ₊� − xᵢ₊�·yᵢ) |
where the sum runs from i = 1 to n, and the last point is followed by the first (xₙ₊� = x�, yₙ₊� = y�). The vertical bars mean absolute value, so the result is always positive. The answer is in square units of whatever you used for the coordinates — if you enter metres, you get square metres; if feet, square feet.
Worked Example
Using the default values, we have a rectangle with corners (0,0), (10,0), (10,6), and (0,6). Plug into the formula:
- Sum of xᵢ·yᵢ₊�: (0×0) + (10×6) + (10×6) + (0×0) = 0 + 60 + 60 + 0 = 120
- Sum of yᵢ·xᵢ₊�: (0×10) + (0×10) + (6×0) + (6×0) = 0 + 0 + 0 + 0 = 0
- Difference: 120 − 0 = 120
- Half of absolute value: 120 / 2 = 60
The calculator shows 60.00 m², which matches the expected length × width = 10 × 6 = 60 m².
How the Shoelace Formula Works
Imagine walking around the polygon in order. At each edge, you compute the cross product of the position vectors of the two endpoints — that gives the signed area of a trapezoid under that edge. Summing these signed areas cancels out everything outside the polygon, leaving exactly twice the enclosed area. The absolute value handles the case where you list the points clockwise instead of counterclockwise, which would otherwise give a negative result.
The formula works for any simple polygon (no self-intersections) with straight sides. It does not matter where the shape sits relative to the origin — the result is translation-invariant. For a shape with many vertices, the pattern is the same: multiply each x by the next y, subtract each y by the next x, sum, divide by two.
When to Use This Calculator
Use this tool whenever you have a shape whose boundary is a series of straight line segments and you know the coordinates of the corners. Common real-world cases:
- Surveying an irregular land plot from GPS or a map with corner coordinates
- Calculating the floor area of a room with angled walls or alcoves
- Estimating the area of a garden, lawn, or field from a scaled drawing
- Finding the area of a polygon in a CAD file or GIS system
If your shape has curved edges (a circle, an ellipse, a wavy boundary), this calculator will only approximate it — you would need to sample many points along the curve, or use a different formula for the specific curve type.
How to Enter Coordinates Correctly
List the vertices in order, either clockwise or counterclockwise, without skipping any. The calculator assumes the last point connects back to the first. For a triangle you need exactly 3 points; for a quadrilateral 4; and so on. The number of vertices field determines how many coordinate pairs are used — if you set it to 5 but only fill 4 pairs, the fifth is treated as (0,0), which likely distorts the shape.
Units matter: keep all coordinates in the same unit. Mixing metres and feet will give a meaningless result. Also remember that the area scales with the square of the unit — a shape that is 10 m wide gives 100 m², but the same shape in centimetres (1000 cm) gives 1,000,000 cm², which equals 100 m² only after conversion.
Common Mistakes and Misconceptions
One frequent error is entering points in the wrong order. If you list them randomly rather than around the perimeter, the formula may produce a self-intersecting polygon, and the result will not match the actual shape you have in mind. Another mistake is forgetting to close the polygon — the formula automatically closes it, so if you give 4 points for a rectangle, you only need 4, not 5 (the fifth would repeat the first).
A common misconception is that the shoelace formula gives the area of any shape, including those with curved sides. It does not — it only works for polygons. For a circle, you need πr²; for an ellipse, πab. If you approximate a curve with many short straight segments, the error shrinks as you add more points, but it never becomes exact unless the curve is actually polygonal.
Also note that the formula assumes a flat plane. On the Earth’s surface, a large land plot actually lies on a sphere, so the true area differs slightly from the planar calculation. For plots under a few kilometres, the difference is negligible for most purposes.
Limitations and Alternatives
This calculator is limited to polygons with straight sides and a known set of vertex coordinates. If you have a shape described by a function (like y = x²), you need integration instead. If you have an irregular curve from an image or a scanned drawing, you could digitise it into many points and then use this tool, or use a planimeter-style numerical method like the trapezoidal rule or Simpson’s rule.
For shapes with holes (a donut-shaped plot), the shoelace formula gives the area of the outer boundary minus the inner boundary if you treat the hole as a separate polygon with reversed vertex order — but this calculator does not handle holes directly; you would compute the outer area and subtract the inner area manually. For very complex shapes, GIS software or CAD tools with built-in area functions are more practical.
Frequently Asked Questions
Can I use this for a shape with curved edges? Not exactly. The formula assumes straight lines between your points. If you approximate the curve with many short line segments, the result will be close, but not exact. For a true curve, use the appropriate geometric formula (circle, ellipse) or calculus.
What if I list the points clockwise instead of counterclockwise? It makes no difference to the final answer because of the absolute value. The formula gives a negative number for clockwise order, but the calculator takes the absolute value, so you get the same positive area either way.
How do I get coordinates for a real piece of land? Use a GPS device, a mapping app that shows latitude/longitude (convert to a local planar coordinate system like UTM), or a surveyor’s drawing that lists corner coordinates. For a floor plan, measure distances from a reference corner and use those as x,y values.
Why does the result seem too large or too small? Check your units. If you entered coordinates in metres, the area is in square metres. If you wanted square feet, you must convert the coordinates to feet first, or convert the final area (1 m² = 10.7639 ft²). Also verify that you entered all vertices in order and that the number of vertices matches the number of coordinate pairs you filled.
Can I use this for a shape with more than 4 sides? Yes, the calculator accepts up to 6 vertices in the current setup, but the formula itself works for any number. If you need more, you can break the shape into smaller polygons and sum their areas, or use a tool that allows more points.
Does the formula work for concave shapes (like an L-shape)? Yes, as long as the polygon is simple (no self-intersections). The shoelace formula handles concavities correctly because the signed areas cancel appropriately. Try an L-shape with coordinates (0,0), (4,0), (4,2), (2,2), (2,4), (0,4) — the formula gives 12 square units, which matches the sum of two rectangles (4×2 + 2×2).
Related
Formula used
in n | Number of vertices | - | 4 | 3 in x1 | x-coordinate of point 1 | m | 0 | 0 in y1 | y-coordinate of point 1 | m | 0 | 0 in x2 | x-coordinate of point 2 | m | 10 | 0 in y2 | y-coordinate of point 2 | m | 0 | 0 in x3 | x-coordinate of point 3 | m | 10 | 0 in y3 | y-coordinate of point 3 | m | 6 | 0 in x4 | x-coordinate of point 4 | m | 0 | 0 in y4 | y-coordinate of point 4 | m | 6 | 0 out area | Area | m² | abs((x1*y2 + x2*y3 + x3*y4 + x4*y1 - y1*x2 - y2*x3 - y3*x4 - y4*x1) / 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.