Skip to content
FastTool

How to calculate EAN-13 and UPC-A check digits and print scannable barcode sheets

A wrong check digit, cropped quiet zone, or 94% Fit-to-page print setting turns an otherwise clean retail barcode into an unreadable label.

Updated · Uses the free Barcode & Label Sheet Maker, which runs in your browser

Short answer

Multiply alternating digits from right to left by 3 and 1, add the products, and subtract from the next multiple of 10. Open Barcode & Label Sheet Maker, enter 12 digits for EAN-13 or 11 for UPC-A, and keep quiet zones at 11 modules. Pick Letter 30-up or A4 24-up, download the vector PDF, and print at 100% (Actual size).

Open the Barcode & Label Sheet Maker

Which 1D barcode standard fits your package or shelf bin

Retail checkout scanners and warehouse readers expect specific digit counts and check rules:

Digit counts, check formulas, and module widths across common 1D barcode standards
Standard Digits / chars Check formula Where it is used
EAN-13 12 + 1 digit GS1 Modulo-10 Worldwide retail packages and ISBN-13 books (95 bar modules).
UPC-A 11 + 1 digit GS1 Modulo-10 US and Canadian retail point-of-sale items (95 bar modules).
EAN-8 7 + 1 digit GS1 Modulo-10 Small cosmetics, vials, and narrow retail packs (67 bar modules).
ITF-14 13 + 1 digit GS1 Modulo-10 Corrugated outer shipping cartons with a thick bearer frame.
Code 128 1 to 48 ASCII Weighted Modulo-103 Internal SKUs, shelf bins, serial numbers, and shipping labels.

Worked GS1 Modulo-10 math for EAN-13 and UPC-A

Every GS1 retail number uses the same right-to-left 3-and-1 weighting rule before the final check digit:

  1. Write the data digits without the check digit. Take the 12-digit EAN-13 stem 400638133393 or the 11-digit UPC-A stem 03600029145.
  2. Weight every 1st, 3rd, and 5th digit from the right by 3. For 400638133393, the six weight-3 digits sum to 23 × 3 = 69.
  3. Weight the remaining digits by 1 and add both totals. Adding the weight-1 sum 20 gives 69 + 20 = 89.
  4. Round up to the next multiple of 10. Subtracting 89 from 90 gives check digit 1, completing 4006381333931.

Applying the same steps to UPC-A stem 03600029145 gives weighted sum 58, so 60 − 58 = 2 completes 036000291452.

Quiet zones, partial sticker sheets, and 100%-scale PDF printing

Laser and camera scanners look for a blank white margin on both sides of the bars before decoding transitions.

Leave at least 10 narrow modules of blank white space on each side (11 modules on the left of EAN-13 and UPC-A).

When printing on Avery 5160 Letter 30-up (2.625 × 1 in) or A4 24-up (70 × 37 mm) sheets, set print scaling to 100%.

Open the UPC-A partial-sheet setup starting at cell 13 to reuse a half-peeled Letter sheet. Or open the A4 24-up multi-SKU CSV batch setup directly.

Pair 1D barcode printing with three companion tools when preparing product batches:

  • Keep leading zeros in spreadsheets. Run exported SKU tables through CSV Cleaner & CSV to Excel so codes like 036000291452 keep their leading 0.
  • Encode URLs or Wi-Fi logins as 2D squares. Linear 1D bars hold short codes; use QR Code Generator for web links on packaging.
  • Print custom die-cut brand stickers. For full-color logos with 2 mm bleed and contour cut paths, use Sticker Sheet Maker.

Common mistakes

  • Typing a made-up 13th digit. Changing one digit breaks the Modulo-10 check; let the tool flag mismatches and show the exact corrected digit.
  • Exporting low-resolution JPEGs for thermal printers. JPEG blocks add gray mosquito noise between bars; download vector PDF sheets, SVG, or crisp 300 DPI PNG files instead.
  • Leaving Fit to printable area enabled. Shrinking a 30-up sheet to 94% shifts bottom rows across die-cut seams by up to 4 mm.

Sources

Spotted a mistake in this guide? Email contact@fasttool.app. We reply within 7 business days.

Open the Barcode & Label Sheet Maker