Barcodes and trade codes for exporters

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.

Open on PremiumExporter

Embed

Embed this tool

Copy this code into your website, blog or class page. The tool runs inside your page.

Please keep the credit link below the tool.

The UPC check digit calculator works out the final digit of a UPC-A number, and it checks an existing number to see whether its check digit is correct. It also handles EAN-13, GTIN-8, GTIN-12, GTIN-14, GLN and SSCC numbers, which all use the same check digit method. Enter a number without its check digit to get the full number, or with it to test it. You can work on one number or a list of many, so a whole product range can be checked in one go. Everything runs in the browser, nothing you type is uploaded, and the tool is free with no sign-up.
Upc check digit calculator example

How to use the UPC Check Digit Calculator

  1. 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).
  2. 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.
  3. To work on several numbers, put each one on its own line. Many lines produce a table.
  4. Read the result lines: Check digit, Full number, Check digit given, Type, Weighted sum, Numbers and Processed.
  5. 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.
  6. 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.

  1. Write down the digits without the check digit.
  2. Starting from the rightmost digit, multiply by 3, then 1, then 3, and so on across the number.
  3. Add all the results together to get the weighted sum.
  4. 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

Worked examples

InputResult
03600029145GTIN-12 (UPC-A): check digit 2, full number 036000291452
036000291452GTIN-12 (UPC-A): check digit 2, full number 036000291452
400638133393GTIN-13 (EAN-13): check digit 1, full number 4006381333931
1540014128876GTIN-14: check digit 3, full number 15400141288763
10614141123456789SSCC: 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.