Custom Match Decks - The best free custom matching card generator and maker online
Mathematics & Game Design

The Mathematics Behind Dobble: Finite Projective Planes Explained Simply

A deep dive into finite projective geometry, Galois fields, and how prime numbers generate the magical matching property of Dobble.

Jorge Bendek (CustomMatchDecks Creator)10 min readUpdated Sep 17, 2026

Key Takeaways & Quick Facts

  • Dobble cards correspond to lines, and symbols correspond to points in a finite projective plane $PG(2, p)$.
  • The projective geometry axiom guarantees that any two distinct lines intersect at exactly one point.
  • For a prime order $p$, the deck has $N = p^2 + p + 1$ cards, $N$ unique symbols, and $p + 1$ symbols per card.
  • Commercial Dobble uses prime $p = 7$: $7^2 + 7 + 1 = 57$ cards, though commercial tins contain 55 cards for packaging efficiency.

The Core Geometric Mystery: Why Does It Always Match?

Anyone who has played Dobble or Spot It has marveled at the mathematical guarantee: draw any two cards from the tin, and no matter which two cards you pick, there is always exactly one symbol in common. Never zero. Never two. Always precisely one.

This is not accidental shuffling or brute-force software layout. It is a direct physical manifestation of finite geometry — specifically, the projective plane of order 7 over the Galois field $\mathbb{F}_7$.

The Axioms of a Finite Projective Plane

In ordinary Euclidean plane geometry, two parallel lines never intersect. Projective geometry removes this asymmetry by introducing "points at infinity," ensuring that every pair of lines intersects. A finite projective plane of order $p$ obeys four strict mathematical axioms:

Game Mapping Translation
In game terms: Cards = Lines, and Symbols = Points. Axiom 2 guarantees that any two cards (lines) intersect at exactly one symbol (point)!
  1. Axiom 1: Any two distinct points lie on exactly one common line.
  2. Axiom 2: Any two distinct lines intersect at exactly one common point.
  3. Axiom 3: Every line contains exactly $p + 1$ points.
  4. Axiom 4: Every point is contained in exactly $p + 1$ lines.

The Formula: $N = p^2 + p + 1$

Whenever $p$ is a prime number (or a prime power $p = q^k$), a projective plane of order $p$ exists. The total count of cards $N$ and total symbols $S$ is given by the formula $N = p^2 + p + 1$:

Order ($p$)Symbols per Card ($p+1$)Total Cards ($p^2+p+1$)Total Symbols RequiredCommercial / DIY Use
$p = 2$3 symbols7 cards7 symbolsIntroductory math puzzles
$p = 3$4 symbols13 cards13 symbolsCustomMatchDecks Quick Start (Free)
$p = 5$6 symbols31 cards31 symbolsCustomMatchDecks Medium Deck
$p = 7$8 symbols57 cards57 symbolsCommercial Dobble / Spot It & Full Set

Why Does Commercial Dobble Have 55 Cards Instead of 57?

Math enthusiasts frequently notice that a commercial Dobble tin includes 55 cards, not 57. Is the math flawed? Not at all.

The complete mathematical plane for $p=7$ has 57 cards. The original game inventors (Jacques Cottereau and Denis Blanchot) and Asmodee decided to remove 2 cards during mass manufacturing to optimize sheet printing layouts (e.g., standard print presses layout grids of $7 \times 8 = 56$ or $5 \times 11 = 55$). Removing 2 cards preserves the rule that any remaining pair still shares exactly one symbol, although two symbols will appear on 7 cards instead of 8.

With CustomMatchDecks, you can download the full, mathematically pure 57-card deck!

Free Online Generator

Ready to Create Your Custom Matching Card Game?

Upload personal photos, remove backgrounds automatically with AI, and download your print-ready A4/Letter PDF. Start with 13 cards completely free — no credit card required.

Launch Card Creator Free

Frequently Asked Questions

Can you build a Dobble deck with 5 symbols per card?

No finite projective plane exists with 5 symbols per card because that requires $p + 1 = 5$, meaning $p = 4$. While prime powers like $p=4$ (21 cards) exist, symmetric designs with arbitrary symbol counts require balanced incomplete block designs (BIBDs).

Who invented the game Dobble?

The game was inspired by the 1850 Kirkman schoolgirl problem and designed in 1998 by French mathematician Jacques Cottereau as "Le Jeu des Insectes." In 2008, game designer Denis Blanchot adapted it into the global hit Dobble.

Explore Related Tools & Guides