Intermediate

GTIN Check Digit Calculator — EAN / UPC Barcode

Enter the barcode digits — with or without the check digit — to compute a GTIN check digit or validate an existing one. Supports EAN-8, UPC-A (GTIN-12), EAN-13 and GTIN-14.
Enter 7, 11, 12, or 13 digits (payload only) to compute the check digit — or 8, 12, 13, or 14 digits (full GTIN) to validate
Check digit
590123412345 [7]
Format
GTIN-13 (EAN-13)
Check digit
7
Full GTIN
5901234123457
Weighted sum
83
Check digit calculation (GS1 modulo-10)
1

Digit 1: 5 × 1 (even pos → ×1)

5 × 1 = 5
2

Digit 2: 9 × 3 (odd pos → ×3)

9 × 3 = 27
3

Digit 3: 0 × 1 (even pos → ×1)

0 × 1 = 0
4

Digit 4: 1 × 3 (odd pos → ×3)

1 × 3 = 3
5

Digit 5: 2 × 1 (even pos → ×1)

2 × 1 = 2
6

Digit 6: 3 × 3 (odd pos → ×3)

3 × 3 = 9
7

Digit 7: 4 × 1 (even pos → ×1)

4 × 1 = 4
8

Digit 8: 1 × 3 (odd pos → ×3)

1 × 3 = 3
9

Digit 9: 2 × 1 (even pos → ×1)

2 × 1 = 2
10

Digit 10: 3 × 3 (odd pos → ×3)

3 × 3 = 9
11

Digit 11: 4 × 1 (even pos → ×1)

4 × 1 = 4
12

Digit 12: 5 × 3 (odd pos → ×3)

5 × 3 = 15
13

Sum of products

sum = 83
=

Check digit

(10 − 3) mod 10 = 7
Lock the current result, then change any input to compare scenarios.
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. This is not financial, investment or tax advice; consult a qualified professional. Read the full disclaimer.
Quick answer

How does this calculator work?

The GS1 check digit: multiply each payload digit by alternating weights (3 and 1, starting from the rightmost), sum the products, subtract the remainder from 10 (mod 10). Enter 7–13 payload digits to compute, or 8–14 full digits to validate a GTIN.

Formula
Sum = Σ(digit × weight), weights alternate 3 and 1 from the rightmost digit; check = (10 − sum mod 10) mod 10
How this is calculated

Every GS1 barcode (EAN, UPC, GTIN-14) ends with a check digit computed by the GS1 modulo-10 algorithm, sometimes called the Luhn mod-10 variant. Starting from the rightmost payload digit and moving left, digits at odd positions (1, 3, 5, …) from the right are multiplied by 3, and digits at even positions (2, 4, 6, …) by 1. All products are summed, and the check digit is chosen so that (sum + check digit) is divisible by 10 — equivalently, check = (10 − sum mod 10) mod 10. If the sum is already a multiple of 10 the check digit is 0.

The same algorithm covers all GTIN lengths: GTIN-8 (EAN-8 for small items), GTIN-12 (UPC-A, the standard North American retail barcode), GTIN-13 (EAN-13, the global standard), and GTIN-14 (for logistic units and cases). Enter 7, 11, 12, or 13 digits (payload without the final check digit) to compute the check digit, or enter the full 8, 12, 13, or 14-digit barcode to validate it.

The step-by-step trace below the result shows every multiply-and-add operation, making it easy to verify a hand calculation or to understand why a barcode scanner rejects a specific number.

Frequently asked questions

A single digit transposed or misread causes a check-digit mismatch, and scanners reject the code immediately. Paste the full barcode here — if the check digit shown does not match the last digit you entered, a digit is wrong somewhere.

Yes — ISBN-13 is a GTIN-13 with the prefix 978 or 979. The check digit algorithm is identical. Enter the 12 payload digits (everything except the last digit) to compute or verify the ISBN-13 check digit.

UPC-A is a 12-digit barcode used predominantly in North America; EAN-13 is the 13-digit international standard used everywhere else. GTIN-12 and GTIN-13 are the GS1 standard names for the same things. EAN-13 with a leading zero is effectively a 12-digit UPC-A padded to 13 digits.

Also known as

ean 13 check digit calculator
upc barcode check digit
gtin validator
gs1 check digit calculator
barcode check digit
ean 8 check digit
gtin 14 check digit

APA

TG we-Calculate Editorial Team. (2026). GTIN Check Digit Calculator — EAN / UPC Barcode [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/gtin-check-digit-calculator

Chicago

TG we-Calculate Editorial Team. "GTIN Check Digit Calculator — EAN / UPC Barcode." TG we-Calculate. 2026. https://we-calculate.com/calculator/gtin-check-digit-calculator.

IEEE

TG we-Calculate Editorial Team, "GTIN Check Digit Calculator — EAN / UPC Barcode," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/gtin-check-digit-calculator

BibTeX

@misc{wecalculate_gtin_check_digit_calculator, title = {GTIN Check Digit Calculator — EAN / UPC Barcode}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/gtin-check-digit-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?