GS1 Check Digit Calculator
Use this free GS1 check digit calculator to find the missing last digit of a GTIN, EAN or UPC barcode — or to verify a complete code. Enter the digits without the check digit and the tool instantly calculates it using the official GS1 modulo-10 method, showing every step of the maths so you can check it yourself. It runs entirely in your browser: no signup, no upload, and nothing leaves your device.
GS1 Check Digit Calculator
Find the missing last digit of a GTIN, EAN or UPC code — with every step of the maths shown. Free, private, no signup.
Supported: GTIN-8 (7 digits), GTIN-12 / UPC-A (11), GTIN-13 / EAN-13 (12), GTIN-14 (13), SSCC-18 (17). Spaces and hyphens are ignored.
100% private — the calculation runs in your browser with plain JavaScript. No upload, no signup, and it works offline once the page has loaded.
How to calculate a GS1 check digit
Enter the barcode digits without the final check digit, then press Calculate check digit. The calculator weights the digits from the right, alternating 3 and 1, adds the products together, and takes the complement to 10. For example, 590123412345 gives products that sum to 83; 83 mod 10 is 3, and (10 − 3) mod 10 is 7, so the complete code is 5901234123457. The tool shows this full working underneath the result, so you can follow — and trust — every digit. If you already have a complete code, paste that instead: the calculator verifies it and, if the check digit is wrong, tells you the correct digit to use.
- Enter the digits without the check digit.
- Press Calculate check digit.
- Copy the full code, or generate the barcode from it with the EAN-13 Barcode Generator or the UPC-A Barcode Generator.
Which barcode formats does it support?
The calculator covers the whole GS1 family, and detects the format automatically from the length you enter. GTIN-8 (EAN-8) covers small retail packs with 7 digits plus the check digit; GTIN-12 (UPC-A) is the 12-digit North American retail code; GTIN-13 (EAN-13) is the 13-digit international retail standard; GTIN-14 is used for cases and cartons; and SSCC-18 identifies pallets and logistics units. All five use the same GS1 modulo-10 check digit method — only the number of digits changes — so one calculator serves every format, from a single product to a shipping pallet. Once you have a valid check digit, put the code on a label: use our GS1-128 barcode generator for logistics labels, or our ITF-14 barcode generator for GTIN-14 case and carton codes.
Why the check digit matters
A barcode’s check digit is its built-in typo detector. One mistyped digit in a product code can mean labels that fail at the checkout, a marketplace listing rejected during onboarding, or stock booked against the wrong item. Checking the digit before you print is far cheaper than reprinting thousands of labels or untangling inventory afterwards. Retailers and marketplaces validate check digits on intake, so a code with a wrong final digit is effectively unusable even if the barcode image itself looks perfect. Run the calculation first, then generate or print the barcode with confidence.
A correct check digit is not the same as a registered barcode
A valid check digit only proves the number is well formed — the right length, all digits, and a check digit that matches the maths. It does not prove the number is registered to you, licensed by GS1, or matched to a real product. For products you plan to sell, use a number from your own GS1 company prefix; numbers made up for testing, mock-ups and internal labels are fine for those purposes but should not be printed on retail packaging. If you need to check a whole spreadsheet of codes rather than one at a time, use our Barcode Validator, which validates lists in bulk.
The final digit of a GTIN, EAN or UPC barcode, calculated from all the preceding digits using the GS1 modulo-10 method. It lets scanners and retailers catch mistyped or misread numbers before they cause problems.
Enter the first 12 digits into the calculator above and press Calculate check digit. For example, 590123412345 gives a check digit of 7, making the complete code 5901234123457, with the full step-by-step maths shown.
Replace the final digit with the correct one shown by the calculator, then reprint or regenerate the barcode. If the code came from a supplier, ask them to confirm it — do not just change the digit on a code that belongs to someone else’s product range.
No. A valid check digit only means the number is structurally correct. Registration and ownership come from a GS1 company prefix, which is a separate step from calculating the digit.