Introduction
A shape drawn on a square grid can be measured without splitting it into rectangles or estimating partial squares. If its corners lie on grid points, count the points inside and on the boundary, then use a simple formula to find its area. This method, known as Pick’s theorem, turns a visual counting task into an exact calculation.
The grid-point area formula
For a simple polygon whose vertices are all grid points, the area is given by Pick’s theorem:
Area = I + B/2 − 1
Here, I is the number of grid points strictly inside the polygon, and B is the number of grid points on its boundary. A grid point is an intersection of horizontal and vertical grid lines. The formula counts points, not the small squares around them.
The result is the area in square grid units. If the grid spacing is one centimetre, for example, each unit of area represents one square centimetre. If the spacing is a different length, the numerical area must be scaled accordingly.
The method is especially useful for irregular shapes. Instead of finding the lengths and angles of every side, you need only identify two counts: interior points and boundary points. The theorem then combines them in a fixed way.
What kinds of shapes qualify?
Pick’s theorem applies to a simple lattice polygon. A lattice point is a point with integer coordinates, such as (2, 5) or (−1, 3). A lattice polygon is a polygon whose vertices are lattice points. The sides may slope in any direction, provided they are straight.
“Simple” means that the polygon’s sides do not cross one another, and the shape does not have holes. It may be concave, meaning it has an inward notch, as long as its boundary does not intersect itself. The theorem does not directly apply to a shape with curved edges or corners that fall between grid points.
These conditions matter because the formula relies on a precise relationship between the polygon’s boundary and the grid. A drawing that looks close to a lattice polygon is not enough: its vertices must actually land on grid points for the result to be guaranteed.
How to count the points
Count the interior points
Interior points are grid intersections completely inside the polygon. Points on an edge or at a corner are not included in I. A practical approach is to scan the shape row by row, counting the points that fall within its outline on each horizontal grid line.
For a complicated outline, it can help to mark each interior point as it is counted. Take care not to count a point twice where a row passes through a narrow part of the polygon, and do not include points that lie on the boundary.
Count the boundary points
Boundary points include every grid point along the polygon’s edges, including all vertices. A sloping edge can pass through additional grid points between its endpoints, so counting only the corners may give the wrong value.
There is a convenient way to find how many grid intervals each edge spans. If an edge connects points whose horizontal coordinates differ by a and whose vertical coordinates differ by b, the number of grid intervals along that edge is the greatest common divisor of |a| and |b|. The greatest common divisor is the largest whole number that divides both values without a remainder.
For example, an edge from (1, 1) to (7, 4) changes by 6 horizontally and 3 vertically. The greatest common divisor of 6 and 3 is 3, so the edge contains three grid intervals and four grid points when both endpoints are included.
When adding the edge counts around a polygon, each vertex belongs to two adjacent edges. To avoid counting every corner twice, add the number of intervals on each edge rather than the number of points on each edge. The total is B:
B = sum of gcd(|change in x|, |change in y|) for all edges
Horizontal and vertical edges fit the same rule. A horizontal edge that spans five grid units has gcd(5, 0) = 5, while a vertical edge that spans four has gcd(0, 4) = 4.
A step-by-step example
Consider a right triangle with vertices at (0, 0), (4, 0), and (0, 3). Its base is four grid units long and its height is three. The familiar triangle formula gives an area of (4 × 3)/2 = 6 square units. We can check that answer using grid points.
First, count the boundary points. The horizontal edge from (0, 0) to (4, 0) contributes gcd(4, 0) = 4. The vertical edge from (0, 3) to (0, 0) contributes gcd(0, 3) = 3. The diagonal from (4, 0) to (0, 3) changes by four units horizontally and three vertically, so it contributes gcd(4, 3) = 1.
Therefore, B = 4 + 3 + 1 = 8. The points at the triangle’s three corners are already accounted for by this sum; they should not be added separately. Looking inside the triangle, there are three interior grid points: (1, 1), (2, 1), and (1, 2). Thus, I = 3.
Now apply Pick’s theorem: Area = 3 + 8/2 − 1 = 6 square units. The point-counting method agrees with the ordinary geometric calculation, despite the triangle having a sloping side.
Why the formula makes sense
At first, it may seem surprising that two counts can determine the area of many different polygon shapes. The key is that the count of boundary points carries information about how the edges pass through the grid, while the interior count records how much of the grid lies within the outline.
A useful way to build intuition is to imagine dividing a lattice polygon into smaller triangles whose vertices are grid points. A triangle with no grid points inside it or along its edges is called a primitive lattice triangle. Such a triangle has area one-half square unit. More complicated lattice polygons can be assembled from these small pieces, and the boundary and interior counts change in a coordinated way as the pieces are joined.
A full proof uses a careful accounting of how vertices, edges, and faces fit together when a polygon is divided into triangles. That accounting leads to the constant “minus one” in the formula. The important practical point is that the relationship is exact, not an estimate based on how densely the grid appears to cover the shape.
Using the theorem on other examples
A rectangle
Take a rectangle with corners (0, 0), (5, 0), (5, 3), and (0, 3). Its interior points form four columns by two rows, so I = 8. The boundary has 5 + 3 + 5 + 3 = 16 points when counted without double-counting the corners. Pick’s theorem gives 8 + 16/2 − 1 = 15 square units, matching the rectangle’s length-times-width area.
A polygon with a sloping side
Consider a triangle with vertices (0, 0), (6, 0), and (2, 4). Its three edges contribute 6, 4, and 4 boundary intervals, so B = 14. If a diagram or a careful row-by-row count shows five interior points, then its area is 5 + 14/2 − 1 = 11 square units. This illustrates why sloping edges must be checked for intermediate grid points: their contribution is not always just one point per side.
Common counting mistakes
Including edge points among the interior points: I counts only points strictly inside. All points on an edge, including corners, belong to B instead.
Counting only the vertices: An edge may pass through several grid intersections between its endpoints. Use the greatest-common-divisor method or inspect the grid carefully.
Counting each corner twice: When counting boundary points by edges, add the number of grid intervals on each edge. Adding the endpoint-inclusive point count for every edge would count each vertex twice.
Using the rule for a shape that does not qualify: Curved outlines, self-crossing polygons, and polygons with holes need different treatment. Do not apply the basic formula to them as if they were simple lattice polygons.
Mixing up lengths and area: The formula returns square grid units, not a side length. If each grid interval measures two metres, one square grid unit covers four square metres, so the calculated unit area must be converted.
When this method is useful
Pick’s theorem is handy in geometry lessons, grid-based puzzles, and problems where a polygon’s outline is known but measuring its angles would be awkward. It also provides a way to check an area found by another method. If the two results disagree, the most likely cause is a missed or double-counted grid point, or an incorrect assumption about the shape’s vertices.
The method is not always the fastest choice. For a rectangle, multiplication is simpler; for a triangle, base times height divided by two may be easier. Pick’s theorem is most distinctive when the shape is irregular but its grid points are easy to count.
Conclusion
To find the area of a simple polygon with grid-point vertices, count the points strictly inside it and the points along its boundary, then calculate I + B/2 − 1. Count sloping edges carefully, since they may pass through extra grid intersections. With the right shape and consistent counting, this compact rule gives an exact area in square grid units.

