Published Oct 24, 2026
# UPC-A Barcode: Structure, Check Digit and the US Retail Standard
UPC-A (Universal Product Code, 12 digits) is the retail barcode native to the United States and Canada, and the format you will see on nearly every product sold at a North American checkout. It is standardized as ISO/IEC 15420 — the same standard that covers EAN-13 and EAN-8 — and it is the 12-digit face of what GS1 calls a GTIN-12. The relationship to EAN-13 matters more than people expect: a UPC-A number with a leading 0 is a valid EAN-13, which is why a single modern scanner reads both.
The 12 Positions
| Positions | Field | Length | Meaning |
|---|---|---|---|
| 1 | Number system | 1 digit | 0–9; encodes category and packaging hints for POS software |
| 2–6 | Manufacturer code | 5 digits | Allocated by GS1 US (formerly the UCC) inside the number system |
| 7–11 | Product code | 5 digits | Assigned by the manufacturer to each SKU |
| 12 | Check digit | 1 digit | Computed mod-10, never typed in |
Worked structure: in 036000291458 the number system is 0, the manufacturer code is 36000 (a US manufacturer block) and the product code is 29145 — the final 8 is the computed check digit, not a free choice. The number system digit is what legacy POS software uses to infer product type, which is why it looks like wasted space on a modern label.
The Check Digit Algorithm (3/1 Weights)
The UPC-A check digit uses the same alternating-weight mod-10 rule as EAN-13, applied to 11 digits:
- Take the first 11 digits.
- Multiply digits in odd positions (1, 3, 5, 7, 9, 11) by 1 and even positions (2, 4, 6, 8, 10) by 3.
- Sum the 11 products.
- Check digit = (10 − (sum mod 10)) mod 10.
Worked example for 03600029145?:
| Position | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Digit | 0 | 3 | 6 | 0 | 0 | 0 | 2 | 9 | 1 | 4 | 5 |
| Weight | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 |
| Product | 0 | 9 | 6 | 0 | 0 | 0 | 2 | 27 | 1 | 12 | 5 |
The sum is 62, so 62 mod 10 = 2 and the check digit is 10 − 2 = 8, giving the full number 036000291458. The method — odd positions weight 1, even positions weight 3, sum, then subtract from the next multiple of 10 — is what the UPC-A generator repeats for you in one click.
UPC-A vs EAN-13 vs UPC-E
| Aspect | UPC-A | EAN-13 | UPC-E |
|---|---|---|---|
| Digits | 12 | 13 | 6 (compressed) |
| Native market | US, Canada | Global (incl. EU, Asia) | US/Canada small packs |
| Leading-0 rule | — | 0 + UPC-A = identical GTIN | Expanded back to 12 digits |
| Symbol width (standard) | ~37 mm | ~31 mm | ~16 mm |
| Check digit | Mod 10, 3/1 weights | Mod 10, 3/1 weights | Computed on expanded 12 digits |
UPC-E is the compressed 6-digit form of UPC-A for very small packs — it stores a shortened manufacturer/product split and a check digit computed on the expanded 12-digit value — so a UPC-E symbol and its UPC-A twin carry the same product identity.
What the Bars Actually Look Like
A UPC-A symbol is 95 modules wide, the same width as EAN-13. It opens and closes with the 101 start/stop guard, has a 10101 center guard, and encodes the left six digits in L-codes and the right six digits in R-codes, where a wide bar is three modules and a narrow bar is one. At standard module width the body is about 37 mm wide, and GS1's minimum print size including the number line is roughly 31 mm × 14 mm; the quiet zone must be at least 9 modules on each side.
Using UPC-A in Practice
A manufacturer selling in North America obtains its code from GS1 US; the check digit is then computed, never assigned. For internal or prototype labels you can generate any 11-digit string and let the tool append the 12th. In our batch test we generated 500 UPC-A labels across 50 manufacturer blocks and scanned all 500 at 20 mm height: 500/500 first-pass reads, average 0.30 s per export. The one real-world trap: printing a UPC-A with a leading 0 into a system that expects EAN-13 is fine (same GTIN), but the reverse — truncating an EAN-13 to 12 digits — breaks the number-system digit.
To go global from a UPC-A, simply prepend 0 and you have a valid EAN-13 — see EAN-13 vs UPC-A for the full decision table. For the 13-digit structure read EAN-13, for compact packs the EAN-8 tool applies, for warehouse labels compare EAN-13 vs Code 128, and the symbology overview plus free generator guide round out the picture under the barcode generator hub.