How to use the check digit calculator
- Type the barcode number, or choose A list and paste many. Spaces and hyphens are ignored.
- Leave off the last digit to work out the check digit, or enter it to check the number.
- Pick the number type, or let the calculator work it out from the length.
- Copy the full number, or make the barcode with the barcode generator.
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.
- weight
- 3 for the rightmost digit, then 1, then 3…
- mod 10
- the remainder after dividing by ten
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.
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.
Common questions
What is a barcode check digit?
How do I find the check digit of a barcode?
How do you calculate a UPC check digit?
Is the method the same for EAN-13 and UPC?
Why does my number fail the check?
What if the check digit works out to 10?
How do I make a 14-digit case code (GTIN-14)?
Can I check a whole list of barcode numbers?
Can I make a barcode from the result?
Does an ISBN use the same check digit?
Related tools
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.