Maths & numbers
Point-in-polygon checker
Test whether a point lies inside, outside or on the edge of a polygon.
A clear answer. Here’s how.
Validates a simple 3–500-vertex polygon, then applies the even–odd crossing rule. Boundary points are reported separately using a distance tolerance of 10⁻¹⁰ × max(1, largest absolute coordinate). Coordinates must share one Cartesian system; no geographic projection is inferred. Near-boundary results depend on the tolerance. Includes a coordinate plot of the polygon and query.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Point CSV
X,Y 0,0 4,0 4,3 0,3
- Query point X
- 2
- Query point Y
- 1
Example result
- Point classification
- Inside
Even–odd test with a scale-relative boundary tolerance. A point on an edge is reported separately.