Geometry

Pick's Theorem

For any polygon with vertices on grid points, Area = I + B/2 − 1, where I is the number of interior grid points and B the number on the boundary. Pick a shape and count.

5 minLevel 1/3The interactive stage stays ad-free.
Interior I25Boundary B24I + B/2 − 136.0Actual area36.0

Interior points (green) I = 25, boundary points (amber) B = 24. Pick’s formula gives I + B/2 − 1 = 36.0, matching the actual area 36.0.

Pick’s theorem: for a polygon whose vertices are lattice points, Area = I + B/2 − 1, where I counts interior grid points and B counts boundary grid points. Try the different shapes and watch both sides match.

What you are seeing

1

Count the grid points strictly inside the polygon: that is I.

2

Count the grid points on the boundary: that is B.

3

Then Area = I + B/2 − 1 matches the true area.

Why it matters

Pick’s theorem turns area into simple counting and links geometry with combinatorics on the integer lattice.

Complexity & details

Counting is O(grid area); boundary via gcd is O(edges).

Frequently asked questions

Does it need a lattice polygon?+

Yes — every vertex must be a grid point, otherwise the formula does not apply.