Pick's Theorem Calculator

Area49.0 square units
Area at your grid spacing306.3 cm2
Interior points i36
Boundary points b28
How this was calculated
  1. Pick's theorem gives the area of any simple polygon whose vertices sit on lattice points: A = i + b/2 - 1, where i counts the interior points and b counts the boundary points.
  2. A = i + b/2 - 1 = 36 + 28/2 - 1 = 49.0 square units. The theorem needs no side lengths or angles - only the two point counts.
  3. On a physical grid with 2.5 cm spacing, each square unit is 6.25 cm2, so the area is 306.3 cm2.
  4. Pick's theorem works for any simple (non-self-intersecting) lattice polygon, including shapes with dents; for polygons with holes, subtract 1 for each additional hole from the result.

This Pick's theorem calculator turns two simple counts into the area of a polygon whose corners sit on grid points. Enter the number of interior lattice points and the number of boundary points, and it gives you the area in square units. A lattice polygon with 36 interior and 28 boundary points, for example, has an area of 49.0 square units; on a 2.5 cm grid that same shape covers 306.3 cm2. The calculator also runs backwards, so you can solve for a missing count when you already know the area. An area of 82 with 36 boundary points means 65 interior points, and an area of 30.5 with 19 interior points means 25 boundary points; on a coarse 5 cm grid that shape covers 762.5 cm2.

The method behind it is Pick's theorem, published in 1899, and it needs only those two counts: A = i + b/2 - 1, with no side lengths at all. That is why it is the accepted standard for finding the area of a lattice polygon from its grid points. This page shows the formula, step-by-step workings, worked examples and sources, so you can follow every number from the two counts to the final area and check the result yourself.

Worked examples

Find the area

(Area from interior and boundary points · 36 · 28 · 49 · 2.5 cm)

Area49.0 square units
Area at your grid spacing306.3 cm2
Interior points i36
Boundary points b28

Find interior points

(Interior points from area and boundary points · 65 · 36 · 82 · 1 cm)

Interior lattice points65
Area at your grid spacing82.0 cm2
Interior points i65
Boundary points b36

Find boundary points

(Boundary points from area and interior points · 19 · 25 · 30.5 · 5 cm)

Boundary lattice points25
Area at your grid spacing762.5 cm2
Interior points i19
Boundary points b25

Pick's theorem in one line

Pick's theorem states the whole idea in a single line: A = i + b/2 - 1. Here A is the area of a lattice polygon, i is the number of interior lattice points, and b is the number of boundary lattice points. That is the entire formula. There are no side lengths, no angles, no trigonometry, and no coordinate geometry. Two counts and one subtraction give you the area.

Put it to work with a concrete shape. A lattice polygon with 36 interior points and 28 boundary points has an area of 36 + 28/2 - 1 = 36 + 14 - 1 = 49.0 square units. Nothing was measured; nothing was multiplied by a base or a height. The same counts scale with the grid: on a 2.5 cm grid, that 49.0 square units becomes 306.3 cm2. A pick's theorem calculator does exactly this arithmetic, so the only work left is counting the dots inside and on the edge.

The formula also runs in reverse, which is often the more useful direction. If you know the area and one of the two counts, you can solve for the other. An area of 82 with 36 boundary points means 65 interior points, because 82 = i + 18 - 1 gives i = 65. An area of 30.5 with 19 interior points means 25 boundary points, since 30.5 = 19 + b/2 - 1 gives b = 25. On a coarse 5 cm grid, that same shape covers 762.5 cm2. Reversing the formula is handy when a shape is drawn on paper and the boundary dots are easy to count but the interior dots are crowded or partly hidden.

The theorem is usually credited to Georg Pick, who published it in 1899. Its appeal is that it converts a geometric question into a counting question. A shape with many boundary points but few interior points can have the same area as one with the reverse balance, and the formula keeps that trade-off visible: each boundary point contributes half a unit, each interior point a full unit, and the constant 1 is subtracted once at the end.

  • A = i + b/2 - 1, where i counts interior points and b counts boundary points.
  • 36 interior and 28 boundary points: 36 + 14 - 1 = 49.0 square units, or 306.3 cm2 on a 2.5 cm grid.
  • Area 82 with 36 boundary points: 65 interior points.
  • Area 30.5 with 19 interior points: 25 boundary points, or 762.5 cm2 on a 5 cm grid.
Pick's theorem (1899) needs only two counts: A = i + b/2 - 1, no side lengths at all.

Counting interior and boundary points

Every Pick's theorem calculation begins with two counts, and the boundary count is usually the one that trips people up. A boundary point is any lattice point that sits on the edge of the polygon, including the corners. If you simply count the dots you can see along each side, you will double-count every corner, because each corner belongs to two edges. A cleaner method is to count the points on each edge separately and add those counts up, then subtract one count for every vertex so that shared corners are only counted once.

For a single straight edge between two lattice points, the number of boundary points on that edge is gcd(|dx|, |dy|), where dx and dy are the differences in the x- and y-coordinates of the two endpoints. The gcd tells you how many equal lattice steps fit along the edge, and adding the starting point gives the full count of lattice points on that edge, corners included. A horizontal edge of length 6 has gcd(6, 0) = 6, so it carries 7 lattice points. A diagonal edge with dx = 4 and dy = 2 has gcd(4, 2) = 2, so it carries only 3 lattice points. Work around the polygon one edge at a time, and the boundary total b is the sum of those per-edge counts minus the number of vertices.

The interior count i is then whatever the dots strictly inside the polygon add up to. A dot on an edge does not count as interior, and neither does a dot on a corner. Once you have both numbers, a pick's theorem calculator applies A = i + b/2 - 1, which needs only those two counts and no side lengths at all. That is the whole appeal of Pick's theorem, published in 1899: two counts of dots, one short formula, and the area falls out.

Two worked examples show how the counts and the area move together. A lattice polygon with 36 interior and 28 boundary points has area 49.0 square units, since 36 + 14 - 1 = 49; on a 2.5 cm grid that same shape covers 306.3 cm2. Running the formula backwards works just as well: an area of 82 with 36 boundary points means 65 interior points, and an area of 30.5 with 19 interior points means 25 boundary points. On a coarse 5 cm grid, that second shape covers 762.5 cm2. Notice that the boundary count changes the area by half a square unit per point, while each interior point adds a full square unit.

When you check your work, count the boundary twice with two different methods: once edge by edge using gcd(|dx|, |dy|), and once by tracing the outline and tallying dots. If the two totals disagree, a corner has probably been counted twice or missed entirely. Getting b right matters, because an error of one boundary point shifts the computed area by 0.5 square units.

Boundary points on an edge between lattice endpoints: gcd(|dx|, |dy|). Add per-edge counts, subtract shared corners, then use A = i + b/2 - 1.

Solving Pick's theorem backwards

Pick's theorem is usually presented as a way to find area from two counts: A = i + b/2 - 1, where i is the number of interior lattice points and b is the number of boundary points. But the equation is a single relationship among three quantities, so any two of them determine the third. A pick's theorem calculator that runs the formula backwards turns the tool from a checker into a design instrument: instead of measuring a shape you already have, you can specify the area you want and work out the point counts that will produce it.

The first rearrangement solves for interior points. Starting from A = i + b/2 - 1 and isolating i gives i = A - b/2 + 1. Suppose a shape has an area of 82 and 36 boundary points. Then i = 82 - 36/2 + 1 = 82 - 18 + 1 = 65 interior points. The arithmetic is short enough to do by hand, but the value of automating it is that you can sweep through candidate boundary counts quickly and see which ones leave a sensible, non-negative number of interior points — a negative result simply means that combination of area and boundary count cannot occur for a lattice polygon.

The second rearrangement solves for boundary points: b = 2(A - i + 1). Take an area of 30.5 with 19 interior points. Then b = 2(30.5 - 19 + 1) = 2(12.5) = 25 boundary points. This direction is especially useful on a geoboard, where boundary points are the pegs your rubber band touches and interior points are the pegs it encloses. If you want a band that encloses exactly 19 pegs and sweeps out 30.5 square units, you now know it must pass through 25 pegs along its edge. On a coarse 5 cm grid the same shape covers 762.5 cm2, so the peg counts stay the same while the physical size scales with the square of the peg spacing.

Both rearrangements share a practical caution: the counts must be whole numbers, and not every triple of values is realizable. When you solve for i or b, check that the answer is a non-negative integer and that a polygon with those counts can actually be drawn on your grid. The backward forms are best treated as a starting point for construction rather than a guarantee, then confirmed by drawing the shape and recounting.

For comparison, the forward direction is just as compact. A lattice polygon with 36 interior and 28 boundary points has area A = 36 + 28/2 - 1 = 36 + 14 - 1 = 49.0 square units; on a 2.5 cm grid that is 306.3 cm2. Notice that the same 36 appears as an interior count in the forward example and as a boundary count in the backward one — the formula does not care which role a number plays, only that the three values satisfy the equation together.

  • Interior points from area and boundary: i = A - b/2 + 1. Example: A = 82, b = 36 gives i = 65.
  • Boundary points from area and interior: b = 2(A - i + 1). Example: A = 30.5, i = 19 gives b = 25.
  • Check that the computed count is a non-negative whole number before trusting it.
  • Remember that Pick's theorem (1899) needs only two counts — no side lengths at all — which is exactly why it can be inverted so cleanly.
Backwards or forwards, Pick's theorem uses only two counts. Solve for whichever one you are missing, then confirm it by drawing the shape on the grid.

Reading your result

The number a pick's theorem calculator returns is measured in square units, not in square centimeters or square inches. That distinction matters as soon as you want a real-world area. Pick's theorem (1899) gives you A = i + b/2 − 1 using only two counts — interior points and boundary points — and no side lengths at all, so the output is tied to the grid you drew, not to any physical scale. The grid spacing is what converts square units into physical area.

Take a lattice polygon with 36 interior points and 28 boundary points. The formula gives an area of 49.0 square units. On a grid where each spacing is 2.5 cm, that same 49.0 becomes 306.3 cm2. Change only the spacing and the unit count stays at 49.0 while the physical area changes, because each square unit now covers a different amount of paper, screen, or ground.

The effect of spacing is easy to see with a second example. An area of 30.5 square units paired with 19 interior points means 25 boundary points. On a coarse 5 cm grid, that same shape covers 762.5 cm2. The square-unit figure did not move; the spacing did, and the physical area followed it. This is why you should always report the grid spacing alongside any result from a pick's theorem calculator — otherwise the number cannot be interpreted by anyone else.

The calculation also runs in the other direction, which is useful when you know the physical area you want and need to know how many points to expect. An area of 82 square units with 36 boundary points means 65 interior points. Working backward like this lets you check a drawing before you trust its area, or plan a lattice shape that hits a target size.

  • 36 interior + 28 boundary points = 49.0 square units; at 2.5 cm spacing that is 306.3 cm2.
  • 30.5 square units with 19 interior points = 25 boundary points; at 5 cm spacing that is 762.5 cm2.
  • 82 square units with 36 boundary points = 65 interior points.
  • Always record the grid spacing with the result — square units alone do not describe a physical area.
Square units are not physical area until you multiply by the grid spacing. The same 49.0 square units is 306.3 cm2 on a 2.5 cm grid but a different physical area on any other spacing.

FAQs

What is Pick's theorem?

Pick's theorem gives the area of a lattice polygon — one whose vertices sit on grid points — from its interior and boundary point counts. The formula is A = i + b/2 - 1, where i is interior points and b is boundary points. For example, 36 interior points and 28 boundary points give an area of 49.0 square units.

How do I count boundary points on an edge?

An edge between two lattice points contains gcd(|dx|, |dy|) lattice steps, where dx and dy are the differences in the endpoints' x and y coordinates. Add these step counts around every edge of the polygon to get b, the total boundary point count used in Pick's theorem.

Can Pick's theorem find missing points?

Yes. Rearranging the formula lets you solve for either count. Given an area of 82 and a boundary count of 36, the interior point count is 65. Given an area of 30.5 and 19 interior points, the boundary point count is 25. This makes the theorem useful when one count is unknown.

Does Pick's theorem work for shapes with holes?

The standard formula assumes a simple polygon with no holes. When the shape has holes, a correction is needed: subtract 1 more for each hole beyond the standard formula. So each hole lowers the computed area by one square unit relative to the plain A = i + b/2 - 1 result.

How do I convert square units to a real area?

Multiply the lattice area by the square of the grid spacing. For example, an area of 49.0 square units on a grid with 2.5 cm spacing becomes 49.0 × 2.5 × 2.5, which equals 306.3 cm2. This step turns a point-count result into a measurement in real units.

Who discovered Pick's theorem?

Georg Pick published the theorem in 1899. It has since become a staple of school geoboard work, where students count interior and boundary points on a grid, and of computational geometry, where lattice point counts matter for algorithms and area calculations on grid-based shapes.

Sources

Related calculators

Shoelace Formula Calculator
Area of any pentagon from its five corner coordinates, with perimeter and centroid - the surveyor's formula for irregular plots.
Triangular Numbers Calculator
The nth triangular number — 1 + 2 + 3 + … + n, the dot pattern that stacks into a triangle — with the neighbouring triangular number and the square the two of them always make.
Bayes' Theorem Calculator
Update a probability when evidence arrives: prior, sensitivity and false-positive rate in, the posterior probability out — with the base-rate effect made visible.