Free tool · no signup
Barcode X-dimension calculator
The X-dimension is the width of a barcode's narrowest bar, and it decides whether the symbol can be printed and scanned reliably. This works out what your printer will actually produce at 203, 300 or 600 dpi — because a printer places whole dots, and a narrow bar that is not a whole number of them gets rounded.
Leave empty to check EAN-13 at its minimum. Enter a value in millimetres to check a size you have in mind.
A 203 dpi printer can hold this. One dot of rounding costs 5% of the narrow bar.
| X-dimension checked | 0.264 mm | 0.0104 in |
|---|---|---|
| Narrow bar in dots | 2.11 | printed as 2 dots |
| Bar you actually get | 0.250 mm | 5.2% from target |
| Quiet zone required | 2.90 mm | 11 modules, each side |
Why a printer cannot print exactly what you asked for
A thermal printer has a fixed grid of heating elements. At 203 dpi they sit about 0.125 mm apart, and the printer cannot place a mark between them — every bar is a whole number of dots wide, always.
EAN-13’s narrow bar at its smallest permitted size is 0.264 mm. At 203 dpi that is 2.11 dots, so it prints as 2 — about 5% narrow. That is survivable. Code 39 at its 0.191 mm minimum is 1.53 dots, which rounds to 2 and is 31% wide, and that error repeats across every bar and space in the symbol.
This is why “it looked fine on screen” is such a common way for a label run to fail. The design was correct; the printer could not reproduce it.
The other two things that break a scan
Size is one of three checkable properties. The second is the quiet zone — the clear space either side of the symbol, which a price or a border creeping inward will destroy without changing anything about the bars. The third is contrast: a red-laser scanner reads red as white, so a red-on-white barcode is invisible to it while looking perfect on a monitor.
Each symbology reference page lists the quiet zone that symbology requires, in modules and in millimetres.
Questions
- What is an X-dimension?
- It is the width of the narrowest bar or space in a barcode — the module the whole symbol is built from. Every other measurement in the symbol is a multiple of it, so it sets the physical size of the barcode and the minimum the scanner can resolve.
- Why does 203 dpi cause more problems than 300 dpi?
- One dot at 203 dpi is about 0.125 mm, against about 0.085 mm at 300 dpi. Since a printer can only place whole dots, the same rounding error is a much larger share of the bar at the lower resolution — which is why a symbology can be printable at 300 dpi and unreliable at 203.
- What rounding error is acceptable?
- Under about 20% of the narrow bar is comfortable. Past that, rounding widens every bar in the symbol and starts eating into the quiet zone from the inside, and the symbol becomes sensitive to anything else that goes slightly wrong — ink spread, a worn print head, a scanner at an angle.
This tool runs the same checks the editor runs while you design a label — against your printer’s real resolution, on the stock you actually bought.
Design a label that checks this for you →