EAN-13 Check Digit Calculator

Calculate the official 13th check digit for any 12-digit global EAN number. Includes step-by-step mathematical proof, weighted calculations, and instant barcode generation.

Enter 12-Digit EAN Base

Valid 12 digits entered (Indian 890 prefix).

Step-by-Step EAN-13 Calculation

Step 1: Odd positions (1,3,5,7,9,11) weight 1: ...
Step 2: Even positions (2,4,6,8,10,12) weight 3: ...
Step 3: Grand total sum: ...
Calculated 13th Check Digit: 4
Complete 13-Digit EAN-13 Code
8901030381024

Standard GS1 GTIN-13 validation formula.

The Mathematics of the EAN-13 Modulo-10 Checksum

In the GS1 system of global standards, the 13th digit of an EAN-13 barcode is not chosen arbitrarily by the brand owner. It is a strictly governed mathematical checksum derived from the first 12 digits using a weighted modulo-10 algorithm.

Why EAN-13 and UPC-A Share the Same Mathematical Foundation

A frequent source of confusion among international supply chain managers is why the EAN-13 algorithm multiplies even positions by 3, while UPC-A multiplies odd positions by 3.

The explanation lies in counting from the right side rather than the left:

  • In 12-digit UPC-A, counting backwards from the 11th digit places odd-numbered positions at distances with odd weights.
  • When a 12-digit UPC-A is converted to an international 13-digit EAN-13 by prepending a 0, every existing digit shifts to the right by one place. What was position 1 becomes position 2 (an even position), what was position 2 becomes position 3 (an odd position), and so forth.
  • Consequently, prepending a leading zero to any valid 12-digit UPC-A produces an identical check digit under the EAN-13 formula!

Step-by-Step Worked Example

Let us calculate the check digit for the 12-digit Indian retail code 890103038102:

  1. Identify digits in odd positions (1st, 3rd, 5th, 7th, 9th, 11th): 8, 0, 0, 0, 8, 0. Sum = 16.
  2. Identify digits in even positions (2nd, 4th, 6th, 8th, 10th, 12th): 9, 1, 3, 3, 1, 2. Sum = 19.
  3. Multiply even sum by 3: 19 * 3 = 57.
  4. Sum the two results: 16 + 57 = 73.
  5. Calculate the remainder modulo 10: 73 mod 10 = 3.
  6. Subtract remainder from 10: 10 - 3 = 7. The check digit is 7.

Related Calculators & Converters

Related Articles

Frequently Asked Questions About EAN-13 Check Digits

In UPC-A, the 11 digits are weighted by multiplying odd positions by 3. In EAN-13, because of the addition of a 13th digit, digits in even positions (2, 4, 6, 8, 10, 12) are multiplied by 3, while odd positions (1, 3, 5, 7, 9, 11) have a weight of 1. When a 12-digit UPC-A is converted to EAN-13 by prepending a 0, the check digit remains identical.
If the grand total is a multiple of 10 (such as 80), the remainder is 0. Under the modulo-10 rule, the check digit is 0.
Yes! Enter any 12 digits starting with 890; the calculator calculates the exact 13th check digit used by GS1 India.
Yes. If you enter 12 digits, it calculates the 13th. If you already have a 13-digit code, use our Barcode Validator tool to verify if your existing check digit is mathematically correct.
The alternating weight (1 and 3) modulo-10 system detects 100% of all single-digit typographical errors and over 90% of adjacent number transpositions.
Yes! Our calculator provides instant vector SVG and 300 DPI PNG downloads of the resulting 13-digit barcode.