By George Hart for the Museum of Mathematics


There are many ways to calculate an approximation to pi, but rarely is math as delicious as in this idea from Davidson College professor Tim Chartier. Make a quarter circle in a square of graph paper and place chocolate chips on the squares that lie completely inside the circle. If you now count the chips and compute four times the number of chocolate chips divided by the total number of squares, that will be approximately pi. Here, there are 22 chips out of 36 squares, so we calculate 4∙22/36=2.444, which is off by about 0.7 from 3.14, so is not a very close estimate of pi, but we can improve it.

candy pi 1 Math Monday: Candy Pi Calculator

But if you are willing to invest in more chocolate, you will get a better answer. In the 11×11 grid below, you can count 83 chips, giving a somewhat better approximation of 4∙83/121=2.74.

candy pi 2 Math Monday: Candy Pi Calculator

For an even better approximation, you’ll want to have a group of helpers. Tim and friends counted 2232 chips in a 54×54 grid, resulting in an approximation of 3.06, which is getting pretty close to pi. The best thing about this chocolate calculation is that it is sure to end with a pi eating event. The full report is here.

candy pi 4 Math Monday: Candy Pi Calculator

See all of George Hart’s Math Monday columns

Gareth Branwyn

Gareth Branwyn is a freelancer writer and the former Editorial Director of Maker Media. He is the author or editor of a dozen books on technology, DIY, and geek culture, including the first book about the web (Mosaic Quick Tour) and the Absolute Beginner’s Guide to Building Robots. He is currently working on a best-of collection of his writing, called Borg Like Me.

blog comments powered by Disqus

Related Supplies at Maker Shed


Get every new post delivered to your Inbox.

Join 28,772 other followers