The source of all magnetism is the movement of electric charge, manifesting macroscopically as electrical current flowing through a conductor and microscopically as the intrinsic quantum spin and orbital motion of electrons within atoms. In a real circuit or installation, this physical reality dictates your inductor core sizing, generates destructive electrodynamic forces between parallel busbars during a short circuit, and creates the back-EMF spikes that will blow out your switching MOSFETs if left un-snubbed. Beginners commonly confuse magnetism with static electric fields, assuming that high voltage alone creates a magnetic pull, when in reality, zero current means zero macroscopic magnetic field.
The Dual Origin: Macroscopic Current and Microscopic Spin
To understand magnetic fields on the workbench, you have to look at two distinct scales. At the macroscopic level, we rely on Ampere’s Law: any time charge carriers (electrons) drift through a wire, they generate a concentric magnetic field. This is the principle behind every electromagnet, motor stator, and transformer primary you will ever wire.
At the microscopic level, magnetism arises from quantum mechanics. Electrons possess an intrinsic property called spin, which gives them a tiny magnetic dipole moment. In most materials, these spins are paired and cancel each other out. But in ferromagnetic materials like iron, nickel, and cobalt, unpaired electrons align their spins into regions called magnetic domains. When these domains align, you get a permanent magnet.
Worked Example: Calculating Magnetic Field in a DIY Solenoid
Let’s move from theory to the bench. Suppose you are building a custom 12V DC solenoid actuator to pull a mechanical latch. You wind 500 turns of 24 AWG enameled copper magnet wire tightly around a 5 cm (0.05 m) long non-magnetic (air core) form with a 2 cm diameter.
1. Calculate the Wire Length and Resistance
- Circumference of one turn: π × diameter = π × 0.02 m ≈ 0.0628 m.
- Total wire length: 500 turns × 0.0628 m = 31.4 meters.
- Resistance of 24 AWG copper: ~84.2 mΩ/m (at 20°C).
- Total coil resistance (R): 31.4 m × 0.0842 Ω/m = 2.64 Ω.
2. Calculate the Steady-State Current
Ignoring the initial inductive ramp-up, the steady-state DC current drawn from a 12V supply is:
- I = V / R = 12V / 2.64 Ω = 4.54 A.
3. Calculate the Magnetic Flux Density (B)
Using the solenoid magnetic field formula (B = μ0 × n × I), where n is the turn density (turns per meter):
- Turn density (n): 500 turns / 0.05 m = 10,000 turns/m.
- B = (1.2566 × 10⁻⁶ T·m/A) × 10,000 m⁻¹ × 4.54 A.
- B ≈ 0.057 Tesla (57 mT).
An air-core field of 57 mT is relatively weak for heavy mechanical pulling. To increase this without changing the wire or voltage, you would insert a soft iron or ferrite core. If the core material has a relative permeability (μr) of 1,000, your magnetic field strength theoretically multiplies by 1,000, pushing it to roughly 57 Tesla—though in reality, the core will hit magnetic saturation (usually around 1.5 to 2.0 Tesla for electrical steel) long before reaching that number.
Where You Meet This in Practice
Understanding that moving charge creates magnetism is critical for avoiding catastrophic failures in both low-voltage electronics and mains electrical installations.
Busbar Bracing in Switchgear
When a short circuit occurs in a 400A main panel, fault currents can spike to 10,000A or more before the breaker trips. Because the source of all magnetism is moving charge, this massive surge of current generates an intense magnetic field. Parallel busbars carrying current in opposite directions will experience violent repulsive electrodynamic forces. If the busbars are not properly braced with steel ties or insulators rated for the specific short-circuit kAIC rating, the copper will physically bend, tear, or explode outward.
Inductive Flyback and Snubber Diodes
When current flows through an inductor or relay coil, energy is stored in the surrounding magnetic field. If you abruptly open a switch or turn off a MOSFET, the current attempts to drop to zero instantly. The collapsing magnetic field induces a massive voltage spike (back-EMF) to keep the charge moving. Without a flyback diode to provide a safe path for this current, the voltage spike will arc across mechanical switch contacts or punch through the silicon die of your transistor.
Transformer Coupling and EMI
In switch-mode power supplies (SMPS), high-frequency alternating current in the primary winding creates a rapidly expanding and collapsing magnetic field. This field cuts across the secondary winding, forcing charge to move and generating your output voltage. However, stray magnetic fields that miss the core can induce unwanted currents in nearby signal traces, causing electromagnetic interference (EMI) that requires shielding or careful PCB layout to mitigate.
What People Commonly Confuse It With
The most frequent mistake among hobbyists is confusing magnetic fields (generated by moving charge/current) with electric fields (generated by voltage/static charge).
Capacitors store energy in an electric field between two plates separated by a dielectric; no continuous current flows through them in steady-state DC. Inductors store energy in a magnetic field generated by current flowing through a coil. Mixing these up leads to fundamentally flawed circuit troubleshooting.
Frequently Asked Questions
Is the source of all magnetism strictly moving electrons?
Macroscopically, yes—current is the flow of electrons (or ions, in plasma and batteries). Microscopically, the intrinsic "spin" of an electron creates a magnetic dipole moment even if the electron is not physically traveling through space. While quantum spin isn't "movement" in the classical sense of a ball rolling down a hill, it is a fundamental quantum property of the charge carrier itself. Therefore, all magnetism traces back to the properties and behaviors of electric charge.
Why does a permanent magnet have a magnetic field without an external power source?
A neodymium (NdFeB) or ferrite permanent magnet doesn't violate conservation of energy; it simply has its internal microscopic magnetic domains locked into alignment. The unpaired electrons in the atoms are all "spinning" in the same direction. Because they are bound within the crystal lattice of the metal, they don't require an external power supply to maintain this alignment. The macroscopic field you measure is just the sum of trillions of perfectly aligned atomic magnets.
Can voltage alone create a magnetic field?
No. Voltage is merely the electrical potential difference (the "push"). If you apply 120V AC across an open switch or a perfect capacitor, charge is not continuously moving through the gap, and therefore no steady magnetic field is generated in the gap. You must have a closed circuit allowing charge carriers to drift (current) to establish a magnetic field. (Note: A changing electric field does generate a magnetic field via Maxwell's addition to Ampere's Law, which is how radio waves propagate, but this requires alternating voltage, not static DC voltage).
How does temperature destroy magnetism in a core?
Heat is simply atomic vibration. As you heat a ferromagnetic material, the thermal energy causes the atoms to jostle violently. Once the material reaches a specific threshold called the Curie temperature (around 770°C for iron, and much lower—roughly 310°C to 400°C—for neodymium magnets), the thermal agitation overpowers the quantum exchange forces holding the magnetic domains in alignment. The domains randomize, and the material instantly loses its macroscopic magnetism, becoming merely paramagnetic. This is a critical derating factor when designing motors or inductors that run hot.






