Skip to main content
Check Digit Calculator
GS1

GTIN-8 / EAN-8 Calculator

Calculate the eighth digit of a GTIN-8 or EAN-8 barcode. Follow the seven-digit payload, alternating weights and Modulus 10 sum.

Last updated:

GS1 & Retail Barcodes

Complete eight-digit product identifiers.

Length: 7 chars
Calculated Check Character / Checksum
--Ready
Complete Validated Sequence:
--
Arithmetic Steps & Mathematical Specification

Initialising algorithm engine for GTIN-8 / EAN-8 Calculator...

How GTIN-8 / EAN-8 Calculator Works?

The GTIN-8 / EAN-8 Calculator works by weighting the 7 payload digits 3-1-3-1-3-1-3 from left to right, summing the products, and appending the digit that rounds the sum up to the next multiple of 10.

  1. 1Enter the 7-digit payload issued by a GS1 Member Organisation.
  2. 2Multiply digits 1, 3, 5, and 7 by 3 and digits 2, 4, and 6 by 1.
  3. 3Add the 7 products.
  4. 4Subtract the sum from the next multiple of 10 to get the 8th digit.

GTIN-8 / EAN-8 Calculator Formula

The GTIN-8 formula is Check = (10 − ((3d₁ + d₂ + 3d₃ + d₄ + 3d₅ + d₆ + 3d₇) mod 10)) mod 10.

S = 3·d₁ + 1·d₂ + 3·d₃ + 1·d₄ + 3·d₅ + 1·d₆ + 3·d₇
d₈ = (10 − (S mod 10)) mod 10
  • d₁…d₇ are the payload digits from the left.
  • d₈ is the check digit.
Worked example: 9638507
Payload:  9638507
Weights:  3131313
S = 86
Check digit = (10 − (86 mod 10)) mod 10 = 4
EAN-8 = 96385074

GTIN-8 / EAN-8 Calculator Conversion Table

The GTIN-8 conversion table lists sample 7-digit payloads with their EAN-8 check digit and 14-digit format.

Payload (7 digits)Weighted sumCheck digitEAN-8GTIN-14 format
96385078649638507400000096385074
40076304004007630000000040076300
50123454825012345200000050123452
12345676001234567000000012345670
0000000000000000000000000000000
73513536377351353700000073513537

What is GTIN-8 / EAN-8 Calculator?

A GTIN-8 / EAN-8 Calculator is a tool that computes the 8th digit of an 8-digit Global Trade Item Number used on small retail packages. EAN-8 barcodes print at about 55% of the width of an EAN-13 barcode.

GS1 Member Organisations assign each GTIN-8 individually, and only for packs whose printable area cannot hold an EAN-13 barcode, such as lip balm or chewing gum.

What are the uses of GTIN-8 / EAN-8 Calculator?

There are 3 main uses of the GTIN-8 / EAN-8 Calculator, including small-pack barcodes, data checks, and restricted-circulation codes.

  • Small-pack barcodes: Brand owners complete GTIN-8 numbers for cosmetics, confectionery, and pharmacy items.
  • Retail data checks: Category managers confirm EAN-8 codes in supplier files.
  • Restricted circulation numbers: Stores compute check digits for in-store EAN-8 codes starting with 0 or 2.