How to Make Magnets Float: 3 Methods That Work

Making a magnet float requires overcoming a fundamental rule of physics: permanent magnets in a fixed arrangement can’t hover in stable equilibrium on their own. This principle, known as Earnshaw’s theorem, means you need a clever workaround. The three most accessible methods are spin-stabilized levitation (the Levitron approach), diamagnetic levitation using pyrolytic graphite, and active electromagnetic levitation using sensors and circuits.

Why Magnets Don’t Just Float on Their Own

If you’ve ever tried to balance two magnets with their like poles facing each other, you’ve seen the problem firsthand. The top magnet slides sideways and flips over instead of hovering in place. This happens because magnetic fields in open space can’t create a stable “bowl” that traps an object from all directions at once. The repulsive force can push a magnet upward, but it can’t simultaneously prevent it from drifting left, right, forward, or backward. Every method of magnetic levitation is really a method of solving this sideways-escape problem.

Method 1: Spin-Stabilized Levitation

The simplest way to see a magnet float at home is with a spinning top and a magnetic base, sold commercially as a Levitron. The base contains a ring magnet with its north pole facing up. The top is also a magnet, oriented with its north pole facing down. The two norths repel each other, pushing the top upward until the repulsive force exactly balances gravity.

Spinning is what keeps the top from flipping and sliding away. The gyroscopic effect of a rapidly spinning object resists changes to its orientation, which prevents the top from tilting into an unstable position. The working range is surprisingly narrow: the top needs to spin between roughly 1,000 and 3,000 RPM. Below that, there isn’t enough gyroscopic stability. Above it, a different kind of instability kicks in and the top drifts out of the levitation zone.

Weight also has to be precise. Experiments show the top must be adjusted to within about 0.2 grams of the ideal mass for the magnetic field to support it. Most Levitron kits include small brass weights you add or remove until you hit the sweet spot. Once balanced and spinning, the top can hover at around 3 centimeters above the base for over two minutes before friction slows the spin below the critical threshold.

Tips for Getting It to Work

Start by placing the top on a thin plastic lifter plate that sits on the base. Spin the top as fast as you can with your fingers, then slowly lift the plate upward. When you feel the top lighten, gently pull the plate away. If the top shoots upward and flies off, it’s too light. If it drops immediately, it’s too heavy. Adjust by fractions of a gram. A level surface matters too, since even a slight tilt shifts the equilibrium point sideways.

Method 2: Diamagnetic Levitation

Diamagnetic levitation is the only method that produces completely passive, stable floating with no spinning, no electricity, and no moving parts. Certain materials are weakly repelled by all magnetic fields, regardless of polarity. Pyrolytic graphite is the strongest of these at room temperature, and because it’s also very light (about twice the density of water), a thin piece can be pushed upward hard enough to overcome gravity.

The setup is straightforward. Arrange four strong neodymium magnets in a square on a steel plate, alternating their poles (north up, south up, north up, south up). The steel plate keeps the magnets from sliding around. Then cut a square of pyrolytic graphite slightly smaller than the width of one magnet, about 16 millimeters on a side and no more than half a millimeter to one millimeter thick. Place it in the center of the four magnets, and it floats roughly one millimeter above the surface.

Thickness matters. Material more than about half a millimeter from the magnet surface doesn’t contribute much additional lift, so a thicker piece just adds weight without adding repulsion. The four-magnet arrangement solves the sideways-escape problem: each edge of the graphite square gets pushed away from the nearest magnet pole, centering it in the middle. The result is a small, silent, permanently floating square that will stay airborne indefinitely with no power source.

Pyrolytic graphite sheets are available online from science supply retailers, and small neodymium cube or block magnets (around 12 to 16 mm) work well. This is one of the most visually striking physics demonstrations you can build for under $20.

Method 3: Active Electromagnetic Levitation

If you want to levitate a larger object or make a magnet hover beneath an electromagnet (the classic “floating globe” effect), you need an active feedback system. This approach uses a sensor to constantly monitor the position of the floating object and a circuit that adjusts the electromagnet’s strength hundreds of times per second to keep it in place.

The core components are an electromagnet (a coil of wire, often wrapped around an iron core), a Hall effect sensor that detects the strength of the nearby magnetic field, and a control circuit that translates the sensor’s reading into adjustments to the coil’s current. When the floating magnet drifts too far away, the circuit increases current to pull it back. When it gets too close, the circuit reduces current to let gravity pull it down slightly. This continuous correction happens fast enough that the object appears to hover motionlessly.

Building one from scratch requires some electronics experience. A typical parts list includes a Hall effect sensor, an operational amplifier chip, a MOSFET transistor to handle the coil’s current, a voltage regulator, a potentiometer for fine-tuning, and a breadboard to wire everything together. You’ll also need a soldering iron, a multimeter for testing, and ideally an oscilloscope to tune the feedback loop. Pre-made kits simplify this considerably and can be found for $15 to $40 online.

The potentiometer is key to getting the system working. It sets the target distance where the circuit tries to hold the magnet. Turn it too far one way and the magnet snaps up to the coil. Turn it the other way and the magnet drops. The goal is finding the narrow range where the feedback loop keeps the object suspended.

Choosing the Right Method

  • For a quick demonstration: A Levitron kit or similar spinning magnetic top is the fastest path to seeing a magnet float. No tools or electronics required, though getting the weight right takes patience.
  • For a permanent display: Diamagnetic levitation with pyrolytic graphite and neodymium magnets produces a silent, indefinite float with no batteries or maintenance. The trade-off is that the floating object is small and the gap is only about a millimeter.
  • For a science project or engineering challenge: An active electromagnetic levitation circuit teaches feedback control principles and can suspend larger objects at more visible distances. It requires the most skill and components.

Safety With Strong Magnets

Neodymium magnets are essential for most levitation experiments, but they demand respect. Even small ones attract with enough force to pinch skin painfully, and larger ones can break fingers if they snap together with a hand in between. Use spacers made of cardboard or plastic when storing or separating them, and wear gloves when handling magnets larger than a centimeter.

Keep neodymium magnets away from anyone with a pacemaker or other implanted medical device, as the magnetic field can interfere with its function. They also disrupt compasses, credit cards, hard drives, and other electronics. Store them well away from phones and laptops.

How This Scales Up

The same principles behind these tabletop experiments power real-world technology. Maglev trains use powerful electromagnets with active feedback systems to float above a guideway, eliminating rail friction entirely. A Chinese prototype reached 650 km/h (about 404 mph) on a test track in 2025, accelerating to that speed in just seven seconds. The physics is identical to the DIY electromagnetic levitator on your workbench: sense the gap, adjust the field, keep the object floating.