Chapter 16: The Wide-to-Narrow Ratio Penalty |
In Brief |
Code 39 barcodes rely on a simple but consequential design choice: each character uses nine elements---five bars and four spaces---of which exactly three are wide and six are narrow. For the barcode to remain readable across varying print qualities and scanning conditions, the wide elements must be at least twice the width of the narrow elements, with a typical recommended ratio of 2.5:1 or 3:1. This seemingly modest requirement has profound implications: it forces substantial physical spaces between bars within each character and imposes an inter-character gap between symbols. The result is a fundamental trade-off: reliability and simplicity are purchased at the cost of physical footprint. This chapter explores how the wide-to-narrow ratio penalty shapes Code 39's usability across industries, from healthcare and automotive manufacturing to defense logistics and postal services, where the demands of space, durability, and readability vary dramatically. |

|
Understanding the Wide-to-Narrow Ratio |
Before diving into industry-specific applications, it helps to understand exactly what the wide-to-narrow ratio means and why it matters. Code 39, developed by Dr. David Allais and Ray Stevens at Intermec in 1974, was a breakthrough as the first barcode symbology capable of encoding both letters and numbers. Its encoding scheme is elegantly simple: each character is represented by nine elements---five bars and four spaces---with exactly three of these elements being wide and six being narrow. |
The wide-to-narrow ratio defines the proportional relationship between these two element widths. If a narrow bar measures 1 unit in width, a wide bar measures between 2 and 3 units, with 2.5:1 being a common compromise. The specification requires the wide elements to be at least twice the narrow; anything less risks confusing a wide element for a narrow one during scanning, leading to misreads. |
This design creates what is known as a 'self-checking' barcode. Because each character has a unique combination of wide and narrow positions, a single print defect---say, a wide bar that prints slightly too narrow---cannot transform one valid character into another. The decoder sees an invalid pattern and rejects it rather than producing a false read. This built-in error resistance is one of Code 39's greatest strengths and explains why it remains in use decades after its introduction. |

|
However, this self-checking property comes at a cost. The requirement that wide elements be visibly distinct from narrow elements means the barcode cannot be compressed indefinitely. There is a minimum size below which the distinction between wide and narrow becomes ambiguous. Moreover, Code 39 is a discrete symbology, meaning each character is separated from the next by a mandatory inter-character gap---typically at least one narrow-element width wide. These gaps, while not carrying data, consume additional space. |
The practical consequence is what we call the wide-to-narrow ratio penalty: every character in Code 39 is physically larger than it would be in denser symbologies like Code 128, which uses a different encoding scheme that does not require such pronounced width differences or mandatory inter-character gaps. For a ten-character message, Code 39 can be roughly 40% wider than the equivalent Code 128 barcode. For applications where label space is at a premium, this penalty can be decisive. |

|
Healthcare: The HIBC Standard |
The healthcare industry has long relied on Code 39 for tracking medical devices, pharmaceuticals, and patient samples. The Health Industry Bar Code (HIBC) standard, established by the Health Industry Business Communications Council, specifically mandates Code 39 for certain labeling applications. |
In this sector, the wide-to-narrow ratio penalty is managed through careful standardization. HIBC requires a 3:1 wide-to-narrow ratio, which provides a comfortable margin for error when labels are printed on various materials or scanned under less-than-ideal conditions in busy hospital environments. The inter-character gap must equal the narrow element width, ensuring consistency across labels from different manufacturers. |
Consider a typical application: surgical instrument tracking. A hospital may need to label hundreds of individual scalpels, forceps, and clamps with unique identifiers. The labels are often small---instrument shafts leave little room for adhesive tags. Here, the wide-to-narrow ratio penalty becomes a genuine constraint. A Code 39 label for a 12-character instrument ID might need to span 30 millimeters or more, which can exceed the available space on slender instruments. |

|
Healthcare facilities accept this limitation because Code 39 offers important compensating benefits. The self-checking property means a smudged or partially worn label on a frequently sterilized instrument is unlikely to be misread as a different instrument. In an operating room, misidentifying a tool could have serious consequences; the reliability of Code 39 outweighs the inconvenience of requiring larger labels. |
The pharmaceutical supply chain presents a different challenge. Secondary packaging---the boxes that contain multiple vials or blister packs---often has ample surface area for labels. Here, the wide-to-narrow ratio penalty is less burdensome. Manufacturers can use a 2.5:1 ratio to save a little space while still maintaining readability. The optional Modulo 43 check character, which HIBC sometimes recommends, adds one more character to the barcode, slightly increasing length but providing an additional layer of error detection. |
Some healthcare applications have moved to Code 128 or even two-dimensional barcodes to achieve greater density. But for established systems with legacy scanners---and for applications where the simplicity of Code 39's encoding reduces training requirements---the wide-to-narrow ratio penalty remains an acceptable cost. |

|
Automotive Manufacturing: The AIAG Standard |
The automotive industry, through the Automotive Industry Action Group (AIAG), has standardized on Code 39 for part identification and tracking. In this environment, the wide-to-narrow ratio penalty interacts with several unique factors. |
Automotive parts come in all sizes, from tiny fasteners to large body panels. For small components, label space is often extremely limited. A screw or clip may only accommodate a label a few millimeters wide. Code 39's density limitations mean that only very short identifiers---perhaps 4 or 5 characters---can fit on such labels. Manufacturers must balance the need for detailed part tracking against the physical constraints imposed by the wide-to-narrow ratio requirement. |
The automotive supply chain operates at high speed. Parts move along assembly lines at a rapid pace, and barcodes must be readable even when scanned at odd angles or under variable lighting. The wide-to-narrow ratio, by ensuring clear visual distinction between bar widths, helps maintain scan reliability in these demanding conditions. A 3:1 ratio produces barcodes that are more forgiving of poor print quality and suboptimal scanner positioning, which is valuable on a busy factory floor. |

|
However, the wide-to-narrow ratio penalty means that automotive labels often need to be longer than they would be with a more compact symbology. A typical AIAG label might encode a 10-character part number, plus a supplier code and date information, resulting in a total of 20 or more characters. The physical label can stretch to 60 or 70 millimeters, which is acceptable on larger parts but problematic on smaller ones. |
Some automotive manufacturers have addressed this by adopting Code 128 for new applications while maintaining Code 39 for legacy systems. The transition is slow because changing a barcode standard requires updating scanners, printers, and software across the entire supply chain---a costly and complex undertaking. For many suppliers, the wide-to-narrow ratio penalty is simply a cost of doing business. |
The manufacturing floor also presents environmental challenges. Labels may be exposed to oil, grease, heat, and abrasion. The self-checking property of Code 39 provides a significant advantage here: a label that is partially damaged or dirty is less likely to be misread. This robustness is particularly valuable when tracking components through painting, welding, and assembly processes. |

|
Defense and Logistics: The LOGMARS Legacy |
Perhaps nowhere is the wide-to-narrow ratio penalty more significant than in defense applications. The US Department of Defense developed the LOGMARS (Logistics Applications of Automated Marking and Reading Symbols) system, which mandates Code 39 for labeling military supplies, equipment, and shipments. |
Defense logistics involves items of every conceivable size and shape, from tiny electronic components to massive vehicle parts. The wide-to-narrow ratio penalty means that labels on small items must be extremely short or may not be feasible at all. For a small capacitor or resistor used in military electronics, a Code 39 label might be physically impossible to apply. In such cases, alternative methods---such as printing the barcode directly on the component packaging rather than the component itself---are used. |
For larger items, the penalty is more manageable. Military shipping containers, pallets, and vehicle crates offer ample surface area. However, the military also requires very high reliability; a barcode that cannot be read could delay the movement of supplies in a combat zone. To ensure this reliability, the military mandates a robust wide-to-narrow ratio, typically 3:1, and requires a Modulo 43 check digit for additional error detection. |
The LOGMARS standard also specifies minimum element widths and quiet zone requirements---the blank margin around the barcode. The quiet zone must be at least 10 times the narrow element width on each side. This adds even more to the physical footprint, compounding the wide-to-narrow ratio penalty. |
For the military, however, the trade-off is acceptable. The reliability of Code 39---its self-checking property and tolerance for less-than-perfect printing---is more important than maximizing data density. In the chaos of a supply depot or forward operating base, the ability to scan a barcode quickly and accurately, even if that barcode is physically larger, is a priority. |

|
Postal and Shipping Services |
Postal services around the world have used Code 39 for various applications, though the Universal Postal Union now recommends Code 128 for new implementations. The wide-to-narrow ratio penalty in postal applications is felt most acutely in the handling of small parcels and letters. |
Consider a typical postal label: it must include a tracking number, sender information, destination postal code, and possibly service type indicators. If encoded in Code 39, this data can produce a very long barcode. For a standard letter, a label might have limited space; the barcode could occupy a significant portion of the label, leaving less room for human-readable text. |
To mitigate this, postal services often limit the data encoded in Code 39 to just the tracking number, with other information stored in databases and linked to that number. This keeps the barcode shorter and more manageable. However, the wide-to-narrow ratio penalty still applies: a 12-digit tracking number, plus start and stop characters, and possibly a check digit, can easily require 15 or more characters of encoding. |
For larger parcels and shipping containers, the penalty is less restrictive. The ample label space allows for longer barcodes, and the reliability of Code 39 is valued in a chaotic sorting environment where packages may be scanned at high speed on conveyor belts. |
The postal environment also presents unique challenges for barcode readability. Packages are often handled roughly, and labels may become scuffed or wrinkled. Code 39's self-checking property provides some protection against damage, though it does not make the barcode immune to reading failures. |
Some postal services have addressed the density limitation by using Code 39 Full ASCII, which encodes the full 128-character ASCII set using two-character combinations. This enables encoding of lowercase letters and special characters, but at the cost of even lower density---a lowercase letter requires two Code 39 characters, effectively doubling the length of the barcode. The wide-to-narrow ratio penalty is thus amplified, making Full ASCII Code 39 practical only when label space is abundant. |

|
Pharmaceuticals and Warehousing |
In pharmaceutical warehousing, Code 39 has been widely adopted, particularly in countries like Germany where it remains a common standard. The wide-to-narrow ratio penalty interacts here with regulatory requirements and the physical realities of drug packaging. |
Pharmaceutical products often have small packaging. A blister pack or small vial has limited surface area for labeling. When a Code 39 barcode is required, manufacturers must carefully balance the amount of encoded data against the available space. A typical pharmaceutical barcode might encode a product ID, batch number, and expiration date. This could require 20 characters or more, resulting in a barcode that is too long for a small package. |
To work around this, pharmaceutical companies often use 2D barcodes or more compact linear symbologies for primary packaging, reserving Code 39 for secondary packaging such as cartons or boxes where space is more abundant. The wide-to-narrow ratio penalty thus influences which packaging level carries the Code 39 barcode. |
Warehousing applications face a different set of constraints. In a large distribution center, barcodes are scanned at receiving, put-away, picking, packing, and shipping stages. The labels need to be readable from various distances and angles, and the wide-to-narrow ratio ensures that even less-than-perfect scans have a high success rate. The penalty of larger labels is acceptable because pallets, bins, and boxes are generally large enough to accommodate them. |
However, warehouse shelves are often narrow, and operators may need to scan barcodes in tight spaces. A longer barcode---the result of the wide-to-narrow ratio penalty---can be harder to scan when the scanner must be positioned at a specific angle to see the entire symbol. This is a practical inconvenience that operators must accommodate. |

|
Electronics and Component Tracking |
The electronics industry presents perhaps the most challenging application for Code 39. Electronic components are among the smallest items that require tracking, and the wide-to-narrow ratio penalty can make Code 39 nearly impossible to use on individual components. |
A typical surface-mount resistor or capacitor may be only a few millimeters across. A Code 39 label would be far too large to fit. Instead, electronics manufacturers use other symbologies, such as Code 128 or Data Matrix 2D codes, for component-level marking. Code 39 finds its place on printed circuit board assemblies, component trays, and shipping containers---items with sufficient surface area. |
For these applications, the wide-to-narrow ratio penalty means that labels on PCBs must be carefully placed in areas with enough clearance. A crowded board might not have room for a 30-millimeter-long Code 39 barcode alongside the other components and routing traces. Designers must consider label placement early in the design process, reserving space for the barcode. |
The contrast between the label and the board surface is also a consideration. Code 39 requires adequate contrast between bars and spaces for reliable reading. Dark boards with reflective surfaces can present challenges. The wide-to-narrow ratio, by making the bars visually distinct, helps overcome some contrast issues, but it does not eliminate them. |
For component trays and reels---used to supply components to pick-and-place machines---Code 39 is more practical. These items have ample space, and the barcode can be printed on the label along with human-readable text. The wide-to-narrow ratio penalty is negligible here because the packaging is standardized and large enough to accommodate any reasonable barcode size. |

|
Practical Implications and Mitigation Strategies |
Organizations that rely on Code 39 have developed various strategies to manage the wide-to-narrow ratio penalty. |
Choosing the ratio: The 2.5:1 ratio offers a compromise between readability and density. A 3:1 ratio produces wider barcodes but is more forgiving of printing imperfections. Some applications, such as those requiring very small labels, may use 2:1, which is the minimum acceptable ratio. Each choice represents a different point on the trade-off curve between compactness and reliability. |
Managing data length: The simplest way to reduce the impact of the wide-to-narrow ratio penalty is to encode less data. Organizations often use short identifiers, such as part numbers or tracking codes, and store detailed information in databases. The barcode serves as a key to retrieve the full record, reducing the length of the barcode. |
Using check digits selectively: While Code 39 does not require a check digit, many standards mandate it. The check digit adds one character to the barcode, increasing length by a small amount. Some organizations omit the check digit for short, low-risk data while requiring it for critical applications. |
Adopting Full ASCII selectively: Code 39 Extended (Full ASCII) enables encoding of lowercase letters and special characters, but at the cost of lower density. Organizations should use Full ASCII only when necessary, and only when label space allows. |
Leveraging high-quality printing: High-resolution printers and quality label materials can enable smaller X-dimensions (the width of a narrow element), reducing overall barcode size while maintaining the required wide-to-narrow ratio. A minimum X-dimension of 0.19mm is generally recommended, but with high-quality printing and good scanners, smaller dimensions are sometimes possible. |
Transitioning to denser symbologies: For new applications, many organizations choose Code 128 or 2D barcodes to achieve higher density. However, the cost of transitioning legacy systems can be prohibitive, so Code 39 remains in widespread use. |

|
In Summary |
The wide-to-narrow ratio penalty is a defining characteristic of Code 39. It stems from the symbology's fundamental design---five bars and four spaces per character, with three wide elements and six narrow elements---and the requirement that wide elements be at least twice the width of narrow elements. This design, while essential for the self-checking property and reliable reading, imposes a substantial physical footprint on Code 39 barcodes. |
Across industries, the impact of this penalty varies dramatically: |
- In healthcare, the 3:1 ratio mandated by HIBC ensures reliability on medical labels, but the penalty limits the use of Code 39 on small instruments and primary pharmaceutical packaging. |
- In automotive manufacturing, the AIAG standard leverages Code 39 for parts tracking, but small components may require alternative approaches. The penalty is accepted because reliability is paramount on the factory floor. |
- In defense logistics, the LOGMARS system uses Code 39 for labeling military supplies, prioritizing robustness over density. The penalty means that labels on small items are impractical, but the system works well for larger shipments. |
- In postal services, Code 39 has been used for tracking numbers, though the Universal Postal Union now recommends Code 128 for new applications. The penalty makes Code 39 less suitable for small letters but workable for parcels. |
- In pharmaceutical warehousing, Code 39 is common on secondary packaging, but primary packaging often uses denser symbologies. The penalty influences labeling decisions and packaging design. |
- In electronics, Code 39 is generally unsuitable for component-level marking due to the penalty, but it is used on larger items such as circuit boards and shipping containers. |
Organizations have developed various strategies to mitigate the penalty: choosing a 2.5:1 ratio for some applications, encoding only short identifiers, using check digits selectively, and investing in high-quality printing to enable smaller element widths. Some have transitioned to denser symbologies for new applications while maintaining Code 39 for legacy systems. |

|
Ultimately, the wide-to-narrow ratio penalty is the price of Code 39's simplicity, reliability, and self-checking property. In applications where these strengths are critical, the penalty is an acceptable cost. In applications where space is at a premium, other symbologies may be more appropriate. The key is to understand the trade-off and make informed decisions that align with the specific requirements of each use case. |
As barcode technology continues to evolve, Code 39 remains a testament to the value of a well-designed standard. Its continued use after more than five decades---in healthcare, automotive, defense, and many other sectors---demonstrates that the wide-to-narrow ratio penalty is not a fatal flaw but a design compromise that has proven its worth over time. The barcode that was revolutionary in 1974 persists because, for many applications, the reliability it offers is worth the space it requires. |