EAN Check Digit Calculator

Enter the first 12 digits of an EAN-13 (or 7 of an EAN-8) to get its check digit straight away, with the weighted sum worked out. Verify full EANs or paste a whole list.

  • 100% free
  • No sign-up
  • No watermark
  • Works offline in your browser

Enter the digits without the check digit: 7 (EAN-8), 12 (EAN-13).

Check digit1
Full EAN-13 (GTIN-13)4006381333931

How it was calculated

EAN-13 (GTIN-13) uses the GS1 modulo 10 algorithm: starting from the rightmost digit, multiply alternately by 3 and 1, add the products, then find the amount needed to reach the next multiple of 10.

Position123456789101112Sum
Digit400638133393
× Weight131313131313
= Product4001832419399989

Round 89 up to the next multiple of 10 (90). 90 − 89 = 1, so the check digit is 1.

How to calculate an EAN check digit

  1. Enter the first 12 digits of an EAN-13, or the first 7 of an EAN-8. The length tells the tool which one.
  2. Read the check digit and the full EAN, then copy it.
  3. Look at the working table to see each weight and product.
  4. Switch to Verify to check a printed EAN, or Bulk for a list.

EAN-13 check digit formula, step by step

Multiply the first 12 digits alternately by 1 and 3 (starting with 1 on the left), add the products, and subtract the total from the next multiple of 10. That difference is the 13th digit.

Worked example with 400638133393:

Digit400638133393
Weight131313131313
Product40018324193999

The sum is 89. The next multiple of 10 is 90, so the check digit is 90 − 89 = 1 and the full EAN-13 is 4006381333931. Its 400 prefix was issued by GS1 Germany (see barcode country codes).

EAN-8 example

For the EAN-8 body 9638507, the weights run 3, 1, 3, 1, 3, 1, 3: 27 + 6 + 9 + 8 + 15 + 0 + 21 = 86. The next multiple of 10 is 90, so the check digit is 4 and the EAN-8 is 96385074. EAN-8 numbers are issued individually by GS1 for packs too small for an EAN-13; numbers starting 0 or 2 are for internal use only.

EAN-13 structure

PartLengthIn 4006381333931
GS1 prefix (issuing office)3 digits400 (GS1 Germany)
Rest of the company prefixVariespart of 638133393
Item referenceVariespart of 638133393
Check digit1 digit1

When you have the full number, the EAN-13 generator makes the barcode and the EAN lookup searches public product databases for it.

Frequently asked questions

What is the EAN-13 check digit?

It is the 13th digit of an EAN-13 barcode. It is calculated from the first 12 digits with weights 1, 3, 1, 3 … from the left, so scanners can detect a misread digit.

How do I calculate an EAN-13 check digit?

Add the digits in odd positions (1st, 3rd … 11th). Add the digits in even positions (2nd … 12th) and multiply that by 3. Add the two totals and subtract from the next multiple of 10. For 400638133393 the total is 89, so the check digit is 1.

Is the EAN-8 check digit calculated the same way?

It uses the same mod 10 rule, but because the number is shorter the weights start with 3 on the left: 3, 1, 3, 1, 3, 1, 3 across the 7 digits. For 9638507 the sum is 86 and the check digit is 4.

Why does EAN-13 weight even positions by 3 when UPC weights odd ones?

Both count the 3s from the right. An EAN-13 has one more digit than a UPC-A, so counting from the left the 3s land on even positions. Put a 0 in front of a UPC-A and you get an EAN-13 with the same check digit.

Can the check digit be 0?

Yes. When the weighted sum is already a multiple of 10, the check digit is 0.

Is EAN the same as GTIN-13?

Yes. EAN-13 is the barcode, GTIN-13 is the number it carries. GS1 renamed the numbering but most people still say EAN.

Related free tools