How this calculation works
A convex polygon is the intersection of its edge-interior half-planes. Clipping one convex boundary against each edge of the other constructs their common region. This calculator accepts either winding direction, checks strict convexity and returns the clipped vertices before measuring their area and perimeter. Its plot shows both input boundaries and the resulting intersection, allowing the numerical construction to be compared with the geometry.
Intersection = A ∩ B = points satisfying every interior supporting-edge half-plane of both convex polygons.A worked example
Polygon A is the square from (0,0) to (4,4). Polygon B has corners (2,−1), (5,−1), (5,2), (2,2). Their common region is the rectangle with x from two through four and y from zero through two. Its vertices are the four corners of that rectangle, its area is four and its perimeter is eight. Swapping the two polygons preserves these measurements.
Good to know
Both polygons must be strictly convex, ordered boundaries with 3–30 vertices and no redundant collinear edge points. Concavity, crossings and holes are unsupported. Numerical coordinate scaling and half-plane tolerances are used. Point- or segment-only contact has zero area and polygon perimeter zero, even when contact vertices are available. Very thin intersections may be unresolved; output is not an exact-predicate computational-geometry certificate.
Reference: CGAL — 2D polygon operations and geometric conventions (opens in a new tab) ↗
The input must describe edges, not just an unordered cloud
Successive vertices define the supporting edges and the final vertex connects back to the first. An unordered set can trace a crossing path or a different boundary, so this workflow cannot infer the intended shape from a cloud. Clockwise and counterclockwise versions of the same valid convex boundary are equivalent and are normalized internally. Repeated closing coordinates may be removed, but extra collinear boundary points are rejected.
Clipping keeps vertices that lie inside a half-plane and inserts edge intersections when a segment crosses its boundary. Repeating that operation over all clip edges preserves convexity. The final vertex order can start at a different corner from a hand calculation without describing a different shape. Compare cyclic boundaries and measurements rather than requiring one arbitrary first vertex.
The Convex polygon offset and inset calculator moves supporting lines by a signed distance; this page intersects two independently supplied boundaries.
Touching boundaries and positive common area should not be conflated
Two closed polygons can share a vertex or a boundary segment while having no positive-area intersection. The calculator keeps the classification separate from the area and uses zero polygon perimeter for those lower-dimensional contacts. Doubling the length of a contact segment would be a different convention and would misleadingly treat the segment as if it enclosed a region. Inspect the contact vertices when that distinction matters.
A general nonconvex intersection may have several disjoint components or holes, which this convex method does not represent. Entering a concave shape and hoping the convex plot looks reasonable can solve a different problem. The ordinary polygon area calculator measures an already supplied boundary; this page must first construct the common boundary. That construction, along with its convexity checks, is the substantive additional task rather than a renamed shoelace formula.
A few questions, answered
Can I use concave polygons?
No. This page validates strict convexity. General polygon clipping needs a method that can represent multiple components and holes.
Why is the intersection vertex order different from mine?
A polygon boundary can start at any vertex. Cyclic shifts and reversed winding can describe the same region; area and geometric edges are the meaningful comparison.