Check digit calculator
Enter 7, 11, 12, 13 or 17 digits to calculate the check digit, or a complete 8, 12, 13, 14 or 18-digit number to verify it. Spaces and hyphens are removed.
This calculator checks that a number is well formed. It does not tell you whether the number is licensed or listed by a retailer.
What is a check digit?
A check digit is the last digit of a UPC, EAN, GTIN or SSCC number. It is calculated from all the other digits with the GS1 modulo-10 method, so a scanner or system can spot a mistyped or misread number. A correct check digit proves the number is well formed, not that it is licensed.
How to calculate a UPC or EAN check digit
- Write the digits without the check digit. Starting from the right of that payload, multiply the digits alternately by 3 and 1 (the rightmost payload digit is multiplied by 3).
- Add those products to get a weighted sum.
- The check digit is the number that brings the sum up to the next multiple of 10. If the sum already ends in 0, the check digit is 0.
The same rule is used for GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13 and ISBN-13), GTIN-14 and SSCC. This page's calculator uses the site's existing GS1 modulo-10 function, so the result you see here is the same arithmetic the barcode tools apply when they add or verify a check digit.
Worked example: UPC-A
Take the 11-digit payload 01234567890 (an illustration only, not a real product). Positions 1, 3, 5, 7, 9 and 11 from the left are 0, 2, 4, 6, 8 and 0; they add to 20, and 20 × 3 = 60. Positions 2, 4, 6, 8 and 10 are 1, 3, 5, 7 and 9; they add to 25. The weighted total is 85. The next multiple of 10 is 90, so the check digit is 5 and the complete UPC-A is 012345678905. Enter 01234567890 in the calculator above to see the same result, with a table of weights.
Worked example: EAN-13
For the 12-digit payload 590123412345, the same right-to-left 3-and-1 weighting produces a check digit of 7, so the complete EAN-13 is 5901234123457. The calculator shows each digit, its weight and its contribution so you can follow the sum. A 13-digit entry is treated as a complete number and reported as correct or as “check digit should be X”.
Which numbers use this method?
| Identifier | Total digits | Notes |
|---|---|---|
| GTIN-8 | 8 | Also called EAN-8 |
| GTIN-12 | 12 | UPC-A |
| GTIN-13 | 13 | EAN-13 and ISBN-13 |
| GTIN-14 | 14 | Cases and cartons, often printed as ITF-14 or in GS1-128 |
| SSCC | 18 | Serial Shipping Container Code for shipping units |
This method is not used for ISBN-10, which has a modulo-11 check and is not supported here. Code 128 has its own modulo-103 check character, added by the barcode encoder — see the Code 128 generator. Code 39 may add an optional modulo-43 character; that is a different calculation, described on the Code 39 generator.
What a check digit does not tell you
A valid check digit does not prove that the number is licensed to you, registered with GS1 or listed by a retailer. It only shows that the digits are internally consistent. To see who a GTIN is associated with, use GS1's own lookup, Verified by GS1, on gs1.org. This site does not check ownership, and it does not assign, sell or register numbers.
Check digit FAQ
What is a GTIN?
GTIN (Global Trade Item Number) is the GS1 name for product numbers such as UPC-A (GTIN-12), EAN-13 (GTIN-13), EAN-8 (GTIN-8) and GTIN-14 for cases. Each one ends in a check digit calculated with the same modulo-10 method this page uses.
Why does my UPC fail the check digit test?
Usually because a digit was mistyped, a leading zero was lost in a spreadsheet, or the number was copied without its last digit. Re-enter all 12 digits as text. If it still fails, ask whoever assigned the number for the correct value.
Can I make up a UPC if the check digit is valid?
No. Any 11 digits can be given a valid check digit, but that does not make the number yours. Retail UPCs are licensed by GS1, and stores and marketplaces can reject numbers that are not registered to your brand.
Is the ISBN-13 check digit the same as EAN-13?
Yes. An ISBN-13 is an EAN-13 number starting with 978 or 979, so its check digit uses the same 3-and-1 weighting. Older 10-digit ISBNs use a different modulo-11 method, which this calculator does not handle.
Method and transparency
Last updated: 20 November 2026.