What size should a QR code be?

You can bring a business card closer to the camera, but not a sign behind a counter. A size that scans in your hand may be too small from farther away. Calculate the size including the margin, then test it on the intended material.

Three printed QR patterns of different sizes beside a ruler

How far away will people stand when scanning?

Stand where someone would actually hold up their phone. You can bring a business card closer to the camera; a sign behind a counter must work from the other side. A window sign may catch glare. Note the rough distance and lighting for your print test. Do not choose a size based on the screen image alone.

Calculate the pattern size with its clear margin

Each small square in a QR pattern is called a module. DENSO WAVE says to leave a clear margin of at least four modules on every side. Suppose the pattern is 29 modules wide and each module is 0.5 mm. The pattern is 29 × 0.5 = 14.5 mm wide. Each side margin is 4 × 0.5 = 2 mm. The total width is (29 + 4 + 4) × 0.5 = 18.5 mm. The top and bottom margins work the same way, so the total height is also 18.5 mm.

Measure the clear space outward from the pattern on every side, not just left and right. If the downloaded image already includes a margin, measure the image's outer edge. Check the page layout again for text or images intruding on that space. The 18.5 mm figure illustrates the calculation; it does not guarantee scanning at every distance.

An 18.5 mm footprint with a 14.5 mm pattern and a 2 mm margin on either side
KrobClick diagram based on DENSO WAVE’s margin guidance. Green marks the 29-module pattern. The outer border includes the clear margin on all four sides. Illustration by KrobClick (original artwork) Clear-margin guidance: DENSO WAVE

The 18.5 mm example includes the margin, but only a physical print can show how far away it will scan. Print the same QR at two sizes on the intended material, keeping colors, paper and destination the same. Scan from the same spot. If possible, try more than one phone.

Printed itemWhere to standWhat else to check
Business cardThe distance you would normally hold it to readText does not crowd or enter the clear margin
Counter signWhere customers stand to payThe phone can read it without reaching over the counter
Storefront signThe farthest intended scanning spotDoes sun or window glare obscure the pattern?

Check the margin in the layout before printing

Make sure cut lines, text and background artwork do not intrude on the clear margin on any side. When you get a proof, measure its actual size against the layout. If the file scans on screen but the printed sign does not, check whether it was shrunk, cropped or placed in glare.

How to troubleshoot a QR that scans on screen but not on the sign

If you still need to create the QR, read KrobClick's guide to creating QR codes. Then scan both the downloaded file and the printed result before using it.

Sources