QR code size calculator: print size from scanning distance

Print a QR code at least a tenth as wide as the distance it is scanned from: 3 cm for a menu read at 30 cm, 10 cm for a poster read from 1 m. A code with more modules needs more than that. Enter your link and distance below for the width your code's actual grid needs, its clear margin, and an actual-size PDF proof to test before you print.

Calculate your QR code size

An example is filled in. Paste your own; it stays in this browser.

Logo
Start from

Print it at least 45 mm (1.78 in) wide.

Set by module size: a 37×37 grid is denser than 25×25, so each module is kept at least 1/250 of 30 cm (1.2 mm), which needs 44.4 mm. The 10:1 rule alone would give 30 mm.

Grid
37×37 modules at M; 45×45 at H
Module width
1.22 mm
Clear margin
4.9 mm on each side (4 modules)
With the margin
54.8 mm square (2.16 in): the space to keep free in your layout

Static or dynamic, same distance

Drawn to scale with each other, at the width each one needs.

Your content as a static code37×3745 mm wide
A Qex dynamic code21×2130 mm wide

A Qex dynamic code holds a short link like HTTPS://QEX.ME/AB3XK, so it stays 21×21 (25×25 with a logo) whatever the destination, and you can change the destination after printing.

Make a free dynamic code for this link →

Download at this size

The static code for your link, black on white, at the width with its clear margin. PDF proofs work up to 180 mm wide; use the SVG above that.

These are calculated sizes, not scan tests. Print the PDF at 100% (actual size, fit to page off), check that its line measures 50 mm, and scan the proof with a few phones at the real distance and light before you order. A static code cannot be changed after printing.

QR code size by scanning distance

Minimum width of the code itself, without its clear margin, for typical distances. The more modules (small squares) per side, the bigger it must be.

Minimum QR code width in millimetres by scanning distance and grid, rounded up
Distance21×21Qex dynamic code25×25Qex dynamic with a logo, or https://example.com29×29A static page link37×37A link with tracking tags49×49A contact card
Business card15 cm15 mm15 mm18 mm23 mm30 mm
Menu or table tent30 cm30 mm30 mm35 mm45 mm59 mm
Flyer or poster1 m100 mm100 mm116 mm148 mm196 mm
Window sign2 m200 mm200 mm232 mm296 mm392 mm

Grids for the static examples are measured with the encoder Qex uses, at error correction M. Your own link may land on a different grid: the calculator measures it.

How the size is worked out

The calculator takes the largest of three widths, then rounds up to a whole millimetre:

  1. The 10:1 rule. The code is at least a tenth of the scanning distance: 10 cm wide from 1 m. It is the rule of thumb print guides commonly give.
  2. Module size. Each module is at least 1/250 of the distance, which is the module the 10:1 rule gives a 25×25 code. Without it, the 10:1 rule would print a 49×49 contact card as wide as a 21×21 code, with modules less than half the size. With it, a denser grid grows in proportion to its module count.
  3. A 0.5 mm module floor. Up close the first two rules give tiny modules, so the calculator keeps each one at least 0.5 mm wide. This floor is our own margin for ink spread and focus, not a standard or a tested minimum. It only matters closer than about 12.5 cm.

The calculator works from the grid your content makes, not from a guess about its length: it encodes your link or text the way a QR generator would and counts the modules. QR code versions 1 to 40 lists how much fits in each grid. In "Width I have" mode it runs the same rules backwards and tells you how far away a code of that width can be scanned.

The clear margin

A QR code needs a blank margin, the quiet zone, 4 modules wide on every side, so the space it takes is 8 modules wider than its grid. A 21×21 code printed 30 mm wide needs 5.7 mm of margin on each side and 41.4 mm in all. Keep text, borders and background patterns out of it. The SVG and PDF from this page include the margin, so place them at the size shown and do not crop them. More in QR print size and the clear margin.

A centre logo hides modules, so the code is made at error correction H, which can recover about 30% of the code instead of about 15% at M. That costs room: the same content needs a bigger grid, and a bigger grid needs a wider print. The example link above is 37×37 at M and 45×45 at H. A Qex dynamic code is 21×21 without a logo and 25×25 with one. The calculator shows both grids for your content; choose "Centre logo (H)" to size for H. Its downloads have no logo, so test your final artwork with the logo in place too. How wide the logo itself can be, per grid and level, is measured on the QR code with logo page, and you can test L, M, Q and H live in the QR code error-correction simulator.

Why a dynamic code prints smaller

A static code holds your whole link, so every tracking tag and path segment adds modules. A dynamic code holds a short link and redirects each scan to your real address. At 30 cm, the example link above needs 45 mm as a static code and 30 mm as a Qex dynamic code. A dynamic code also lets you change the destination after printing, but it depends on its provider staying up; a static code does not. See static vs dynamic QR codes to choose.

Check a proof before you print

  1. Download the PDF proof on A4 or US Letter. It holds your code at the width shown, with its clear margin, and a 50 mm line.
  2. Print it at 100% or "actual size", with fit-to-page turned off. Measure the line with a ruler: if it is not 50 mm, the printer scaled the page.
  3. Scan the printed code with the phones your visitors carry, from the distance and in the light where it will hang. Check the right page opens.
  4. If it does not scan, go bigger, restore the margin, improve the contrast or drop the logo, and print again. The QR code not scanning checklist goes through each cause.

To check a code you already have, drop a picture of it into the QR code checker: it shows the content and the grid. For many codes at once, the bulk QR code generator lists each row's grid.

Questions

How big should a QR code be?

At least a tenth of the distance it is scanned from: 30 mm wide for a menu read at 30 cm and 100 mm for a poster read from 1 m. A code with more than 25 modules per side needs more, because its modules are smaller: at 1 m a 37×37 code needs 148 mm. Add the clear margin around that.

What is the minimum size of a QR code?

There is no single safe minimum: it depends on the grid, the printer, the paper and the phone. This calculator never goes below 0.5 mm per module, so a 21×21 code is at least 11 mm wide even when it is held close. That floor is our own choice, not a standard or a tested limit. Print a proof at the final size and scan it before ordering. See the smallest QR code.

How far away can a QR code be scanned?

By the same rules, about 10 times its width for a grid up to 25×25: a 21×21 code printed 10 cm wide reaches about 1 m. A denser grid reaches less at the same width. Switch the calculator to "Width I have" to work it out for your code. Light, angle, contrast and the camera all change the real distance.

Usually. A logo covers modules, so the code is made at error correction H, which repeats more of the data and needs a bigger grid for the same content. A Qex dynamic code goes from 21×21 to 25×25. The example link above goes from 37×37 to 45×45. Choose "Centre logo (H)" in the calculator to size for it.

Does the size include the clear margin?

No. The width is the pattern itself. Leave a clear margin of 4 modules on every side as well, so the space to keep free is 8 modules wider than the grid. The calculator gives both, and its SVG and PDF include the margin.

Why is a dynamic QR code smaller?

A dynamic code holds only a short link, such as HTTPS://QEX.ME/AB3XK, and the long address sits on the server. Qex writes that short link in capitals so it fits 21×21, whatever the destination. A static code holds the whole link, so a long link with tracking tags makes a denser grid that must be printed larger for the same distance. See static vs dynamic QR codes.

Are these sizes tested?

No. They are calculated from the code's grid and the distance, with the rules written out on this page. They are a starting point for a proof, not a guarantee that every phone will scan the print. Print the PDF proof at 100%, check its 50 mm line with a ruler, and scan it with a few phones at the real distance and light.

Need a smaller code for a long link?

Free dynamic QR code · The smallest QR code · QR code versions · QR code checker