Why things are the way they are · #29

Your bank card has 16 digits, and the last one checks the rest

YouTube Short · 44 seconds · 16 November 2026

The story

Your bank card has 16 digits, and the last one checks all the others.

In 1954, Hans Peter Luhn at IBM filed a patent for a machine that checks numbers. His trick: double every second digit from the right, then add them all up. If the total ends in zero, the number is good. Get one digit wrong, and it won't.

Card numbers today follow a standard. The first digit is the industry, and the first six or eight name your bank. Then comes your account number, and the very last digit is Luhn's check digit.

Some cards have 15 or 19 digits, but 16 is the usual length.

So mistype your card online, and the site can spot it instantly.

(Every card number in the video is made up, and the bank is fictional.)

Sources

  1. Google Patents, US 2,950,048, "Computer for Verifying Numbers", Hans P. Luhn, assignor to IBM: filed 6 January 1954, granted 23 August 1960; a hand-operated device with a wheel that shows zero when the number checks. patents.google.com
  2. IEEE Spectrum, "Hans Peter Luhn and the birth of the hashing algorithm": the patent filed on 6 January 1954 for a hand-held mechanical device; the formula doubles every second digit and adds the digits. spectrum.ieee.org
  3. Wikipedia, "Luhn algorithm": the steps from the right; catches all single-digit errors; best known for credit card numbers. en.wikipedia.org
  4. Wikipedia, "ISO/IEC 7812": issuer identification number, account identifier and a Luhn check digit; first digit is the Major Industry Identifier; eight-digit IIN since the 2017 revision; maximum length 19. en.wikipedia.org
  5. Wikipedia, "Payment card number": card numbers 8 to 19 digits; Visa and Mastercard mostly 16, American Express 15. en.wikipedia.org

Today's version

Want one for your own kitchen or home? Here's today's version of the idea.

Shop card holders on Amazon

As an Amazon Associate, Noggleton earns from qualifying purchases. It doesn't cost you anything extra.

New stories from Noggleton keep coming. Subscribe so you don't miss the next one.

Subscribe on YouTube