Skip to main content
Check Digit Calculator
GS1

GTIN-13 / EAN-13 Calculator

Calculate the thirteenth digit of a GTIN-13 or EAN-13 barcode. Follow the twelve-digit payload through its weighted checksum.

Last updated:

GS1 & Retail Barcodes

Complete thirteen-digit product identifiers.

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

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

How GTIN-13 / EAN-13 Calculator Works?

The GTIN-13 / EAN-13 Calculator works by weighting the 12 payload digits 1-3-1-3 from left to right, summing the products, and appending the digit that completes the next multiple of 10. The first 2 or 3 digits are the GS1 prefix of the issuing GS1 Member Organisation.

  1. 1Enter the 12-digit payload: GS1 company prefix plus item reference.
  2. 2Multiply digits in odd positions (1, 3, 5…) by 1 and even positions (2, 4, 6…) by 3.
  3. 3Add all 12 products.
  4. 4Round the EAN-13 sum up to the next multiple of 10; the difference is digit 13.

GTIN-13 / EAN-13 Calculator Formula

The EAN-13 formula is d₁₃ = (10 − ((odd-position sum + 3 × even-position sum) mod 10)) mod 10.

S = (d₁ + d₃ + … + d₁₁) + 3 × (d₂ + d₄ + … + d₁₂)   (GTIN 13 EAN 13)
d₁₃ = (10 − (S mod 10)) mod 10   (GTIN 13 EAN 13)
  • d₁…d₁₂ are payload digits from the left.
Worked example: 590123412345
Payload:  590123412345
Weights:  131313131313
S = 83
Check digit = (10 − (83 mod 10)) mod 10 = 7
EAN-13 = 5901234123457

GTIN-13 / EAN-13 Calculator Conversion Table

The GTIN-13 conversion table lists sample payloads by GS1 prefix with their EAN-13 check digit.

GS1 prefixPrefix regionPayload (12 digits)Check digitEAN-13
590Poland59012341234575901234123457
400Germany40063813339314006381333931
500United Kingdom50001594000085000159400008
890India89010000000028901000000002
690China69012345678926901234567892
978Bookland (ISBN)97803064061579780306406157
200Restricted circulation20000001234552000000123455

A GS1 prefix shows which GS1 Member Organisation issued the company prefix, not the country where the product was made.

What is GTIN-13 / EAN-13 Calculator?

A GTIN-13 / EAN-13 Calculator is a tool that computes the 13th digit of a European Article Number (EAN-13), the most widely used retail barcode outside North America.

EAN-13 covers retail goods, books (prefixes 978 and 979), and sheet music (979-0). The check digit catches every single-digit error in the 13 digits.

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

There are 4 main uses of the GTIN-13 / EAN-13 Calculator, including product launches, ISBN barcodes, and data audits.

  • Product launches: Brand owners complete EAN-13 codes for new items.
  • Book barcodes: Publishers turn 978 and 979 ISBN-13 numbers into EAN-13 symbols.
  • In-store codes: Supermarkets create 2-prefix codes for weighed goods.
  • Data audits: Retailers detect EAN-13 values with wrong check digits in ERP systems.