Skip to content
Omnikalc

Pick’s theorem calculator

Enter the number of interior and boundary lattice points of a polygon drawn on a grid to get its area, its real area for a grid spacing, and the number of lattice points when the polygon is enlarged.

Updated on
Your inputs

Value out of range

Value out of range

in

Value out of range

Value out of range

Results

Area in grid squares

11.0

Real area

11.00 in²

Lattice points when enlarged (inside and on the boundary)

115

Interior points when enlarged
85
Boundary points when enlarged
30
Area when enlarged, in grid squares
99.0

The Pick’s theorem calculator gives the area of a lattice polygon from its number of interior and boundary lattice points, the real area for a given grid spacing, and the number of lattice points after the polygon is enlarged by a whole factor.

How the calculation works

  • Enter the number of interior points and boundary points of the polygon on the grid.
  • Enter the grid spacing and the enlargement factor.
  • Read the area, the real area and the points after enlargement.

Example

A polygon with 7 interior points and 10 boundary points has an area of 11.0 grid squares. On a grid of 1 in, the real area is 11.00 in². Enlarged 3 times, the area becomes 99.0 squares and the shape holds 115 lattice points, of which 85 are inside and 30 on the boundary.

Why it matters

The calculator helps students, teachers, puzzle makers and map readers who find the area of a shape drawn on dotted paper, check a result found with another method, or explore how the number of lattice points grows when a shape is scaled up.

Good to know

Count the points carefully: the vertices are boundary points. The polygon must be simple, with no crossing sides and no holes, and its vertices must be on grid points. If you know the area and the boundary points, you can find the interior points with I = A − B / 2 + 1. The area is exact: with whole numbers of points the result is always a multiple of one half. For a real grid, multiply by the square of the spacing.

The triangle calculator finds areas from sides, the regular polygon calculator treats regular polygons, the polygon area calculator uses coordinates and the cyclic quadrilateral calculator treats another special shape.

Frequently asked questions

What does Pick’s theorem say?

For a simple polygon whose vertices are on the points of a square grid, the area is A = I + B / 2 − 1, where I is the number of lattice points strictly inside and B the number on the boundary, vertices included. The area is counted in grid squares. It is a quick way to find an area by counting dots.

Does it work for any polygon?

It works for any simple polygon, convex or not, with its vertices on lattice points and without holes. A polygon with holes needs a correction with the number of holes. The theorem does not apply to curves or to polygons whose vertices are off the grid.

How do I count the boundary points?

The number of lattice points on a segment between two lattice points is the greatest common divisor of the differences of the coordinates, plus 1, with the endpoints. Summing the gcd of each side gives B. A segment of 3 across and 6 up has gcd 3 and passes through 3 grid steps.

What is the Ehrhart extension?

If you enlarge the polygon by a whole factor k, the number of lattice points inside and on the boundary is A × k² + B × k / 2 + 1, a polynomial in k. The interior points are A × k² − B × k / 2 + 1 and the boundary points B × k. It helps to count points in large scaled shapes.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.