How does an ATM work?
Insert card. The card reader grips the card and talks to its chip. The chip proves it is genuine by answering a challenge with a code made from a secret key it never reveals.
Overview
Short answer
An ATM checks your card’s chip, encrypts your PIN the moment you type it, and asks your bank over a secure network to approve the withdrawal. Once approved, it picks and counts the notes, checking each one for doubles, and returns your card first.
An ATM (automated teller machine) is a strongbox full of cash attached to a small computer, a secure keypad and a fast connection to the banking network. In a few seconds it checks your card is real, checks you are you, asks your bank for permission and counts out notes.
Play with the figure, then press Next (or the → key) to go step by step.
The card: chip beats stripe
The magnetic stripe on a card holds the same data every time, which is why it could be copied by skimmers. The chip is a tiny computer with a secret key that never leaves it. The ATM sends it a challenge, and the chip answers with a code that only the genuine card could produce, a different one every time, much like tap-to-pay.
Your PIN never travels in plain sight
The keypad is an encrypting PIN pad: a sealed unit that encrypts your PIN the instant you type it. If anyone tries to open it, it erases its keys. The scrambled PIN is checked by your bank's secure hardware, so neither the ATM's computer nor the network ever sees the real digits.
Asking your bank
The ATM sends the request through its operator and, if it belongs to another bank, through a shared card network, to the bank that issued your card. The bank checks the PIN, your balance, daily limits and fraud patterns, then sends back an approval or a refusal, usually in a second or two.
Counting the cash
Notes sit in locked cassettes, one per value. Suction cups or rubber rollers pick them one at a time, and sensors measure each note's thickness and length: two notes stuck together are spotted and diverted to a reject bin. Most machines return your card before your cash, so you can't leave it behind, and pull uncollected cash back inside after about half a minute.
Staying safe
- Cover the keypad with your hand: a hidden camera is the usual way skimming gangs get PINs.
- Look for loose or bulky parts on the card slot or keypad, and use ATMs inside banks where possible.
- Never accept "help" from strangers, and cancel and report a card the ATM keeps.
Common myths
- "Entering your PIN backwards calls the police." This is an internet legend; no such system is in general use.
- "ATMs know your PIN." The machine never sees it unencrypted; only your bank's secure hardware checks it.
- "Cash is stored loosely inside." It is in locked cassettes inside a heavy safe, often with dye packs that stain the notes if forced.
Questions people ask
Why did the ATM keep my card?
Usually after too many wrong PINs, if the bank reported the card lost, or if the card was left in the slot too long. Contact your bank to get a new one.
What happens if the ATM doesn’t give me the cash?
The machine and the bank both log the transaction. Report it to your bank: when the ATM’s cash count shows the notes weren’t dispensed, the money is returned.
Why do some ATMs charge a fee?
Using another bank’s or a private operator’s machine costs them a fee for the network and cash handling, which they may pass on to you.
How do cardless withdrawals work?
Your banking app creates a one-time code or QR code, which you enter or scan at the ATM instead of inserting a card.
Can ATMs be hacked?
Criminals use skimmers, hidden cameras and sometimes malware. Encrypted PIN pads, chip cards and anti-skimming hardware make attacks much harder.
Test yourself
Pick an answer for each question. Every answer comes with an explanation.
0/4 answered01Why is a chip card safer than a magnetic stripe?
02What does the encrypting PIN pad do?
03Who decides whether you can withdraw the money?
04How does the ATM avoid giving out two notes at once?
Sources & more
Sources
- Automated teller machine (Wikipedia)(opens in a new tab)
- Encrypting PIN pad (Wikipedia)(opens in a new tab)
- EMV (Wikipedia)(opens in a new tab)
- Credit card fraud: skimming (Wikipedia)(opens in a new tab)
Last updated 2026-11-26
Keep exploring
- Money & SecurityExplore it
How does tap-to-pay work?
- Money & SecurityExplore it
How does a bank card chip work?
- Money & SecurityExplore it
How does two-factor authentication work?
- Money & SecurityExplore it
How does a security camera work?
- Money & SecurityExplore it
How do online card payments work?
- Money & SecurityExplore it
How do metal detectors and airport scanners work?