Barcode Size & Bar Width Calculator
Calculate exact physical millimeter dimensions, narrow bar X-dimension (in mils and mm), quiet zone margins, and printhead dots across 203, 300, and 600 DPI.
Generate this exact size in our vector label studio:
Apply Size in StudioWhat is the X-Dimension and Why Does it Matter?
The X-dimension is the physical width of the narrowest bar or space in your barcode symbol. It dictates the optical resolution required by the scanner: a small X-dimension (e.g. 7 mils on pharmaceutical vials) requires high-density image scanners, while retail checkout scanners are optimized for 10 to 13 mils (0.26 to 0.33 mm).
A 203 DPI thermal printhead has dots that measure exactly 0.125 mm each. If your calculated narrow bar width is 0.25 mm (2.0 dots), the printhead fires clean 2-dot pulses. If your narrow bar calculates to 2.3 dots, the printer must alternate between 2 and 3 dots, creating jagged optical edges that reduce scan reliability.
Quiet zones are the blank margins to the left and right of the symbol bars. Laser gun scanners require this blank reflection to establish the baseline contrast of the paper before detecting the start pattern. Never crop or place artwork within the minimum quiet zone.
Frequently Asked Questions: Barcode Sizing & DPI
What is the standard size of an EAN-13 barcode?
At 100% nominal magnification, an EAN-13 barcode measures 37.29 mm wide by 25.93 mm high, with an X-dimension of 0.33 mm (13 mils). The permissible magnification range for retail checkout is 80% to 200%.
Why do thermal printers need specific dot alignments?
A 203 DPI printhead has dots that measure 0.125 mm each. If your narrow bar is not an exact integer multiple of printhead dots, scaling artifacts can cause bars to print unevenly, reducing scan reliability.
Can I scale a barcode down to 50% to fit tiny packaging?
GS1 specifications strictly forbid scaling EAN-13 or UPC-A barcodes below 80% (29.83 mm wide) for general retail checkout. If your product packaging is too small, use EAN-8 (8 digits) or a 2D GS1 DataMatrix code instead.