Check Digit Calculator (GTIN, UPC, EAN, SSCC)

Quick answer

The check digit calculator works out the GS1 check digit for barcodes, GTIN-8, UPC-A (GTIN-12), EAN-13 / ISBN-13, GTIN-14 and SSCC-18, using the standard mod-10 algorithm, and shows the full code.

Check digit
4
Complete code
629104150024
Code type
GTIN-12 (UPC-A)

The check digit lets scanners detect most typing and scanning errors. GS1 issues company prefixes; you can’t make up valid retail barcodes, but you can verify or complete one. Everything is calculated in your browser, so nothing you type is sent to our server.

How to use the Check Digit Calculator

  1. Barcode digits (without the check digit)
  2. Leading zeros to add

Everything runs in your browser, so results appear instantly and nothing you type is sent to a server.

How it works

Type the barcode digits without the check digit; add leading zeros to convert between formats (e.g. UPC to GTIN-14).

Formula

From the right (excluding the check digit), multiply digits alternately by 3 and 1 Sum the products Check digit = (10 − sum mod 10) mod 10

Worked example

Inputs: Barcode digits (without the check digit): 62910415002; Leading zeros to add: 0.
Results: Check digit = 4; Complete code = 629104150024; Code type = GTIN-12 (UPC-A).

Frequently asked questions

What is a check digit?

The last digit of a barcode, calculated from the others to catch errors.

How is a UPC check digit calculated?

Weights 3 and 1 alternate from the right; the check digit brings the sum to a multiple of 10.

Is the ISBN-13 check digit the same?

Yes, ISBN-13 uses the EAN-13 algorithm.

Sources

  1. GS1: Check digit calculator

Cite this calculator

Speedy Calculator. (2026). Check Digit Calculator (GTIN, UPC, EAN, SSCC). Speedy Calculator. https://speedycalculator.com/calculators/finance/gtin-check-digit/