Free Maker Resources

Free UPC & GTIN Check Digit Calculator

Validate an existing barcode or calculate the missing check digit for any UPC-A, EAN-13, or GTIN-14 barcode — instantly, no signup required.

Setting up products for retail? Craftybase helps makers track what they make, what it costs, and what’s left in stock — without the spreadsheet juggling.

Try free for 14 days

What Is a Check Digit? (Quick Answer)

A check digit is the final digit of a barcode number, calculated from the preceding digits using a GS1 Mod-10 algorithm. For a UPC-A barcode like 012345678905, the 5 at the end is the check digit. It lets scanners detect typos and damaged barcodes instantly — without looking up the product.

What do you want to do?

Enter a complete 12, 13, or 14-digit barcode

Not sure how many digits your barcode should have? Read our guide to generating UPC barcodes

Check your input

Format detected

Please enter a barcode number.

Share this calculator

What Is a Check Digit?

A check digit is a single verification digit appended to the end of a barcode number. It's calculated from all the preceding digits using a mathematical formula, so if anyone makes a typo — or a scanner misreads a damaged barcode — the error shows up immediately.

Without it, a scanner would have no way to know whether 012345678905 and 012345679805 are two different products or a transcription error. With the check digit, one of those numbers is mathematically valid and the other isn't. The scanner rejects the bad one before it can cause a stock error.

How Is the Check Digit Calculated?

All GS1 barcodes (UPC-A, EAN-13, GTIN-14) use the same Mod-10 algorithm. Here's how it works, using the UPC-A barcode 01234567890? as an example:

  1. Take all digits except the last — the 11 payload digits: 01234567890
  2. Starting from the rightmost digit, alternate multiplying by 3 and 1 going right to left:
    • 0 × 3 = 0
    • 9 × 1 = 9
    • 8 × 3 = 24
    • 7 × 1 = 7
    • 6 × 3 = 18
    • 5 × 1 = 5
    • 4 × 3 = 12
    • 3 × 1 = 3
    • 2 × 3 = 6
    • 1 × 1 = 1
    • 0 × 3 = 0
  3. Sum the products: 0+9+24+7+18+5+12+3+6+1+0 = 85
  4. Check digit = (10 − (85 mod 10)) mod 10 = (10 − 5) mod 10 = 5

So the complete barcode is 012345678905. The same algorithm works for EAN-13 and GTIN-14 — only the number of payload digits changes.

What Barcode Formats Use Check Digits?

Three formats are supported by this calculator, and all three use the same GS1 Mod-10 algorithm:

  • UPC-A (12 digits) — the standard barcode on retail products in the US and Canada. The first digit is a number system character, the next 5 identify the company, the next 5 identify the product, and the final digit is the check digit.
  • EAN-13 (13 digits) — the international equivalent of UPC-A, used worldwide. Adds a two-digit country prefix to the front of the UPC structure. All UPC-A barcodes are valid EAN-13 barcodes when prepended with a leading zero.
  • GTIN-14 (14 digits) — used for trade units (cases, pallets) and in supply chain contexts. Often printed as an ITF-14 barcode on shipping cartons. The first digit is a packaging indicator, and the rest follows the EAN-13 structure.

For a deeper look at setting up barcodes for your products, see our guide to generating UPC barcodes.

Got your barcodes sorted? Craftybase helps you track exactly what you make and what it costs — so you know your margins before you set a price.

Start your free trial →

Why Is My Barcode Scanner Rejecting My Barcode?

If a scanner won't read your barcode, the check digit is the first thing to check. Common causes:

  • Typo when entering digits — a single transposed digit invalidates the check. Paste your full barcode into the validator above to confirm.
  • Manually created barcodes — if you generated a barcode yourself without calculating the check digit, or if you appended a random final digit, the check will fail.
  • OCR or copy-paste errors — some digits look similar (0/O, 1/I, 6/b). The validator will tell you the expected check digit so you can compare.
  • Wrong format — some retailers require GTIN-14 for case-level shipments, not UPC-A. The calculator detects format from length, so you can confirm you're using the right one.

When You Outgrow This Calculator

Manually checking barcodes works for a handful of products. Once you’re managing a real range — multiple SKUs, materials, and batches — you need more than a check digit tool.

Craftybase is inventory and manufacturing software built for small-batch makers. Track your products, materials, and recipes in one place, with automatic COGS calculation on every sale. If you’re setting up barcodes to sell through retail or wholesale, it pairs well with keeping your costs and stock levels accurate on the back end.

Start your free trial →

Who Should Use This Calculator?

  • Product makers getting into retail — if you're setting up barcodes for the first time to supply a retailer or sell on Amazon, this tool verifies your numbers before you print labels.
  • Makers troubleshooting scanner rejections — paste the barcode in, and you'll know within seconds if the check digit is the problem.
  • Wholesale and trade suppliers — GTIN-14 check digit generation for case-level and pallet barcodes used in B2B shipping.
  • Small-batch manufacturers — anyone creating product barcodes internally who wants to verify accuracy before committing to a print run.
  • E-commerce sellers — cross-checking barcodes sourced from suppliers or GS1 before entering them into Shopify, Amazon, or Etsy listings.

Frequently Asked Questions

Sign up for our newsletter

We to help small manufacturers just like you to become more successful. Please join our newsletter to receive regular updates and actionable tips on how to take your maker business to the next level!

    We care about the protection of your data. Read our Privacy Policy.