Electromagnets are artificial magnets whose magnetic field exists only while an electric current flows. Unlike permanent magnets, an electromagnet can be switched on and off by making or breaking an electrical connection. That controllability makes electromagnets essential in many devices where variable force or polarity is required.
How they work
An electromagnet is typically formed by wrapping a conductor into a solenoid or a simple coil and passing electricity through it. The moving charges that constitute an electrical current—primarily electrons—generate a magnetic field around each turn of wire. When the turns are arranged concentrically the individual fields add together and produce a concentrated field along the coil axis. The polarity and strength of that field depend on the direction of the current and on factors described below.
Key components and factors affecting strength
- Number of turns: more loops amplify the field for a given current.
- Current magnitude: increasing the current raises field strength but increases heating and power consumption.
- Core material: inserting a ferromagnetic core such as iron greatly concentrates flux; different alloys change performance and losses.
- Conductor material and thickness: low-resistance materials such as copper are common; thicker wire carries more current safely.
- Geometry: coil length, diameter and winding density shape the field and its reach.
Soft iron cores boost field strength and demagnetize quickly when power is removed. Steel and other harder alloys retain magnetization longer and display hysteresis, which can be undesirable in applications that require rapid cycling.
History and development
The practical construction of electromagnets emerged in the early 19th century. In 1825 British inventor William Sturgeon demonstrated one of the first useful electromagnets by wrapping insulated wire around an iron piece and energizing it from a battery. That invention, together with later discoveries about electromagnetic induction and improvements in electrical supply and materials, enabled the large variety of electromagnet technologies used today.
Common uses and examples
Electromagnets power many familiar systems. Heavy-duty electromagnets lift scrap metal in yards and ports; electric motors and generators rely on controlled magnetic fields to convert between electrical and mechanical energy; relays and switches use small electromagnets to open and close circuits; loudspeakers turn electrical signals into motion with electromagnets. Medical MRI scanners use powerful superconducting electromagnets for imaging, and specialized transport systems such as maglev trains use magnetic suspension and propulsion. Simple classroom electromagnets will pick up pieces of nickel, cobalt or iron when energized.
Construction basics and safety
A basic electromagnet can be made by winding insulated copper wire around an iron core and connecting the wire ends to a power source such as a battery in a closed circuit. Because higher current increases heat, proper insulation, correct wire gauge and protective devices (switches, fuses, current-limiting components) are important to prevent overheating, short circuits, or damage to the power source. Strong magnetic fields can also interfere with nearby electronic devices and magnetic storage, so shielding or safe distances may be necessary.
Distinctions and notable facts
Unlike permanent magnets, electromagnets require energy to maintain their field but offer adjustable strength and polarity. Material choice matters: soft iron yields quick response and low residual magnetism, while certain alloys and laminated cores reduce eddy current losses in alternating applications. For very strong steady fields, engineers use superconducting coils to avoid resistive heating, though those systems require cryogenic cooling and specialized infrastructure.
For further reading and practical guides, consult introductory resources and safety instructions before attempting to build or handle powerful electromagnets.