Sudoku has 6 670 903 752 021 072 936 960 completed grids

The count is 2^20·3^8·5·7·27 704 267 971, and 5 472 730 538 grids are essentially different.

Statistics and data · Level: Classic result · Updated on 2026-11-10

Count the ways to fill a 9 × 9 grid so that every row, column and box holds the digits 1 to 9 once. The answer is 6 670 903 752 021 072 936 960, which the first link prints as 6.6709037520211⋅10+21 by way of the prime factorisation 2²⁰·3⁸·5·7·27 704 267 971 — the second, third and fourth links are three of those factors, 9!, 2²⁰ and 3⁸, and the large prime at the end is what a case analysis produces when nobody has found a closed form. Felgenhauer and Jarvis did it in 2005 by classifying the ways the top band of three boxes can be completed and multiplying out the cases.

Almost all of that number is the same grid wearing a different coat. Renaming the digits, permuting the rows inside a band, swapping bands, transposing: these are symmetries of the puzzle, and the 9! ways of relabelling alone (second link) collapse the count by a factor of 362 880 before anything else is tried. Up to all of the symmetries, 5 472 730 538 essentially different grids remain, obtained with Burnside's lemma rather than by dividing, because a few grids are symmetric and would be undercounted by a straight quotient. The number that matters to anyone solving puzzles is smaller again: a puzzle is a grid with clues removed, seventeen is the fewest clues that can pin a solution down uniquely — proved in 2012 after an exhaustive search that took a year of computing — and every grid with sixteen or fewer clues either has a second solution or none.

Answer

6.6709037520211⋅10+21

How to read it

The prime factorisation of the grid count on the workbench. The second link is 9!, the number of ways to relabel the digits.

Source

Bertram Felgenhauer and Frazer Jarvis, 'Mathematics of Sudoku I', 2005, for the total number of completed grids and the 5 472 730 538 classes under symmetry; the minimum of 17 clues for a puzzle with one solution was proved by McGuire, Borgström and Sudergren in 2012

Work it in the calculator

These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.

This is an independent third-party tool site. It is not affiliated with, sponsored by, or authorised by Casio, Texas Instruments or their distributors. Model names and product names are trademarks of their respective owners and appear here only to identify devices.

The keystroke sequences in these manuals were written from this site's own layout data — the same data the online calculator renders — plus publicly available product facts. Specifications and regional configurations are confirmed against the physical device and the manufacturer's most recent material.