OpsBox AISee it live
← All resources
November 4, 2026·3 min read

How the UPC Check Digit Works, and How to Calculate One by Hand

UPC, EAN, GTIN-14 and SSCC all use the same mod 10 check digit. Here is the rule worked through on a real UPC, how a case GTIN-14 is built from it, and the spreadsheet mistake that breaks barcodes.

A receiver scans a case and the handheld says "item not found." She types the number from the label instead. Still nothing. Somebody in purchasing copied the UPC into a spreadsheet, the leading zero fell off, and the item master has an 11-digit number that no barcode will ever match.

My position: every person who touches item data should know how the check digit works. It takes two minutes to learn, and it catches the typo before the truck shows up.

The rule

UPC-A, EAN-13, GTIN-14 and SSCC-18 all use the same check. Take every digit except the last one.

  1. Start from the rightmost of those digits.
  2. Multiply it by 3, the next by 1, the next by 3, and so on, alternating.
  3. Add up the results.
  4. The check digit is whatever takes that sum up to the next multiple of 10. If the sum is already a multiple of 10, the check digit is 0.

The worked example

Take the UPC-A 036000291452. The first 11 digits are the data: 0 3 6 0 0 0 2 9 1 4 5.

From the right:

DigitWeightResult
5315
414
133
919
236
010
030
010
6318
313
030

Sum: 58. The next multiple of 10 is 60. Check digit: 2. The full code is 036000291452, and the last digit matches. Valid.

Type it as 036000291453 and the check fails: the last digit should be 2, not 3. A scanner rejects it, which is the point.

Building a case GTIN-14. A case of that item needs its own GTIN-14. Put an indicator digit in front. It is 1 here, and the brand owner sets it for each packaging level. Then add a 0 and the first 11 digits of the UPC: 1 0 03600029145. That is 13 data digits. Run the same rule and the check digit is 9. The case code is 10036000291459.

An SSCC for a pallet. Same rule, 17 data digits. For the sample 1 0614141 123456789 (extension digit, company prefix, serial), the check digit is 7. On a GS1-128 label it prints as (00) 106141411234567897.

Common mistakes

Letting a spreadsheet eat the leading zero. Paste 036000291452 into a number column and it becomes 36000291452. Eleven digits, wrong forever. Format the column as text before you paste.

Treating a valid check digit as a real product. The check digit catches typos and misreads. It does not prove the number belongs to a brand. GS1's Verified by GS1 lookup does that.

Making up case GTINs. The indicator digit and the case code belong to the brand owner. If you are not the brand, ask for the case GTIN instead of inventing one.

Thinking an EAN-13 starting with 0 is a different item. 0036000291452 is the same item as UPC 036000291452. Drop the leading zero to get the 12-digit UPC.

Using UPCs that start with 2. Those are for in-store and variable weight items. They are not unique outside the store that made them.

Tomorrow morning

Export your item master's UPC column. Count how many entries have 11 digits. Each one is probably a UPC that lost its leading zero. Run a few through the free GS1 check digit calculator, fix them as text, and the "item not found" scans on those SKUs go away.

OpsBox scans UPC, EAN and GTIN-14 at receiving and picking, and prints SSCC labels for retail cartons and pallets with the check digit done for you.

See OpsBox AI in action

OpsBox runs the floor: picking, counting, and receiving on any handheld or cellphone, with picks assigned to your team automatically. It connects to the ERP you already have and is live in days, without a consulting engagement.

Use your scanner or a mobile devicePowerful desktop versionLive in days, not next quarterSeamlessly connects to your ERPNo consultantsNo BS
More info, a demo, or just a chat

Whatever is most useful to you. Tell us below and we will take it from there.

We email you once. No drip campaign. We hate those too.