The Maths Behind Everyday Life
The story, the formula and a worked example — see exactly where this maths shows up in the world around you.
How Much a QR Code Can Actually Hold
Those little squares store more than a web link — and the maths of why they survive a coffee stain is clever.
A QR code is a grid of black and white cells, each a single bit. The bigger the grid, the more it holds — but part of every code is deliberately spent on error correction so a damaged code still scans.
Grid size sets capacity
The largest standard QR code is a 177×177 grid and can store up to about 7089 numeric digits, or roughly 4296 letters and symbols.
A chunk of those cells is reserved for redundancy. At the highest error-correction level, a code can lose about 30% of its area and still be read perfectly.
An n by n grid holds n-squared bits before error correction is subtracted.
Built-in resilience
That redundancy is why a smudged, torn, or partly-covered QR code still works. The scanner reconstructs the missing data from the extra bits — the same idea that protects CDs from scratches.
Cells in the biggest code
- 1
Total cells
- 2
Numeric capacity
Up to about 7089 digits once format, timing, and error-correction cells are set aside.
A single QR square can carry a short paragraph — and shrug off losing nearly a third of itself.
The takeaway
Every QR code trades some capacity for toughness, which is why the scruffy one on the cafe table still scans.