Skip to content
BizMathKit

Barcode Check Digit Calculator

Work out the check digit for a UPC, EAN, ITF-14 or SSCC number, or check that a full barcode number is valid, with every step shown.

Leave off the last digit to work it out, or enter the whole number to check it.
Check digit · GTIN-13 (EAN-13)
3
Full number: 6291041500213

In 14-digit form: 06291041500213

  • Already the whole number? Choose GTIN-12 (UPC-A) to check it.

How it’s worked out

Sum 57 → next multiple of ten 60 → check digit 3

Step by step

How to use the check digit calculator

  1. Type the barcode number, or choose A list and paste many. Spaces and hyphens are ignored.
  2. Leave off the last digit to work out the check digit, or enter it to check the number.
  3. Pick the number type, or let the calculator work it out from the length.
  4. Copy the full number, or make the barcode with the barcode generator.
The math

The GS1 check digit formula

The rightmost digit before the check digit is always multiplied by 3, then the weights alternate. That’s why the same method works for every length.

Sum = Σ digit × weight (3, 1, 3, 1 … from the right)
Check digit = (10 − Sum mod 10) mod 10
weight
3 for the rightmost digit, then 1, then 3…
mod 10
the remainder after dividing by ten
Worked example
60−57=3
GS1’s example GTIN-13 629104150021 adds up to 57. The next multiple of ten is 60, so the check digit is 3 and the full number is 6291041500213.
GS1 keys

Number lengths at a glance

A GTIN-8 (EAN-8) has 8 digits, a GTIN-12 (UPC-A) 12, a GTIN-13 (EAN-13) 13 and a GTIN-14 (used in ITF-14 case barcodes) 14. A GLN, which identifies a location, has 13 digits, and an SSCC, which identifies a pallet or carton, has 18. Some lengths can be read two ways: 12 digits could be a full UPC or an EAN-13 without its check digit. The calculator shows the other reading under the result, so you can pick the right type.

Context

Why check digits matter

A check digit catches most typing mistakes. If one digit is wrong, or two neighboring digits are swapped, the check digit almost always stops matching, so a scanner or system rejects the number instead of recording the wrong product. That’s why retailers and marketplaces validate GTINs on upload. A number that passes the check is well formed, but that doesn’t prove it belongs to your brand: only GS1’s records can show that.

FAQ

Common questions

What is a barcode check digit?
It’s the last digit of a UPC, EAN, ITF-14 or SSCC number. It’s worked out from all the digits before it, so a scanner or system can spot a number that was mistyped or misread.
How do I find the check digit of a barcode?
It’s the final digit of the number printed under the bars. To confirm it’s right, type the whole number into the calculator and it will say valid or show which digit it should end in.
How do you calculate a UPC check digit?
Starting from the right, multiply the digits by 3, 1, 3, 1 and so on. Add up the results, then subtract the total from the next multiple of ten. For UPC 03600029145, the total is 58, so the check digit is 60 − 58 = 2 and the full UPC is 036000291452.
Is the method the same for EAN-13 and UPC?
Yes. GS1 uses one method for every number that has a check digit, including GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13), GTIN-14, GLN and SSCC. Only the length changes.
Why does my number fail the check?
Usually one digit was mistyped or two digits were swapped. Check it against the product or your GS1 record. If you made the number up, it may pass the check but still not belong to you: real GTINs are licensed from GS1.
What if the check digit works out to 10?
It can’t. If the total is already a multiple of ten, the check digit is 0. For example, GS1 UK’s 501234567890 has a total of 90, so its check digit is 0.
How do I make a 14-digit case code (GTIN-14)?
Take the 13-digit number of the item inside without its check digit (add a leading 0 to a UPC first), put an indicator digit from 1 to 8 in front, then work out a new check digit for those 13 digits. Choose GTIN-14 above and the calculator adds it.
Can I check a whole list of barcode numbers?
Yes. Choose A list and paste one number per line. Each line is marked valid, wrong or unreadable, short numbers get their check digit added, and Copy result gives you the table as CSV for a spreadsheet.
Can I make a barcode from the result?
Yes. Copy the full number into the barcode generator and choose the matching type: UPC-A for 12 digits, EAN-13 for 13 or ITF-14 for 14.
Does an ISBN use the same check digit?
A 13-digit ISBN (it starts with 978 or 979) is an EAN-13, so it uses the same GS1 method and this calculator works for it. The older 10-digit ISBN uses a different, modulus-11 method, which this tool doesn’t cover.

Related tools

Built and checked by BizMathKit
Checked by hand against GS1: how to calculate a check digit manually, GS1 UK: what is a check digit and GS1 Sweden: different types of GTINs. How we check formulas. Last updated . Runs in your browser — nothing you enter is sent anywhere.