Skip to content

EAN-13 check digit calculator for barcodes

Type the first 12 digits of a barcode. The calculator returns the 13th digit, called the check digit, and the full 13-digit EAN-13 number. For 890123456789 the check digit is 0.

A calculator, rupee notes and a receipt on a shop counter.
Check digit
0
Full EAN-13 barcode
8901234567890

When you need a check digit

  • You are making your own barcodes for loose goods or house-brand packs.
  • A barcode on a product will not scan and you want to see if the number was copied wrongly.
  • A supplier sent a product list with 12-digit codes and the 13th is missing.

Using it

  1. Type the first 12 digits of the barcode, spaces allowed.
  2. Read the check digit and the full EAN-13 barcode.
  3. Compare the 13th digit with the one printed on the product. If they differ, a digit was mistyped somewhere.

How the check digit is calculated

  1. Add the digits in the 1st, 3rd, 5th, 7th, 9th and 11th places.
  2. Add the digits in the 2nd, 4th, 6th, 8th, 10th and 12th places and multiply that sum by 3.
  3. Add the two results.
  4. The check digit is the number that brings that total up to the next multiple of 10 (0 if it is already one).

Example: for 890123456789, odd places give 8+0+2+4+6+8 = 28, even places give (9+1+3+5+7+9) × 3 = 102. 28 + 102 = 130, already a multiple of 10, so the check digit is 0 and the barcode is 8901234567890.

Mistakes with homemade barcodes

  • Making up a 13-digit number without a correct check digit. Scanners reject it.
  • Using a number that clashes with a real brand's barcode.
  • Printing barcodes too small or too pale for the scanner to read.
  • Assuming a correct check digit means the number is registered. Registered numbers come from GS1, not from this sum.

Barcodes in Galladar

For items with no maker's barcode, Galladar can generate a barcode and print it on a TSPL label printer, for example on 50×25 mm labels. See barcode labels and barcode billing, and the label printers guide for setting up the printer.

Questions shopkeepers ask

Does a correct check digit mean my barcode is official?

No. It only means the number is well formed. Officially registered numbers are issued by GS1.

Why does my scanner reject a barcode I made?

A wrong check digit is the most common reason. Print size and contrast are the next ones to check.

Can I use this for 8-digit barcodes?

No. This calculator is for EAN-13 only.

Last reviewed

Read next

Billing, stock and udhaar khata in one place

Galladar keeps billing when the internet drops. 30 days free, no card, and we set it up with you on the phone.