Magnetic strips store data as tiny magnetized particles whose north-south polarity pattern encodes binary information, and a card reader detects that pattern by moving the strip past a read head that converts magnetic field changes into electrical signals. Every swipe is a physical process of magnetic induction, where the stored pattern is translated into the numbers and letters your payment terminal or hotel lock uses.
Background: From Tape to Card
Magnetic recording dates back to the late 19th century, but the credit-card-sized strip emerged in the 1960s when IBM engineer Forrest Parry glued magnetic tape to a plastic card. The technology was standardized in the early 1970s by the International Organization for Standardization (ISO) under the ISO/IEC 7810 and 7811 series, which define card dimensions, strip location, and data encoding. The strip itself is a thin layer of ferromagnetic material—commonly iron oxide (like rust) or barium ferrite—bonded to the card's plastic. The particles are tiny, typically a few micrometers long, and each acts like a microscopic bar magnet.
How the Strip Stores Data
Data is written onto the strip using a process called magnetic saturation. A write head generates a strong magnetic field that aligns the particles in a specific direction. The direction of alignment—either north-pole-first or south-pole-first—represents a binary 1 or 0. But the strip doesn't store individual bits as isolated magnets; instead, it uses a technique called frequency modulation (FM) or two-frequency coherent phase encoding (also known as Aiken Biphase).
In the most common format (Track 2, used by banks), data is encoded as a series of flux reversals—points where the magnetic polarity flips. A flux reversal at the start of a bit cell represents a 1, and no reversal represents a 0. The read head detects these reversals as voltage spikes. The strip has three tracks: Track 1 (79 characters per inch, alphanumeric), Track 2 (40 characters per inch, numeric only), and Track 3 (107 characters per inch, numeric, often unused). Track 1 holds the cardholder's name and account number; Track 2 holds the account number and expiration date; Track 3 is rarely used.
The Physics of the Swipe: Induction and Read Heads
When you swipe a card, the magnetic strip moves past a read head—a small coil of wire wrapped around a ferrite core with a tiny gap. As the strip's magnetic field passes over the gap, the changing field induces a voltage in the coil according to Faraday's law of induction: a changing magnetic flux through a loop of wire creates an electromotive force. The voltage spikes occur exactly at the flux reversals. The reader's electronics measure the timing between spikes to decode the bits.
The speed of the swipe matters. If you swipe too slowly, the voltage spikes become weak and may not be detected. If you swipe too fast, the timing between spikes becomes too short for the reader to resolve. Most readers are designed for a swipe speed of about 10 to 50 inches per second (25 to 127 cm/s). That's why a steady, moderate swipe works best—the induction signal is strongest and the timing is most reliable.
Why Demagnetization Happens
Magnetic strips lose data when the particles' alignment is disturbed. The most common cause is exposure to a strong magnetic field—like a refrigerator magnet, a phone's speaker, or the magnetic clasp on a purse. A strong field can re-align the particles, scrambling the pattern. Heat also plays a role: above a material's Curie temperature (around 130°C for iron oxide), the particles lose their magnetic alignment entirely. In practice, cards rarely reach that temperature, but prolonged exposure to sunlight or a hot car can degrade the signal gradually.
Physical wear also matters. The strip is only about 0.5 mils (0.013 mm) thick. Every swipe rubs off a tiny amount of the oxide coating. Over hundreds of swipes, the signal weakens because fewer particles remain to produce a detectable field. That's why old cards suddenly stop working—the data is still there, but the signal is too faint for the reader.
How to Choose: Swipe vs. Chip vs. Contactless
Magnetic strips are cheap and simple, but they have a major security flaw: the data is static and can be copied by a skimmer. EMV chips (embedded microprocessors) generate a unique code for each transaction, making them far more secure. Contactless (NFC) works similarly to chip but uses radio waves. Here's a quick comparison:
- Magnetic strip: Lowest cost, works everywhere, but easily cloned and data is static.
- EMV chip: Dynamic transaction codes, harder to clone, but requires a powered terminal and slower at the point of sale.
- Contactless (NFC): Fast, secure like chip, but requires a compatible terminal and has a short range (about 4 cm).
Most modern cards have both a strip and a chip. The strip is a fallback for older terminals. If you have a choice, use the chip or contactless whenever possible—it's safer.
Common Problems and Fixes
If your card's strip fails, the first thing to try is cleaning it. Wipe the strip with a soft, dry cloth or a slightly damp one (then dry it). Dirt and grease can lift the strip slightly, preventing the read head from making contact. Avoid using alcohol or solvents—they can dissolve the binder that holds the oxide particles.
Another common issue is a bent or creased strip. The strip is flexible, but a sharp crease can break the oxide layer, creating a permanent gap in the data track. If the card is physically damaged, no amount of cleaning will fix it—you'll need a replacement card from your bank or issuer.
If your card works in some readers but not others, the problem may be the reader's alignment. The read head must be positioned exactly over the strip's center. Some readers are worn or misaligned, so they can't read a card that has a slightly off-center strip. In that case, try a different terminal.
Safety and Security: The Skimming Threat
The biggest security risk with magnetic strips is skimming—a device secretly reads the strip's data as you swipe. Skimmers are often placed over legitimate card readers at ATMs or gas pumps. They record the track data, which criminals then use to create counterfeit cards. Because the strip data is static, a stolen track can be replayed indefinitely.
To protect yourself, inspect card readers for anything loose or unusual. Wiggle the card slot before inserting. Cover your PIN entry with your other hand. Prefer chip or contactless payments, which generate a unique code per transaction and cannot be replayed. If you suspect your card was skimmed, check your bank statements regularly and report any unauthorized charges immediately.
Alternatives and the Future
Magnetic strips are slowly being phased out in favor of chip and contactless technology. In many countries, chip transactions are now the norm, and some regions have set deadlines to remove strip readers entirely. However, the strip remains useful in low-cost applications like hotel key cards, gift cards, and transit passes, where security is less critical. For high-security uses, smart cards with embedded microprocessors and biometric verification are becoming more common. But for now, the humble magnetic strip still works—as long as you swipe it steadily and keep it away from magnets.
Frequently Asked Questions
Why does my card fail when I swipe too fast?
Swiping too fast causes the flux reversals to pass the read head so quickly that the induced voltage spikes are too short for the reader's electronics to sample. The reader may miss bits or misread the timing, resulting in an error. A steady, moderate speed gives the clearest signal.
Can a phone magnet erase my card?
Yes, if the magnet is strong enough. Modern phone speakers contain neodymium magnets that can be strong enough to re-align the particles on a card strip if placed directly against it. The effect is not immediate, but repeated or prolonged contact can damage the data. Keep cards away from phone cases with magnetic closures.
How many times can I swipe a card before it wears out?
There's no exact number, but a typical magnetic strip is rated for thousands of swipes—often 10,000 or more. The oxide coating slowly wears away with friction, so the signal weakens over time. In practice, most cards expire or are replaced before the strip fails.
Is it safe to use a magnetic strip at an ATM?
It can be safe if the ATM is legitimate and you inspect the card slot for skimmers. However, strip transactions are inherently less secure than chip or contactless because the data is static. If your card has a chip, use the chip slot instead. If you must use the strip, cover your PIN and check for any loose attachments.
What is the difference between Track 1 and Track 2?
Track 1 holds alphanumeric data (letters and numbers) and is used for the cardholder's name and account number. Track 2 holds only numeric data and is used for the account number and expiration date. Most payment terminals read Track 2 because it's simpler and more reliable.
Can a magnetic strip be rewritten?
Yes, with a compatible magnetic stripe encoder. These devices use a write head to re-align the particles, overwriting the old data. This is how hotel key cards and gift cards are programmed. However, most bank cards have a read-only strip—the data is written once at the factory and cannot be changed.