Credit Cards and Magnetic Stripes (2024)

Credit Cards and Magnetic Stripes (1)

We receive a steady stream of questions about how powerful neodymium magnets might affect the magnetic strip on a credit card. This includes questions such as:

  • Can credit cards be damaged by magnets?
  • Can the magnetic strip on a credit card get scrambled or erased with a strong magnet?
  • Does the direction that a magnet faces the credit card matter, north vs. south?
  • Can I shield magnetic fields with some material? What about MuMetal, plastic, aluminum or steel?
  • At what distance is my magnet safe from credit cards?
  • What about RFID chips? Will strong magnets affect these devices?

While we have a good idea about how these things should work theoretically, it seemed about time to try erasing cards with some magnets. This article describes our test results with some cards and a card reader, and provides some guidelines about how to avoid erasing a credit card accidentally.

What is a magnetic stripe card?

Credit Cards and Magnetic Stripes (2)

The first prototype of magnetic stripe card used a strip of cellophane magnetic tape fixed to a piece of cardboard with tape. [source]

The magnetic stripes on many credit, banking and other types of cards use a strip of magnetic material to store digital data. A small amount of data is stored on the strip, including the cardholder's name, account number, expiration date, etc.

Magnetic stripes were originally invented in 1960 by IBM to make purchasing with credit cards faster and allow greater use of computers during the process. The growing use of cards by banks, airlines and stores required a faster data entry method than rubbing carbon paper over embossed numbers!

By encoding data on the magnetic stripe, data can be entered into a computer with a single swipe. To the computer, it’s the equivalent of typing the same information in, only faster. In fact, the inexpensive card readers now available look just like another keyboard to your PC. Plug it into a USB port and swipe a card, and the computer sees the output just as if you were typing the data in.

Can you see the data on a magnetic strip?

Credit Cards and Magnetic Stripes (3)

Iron dust makes the three tracks visible.

You can't visibly see the data on a magnetic stripe. By pouring some iron filings or dust on a card, however, we can see vertical strips in the iron dust that indicate where the data is. The strip is like a tiny series of magnets, which interacts with the dust.

In the picture, the vertical lines of the middle stripe (Track 2) are especially obvious, since they are more widely spaced than tracks 1 & 3.

Can a neodymium magnet erase or scramble the data on a magnetic strip?

Yes. If you rub a neodymium magnet directly across the magnetic stripe, with the magnet touching the card, the data is likely to be erased or scrambled.

How strong must the magnetic field be to erase these magnetic strips?

Credit Cards and Magnetic Stripes (4)

Black and silver stripes on the left are high coercivity, while brown stripes on the right are low coercivity. The thinner stripes only use Tracks 1 and 2, and do not include track 3. This thinner stripe is fairly common.

The magnetic strip on credit cards come in two varieties. The high-coercivity ones, like a typical credit card, require a field strength of somewhere around 4,000 gauss to demagnetize. The low-coercivity ones that are often re-written, like hotel keys or gift cards, require about 300 gauss. From Wikipedia:

Magstripes come in two main varieties: high-coercivity (HiCo) at 4000 Oe and low-coercivity (LoCo) at 300 Oe but it is not infrequent to have intermediate values at 2750 Oe. In practical terms, usually low coercivity magnetic stripes are a light brown color, and high coercivity stripes are nearly black...

The key to keeping cards safe is to keep a bit of distance between the magnet and the magnetic strip. Looking for a conservative, general rule that works for almost all magnets? Keep at least 1” between a magnet and a credit card, and 5-6” between a magnet and a low coercivity card like a hotel room key. This is true for even our most huge and powerful magnets; smaller distances can be safe for smaller magnets.

How close can you bring a specific magnet to a magnetic stripe without erasing it?

It depends on the size of the magnet. Let’s consider the case of a D88 cylinder magnet and a typical, high coercivity credit card. Theoretically, the stripe has to “see” a magnetic field of about 4000 gauss to erase it. Using our online magnet calculator (or the formulas found in our article on Surface Fields), we can estimate the field strength at various distances from this magnet.

Plugging numbers into the calculator, we find that the field strength is very high at the surface, about 5903 gauss. The field strength drops below 4,000 gauss at about 0.083” away from the surface. To test this, we move a magnet near the credit card at various distances. In the video below, we controlled this magnet-to-card distance by stacking some paper of known thickness on top of the card. Our test results agreed with the theory: At distances closer than about 1/16” away, we were able to render the card unreadable with this magnet.

  • After rubbing the magnet 0.09” away, the card still worked great every time.
  • After rubbing the magnet 1/16” (0.063”) away, the card sometimes gave read errors, sometimes not. In the video below, we did not get any errors at this distance.
  • After rubbing the magnet 0.05” away, the card didn’t work at all.

Below, we share a short video of our testing at these distances with a high coercivity card.

Credit Cards and Magnetic Stripes (5)

Depiction of the magnetic field near the edges of a D82 disc magnet.

What about a smaller magnet? A D82 magnet has a listed surface field less than 3,000 gauss. Will this magnet be OK at any distance?

No, not necessarily. While thinner magnet shapes exhibit weaker magnetic fields, the magnetic fields are usually stronger out at the edges. The listed surface field of 2,952 gauss is true only at the very center of the magnet. For a magnet this size, we find that the magnetic field exceeds 4,000 gauss out at the edges of the magnet, within about 0.02” from the surface from the magnet. Our testing confirmed this:

  • After rubbing the magnet 0.03” away from the magnetic stripe, the card still worked great every time.
  • After rubbing the magnet 0.02” away from the magnetic stripe, the card didn’t work at all.

What about a bigger magnet? We tried using a powerful 1-1/4” diameter x 1” thick DX4X0 magnet. Theoretically, the field strength drops to about 4,000 gauss at 0.18” away from the surface of the magnet. In our testing, we found that we had to get a little closer than this to wipe the magnetic stripe.

  • After rubbing the magnet 0.2” away from the magnetic stripe, the card still worked great every time.
  • After rubbing the magnet 0.15” away from the magnetic stripe, the card still worked great every time.
  • After rubbing the magnet 0.125” (1/8”) away from the magnetic stripe, the card gave read errors sometimes.

Are these estimates accurate in all situations?

No, it depends very much on the details of your particular situation. The tests we showed here are for a single magnet near a single card.

In some cases, multiple magnets can produce stronger magnetic fields than the single magnet examples we considered here. A pair of magnets with a small gap between them (as described in our Gap Calculator article) can produce a really strong magnetic field. Or, two magnets side by side (as constructed in our Magnetic Knife Holder) can provide a stronger magnetic field right at the intersection of the two magnets.

You might also have a credit card sitting on a steel surface, instead of the non-ferromagnetic desk we tested with. A magnet sitting on a credit card, attracting to a steel surface behind it will make a stronger magnetic field at the card.

In each of these cases, stronger magnetic fields are more likely to damage a credit card.

What about shielding?

Can the strength of a magnetic field be lowered with shielding? Sure. A steel surface between the magnet and the card can reduce the magnetic field at the stripe. Learn more in our article about Shielding Materials.

How much shielding is enough? It depends on the details of your setup.

Does the direction that a magnet faces the credit card matter, north vs. south?

No, the direction does not seem to matter much. The strength of the magnetic field seems to be the important factor when erasing a credit card. The strength will be about the same whether you have the north or the south pole of a magnet near the card.

I want to make a wallet or money clip. How can I make sure the magnet won’t hurt credit cards?

The key to success is having some distance between the magnet and the card. For example, some disc magnets inside a leather wallet or purse like the D81 or D82 might need at least 1/32” thick material between the magnet and any credit cards that might get close to the surface of the material. If you are using our durable Sewing Magnets that are made specifically for this sort of closure, an absolute minimum of 1/32" of material is needed. For some safety margin, we recommend using thicker material, more like 1/16" thick.

While we think this advice is pretty good, each situation can be a little different. Be sure to test your design thoroughly before putting any cards next to a magnet!

For advice on magnetic closures, see our articles about Adhesive Backed Magnets and Sewing Magnets.

What about RFID chips? Will strong magnets affect or disable these devices?

No. RFID chips send out a radio signal, which is not affected by permanent magnets. While RFID devices can be powered by a changing magnetic field (by electromagnetic induction), they can not be scrambled, erased or blocked with a strong permanent magnet.

Appendix: How is information stored on a magnetic stripe? (WARNING: Technical Content follows)

Credit Cards and Magnetic Stripes (6)

The three tracks on a typical magnetic stripe

If you are interested in the details of how bits of information are stored on a card, this appendix is for you. If reading about binary numbers and checksums makes your eyes glaze over, stop here. There really isn't any more information about how magnets affect magnetic stripes.

There are actually three tracks, or stripes of data along the magnetic strip of a credit card. The most common standard includes:

  1. Track 1: 79 alphanumeric characters
  2. Track 2: 40 numeric characters
  3. Track 3: Less commonly used, allows 108 numeric characters

When we swipe a credit card through a reader, we find that Track 1 includes:

Credit Cards and Magnetic Stripes (7)

That data is encoded as a series of ones and zeros along the magnetic strip. Think of it like a bunch of little magnets, arranged in a row along the strip. There’s some convention, like if the north pole is facing up it’s a one, and if the south pole is facing up it’s a zero. By reading the flip-flopping series of magnetization directions, zeros and ones are stored on the magnetic strip. This explanation is a bit simplified (and ignores some interesting details such as timing bits, that are used to sense how fast the card is moving through the reader), but that’s the basic idea.

This is just like information is stored in zeros and ones on the hard drive of your computer, just on the back of a card.

How is the data really stored? If you’re into binary numbers and checksums, here’s an example of how data is encoded on a credit card. Let’s walk through a short example with a short string of characters and convert it into ones and zeros. Most folks really don’t need to know this stuff – modern card readers do all this automatically.

Why mention it here? What we find most interesting is the use of multiple checksums within the data, which help identify if the data has been scrambled. This means that if the stripe is somehow damaged or erased, you’ll tend to see it simply not work in a card reader, rather than providing bad data.

Here’s the brief example: Let’s write a single word “MAGNETS” without the quotes. For track 1 of a credit card strip, we encode letters and numbers in a six-bit code with an added odd parity bit, as specified in ISO/IEC 7811-2.

For each letter, we assign a number according to the Decimal Sixbit table (shown in the Wikipedia link), an earlier character encoding scheme that preceded ASCII. In this ISO format, we start our data string with a % symbol and end with a question mark. For our string of characters "MAGNETS", we actually encode the string: "%MAGNETS?". The binary encoding looks like:

CharacterHexadecimalDecimalBinary
%55000101
M2D45101101
A2133100001
G2739100111
N2E46101110
E2537100101
T3452110100
S3351110011
?1F31011111

Without any error checking, we could just string these binary numbers together and write them to the card. However, this does not include any method of detecting read errors. Per the ISO standard, we include a few checksums to verify the data is correct. With these checks, if one or two of these bits (a 0 or 1 character) is off, we can usually see an error.

First, each character’s binary string of digits is preceded by an odd parity bit. The new bit (0 or 1 number) is chosen to make the sum of the whole number's digits an odd number. If the sum of all of a character’s binary digits is an even number, this extra bit is a 1. If the sum is odd, the extra bit is a 0.

With this extra parity bit added, a chart of binary digits looks like this:

CharacterB5B4B3B2B1B0Parity
%0001011
M1011011
A1000011
G1001111
N1011101
E1001010
T1101000
S1100111
?0111110

Before we’re done, we have to add one more row at the bottom called the LRC, or Longitudinal Redundancy Check. In each vertical column of the table above, B5 through B0, we sum up the digits in the column. The new “LRC” line contains an even parity bit. That is, we add a digit that makes the sum even. If the sum of the numbers above that digit was even, the bit is 0. If the sum was odd, the bit is 1. Here's an updated table with the LRC row added:

CharacterB0B1B2B3B4B5Parity
%1010001
M1011011
A1000011
G1110011
N0111011
E1010010
T0010110
S1100111
|1111100
LRC1011110

The parity bit in the LRC row is an odd parity bit for the horizontal row of LRC numbers B5 through B0. Note that we reversed the order of the B0 through B5 digits in this last table.

With this table, we have all the data we need. Just list the binary number characters in a row, one after another. What is written to Track 1 of the card looks like this:

Credit Cards and Magnetic Stripes (8)

That’s the actual ones and zeros that get written to Track 1 of the magnetic stripe on the card.

Sure, let's break down the concepts mentioned in the article:

Magnetic Stripe Card:

It's a card with a magnetic stripe storing digital data like the cardholder's name, account number, expiration date, etc. This technology was invented in 1960 by IBM to make credit card transactions faster and more efficient.

Magnet Effect on Magnetic Stripes:

  • Damage Potential: Neodymium magnets can damage or erase data on magnetic stripes if rubbed directly against the card.
  • Field Strength: High-coercivity stripes need around 4,000 gauss to demagnetize, while low-coercivity stripes (e.g., hotel keys) require about 300 gauss.
  • Safe Distance: Keeping a minimum distance of 1" for credit cards and 5-6" for low-coercivity cards from magnets is recommended. However, actual safe distances vary with magnet size and strength.

Magnet Testing & Distances:

  • Specific magnet sizes and distances affect magnetic stripes differently.
  • For instance, a D88 cylinder magnet can render a card unreadable within about 1/16" distance.
  • Smaller magnets might still affect cards due to stronger fields at their edges.
  • Larger magnets might affect cards at closer distances than calculated due to their strong fields.

Shielding:

  • Using materials like steel can lower the magnetic field between the magnet and the card.
  • The amount of shielding required depends on individual setups and magnet-card distances.

Magnet Direction & Credit Cards:

  • The direction (north or south pole) of the magnet doesn't significantly affect card erasure; the field's strength matters most.

Magnet-Proof Wallets or Money Clips:

  • Placing disc magnets (like D81 or D82) inside a wallet may require a minimum of 1/32" to 1/16" thickness between magnets and cards to prevent damage.

RFID Chips:

  • Unlike magnetic stripes, RFID chips are not affected by permanent magnets. They transmit radio signals and cannot be scrambled, erased, or blocked by magnets.

Technical Details of Magnetic Stripe Encoding:

  • Magnetic stripes consist of three tracks storing alphanumeric or numeric characters.
  • Data is encoded using a series of ones and zeros along the strip, like a row of tiny magnets, representing the information.
  • Various checksums are embedded within the data to detect errors, ensuring the card functions properly.

This comprehensive breakdown covers how magnets interact with magnetic stripe cards, the nuances of safe distances, shielding, magnet strengths, and the technical encoding of data on the magnetic stripe itself.

Credit Cards and Magnetic Stripes (2024)

FAQs

Can magnetic strips affect credit cards? ›

Scratches and general wear are common causes of demagnetization, but prolonged exposure to magnets can also ruin a card's magnetic strip. Fortunately, you don't need to worry about magnetic damage if your credit card has an EMV chip.

What information is on the magnetic strip of a credit card? ›

These tracks contain the cardholder's name and account number, the card's expiration date, a service code, and a card verification code. Credit cards primarily or exclusively use the first two tracks. The third track sometimes contains additional information such as a country code or currency code.

How do I get my magnetic strip on my credit card to work? ›

If you use your credit card long enough, sooner or later that sensitive magnetic strip will get worn down and no longer swipe properly. While you're waiting for your replacement card, here's a quick fix: Tape over the magnetic stripe. Wired explains why this works: A credit card is like a cassette tape.

Are credit cards and bank cards examples of magnetic stripe? ›

Magnetic stripe cards use the same conventional magnetic recording technology used for audiotapes, and are currently used with credit and debit cards. They consist of a standard coercivity plastic card to which a strip of magnetic tape is applied.

Will magnets mess up my credit card? ›

Credit Cards:

Magnets can erase the data on a magnetic stripe, rendering the card useless. The strength of the magnet required to damage a card depends on the card's magnetic stripe technology.

What are the disadvantages of magnetic stripe card? ›

Can be damaged:Magnetic card can be easily damaged from a small scratch or even from a wrong type of exposure to a magnetic force. Does not work from a Distance:Magnetic strip cards do not work from a distance. It is essential for the user to come close to the reader for enabling it to read the information.

Can magnetic stripes on credit cards become demagnetized? ›

Coming in close contact with anything magnetic can erase the information encoded on the magnetic strip. If your card is on the counter while a cashier is deactivating the security device on a new DVD, for instance, the strip can become demagnetized.

Is the CVV stored on the magnetic strip? ›

There are two CVVs associated with most debit or credit cards. The first is encoded in the magnetic strip used for in-person transactions; the second is visible on the card. This is the one you must input when making an online purchase.

Do you need track 1 to swipe? ›

Track 3 is rarely used and may not always be present on a card. Both Track 1 and Track 2 contain enough basic information for processing payment card swipes.

Why is my magnetic strip not reading? ›

You scratched or damaged the stripe

Over time, these magnetic particles may get muffled or severed by normal wear and tear. This means the magnetic stripe may be unable to retrieve the identifying information it needs to complete the transaction.

Why do credit cards have magnetic stripe on the back? ›

Magnetic stripes on credit cards store digital data on a strip of magnetic material. The strip stores a small amount of data, such as the account number, cardholder's name, expiration date, etc.

What to do if your credit card won't swipe? ›

If enough dirt or debris gets between your card's strip or chip, the card reader may not be able to process the transaction. Luckily, this is the easiest one to remedy – you can wipe the card down with a clean cloth, or even use adhesive tape to pull off offending particles.

Can a cell phone demagnetize credit cards? ›

Phones do create a magnetic field, but thankfully, it isn't strong enough to demagnetize credit or debit cards. The small magnet in the phone's speaker is the main culprit of generatingthe magnetic field. This field, however, is too weak to cause sufficient damage to a credit card magnetic strip, with some exceptions.

What is the difference between a smart card and a magnetic stripe card? ›

For a magnetic stripe card to work, the service provider is required to swipe the card, the card then processes the information via an on-line system and will then authorise the card. A smart card works off-line and does not need to be processed on-line.

How to destroy magnetic strips on credit card? ›

The magnetic strip positioned on the back of your card is made up of multiple tracks which stores your personal data. To void the use of the magnetic strip and render its capability useless, run a magnet along the strip a few times. Tip: any magnet will work – including a fridge magnet.

Why are credit cards moving away from magnetic strips? ›

This now common occurrence began in 2021 when Mastercard announced that it would be phasing out the magnetic stripe format on credit and debit cards it issues over the next decade to provide better security and fraud prevention.

Can you clean a magnetic strip on a credit card? ›

You can clean a magnetic strip with soap and water, an antibacterial wipe, rubbing alcohol, a safe household cleaner, or a UV light sanitizer. You can even use a pencil eraser or a piece of clear tape to remove dirt from a magnetic strip.

How do you know if your card is demagnetized? ›

If you find the magnetic stripe on your credit card is no longer working, it may have become demagnetized.

Top Articles
Latest Posts
Article information

Author: Msgr. Refugio Daniel

Last Updated:

Views: 6403

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Msgr. Refugio Daniel

Birthday: 1999-09-15

Address: 8416 Beatty Center, Derekfort, VA 72092-0500

Phone: +6838967160603

Job: Mining Executive

Hobby: Woodworking, Knitting, Fishing, Coffee roasting, Kayaking, Horseback riding, Kite flying

Introduction: My name is Msgr. Refugio Daniel, I am a fine, precious, encouraging, calm, glamorous, vivacious, friendly person who loves writing and wants to share my knowledge and understanding with you.