UPC Check Digit Calculator (GTIN, EAN, SSCC)
Enter a number without its last digit to get the check digit, or the full number to check it. Paste many numbers at once.

How to use the UPC Check Digit Calculator
- Open the Number type list and choose a number type. To let the tool decide, pick Detect from length. The other options are GTIN-8 (EAN-8), GTIN-12 (UPC-A), GTIN-13 (EAN-13), GTIN-14 (ITF-14), GLN (13 digits) and SSCC (18 digits).
- In the Number(s), one per line box, type or paste your number. Leave off the check digit to calculate it, or include it to test it.
- To work on several numbers, put each one on its own line. Many lines produce a table.
- Read the result lines: Check digit, Full number, Check digit given, Type, Weighted sum, Numbers and Processed.
- Open How it was calculated to see each step worked out with your own digits, and the table of each digit, its weight and the product.
- For a list, read the table: each number, its check digit and whether a check digit you typed is valid.
The example buttons load sample inputs: UPC-A 11 digits, UPC-A check it, EAN-13 body, GTIN-14 body, SSCC body and Several numbers. Under the result, Copy result copies the figures. Copy link keeps all your inputs in the page address, so opening that link restores the same result. Print / save as PDF prints the inputs, the result, the calculation steps and the date.
How is a UPC check digit calculated?
To find a UPC check digit, multiply the digits alternately by 3 and 1, add the results, and pick the digit that lifts the total to the next multiple of 10. When the total is already a multiple of 10, the check digit is 0. Weighting begins at the digit just before the check digit position and runs leftward.
- Write down the digits without the check digit.
- Starting from the rightmost digit, multiply by 3, then 1, then 3, and so on across the number.
- Add all the results together to get the weighted sum.
- Find the next multiple of 10 above the sum. Subtract the sum from it. That difference is the check digit.
Take the UPC-A body 03600029145. Its weighted sum is 5×3 + 4×1 + 1×3 + 9×1 + 2×3 + 0 + 0 + 0 + 6×3 + 3×1 + 0×3 = 58. Rounding up to the next multiple of 10 gives 60, so the check digit is 2. Appended, the full UPC reads 036000291452.
Which numbers use this check digit, and what does it catch?
Every GS1 identification number uses this same mod-10 check digit, including GTIN-8, UPC-A, GTIN-13, GTIN-14, GLN and SSCC. Adding one leading 0 turns a UPC-A into a GTIN-13, and adding two leading 0s turns it into a GTIN-14, with the check digit unchanged.
The check digit catches every single-digit error and most swaps of two neighbouring digits. That makes it handy for spotting typing mistakes, but it has a limit. A correct check digit only shows that the number is arithmetically valid. It does not prove that the number is licensed to the person using it. To see who owns a company prefix, use GS1’s GEPIR / Verified by GS1 service.
Sources
- GS1 check digit calculation and the GS1 General Specifications: mod-10 check digit for GTIN-8/12/13/14, GLN and SSCC.
Worked examples
| Input | Result |
|---|---|
| 03600029145 | GTIN-12 (UPC-A): check digit 2, full number 036000291452 |
| 036000291452 | GTIN-12 (UPC-A): check digit 2, full number 036000291452 |
| 400638133393 | GTIN-13 (EAN-13): check digit 1, full number 4006381333931 |
| 1540014128876 | GTIN-14: check digit 3, full number 15400141288763 |
| 10614141123456789 | SSCC: check digit 7, full number 106141411234567897 |
Calculated by the tool above with these values.
Frequently asked questions
Do I need to type the check digit?
No. Leave it off and the tool works out the check digit, then returns the complete number. If you do type it in, the tool tests it instead.
Can I check many numbers at once?
Yes. Enter one number per line in the Number(s), one per line box, and the results appear in a table.
What is the check digit of a GTIN-14?
It comes from the same mod-10 method, using weights 3 and 1 counted from the right across the first 13 digits. Pick GTIN-14 (ITF-14) or let the tool infer it from the length. The steps list each product and the weighted sum.
Is my data sent to a server?
No. Everything runs inside your browser, so nothing you type is uploaded.
Can I use the results on product packaging?
Yes. You may use the results in commercial work, such as on products, packaging and documents, without giving credit. Still, a valid check digit does not prove you hold a license for the number, so verify prefix ownership as explained above.
Does the tool work with ISBN-13 or ITF-14 codes?
Yes. ISBN-13 numbers are GTIN-13 codes, so select GTIN-13 (EAN-13) or let the length decide. ITF-14 holds a GTIN-14. ISBN-10 is older and relies on a mod-11 check digit instead, and the ISBN barcode generator covers that format.
Related tools
- UPC barcode generator: makes UPC-A and UPC-E barcodes for retail products, with add-ons and GS1 sizes.
- GS1 barcode generator: builds GS1-128 labels with Application Identifiers, plus EAN-13 and ITF-14 carton codes.
- Container check digit calculator: verifies the ISO 6346 check digit of a shipping container number.
- ISBN barcode generator: produces the EAN-13 barcode for a book cover, with the ISBN text and price add-on.
- Barcode generator: Code 128, Code 39, EAN, UPC, ITF-14, Codabar and GS1-128, as a single code or a sheet of labels.
- Data Matrix generator: small 2D codes for serial numbers, parts and GS1 healthcare labels.
- GTIN generator builds GTIN-13, UPC-A and GTIN-14 lists from your company prefix.
- SSCC label generator: SSCC with check digit on a printable GS1 logistic label.
- Random barcode generator creates random EAN, UPC, ITF-14 or Code 128 test barcodes with valid check digits.