We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.

How do Magnets Work?

Nicole Madison
By
Updated May 21, 2024
Our promise to you
All The Science is dedicated to creating trustworthy, high-quality content that always prioritizes transparency, integrity, and inclusivity above all else. Our ensure that our content creation and review process includes rigorous fact-checking, evidence-based, and continual updates to ensure accuracy and reliability.

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

Editorial Standards

At All The Science, we are committed to creating content that you can trust. Our editorial process is designed to ensure that every piece of content we publish is accurate, reliable, and informative.

Our team of experienced writers and editors follows a strict set of guidelines to ensure the highest quality content. We conduct thorough research, fact-check all information, and rely on credible sources to back up our claims. Our content is reviewed by subject-matter experts to ensure accuracy and clarity.

We believe in transparency and maintain editorial independence from our advertisers. Our team does not receive direct compensation from advertisers, allowing us to create unbiased content that prioritizes your interests.

Magnets have magnetic fields that attract items containing iron. For example, some of the substances attracted to magnets include iron, nickel, and steel. Magnets are used for a variety of purposes, ranging from attaching items to refrigerator doors and creating compasses to providing for fast roller coaster rides and converting mechanical energy into electrical energy. They are even used in some toys.

Understanding how magnets work means figuring out the dynamics of a magnetic field. Consider the space that surrounds a magnet. This space is occupied by a magnetic force and is called a magnetic field. If a magnet is placed within this field, it will be acted upon by magnetic forces.

A magnetic field is created as the result of moving charges. A good example of this is electric current that flows through a wire. When this occurs, there are negatively charged, subatomic particles, called electrons, moving through the wire. As these charges move, a magnetic field forms around the wire. Likewise, the magnetic field of a magnet is created by the movement of electrons.

A magnet’s magnetic field either attracts or repels certain metals, as well as other magnets. A magnet has two ends that are referred to as poles. One pole is called north and the other one is referred to as south. To attract magnets to each other, you have to place opposite ends of two magnets near each other. Placing like ends of two magnets near each other causes the opposite to occur; the two magnets repel each other.

Interestingly, the Earth has a natural, magnetic field at is core. If you take a look at a compass, you will notice that one side is marked “N” and faces toward the Earth’s northern magnetic pole. As such, this part of the compass is referred to as the North-seeking pole. However, the Earth’s north magnetic pole should not be confused with its North Pole. The North Pole is located hundreds of miles away from the north-seeking pole.

Though most people are familiar with simple, refrigerator magnets, there are many other types of magnets. They are categorized as permanent, temporary, and electromagnetic. Permanent magnets maintain their magnetic properties for an extended period of time while temporary magnets lose their magnetism more quickly. An electromagnet, on the other hand, is one that is created using electricity. Its strength can be altered based on the electrical current that is allowed to move through it.

All The Science is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Nicole Madison
By Nicole Madison
Nicole Madison's love for learning inspires her work as a All The Science writer, where she focuses on topics like homeschooling, parenting, health, science, and business. Her passion for knowledge is evident in the well-researched and informative articles she authors. As a mother of four, Nicole balances work with quality family time activities such as reading, camping, and beach trips.
Discussion Comments
By anon1000544 — On Oct 15, 2018

It has been stated that everything in the universe is electromagnetic and yet it is also stated that everything has a charge, whether positive or negative. But is is also stated that the nucleus of the atom does not. Why?

By anon1000543 — On Oct 15, 2018

If a bar magnet is composed of a N and a S pole what separates them? If the magnet is broken in two, you should have a single N and an

S pole but you don't. You have a completely new magnet. What happens to the middle?

By anon925246 — On Jan 10, 2014

You assumed today's nickels were made of nickel. They're more likely electroplated copper.

By anon330683 — On Apr 18, 2013

Someone's perpetuating a myth. I have before me a pile of nickels, and a stack of neodimium magnets from floppy drives and they don't attract to the coins before me. Sorry.

By anon280143 — On Jul 16, 2012

@Croewhome: Yes.

@Dayton: Less useful than you think.

@Anon5798: No, unless they wore ferrous hats and lived on space stations with highly magnetized floors. Your bones are stress-sensing and need/like to be in compression.

@anon14750: Exactly!

@anon42336: No. Field lines cannot be cut, but field intensity can be reduced (mu-metal).

@anon30356: Magnetism can be treated as electrostatics dressed up with special relativity. (last chapter of French's 'Special Relativity')

By anon232162 — On Nov 29, 2011

what materials are attracted to magnets?

By anon188548 — On Jun 21, 2011

Do magnets have anything to do with molecular attraction of solid materials?

By anon166587 — On Apr 09, 2011

@14: Magnetism is simply the force of electrical attraction and repulsion shifted sideways by the effects of general relativity. If electrical fields propagated instantaneously, then magnetism would not exist. But they don't. If charged objects are moving with respect to you the observer, you will "predict" different behavior to what they experience. This difference "looks" like a force, which we call magnetism.

As for electrical attraction and repulsion, the explanation seems to be that charged particles exchange photons with each other - that that's what electrical charge *is*. These photons carry momentum, and so electrons "exchanging" a photon are pushed apart.

Electrical attraction is weirder - the idea seems to be that positively and negatively charged particles are kind of traveling opposite directions in time. Or something.

Permit me to recommend "QED" by Feynman.

By anon166585 — On Apr 09, 2011

Magnetism is what electrical attraction and repulsion "look" like under lorentz transformations. That is, magnetism is relativity combined with Coulomb's laws.

@15 and @24: The link is that a particle's electrical charge is its propensity to engage in photon exchange.

@36: Oooh, I'd bet my house that it's an electromagnet.

@37: Magnets do not generate an "infinite" force of attraction, any more than an downward-sloping hill generates an "infinite" force of falling. There are plenty of perpetual-motion machine designs based on permanent magnets. None of them work. If they did, the would wold be a very different place.

By anon127950 — On Nov 17, 2010

about the tv thing, yeah i did that before. just wave the magnets around the screen until it's about back to normal.

By anon111285 — On Sep 15, 2010

Why is my pee yellow? Is it something to do with magnets?

Also, how do magnets generate this seemingly infinite energy of attraction?

By anon106861 — On Aug 27, 2010

How do switchable magnets work? The devices used on optical benches with the on/off switch. I don't think that they are electromagnetic. thanks.

By anon79473 — On Apr 22, 2010

To 15, they don't emit charged particles, the EM force is governed by photon exchange.

To 17, they behave the same in water, the water won't dampen the field.

To 18, the heat makes the molecules vibrate and gain energy, giving them room to point their little magnetic dipoles in different directions instead of them all mostly pointing in the same direction. Overall this cancels out the whole magnetic field.

To 19, yes, those are the three main elements that are magnetic.

By anon71880 — On Mar 20, 2010

do iron, nickel, and cobalt attract to magnets?

By anon64659 — On Feb 08, 2010

Why does heat depolarize magnets?

By anon64397 — On Feb 07, 2010

How do magnets react in water?

Preschooler question.

By anon61170 — On Jan 18, 2010

if magnets truly work with no molecule particles to act on it seems to me then they must then emit ionized or charged particles to create a magnetic field. the high and low charge may be the cause for rejection of each other. like static electricity, the molecules then repel each other depending on how the charged molecule is situated when it comes in contact with its opposite charge thus north /south poles/bdh.

By anon50356 — On Oct 28, 2009

Lots of information on what a magnet does, and the magnetic fields; but not one single thing on how. How does one magnet push or pull on another one? Not the usual junk but really how? or maybe we don't know? What is that force? Greg

By anon47751 — On Oct 07, 2009

"Please help. My three year old rubbed a magnet across my TV and now the color is messed up. can I do anything to fix this?" Call a few TV repair shops and asking if they can "degauss" a TV. If that fails you might try building a home made degaussing coil but there is a risk you can make things worse. Note that it might repair itself over period of weeks of switching it on and off in normal use. By off I mean off not standby.

By anon46468 — On Sep 25, 2009

Please help. My three year old rubbed a magnet across my TV and now the color is messed up. can I do anything to fix this?

By anon42336 — On Aug 20, 2009

Is there any material that can stop/block a magnetic force?

By concordski — On Aug 01, 2009

to #9 and #1: Magnets do not require air or any other medium to operate. Magnetic forces are transmitted through gases, solids AND vacuums. So, they work in space just fine.

By anon39362 — On Aug 01, 2009

Why do magnets work in space?

By anon22637 — On Dec 07, 2008

yes, magnets work in space. There are always magnetic fields to be attracted to. Or repelled from i suppose.

By anon14750 — On Jun 23, 2008

There are a lot of sensitive instruments in the spacecraft, none of which you would want being influenced by stray magnetic fields coming from, say, a flashlight with a magnetic clip. Velcro is the method of choice! Timothy A. Jones Sr. Systems Engineer

By kennyli2 — On May 26, 2008

isn't cobolt able to attract?

By anon5798 — On Dec 06, 2007

would astronaughts be able to use magnets like a synthetic gravity? This might make their bodies fight the magnetic force like gravity, and in the least, slow the decaying process of their bones?

By Dayton — On Aug 02, 2007

Yes, actually, they do. The conditions that make a magnet work have nothing to do with gravity or air. Though I don't know for sure, I would expect magnets to be very useful on a spacecraft to prevent things from floating around.

By crowehome — On Jul 31, 2007

Do magnets work in space?

Nicole Madison
Nicole Madison
Nicole Madison's love for learning inspires her work as a All The Science writer, where she focuses on topics like...
Learn more
All The Science, in your inbox

Our latest articles, guides, and more, delivered daily.

All The Science, in your inbox

Our latest articles, guides, and more, delivered daily.