Home▸Articles▸Physics & Mechanics

Understanding Magnetic Levitation: A 2D Force-Balance Analysis

Magnetic levitation is an intriguing phenomenon that combines principles from electromagnetism and control theory to achieve stable suspension.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What Magnetic Levitation Is

Magnetic levitation involves suspending an object using magnetic fields without physical contact. In this context, it's demonstrated through a side-view simulation where a puck is levitated by either inverse-cube repulsion from a permanent magnet or inverse-square attraction controlled via feedback mechanisms.

The 2D simulator showcases two modes: one passive and the other requiring active control to maintain stability.

How Magnetic Levitation Works

In the inverse-cube repulsion mode, the force between a permanent magnet and an object follows a distance-dependent relationship, allowing for levitation without continuous power input. However, this mode is inherently unstable because small perturbations can cause large deviations from equilibrium.

The inverse-square attraction mode, on the other hand, requires active feedback control to maintain stability. This involves adjusting the electromagnet's field strength in real-time based on sensor inputs to keep the object at a consistent height.

live demo · related simulation● LIVE

Why It Matters

Magnetic levitation has practical applications ranging from transportation systems like maglev trains to industrial processes and scientific instruments.

Understanding these principles is crucial for developing advanced control systems in various fields, including robotics and aerospace engineering.

Real-World Examples of Magnetic Levitation

Maglev trains use superconducting magnets to levitate above a track, reducing friction and allowing high-speed travel.

In laboratory settings, magnetic levitation is used for precise measurements in microgravity experiments.

Frequently asked questions

What causes the instability in the inverse-cube repulsion mode?

The instability arises because small changes in position result in disproportionately large changes in force due to the inverse-cube relationship, making it difficult for the system to remain stable without external control.

How does feedback control stabilize magnetic levitation?

Feedback control continuously adjusts the electromagnet's field strength based on real-time position data, ensuring that any deviations from the desired height are corrected before they become significant.

Can magnetic levitation be achieved without a permanent magnet in one mode?

Yes, in the inverse-square attraction mode, an electromagnet can provide the necessary force to achieve levitation through active control and feedback mechanisms.

What are some practical applications of magnetic levitation beyond transportation systems?

Magnetic levitation is used in various fields such as precision manufacturing, medical devices, and scientific research for experiments requiring a stable environment free from physical contact.

Try it live

Everything above runs in your browser — open Magnetic Levitation Simulator (2D) and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Magnetic Levitation Simulator (2D) simulation

What did you find?

Add reproduction steps (optional)