How to find a UPC check digit
- Type the first 11 digits of the UPC-A into the box.
- Read the 12th digit and the full UPC; click Copy to use it.
- For an 8-digit UPC-E, pick UPC-E and enter the first 7 digits (starting 0 or 1).
- To check a printed UPC, choose Verify and paste all 12 digits.
The UPC check digit formula
UPC check digit = (10 − ((3 × sum of odd-position digits + sum of even-position digits) mod 10)) mod 10, using the first 11 digits of the UPC-A.
Worked example with 01234500005:
- Odd positions (1, 3, 5, 7, 9, 11): 0 + 2 + 4 + 0 + 0 + 5 = 11. Times 3 = 33.
- Even positions (2, 4, 6, 8, 10): 1 + 3 + 5 + 0 + 0 = 9.
- 33 + 9 = 42.
- The next multiple of 10 is 50. 50 − 42 = 8.
The complete UPC-A is 012345000058. You can paste it into the UPC barcode generator to make the barcode.
Anatomy of a UPC-A
| Part | Digits | Example (036000291452) |
|---|---|---|
| Number system / GS1 company prefix | Starts at digit 1, length varies (6–10 digits) | 036000 |
| Item reference | The rest, up to digit 11 | 29145 |
| Check digit | 12 | 2 |
The first digit is the number system: 0, 1, 6, 7, 8 and 9 are regular products, 2 is random-weight items priced in store, 3 is drugs (National Drug Code), 4 is in-store use and 5 is coupons. A UPC-A is the same as an EAN-13 with a leading 0, which the UPC to EAN converter shows.
UPC-E check digits
UPC-E is the 8-digit, zero-suppressed form used on small packs. It has no formula of its own: expand it to UPC-A, calculate the UPC-A check digit, and that digit ends both codes. Example: UPC-E 0425261 expands to 04210000526, whose check digit is 4, so the UPC-E is 04252614 and the UPC-A is 042100005264. Only UPCs with number system 0 or 1 and enough zeros can be written as UPC-E.
Frequently asked questions
What is the check digit of a UPC?
It is the 12th and last digit of a UPC-A. It is calculated from the first 11 digits with the GS1 mod 10 formula, so a scanner can tell if any digit was misread.
How do I calculate a UPC check digit by hand?
Add the digits in odd positions (1st, 3rd … 11th) and multiply by 3. Add the digits in even positions (2nd … 10th). Add both totals, and the check digit is what you need to reach the next multiple of 10.
What is the check digit for 01234500005?
It is 8. Odd positions 0+2+4+0+0+5 = 11, × 3 = 33. Even positions 1+3+5+0+0 = 9. 33 + 9 = 42, and 50 − 42 = 8, giving the UPC 012345000058.
How is a UPC-E check digit calculated?
Expand the UPC-E to its 12-digit UPC-A form, then calculate the UPC-A check digit. UPC-E 0425261_ expands to 0421000052_6_, so the check digit is 4 for both. Choose UPC-E in the type menu and the tool expands it for you.
My UPC fails the check. What now?
Re-read the number on the package: a 6/8, 1/7 or 3/8 mix-up is the usual cause. Use Verify to see which last digit would be correct, then compare with the printed code. If you created the number yourself, use the calculated digit.
Does this make my UPC official?
No. A correct check digit only means the number is well formed. Retailers expect UPCs licensed from GS1 US, whose company prefix identifies your brand.