The Luhn algorithm, or MOD 10, is key to our tool. IBM’s Hans Peter Luhn made this math formula to check card numbers.It doubles every other digit from the right. Then, it adds up all digits. If the sum divides by 10, the card number is valid.