Barcode Check Digit Calculator

Calculate or validate the check digit for EAN-13, UPC-A, EAN-8, and ITF-14 barcodes. Enter your digits — the tool detects the format automatically and shows the full Mod-10 calculation.

Supports EAN-13 (12–13), UPC-A (11–12), EAN-8 (7–8), ITF-14 (13–14) {{ data.input.length }} digits entered — enter a supported length to continue {{ data.input.length }} digits — ready to calculate check digit {{ data.input.length }} digits — ready to validate barcode
Format: {{ result.format }}
Status: {{ result.message }}
  • Base digits: {{ result.input }}
  • Check digit: {{ result.check_digit }}
  • Full barcode: {{ result.full_code }}
  • Your barcode: {{ result.input }}
  • Expected check digit: {{ result.check_digit }}
  • Your check digit: {{ result.given_digit }}
Step-by-step Mod-10 Calculation — click to expand
Position Digit Multiplier Value
{{ s.position }} {{ s.digit }} × {{ s.multiplier }} {{ s.value }}
  • Odd positions sum (× 1): {{ result.steps.odd_sum }}
  • Even positions sum × 3: {{ result.steps.even_sum }} × 3 = {{ result.steps.even_x3 }}
  • Total: {{ result.steps.odd_sum }} + {{ result.steps.even_x3 }} = {{ result.steps.total }}
  • Remainder: {{ result.steps.total }} mod 10 = {{ result.steps.remainder }}
  • Remainder is 0, so check digit = 0
  • Check digit: 10 − {{ result.steps.remainder }} = {{ result.steps.check_digit }}

What Is a Barcode Check Digit Calculator?

A check digit calculator helps you find or verify the final digit of a barcode number.

Every GS1 barcode — including EAN-13, UPC-A, EAN-8, and ITF-14 — ends with a check digit. This digit is mathematically derived from the preceding digits using the Mod-10 algorithm, and its purpose is to catch scanning or data entry errors.

This tool works in two modes: calculate the missing check digit from a base number, or validate whether the check digit on an existing barcode is correct.

Calculate vs Validate Mode

The tool automatically switches mode based on how many digits you enter:

Supported Barcode Formats

This tool supports all GS1 barcode formats that use the Mod-10 check digit algorithm:

Note: Code128 and Code39 do not use a user-facing check digit and are not applicable here. Use the Barcode Analyzer for those formats.

How the Mod-10 Algorithm Works

The check digit is calculated using the GS1 Mod-10 (modulo 10) algorithm:

  1. Starting from the left, multiply odd-position digits by 1 and even-position digits by 3
  2. Sum all the resulting values
  3. Divide the sum by 10 and take the remainder
  4. If the remainder is 0, the check digit is 0. Otherwise, subtract the remainder from 10

This tool shows the full step-by-step breakdown so you can verify the calculation yourself.

Frequently Asked Questions

What is a barcode check digit?

A check digit is the last digit of a barcode number. It is calculated from the preceding digits using the Mod-10 algorithm and is used to verify that the barcode was scanned or entered correctly.

How is the EAN-13 check digit calculated?

The EAN-13 check digit uses the GS1 Mod-10 algorithm. Odd-position digits are multiplied by 1, even-position digits by 3. The products are summed, and the check digit is 10 minus the remainder when divided by 10 (or 0 if the remainder is already 0).

What is the difference between calculate and validate mode?

Calculate mode takes 12 digits (EAN-13 base) and computes the missing 13th check digit. Validate mode takes a full 13-digit barcode and checks whether the check digit is correct.

Does this tool support UPC-A and EAN-8?

Yes. The tool automatically detects the format based on how many digits you enter. It supports EAN-8 (7–8 digits), UPC-A (11–12 digits), EAN-13 (12–13 digits), and ITF-14 (13–14 digits).

Why is my barcode check digit wrong?

Common causes are a typo in one of the digits, a digit transposition, or the barcode number being from a different format than expected. Use this tool to calculate what the correct check digit should be.

Barcode Check Digit Calculator