Polygon Area Calculator

Calculate the area inside ordered coordinates, subtract cutouts and inspect boundaries, centroid and point location on one consistently scaled plan.

Explore the shape

Net area39 units²
View area and diagram

Net area 39 square units. 1 boundaries, 6 vertices.

Examples and reset

Define the boundaries

One x,y pair per line; no header. Tabs also work. Follow the boundary in order. Use one consistent length unit for all boundaries.

Up to 8 cutouts; 3–200 vertices per boundary and 500 total. Cutouts must be strictly inside, separate, and free of touching or crossing edges.

Inspect a point

Point inspection distinguishes material, cutouts, the exterior and exact boundary contact. It does not change the diagram's scale.

Area and boundaries

Net retained area

39 units²

Exact for the entered coordinate values. Measurement uncertainty is not included.

Outer area

39 units²

Removed by cutouts

0 units²

Outer perimeter

≈32 units

Cutout boundaries

≈0 units

Total boundary length: ≈32 units.

Area centroid

x = 79/26
y = 79/26

Outside the outer boundary. This is the balance point of uniform area, which may lie outside the retained material.

Explore the plan

See the retained area

Blue fill is retained material. Dashed boundaries enclose cutouts. The cross marks the area centroid; an amber outline follows your selection. Both axes use the same scale.

Coordinate origin: x = 0, y = 0. Axis labels show offsets from this origin, in coordinate units.

Horizontal: x offset · vertical: y offset

The vertex and edge inspectors retain exact coordinates when fine details overlap in this drawing. A centroid can lie outside the retained material.

Selection follows the active Boundary. Use the keyboard to inspect every vertex or edge, including details too small to separate visually.

Vertex 1

x = 0
y = 0

Coordinate row 1.

Boundary summaries and exact quantities
Cutout roles determine subtraction; winding does not change retained area. Lengths are approximate.
BoundaryRoleVerticesAreaPerimeterOrientationShape
Outer boundaryOuter639 units²≈32 unitscounterclockwiseConcave

Exact net area: 39 units². Bounding width: 8 units; height: 8 units.

Coordinates and edge ledger

Outer boundary. Signed area terms follow authored winding and sum to the ring's signed area. They are algebraic contributions, not separate physical tiles.

Exact coordinates in the original coordinate system.
VertexInput rowxy
110 units0 units
228 units0 units
338 units3 units
443 units3 units
553 units8 units
660 units8 units
Every edge closes to the next vertex, including the last-to-first edge.
EdgeInput rowsΔxΔyLengthSigned area term
11 → 28 units0 units≈8 units0 units²
22 → 30 units3 units≈3 units12 units²
33 → 4-5 units0 units≈5 units7.5 units²
44 → 50 units5 units≈5 units7.5 units²
55 → 6-3 units0 units≈3 units12 units²
66 → 10 units-8 units≈8 units0 units²

Save and reuse your plan

Complete report CSV
Complete input and import

Includes every boundary, its raw coordinate text, and retained point drafts.

Complete input replaces the plan atomically. To enter one boundary, use its two-column Boundary coordinates editor instead.

What the result means

This is planar geometry from ordered Cartesian coordinates. The model checks simple boundaries, strict cutout containment and exact contact before calculating area and the uniform-area centroid. Lengths use numerical square roots. Coordinate exactness does not establish measurement or survey accuracy. Latitude/longitude, curved edges and disconnected outer regions are outside this model.

Method references: polygon area and centroid · simple polygon geometry.

How to use this calculator

  1. Choose Boundary and enter Boundary coordinates in walking order around the outline. Use one x,y pair per line without a header, with commas or tabs consistently separating the two columns. Use one common coordinate unit; the last point connects to the first.
  2. Use Add cutout for each excluded area, and edit its Boundary label and coordinates separately. Keep cutouts strictly inside the outline, without touching, crossing or nesting. Either winding direction is accepted. Remove selected cutout removes that boundary from the plan.
  3. Read the net area, outer and removed areas, area centroid and three separately named boundary lengths. Correct any boundary or row error before relying on combined results; an invalid cutout is not silently omitted. A repeated final closing pair is normalized with a notice.
  4. Select a vertex or edge to connect its coordinates and measurements with the equally scaled plan and data table. Read the exact origin and offsets for large coordinates. A small-detail warning means some features may be hard to distinguish at this scale; exact area and edge values remain available.
  5. Enable Inspect a point and enter Point x and Point y to distinguish material, exterior, cutout and boundary locations. The area centroid is classified separately and may validly lie outside the retained shape. An invalid enabled point keeps the valid geometry visible but blocks a complete report.
  6. Choose Input format, paste a complete polygon input or choose an input file, then use Apply complete input for atomic replacement. Complete polygon input preserves raw coordinate tables and inactive point drafts. Download complete input for reuse or Download complete report for all available results; the selectable report contains the same bytes.

The Formula

The mathematical logic powering this calculation is:

For an ordered ring, let dᵢ = xᵢyᵢ₊₁ − xᵢ₊₁yᵢ, with the final vertex connected to the first. Signed area A = ½Σdᵢ. The area centroid is Cₓ = Σ(xᵢ + xᵢ₊₁)dᵢ/(6A), Cᵧ = Σ(yᵢ + yᵢ₊₁)dᵢ/(6A). Signed area records authored orientation; each edge term is algebraic, not a separate physical tile.
Retained area = outer area − Σcutout area. Its first moments are the outer area's centroid moments minus each cutout's moments. Divide those retained moments by retained area for the combined centroid, independent of the authored winding directions.
An edge length is √[(xᵢ₊₁ − xᵢ)² + (yᵢ₊₁ − yᵢ)²]. Outer perimeter, cutout-boundary sum and total boundary length are reported separately. Exact coordinate differences precede approximate square roots and compensated summation. Areas, coordinates and centroid fractions remain exact for the entered decimal values; lengths are marked approximate.
Exact orientation, on-segment and intersection predicates validate the rings before combined results. Cutouts must be strictly inside and mutually disjoint, without touching or nesting. The diagram subtracts an exact origin and uses one x/y scale; small projected features never change the exact geometry. These are planar Cartesian calculations, not geodesic or surveyed measurements.

Worked Example

If you input:

  • Boundary: Outer boundary
  • Boundary coordinates: (0,0), (8,0), (8,3), (3,3), (3,8), (0,8)
  • Coordinate assumption: One consistent generic length unit
  • Cutouts: None
  • Inspect a point: Off; retained coordinates (2,2)

Result:

The L-shaped outline has net and outer area 39 square units, no removed area, and an outer/total boundary length of approximately 32 units. Its uniform-area centroid is exactly (79/26,79/26), approximately (3.038462,3.038462). Both coordinates exceed 3, so this valid centroid lies outside the retained L-shaped material. Point inspection is disabled; the saved point draft is (2,2).

Frequently Asked Questions

What coordinates and vertex order do I need?

Enter the vertices consecutively as you walk around each boundary. The tool connects the final point back to the first; it does not sort an unordered point cloud or infer a shape from side lengths. Clockwise and counterclockwise input are both accepted because outer and cutout roles are explicit. Forward collinear subdivisions are allowed. A single final pair equal to the first is normalized with a notice, while the original text remains in reusable input.

Which cutouts are allowed?

Each cutout must be a simple closed boundary strictly inside the outer outline. Cutouts cannot touch the outline, touch or overlap one another, or nest inside one another. Every boundary edge is checked; vertices inside a concave outline alone do not prove that their connecting edges remain inside. An invalid cutout prevents combined results rather than being dropped or counted twice. Multiple disconnected outer regions and islands inside cutouts are outside this scope.

Does perimeter include the cutout boundaries?

Three results make the convention explicit: outer perimeter follows only the outside outline, cutout boundary length sums all inner boundaries, and total boundary length adds both. Edges are measured from exact coordinate differences before approximate square roots; rounding occurs after the calculation. These geometric lengths do not add waste, material thickness, joining allowance or a purchasing recommendation. Every valid edge is positive, even if its compact display needs scientific notation.

Why can the centroid lie outside the polygon or in a cutout?

The reported centroid is the balance point of uniform retained area, computed from area-weighted first moments. It is not the average of the vertices and is not guaranteed to be a point within the material. A concave outline or a courtyard can place it outside the retained region. The tool classifies that location without rejecting the valid geometry. It does not supply a guaranteed interior label point, support position or safe placement recommendation.

How are narrow shapes and very large coordinate offsets handled?

Topology, areas and coordinate differences use exact decimal-derived arithmetic before any drawing approximation. The plot uses one x/y scale and labels offsets from an exact local origin, so large absolute coordinates do not erase small differences during subtraction. Some distinct vertices or edges can still be indistinguishable at screen resolution; their identities and exact values remain available. Warnings describe that limitation without inflating a cutout or replacing a positive edge with zero.

What units are used, and can I enter latitude and longitude?

Use one consistent Cartesian length unit for every coordinate. Length results use that unit and areas use its square; there is no unit conversion or relabeling control. If coordinates represent metres, the area is square metres. Geographic latitude/longitude, curved earth measurements and projection corrections are not included. Exact arithmetic describes the entered values and does not establish survey accuracy or the uncertainty of their measurements.

What are the input limits and invalid-input behavior?

Use one outer boundary and up to eight cutouts, with 3–200 normalized vertices per boundary and at most 500 total. Raw caps allow 201 rows per boundary and 509 total to retain one closing duplicate each. Coordinate atoms allow 64 characters, 24 significant digits, 12 effective decimal places, exponents −100 to 100 and absolute magnitude at most 1e12. Fractions and expressions are not coordinate inputs. Blank required drafts remain invalid; an invalid enabled point preserves valid geometry but blocks the complete report, while disabled point drafts remain saved and unparsed.

Similar Calculators