Sometimes, silly questions can teach us fascinating things. Each month, BoingBoing science editor Maggie Koerth-Baker takes one query submitted by a child (or former child) and finds the eye-opening science behind seemingly simple questions.

It seems that we all owe the Insane Clown Posse a bit of an apology.

Last year, we, the Internet, watched the music video for the song "Miracles" and had a good, hearty chuckle. Here were two grown-ass* men wearing white sweatsuits and clown makeup, frolicking beneath poorly CGI'd rainbows as they philosophized about the miraculous nature of things that were, really, not especially miraculous. The fact that Shaggy 2 Dope's kids look like him is not an inexplicable act of God, it's genetics. The existence of rainbows is a wonder of optics, not an unknowable mystery.

The song was a lot less twitch-inducing once you understood that the Insane Clown Posse didn't literally think pet cats and dogs were miracles. In reality, they were simply trying to convey excitement about the awesomeness of the Universe—something I can get behind, even if I, personally, think that scientific explanations only add to that awesomeness, rather than detract from it.

But that's not what the apology is for. Instead, it all comes back to the most famous line in the "Miracles" song. Say it with me now, "Fucking magnets, how do they work?"

Oh, sure, it sounds ignorant on the surface. After all, didn't we all learn about magnets in, like, third grade? But you have to think about the specific question. The Insane Clown Posse didn't ask, "What are magnets?" or "What do magnets do?" If most of us are honest with ourselves, we'll admit we're every bit as mystified by the inner workings of magnets as the Insane Clown Posse. When I put out a call for Science Question From a Toddler submissions, no fewer than five different people emailed me, asking, essentially, "No, seriously. Fucking magnets. How do they work?"

This "ignorant" question turns out to have one hell of a complicated answer.

For every natural phenomenon there are different levels of explanation. I like to call these "why" values. For the first value of why, the question "Why is the sky blue?" can be answered with some simple hand-waving about light from the sun passing through our planet's atmosphere. For a value of why + 2 (also known to parents as, "But whyyyyy?") you have to start talking about the fact that light comes in different colors. The further you go, the more complicated the answer becomes.

No matter what question you're asking, there is almost always a point—why + n—where the explanation starts to dive into some seriously heavy physics. Some questions take a while to reach that point. Some get there distressingly fast.

"Fucking magnets, how do they work?" turns out to be one of those questions that hits physics at the first value of why.

"I remember being in Electricity and Magnetism class at college, when we were talking about ferromagnetism," says Joel Bonasera, Program Specialist at Discovery Place museum in Charlotte, North Carolina. "We could only go so far before the professor said, "And the rest of this is really weird and you'll study it in quantum mechanics. Moving on…"

Bonasera, who has a BS in physics and designs physics education exhibits for Discovery Place, was instrumental in helping me delve into the amazing world of magnetism. As was University of Minnesota physics professor Jim Kakalios. Both agreed—magnets are not simple things. There's no shame in not quite getting why two pieces of magnetized metal attract or repel one another.

To understand it, you have to start with electrons.

Everything that ever existed—from a giraffe, to a magnet, to the Insane Clown Posse—is made up of atoms. This is the basic unit of matter, and it's so tiny that you can't see it without some very specialized equipment. But that tiny atom is made up of even smaller things. At its heart is a ball of particles called the nucleus, which contains protons and neutrons—the protons have a positive electric charge, while the neutrons, appropriately, have no charge.

Meanwhile, outside the nucleus, are the negatively-charged electrons.

It's useful to imagine the atom as something like the carousel at the county fair. Just like the carousel has a central pipe organ that has ponies constantly spinning around it, the atom has a central nucleus with electrons going round and round it. This analogy isn't accurate. But it's what physicists call a "useful fiction"—an easy way to wrap your head around a concept that is totally different from anything we experience in our everyday lives. There are a lot of useful fictions involved in talking about the particles that make up an atom. Case in point: Spinning electrons.

As they circle around the nucleus, each electron also spins on its own axis—so, maybe the atom is less like a carousel, and more like a spinning teacup ride. Again, this is a useful fiction. Bonasera and Kakalios are careful to point out that electrons do not actually spin like a top. But just like each electron has a mass and a negative electric charge, they each have another property, as well. One that's very, very difficult to describe.

Electrons possess an intrinsic angular momentum, independent of any orbit around a nucleus. Physicists call that momentum "spin", in that the electron's internal rotation can be clockwise, or counter-clockwise. But, when they do that, they're really just using familiar words, and familiar mental images, to talk about something completely unfamiliar.

All of this is important because electron spin is central to explaining how those fucking magnets work.

Because electrons spin—because they have this hard-to-describe property that we call "spin"—each electron produces a small magnetic field. In fact, Kakalios told me that, originally, some physicists had thought that electrons might, literally, spin. They thought that because they knew that if you took something with an electric charge—like the electron has—and spun it fast enough, it would create a magnetic field. That literal interpretation doesn't work. To produce their observed magnetic field by actually spinning, each electron would have to turn on its axis faster than the speed of light. But it helps you understand the concept: Electrons produce a magnetic field because they spin.

Every atom has electrons, so every atom has a magnetic field. But why, then, are only some materials magnetic? Why doesn't your couch repel other couches? Why can't we stick two cats together?

In cats, couches—all the everyday things that aren't magnetic—the magnetic fields produced by electrons simply cancel each other out. For every electron that's spinning clockwise, there's another electron spinning counterclockwise. All electrons produce magnetic fields, even the ones in cats and couches. But cats and couches aren't magnetic because their electrons' magnetic fields interfere with one another and keep the overall magnetic force so weak as to be nonexistent.

Magnets are different.

In a piece of iron, most of the electrons still cancel each other out—there's a clockwise spinner for every counterclockwise spinner. But, there are also a few stragglers, electrons which have no opposite-spin partner. Their magnetic fields don't get counteracted. When we see two pieces of iron stick together, or repel one another, we're seeing the work of those straggler electrons.

Remember back in third grade, when you learned about what magnets do, and you were able to magnetize a nail by rubbing a bar magnet against it? That's the stragglers again. See, all the un-partnered electrons in a single piece of iron aren't necessarily working together. In that nail, the stragglers are like squabbling city-states, Joel Bonasera says. Those city-states are called "domains". But domains easily fall into line behind a strong leader. So, when you rub the bar magnet over the nail, the straggler electrons in the nail all snap to attention. Their magnetic fields line up with the magnetic fields in the electrons of the magnet. Now, the nail doesn't just have a lot of tiny, disconnected magnetic field domains. It has one, unified magnetic field. It becomes a magnet that we can see on the macro level.

And that's how magnets work, to the first value of why. It's fascinating, it's mind-boggling, and, as Jim Kakalios put it, "Insofar as the entire Universe is a 'miracle', this is, too."

*I honestly could not figure out how to write about this question without dropping the F bomb. Because, really. I'm not going to censor the most oft-repeated song lyric of 2010. So, I figure, in for a penny, in for a pound. While I strive to make most editions of Science Question From a Toddler something that you can read with your kids, this particular story may or may not meet those standards—depending on how your family feels about kids and swear words. But, even if you don't want your 5-year-old asking their teacher about "Fucking magnets", this post should help you formulate your own, curse-free explanation. Just an FYI.

Image: Some rights reserved by Karl Horton