UPC-A 11→12 check digit calculation explained
Every 12-digit UPC-A ends with a Modulo-10 check digit so checkout scanners detect misread bars immediately. If you enter 11 digits above, QRacade computes the 12th digit automatically; if you enter 12 digits and the final digit is wrong, generation stops cleanly rather than printing an invalid label.
Step (example: 01234567890) | Calculation | Result |
|---|---|---|
| 1. Add odd-position digits (1, 3, 5, 7, 9, 11) | 0 + 2 + 4 + 6 + 8 + 0 | 20 |
| 2. Multiply odd sum by 3 | 20 × 3 | 60 |
| 3. Add even-position digits (2, 4, 6, 8, 10) | 1 + 3 + 5 + 7 + 9 | 25 |
| 4. Total & round up to next multiple of 10 | 60 + 25 = 85 → next ten is 90 | Check digit = 5 (012345678905) |
UPC-A output for 012345678905 showing leading system digit 0, center guard bars and computed trailing check digit 5.Important boundary: artwork generator vs official GS1 prefix
Generating a valid UPC-A graphic is free and instant, but barcode artwork is not GS1 registration. If you sell through Amazon, Walmart, Target or brick-and-mortar distributors, license official GTIN-12 numbers directly from your national GS1 member organization first—never invent random 12-digit numbers for public retail marketplaces. For internal warehouse shelves or shop SKUs where you control the scanner, CODE 128 is more compact and avoids UPC digit rules.
Related barcode tools
EAN-13 barcode generator
13-digit international retail & ISBN-13 main book codes.
Global RetailBulk barcode generator
Batch up to 100 UPC or SKU codes from Excel/CSV into one ZIP.
Bulk ZIPITF-14 carton barcode
14-digit GTIN-14 labels for corrugated shipping cases.
CartonsFrequently asked questions
How many digits does a UPC-A barcode need?
12 digits total. Type 11 digits to auto-compute the trailing check digit, or all 12 digits to validate an existing UPC.
How is the UPC-A check digit calculated?
Sum odd positions × 3 plus even positions, then subtract from the nearest multiple of 10 above (or 0 if already divisible by 10).
Does generating a UPC barcode here register my product with GS1 or Amazon?
No. This tool turns numbers into valid scannable UPC artwork; official retail GTINs must be licensed through GS1.
What is the difference between UPC-A and EAN-13?
UPC-A uses 12 digits (North American standard), while EAN-13 adds one leading digit (0 for UPC compatibility) for global retail.
What PNG or SVG width should I use when printing UPC product labels?
Download SVG for packaging artwork and keep label width within 80%–200% of GS1 nominal 37.29 mm, leaving left and right margins untouched.