Check Digit Calculator
Calculate the check digit for a UPC-A or EAN-13 barcode, an ISBN-10 or any number using the Luhn algorithm (credit cards, IMEI).
Calculate the check digit for a UPC-A or EAN-13 barcode, an ISBN-10 or any number using the Luhn algorithm (credit cards, IMEI).
Results
About This Calculator
Choose the code type and type the number without its last (check) digit. Leading zeros are added back automatically for UPC, EAN and ISBN. Append the check digit to the end of your number.
Example
Example: the UPC 03600029145 has check digit 2, giving the full barcode 036000291452. The Luhn check digit for 7992739871 is 3.
Assumptions
UPC-A: digits in odd positions × 3 plus even positions, check = (10 − sum mod 10) mod 10. EAN-13 weights alternate 1 and 3 from the left. ISBN-10 weights 10 down to 2, mod 11 (10 is written X). Luhn doubles every second digit from the right. Numbers longer than 15 digits lose precision in a browser number field.
Frequently Asked Questions
What is a check digit for?
It catches typing and scanning errors — a single wrong digit or swapped neighbours almost always fails the check.
Can a check digit verify a credit card is real?
No — it only confirms the number is well-formed, not that the account exists.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile