Product labels

How a UPC check digit is calculated

A UPC-A check digit is calculated from the first 11 digits. For 03600029145, the check digit is 2, so the full code is 036000291452. Passing this check does not mean a UPC is assigned or licensed to your product.

For the worked example, enter 03600029145 as an 11-digit body in the UPC label generator. Keep the opening zero. This is an arithmetic example, not an identifier to put on your own product.

Worked example: the check digit for 03600029145
StepValue
Odd positions, left to right0 + 6 + 0 + 2 + 1 + 5 = 14
Odd positions times 342
Even positions3 + 0 + 0 + 9 + 4 = 16
Total58
Last digit of the total8
Check digit2
Full code036000291452

Read the calculation from left to right

Number the 11 body digits from the left, starting at 1. Add positions 1, 3, 5, 7, 9 and 11 and multiply that sum by 3. Add positions 2, 4, 6, 8 and 10 without multiplying. Here that gives 14 x 3 + 16 = 58.

The next multiple of 10 is 60, so the missing amount is 60 - 58 = 2. Appending 2 makes the weighted total 60. If the body total already ends in zero, the check digit is 0, not 10. The generator can complete an 11-digit body or validate a complete 12-digit UPC-A.

What a passing result tells you

Changing only the last digit to 3 makes 036000291453 fail. If a full code fails, compare it with your original record before changing anything. A mistyped body digit can be the problem even when the last digit was copied correctly.

A passing result checks the relationship among the digits. It does not check assignment, ownership, the product record or the print quality of a barcode. Use the UPC assigned to your product. Calculating a matching final digit does not issue a new identifier.

Common check-digit mistakes

  • Including the existing twelfth digit in the body calculation. Calculate from the first 11 digits, then compare the result with digit 12.
  • Giving every position the same weight. For this 11-digit UPC-A body, the leftmost position starts the group multiplied by 3.
  • Dropping a leading zero in a spreadsheet. Keep identifiers as text from import through export.
  • Replacing a failing check digit without checking the body. You can make a mistyped number pass while it still identifies the wrong item.
  • Treating a passing check as permission to use a number. Assignment and licensing require separate verification.

Keep the code as text

Store all 12 digits as text in your spreadsheet and CSV. A numeric cell can drop the opening zero or export scientific notation. Fixing the format later does not recover the original identifier. Compare the digits with your source record.

The label generator rejects letters, unsupported lengths and scientific notation instead of guessing missing zeros. Check the reported row before printing a batch. Validate the number before adjusting label dimensions or printer settings.

Sources and tools