Magnetic Levitation Calculator – Current for BIL to Balance Weight

Use this free Magnetic Levitation Calculator to find the current a wire in a magnetic field needs so that the force BIL exactly balances a load's weight — or, in reverse, the force a given current produces. This is the physics behind maglev demonstrations and magnetic balances.

N S F = BIL (up) weight mg (down) wire, length L, current I levitation: BIL = mg

Formula

I = m × g ÷ (B × L) for the levitation current, and F = B × I × L for the force  •  with g = 9.81 m/s². The wire must be perpendicular to the field and the current direction chosen (by the left-hand rule) so the force points up. If the wire sits at an angle, only B × sin θ of the field does the lifting.

How to use

Worked example

A wire of length L = 0.25 m in a field of B = 0.4 T must levitate a mass of m = 0.05 kg (50 g).
I = mg ÷ (BL) = (0.05 × 9.81) ÷ (0.4 × 0.25) = 0.4905 ÷ 0.1 = 4.905 A.
Check with the other mode: at a gentler I = 3 A, F = BIL = 0.4 × 3 × 0.25 = 0.30 N, enough to support 0.30 ÷ 9.81 = 0.03058 kg ≈ 30.58 g — not quite the 50 g load, which is why the full 4.905 A is needed.

FAQ

Is this how maglev trains work?
Trains use the same force law but with electromagnets acting on a guideway rather than a single wire, plus fast feedback control — a bare magnet arrangement is naturally unstable (Earnshaw's theorem), so the current must be adjusted many times per second to hold the gap steady.

Why does only the length inside the field count?
The force F = BIL acts only where current and field overlap. Wire outside the magnet's gap feels no force, so L is the length within the field region, not the whole wire.

What if the wire is not perpendicular to the field?
The force becomes F = BIL sin θ, where θ is the angle between wire and field. At θ = 0° (wire parallel to the field) the force vanishes entirely — direction matters as much as size.