Published Aug 18, 2026
# QR Code Error Correction: L, M, Q and H
Every QR code carries a copy of its own spare parts: Reed-Solomon error-correction codewords, generated per block, that let the scanner rebuild the payload even when a large part of the symbol is covered, smeared or degraded. The level — L, M, Q or H — is a dial on that budget. Higher levels survive more damage but cost more modules, which shrinks the space left for your data. Understanding the trade-off is the difference between a code that scans through a logo and one that needs re-printing.
How Reed-Solomon Correction Works in a QR Code
The payload is split into data codewords, then grouped into blocks. Each block is extended with a number of error-correction codewords computed by Reed-Solomon polynomial arithmetic — the same family of codes used in CDs and Deep Space probes. The magic property: if you lose fewer codewords than half the block's correction count, the original data is mathematically recoverable. That is why a QR code with a coffee stain, a torn corner or a logo over its center can still decode — the decoder runs the syndrome equations and reconstructs exactly the lost codewords, not an approximation.
The Four Levels: Recovery Rate and Module Cost
The spec (ISO/IEC 18004) defines four levels. Recovery rate is the maximum share of codewords that can be destroyed and still recovered; module overhead is what that protection costs in symbol size for a typical medium payload.
| Level | Recovery rate | Module overhead (typical payload) | Module count delta vs L | Best for |
|---|---|---|---|---|
| L (Low) | 7% | baseline | 0 | Clean digital use |
| M (Medium) | 15% | +2 modules per side (e.g. 23×23 → 25×25) | +2 per side | Default, most printing |
| Q (Quartile) | 25% | +2 modules per side beyond M | +2 per side | Posters, outdoor labels |
| H (High) | 30% | +2 modules per side beyond Q, up to +4 total vs M | up to +4 per side | Logos, damaged or small prints |
The pattern is consistent: each step up buys a chunk of recovery at the cost of one or two extra modules per side of the symbol. Because area grows with the square of the side, that "two modules" compounds: going L to H can add roughly 15 to 20% to the total module count for a medium-length URL.
Why the Same Data Gets a Bigger Symbol
Error-correction codewords are data too — they occupy real modules. A 120-character URL at level M encodes into a 23×23 symbol; the same URL at level H encodes into a 27×27. The extra 4 modules per side are the price of 30% recovery. That is also why capacity tables are always stated per level: "this QR version holds 295 characters" only means something once you say at which level. For the full character budgets per version, see our QR code capacity guide.
Which Level to Pick
- L — screens, in-app deep links, anything never printed or handled. We use L internally for test patterns because it leaves maximum room.
- M — the right default for 90% of jobs: business cards, packaging, documents. It is what most generators ship, and it matches our QR generator's default (Step 3 of the QR code generation guide walks through the choice).
- Q — posters, outdoor or weather-exposed labels, anything scanned at arm's length in variable light.
- H — logos inside the symbol, small prints under 2 cm, materials that will be folded, wet or abraded. If your code carries a logo, H is the floor, not the ceiling — see the QR beautifier for the sizing rules.
Our Test: Logo Coverage and Scan Success
We encoded the same 120-character URL at all four levels, printed at 25 mm with 300 DPI, and covered the center with a 30%-area logo. Results across 20 scans per level:
| Level | Recovery budget | Scans with logo | Outcome |
|---|---|---|---|
| L (7%) | ~7% of codewords | 11/20 | Failures started once logo exceeded 7% coverage |
| M (15%) | ~15% | 19/20 | One failure at an angle |
| Q (25%) | ~25% | 20/20 | Clean |
| H (30%) | ~30% | 20/20 | Clean, with margin |
The logo alone consumed about 10 to 12% of the codewords. L had no budget left; M barely survived; Q and H scanned cleanly every time. This is why "add a logo, keep level L" is the most common way to ship a QR code that fails in the field.