Electricity by magnetism, technically known as electromagnetic induction, is the process where a changing magnetic field forces electrons to move through a conductor, generating a usable voltage. While hobbyists often use the phrase casually, it represents the exact physical mechanism that powers the global electrical grid, steps down your mains voltage, and enables wireless charging.
Understanding this principle changes how you approach real circuits. It dictates why transformers hum, why induction cooktops require specific cookware, and why a simple DC relay can destroy your Arduino's GPIO pins if you forget a flyback diode. Let's break down the physics, run a real-world calculation, and look at where this phenomenon shows up on the workbench.
The Core Mechanism: Faraday’s Law in Action
The foundation of electricity by magnetism was formalized by Michael Faraday. The core rule is that a static magnetic field does nothing to a stationary wire. To induce a voltage, the magnetic flux passing through the conductor's loop must change over time. You can achieve this by moving a magnet past a coil, moving a coil through a magnetic field, or changing the strength of an electromagnet near a secondary coil.
Think of magnetic flux lines like rain falling through a physical hoop. If the rain is perfectly steady and the hoop is stationary, the amount of water passing through per second is constant. But if you tilt the hoop, shrink it, or suddenly increase the rainfall density, the rate of change forces a reaction. In a wire, that reaction is electromotive force (EMF), or voltage.
E = -N (dΦ / dt)Where E is induced voltage (Volts), N is the number of coil turns, dΦ is the change in magnetic flux (Webers), and dt is the change in time (seconds). The negative sign represents Lenz’s Law, indicating the induced voltage opposes the change that created it.
For a deeper mathematical breakdown of magnetic flux and field density, the Hyperphysics section on Faraday's Law provides excellent interactive vector diagrams that clarify the relationship between coil area and field strength.
Worked Numeric Example: Sizing a DIY Generator Coil
Let’s apply this to a practical bench scenario. Suppose you are building a custom axial-flux generator for a small DIY wind turbine and need to calculate the output voltage of your stator coils. You are using N52-grade neodymium magnets and winding your own coils using 18 AWG magnet wire.
- Number of turns (N): 800 turns per coil
- Magnetic flux change (dΦ): As the magnet pole sweeps over the coil, the flux changes from 0 Wb to a peak of 0.015 Wb.
- Time interval (dt): Based on your turbine's RPM, the magnet takes 0.05 seconds to sweep across the coil face.
Plugging these real values into Faraday’s equation (ignoring the negative sign for magnitude):
E = 800 × (0.015 / 0.05)
E = 800 × 0.3
E = 240 Volts
This single coil will generate a peak of 240V as that specific magnet pole passes. If you want a lower voltage for charging a 12V battery bank, you must either reduce the number of turns (e.g., down to 40 turns for ~12V peak), increase the sweep time (slower RPM), or use weaker magnets. This calculation also highlights why high-RPM generators require fewer turns to achieve the same voltage as low-RPM alternators.
Where You Meet Electricity by Magnetism in Practice
Induction isn't just for massive power plants; it dictates the behavior of components you handle every day.
Mains Transformers and the 60Hz Hum
When you plug in a heavy, iron-core wall wart to step 120V AC down to 12V AC, you are using mutual induction. The AC mains creates a continuously expanding and collapsing magnetic field in the primary winding, which induces a voltage in the secondary winding. The core is made of 0.35mm thick silicon steel laminations rather than a solid block of iron. If it were solid, the changing magnetic field would induce massive, wasteful circulating currents (eddy currents) inside the iron itself, melting the transformer. The physical vibration of these magnetic domains flipping 60 times a second is exactly what causes the characteristic 'mains hum' you hear from heavy audio amplifiers or utility pole transformers.
Induction Cooktops and Litz Wire
Modern induction stoves use electricity by magnetism to heat your food directly. A high-power inverter drives a flat copper coil at roughly 24 kHz to 100 kHz. This rapidly alternating field induces intense eddy currents in the ferrous base of your cast-iron or stainless steel pot, heating it via electrical resistance. Because of the skin effect at these high frequencies, the internal coil is wound using Litz wire (hundreds of individually insulated thin strands braided together) to maximize the surface area and prevent the coil itself from overheating.
Inductive Kickback: The Silent Component Killer
In DC circuits, induction is often a hazard. When you de-energize a 12V DC relay coil, the magnetic field collapses rapidly. According to Faraday's Law, a tiny dt (time) results in a massive voltage spike. A standard 12V automotive relay can easily generate a 100V to 300V reverse spike when switched off. If your Arduino or ESP32 is driving that relay via a MOSFET without a flyback diode (like a standard 1N4007) wired in reverse parallel across the coil, that induced spike will instantly punch through the MOSFET's drain-source junction and fry your microcontroller. Always use a snubber circuit or flyback diode when switching inductive loads.
Frequently Asked Questions
Can you generate electricity by magnetism with a completely stationary setup?
Yes, but only if the magnetic field itself is changing. A permanent magnet sitting perfectly still next to a copper coil will induce exactly zero voltage, no matter how strong the magnet is. However, if you use an electromagnet and vary the DC current flowing through it (or switch it to AC), the changing field will induce a voltage in a nearby stationary coil. This is exactly how wireless phone chargers and Tesla coils operate—neither the transmitter coil nor the receiver coil moves physically, but the alternating magnetic flux bridges the gap to induce current.
Why does electricity by magnetism naturally produce AC instead of DC?
In any rotating generator or alternator, the magnetic flux passing through a stationary coil goes through a continuous cycle: it increases as the North pole approaches, peaks when centered, decreases to zero as the pole leaves, and then reverses direction as the South pole approaches. Because the mathematical derivative of this sine-wave-like flux change constantly flips from positive to negative, the induced voltage naturally alternates polarity. To get DC from a mechanical generator, you must add a mechanical commutator (brushes) to physically flip the connections every half-turn, or use solid-state diode rectifiers to convert the AC output after the fact, as seen in automotive alternators.
How does magnetic induction differ from piezoelectric generation?
They rely on entirely different physical domains. Electricity by magnetism requires relative motion between a conductor and a magnetic field to push free electrons through a wire. Piezoelectric generation, on the other hand, relies on mechanical stress applied to specific non-centrosymmetric crystal lattices (like quartz or PZT ceramics). When you physically squeeze or bend a piezoelectric material, the internal atomic structure deforms, pushing positive and negative charge centers apart and creating a surface voltage. While induction is highly efficient for continuous, high-current power generation (like wind turbines), piezoelectric generation is strictly used for low-power energy harvesting, sensors, and high-voltage, low-current spark igniters in gas grills.
For further reading on how these principles apply to AC circuit design and transformer sizing, the All About Circuits guide on Transformers offers excellent practical schematics and phasor diagrams.






