The Science Behind Sudoku

Solving a Sudoku puzzle requires no math, not even arithmetic. Even so, the game poses a number of intriguing mathematical problems

Join Our Community of Science Lovers!


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


One might expect a game of logic to appeal to very few people--mathematicians, maybe, computer geeks, compulsive gamblers. Yet in a very short time, Sudoku has become extraordinarily popular, bringing to mind the Rubik's cube craze of the early 1980s.

Unlike the three-dimensional Rubik's cube, a Sudoku puzzle is a flat, square grid. Typically it contains 81 cells (nine rows and nine columns) and is divided into nine smaller squares containing nine cells each; call them subgrids. The game begins with numbers already printed in some cells. The player must fill in the empty cells with the numbers 1 to 9 in such a way that no digit appears twice in the same row, column or subgrid. Each puzzle has one unique solution.

Jean-Paul Delahaye is a professor emeritus of computer science at the University of Lille in France and a researcher at the Research Center in Computer Science, Signal and Automatics of Lille (CRIStAL). He recently published Les Mathématiciens Se Plient au Jeu (Belin, 2017), a French collection of articles from Pour la Science.

More by Jean-Paul Delahaye
Scientific American Magazine Vol 294 Issue 6This article was published with the title “The Science behind Sudoku” in Scientific American Magazine Vol. 294 No. 6 ()
doi:10.1038/scientificamerican062006-zRM6931YxddullIWWozW2

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe