Skip to main content
Online Tool

Barcode Check Digit Calculator

Enter the body of a UPC, EAN or GTIN and we'll compute the correct check digit — with a full step-by-step breakdown.

All math happens in your browser. Nothing is uploaded.

Result

Enter the body digits and the check digit will appear here, with the full weighted-sum breakdown.

Supported barcode types

The calculator handles every GTIN length that uses the GS1 mod-10 algorithm.

GTIN-8 / EAN-8
Body: 7 digits

Small retail packages where space is tight.

GTIN-12 / UPC-A
Body: 11 digits

Standard US and Canadian retail barcode.

GTIN-13 / EAN-13
Body: 12 digits

Global retail standard outside North America.

GTIN-14 / ITF-14
Body: 13 digits

Cases, cartons and pallets in logistics.

Examples

Verified samples for every supported format. The complete code is the body with the calculated check digit appended.

FormatBodyCheck digitFull code
GTIN-87351353773513537
GTIN-12036000291452036000291452
GTIN-1350123456789005012345678900
GTIN-141061414100041510614141000415

About this barcode check digit calculator

This barcode check digit calculator computes the final digit of a UPC-A, EAN-13, EAN-8 or GTIN-14 barcode using the GS1 mod-10 algorithm. Paste the body digits — everything except the trailing check digit — and the tool returns the missing digit, the complete code, and a step-by-step breakdown of how the result was reached.

Use it whenever you need to calculate a GTIN check digit by hand, verify what a printed barcode should end with, or generate a fresh code from a body issued by your numbering authority.

When to use it

  • Generating a new EAN-13 from an issued 12-digit body before sending it to a label printer.
  • Calculating a UPC check digit when a supplier sent you only the first 11 digits.
  • Building a GTIN-14 carton code on top of an inner GTIN-13.
  • Recomputing a check digit after correcting a typo in the body.
  • Teaching a teammate how the GS1 mod-10 algorithm actually works.

How it works

  1. Pick a format

    Choose GTIN-8/12/13/14, or leave Auto-detect on and we'll pick by length.

  2. Paste the body

    Enter the digits without the check digit. Spaces, dashes and dots are stripped.

  3. We weight each digit

    Walking from right to left, odd positions get ×3, even positions get ×1.

  4. We sum and round up

    The weighted sum is rounded up to the next multiple of 10.

  5. You get the check digit

    The difference between the rounded value and the sum is your check digit. Copy the full code in one click.

What to avoid

  • Pasting the full barcode including the existing check digit — use the GTIN Validator for that.
  • Mixing UPC-A and UPC-E lengths — UPC-E needs to be expanded first.
  • Trusting hand-computed digits without re-verifying; one digit off cascades through the whole code.
  • Treating the calculator as a product database — it doesn't look up names or prices.
  • Generating a GTIN body yourself; bodies must come from a GS1-assigned prefix.

Tips & tricks

  • If Auto-detect picks the wrong format, switch the dropdown to the format you intend.
  • Click an example below to see the full step-by-step breakdown instantly.
  • When the sum is already a multiple of 10, the check digit is 0 — not 10.
  • For ITF-14, the leading 'indicator digit' (1–8) is part of the body and is weighted ×3.
  • Pair this with the GTIN Validator to confirm an existing code after you've calculated the check digit.

Frequently asked questions

How does a barcode check digit calculator work?
It applies the GS1 mod-10 algorithm: multiply each body digit by 3 or 1 in an alternating pattern (counted from the right of the body), sum the results, then pick the digit that brings the total up to the next multiple of 10. The result is appended to the body to form the complete barcode.
Which formats does this calculator support?
UPC-A (GTIN-12), EAN-13 (GTIN-13), EAN-8 (GTIN-8) and ITF-14 (GTIN-14). All four share the same mod-10 algorithm — only the body length differs.
What do I paste — the full barcode or just the body?
Just the body, without the trailing check digit. For UPC-A that's 11 digits, for EAN-13 it's 12, for EAN-8 it's 7, for GTIN-14 it's 13. In Auto-detect mode the calculator picks the format from the length you entered.
Can I use this as an EAN-13 check digit calculator?
Yes. Pick GTIN-13 / EAN-13 (or use Auto-detect) and paste the first 12 digits. The 13th digit shown in the result is the EAN-13 check digit.
Does it work for UPC-E?
UPC-E codes are derived from a UPC-A. Calculate the UPC-A check digit here using the 11-digit body, then compress to UPC-E with the UPC Lookup tool if needed.
Are my numbers sent to a server?
No. The calculation runs entirely in your browser. Nothing is uploaded, logged or stored.

Related tools