Physics
Why Do Electrical Sparks Appear When Unplugging Appliances?
Quick fact
The spark you see when unplugging an appliance is a miniature electrical arc: the air in the gap becomes briefly conductive because the voltage causes it to ionize, and a current continues to flow until the gap is too wide to support it.
Why this is interesting
You yank the charger out of the wall and see a tiny blue flash. Why does electricity arc out of a socket that should be closed when nothing is connected?
Read the full explanation
Understanding Why Do Electrical Sparks Appear When Unplugging Appliances?
The spark happens because, while the plug is still inside the socket, electricity is flowing through the circuit. When you pull the plug away, you are breaking that circuit. For a brief moment, the metal prongs are very close to the contacts inside the socket. The electrical voltage in the socket creates a strong electric field across that tiny gap. If the voltage is high enough, it can pull electrons off the air molecules, turning the air from an insulator into a conductor. That is ionization. Once the air becomes conductive, current can jump across the gap as a spark. As the plug gets farther away, the voltage needed to ionize the air increases, and eventually the gap is too large for the field to maintain the spark, so it stops.
A deeper explanation
The underlying mechanism is the formation of an electrical arc. Voltage drives the process: household electricity provides about 120 V or 230 V, which is enough to ionize air across a small gap. But the spark is often more intense when the appliance contains a motor or transformer. These devices have coils of wire that store energy in a magnetic field. When you unplug, the current suddenly stops, but the magnetic field collapses, inducing a large voltage spike across the coil (per Faraday's law). That spike can be hundreds or thousands of volts, making the arc more energetic. The spark itself is a stream of electrons and ions; it heats the air, and the glow is the emission of light from the hot ionized gas. This is the same principle used in arc welding and electrical switches. The spark is usually harmless for small appliances, but repeated arcing can erode the contacts and cause a small voltage spike that stresses electronic devices. That is why surge protectors are useful.