Magnetism does not have positive and negative poles; it has North and South poles, while positive and negative strictly describe electrical charge and voltage potential. When makers, students, and electricians search for 'magnetism positive negative,' they are usually trying to map DC voltage polarity to magnetic field direction, or they are confusing electrostatic charge with magnetic dipoles. Understanding exactly how electrical polarity (+/–) translates into magnetic polarity (N/S) is critical for wiring DC motors, solenoids, and relay coils without blowing up your power supply.
The Core Difference: Magnetic Poles vs. Electrical Charges
The most common misconception in basic electromagnetism is treating magnetic poles like electrical terminals. In an electrical circuit, positive and negative represent a difference in electric potential (voltage). Electrons flow from the negative terminal to the positive terminal. If you disconnect a wire, the charge simply stops moving.
Magnetic fields, however, are dipolar. They always exist as a closed loop with a North-seeking pole and a South-seeking pole. There is no such thing as a magnetic monopole. If you snap a neodymium N52 magnet in half, you do not isolate a North pole and a South pole; you instantly create two smaller magnets, each with its own North and South pole. HyperPhysics at Georgia State University outlines this fundamental law of magnetism: magnetic field lines always exit the North pole and enter the South pole, forming continuous, unbroken loops through the surrounding space and the magnet's core.
How Current Direction Dictates Magnetic Polarity
While magnets themselves do not have positive and negative poles, the electromagnets we build in circuits rely entirely on positive and negative voltage to establish their magnetic polarity. When you apply a DC voltage across a wire coil, the direction of the current flow determines which end of the coil becomes the North pole and which becomes the South pole.
This is governed by the Right-Hand Grip Rule. If you wrap the fingers of your right hand around a coil in the direction of conventional current flow (from positive to negative), your thumb points toward the generated North pole. Reversing the positive and negative supply wires reverses the current, which instantly flips the North and South poles.
Worked Numeric Example: Calculating Coil Strength
Let us look at a standard 12V DC automotive relay coil. Suppose the coil has 400 turns of wire and a measured resistance of 120 ohms.
- Current (I): Using Ohm's Law (I = V / R), the current is 12V / 120Ω = 0.1 Amperes (100mA).
- Magnetomotive Force (MMF): The strength of the magnetic field is measured in Ampere-turns. MMF = Turns × Current.
- Calculation: 400 turns × 0.1A = 40 Ampere-turns.
If you wire the positive supply to Pin 86 and negative to Pin 85, you generate 40 Ampere-turns with a specific North/South orientation. If you swap the wires (positive to 85, negative to 86), you still generate exactly 40 Ampere-turns, but the magnetic polarity flips 180 degrees. For a standard mechanical relay, this polarity flip does not matter—the armature is pulled in regardless of which way the magnetic field points. But for components with integrated electronics, this flip is catastrophic.
Where You Meet This in Practice
The intersection of electrical polarity and magnetic polarity dictates the behavior of several common components on your workbench:
- Permanent Magnet DC (PMDC) Motors: The stator uses permanent magnets (fixed N/S poles), and the rotor uses an electromagnet. Reversing the positive and negative supply wires reverses the current in the rotor, flipping its magnetic polarity. The rotor's North pole is now repelled by the stator's North pole instead of attracted, causing the motor shaft to spin in the opposite direction.
- Hall Effect Sensors: Devices like the Allegro A3144 are polarity-sensitive. They trigger a logic-low output only when a South magnetic pole of sufficient strength approaches the sensor face. Bringing a North pole near the sensor does nothing. You must know which pole of your magnet is facing the sensor for the circuit to work.
- DC Solenoids with Flyback Diodes: To protect switching transistors from the high-voltage spike generated when a magnetic field collapses, manufacturers wire a diode in parallel with the coil. This diode relies on the correct positive/negative wiring to remain reverse-biased during normal operation.
Bench Scenario: Wiring a DC Solenoid Valve Backwards
To understand what happens when you ignore the positive and negative markings on a magnetic component, let us walk through a real-world failure scenario involving a pneumatic solenoid valve.
The Setup
You are building an automated pneumatic pick-and-place rig using an SMC SY3120 5-way solenoid valve. The valve is rated for 24VDC. The coil has an internal resistance of 48 ohms and features an integrated surge-suppression flyback diode molded directly into the DIN connector. You are powering it from a 24V, 5A switch-mode power supply protected by a 2A fast-blow glass fuse on the output.
The Numbers
Under normal operation, the coil draws I = V/R = 24V / 48Ω = 0.5 Amps. The flyback diode is oriented with its cathode (stripe) facing the positive terminal and its anode facing the negative terminal. In this state, the diode blocks the 24VDC and does nothing while the coil builds its magnetic field.
The Outcome
You accidentally wire the +24V supply to the negative terminal on the DIN connector, and the 0V ground to the positive terminal. You flip the breaker. The power supply clicks loudly, the 2A glass fuse instantly vaporizes, and the solenoid valve fails to actuate.
What Went Wrong
By reversing the electrical polarity, you forward-biased the integrated flyback diode. Instead of blocking current, the diode acted as a near-perfect short circuit directly across your 24V power supply. The current spiked to hundreds of amps for a fraction of a second—far exceeding the 2A fuse rating—before the coil could even generate a magnetic field. As detailed in All About Circuits, inductive kickback protection diodes must always be reverse-biased relative to the supply voltage. The magnetic field never collapsed because it was never allowed to build up in the first place.
Quick Reference: Polarity Rules for Common Components
Use this matrix to determine whether a component cares about electrical polarity (+/–) or magnetic polarity (N/S).
| Component Type | Sensitive to Electrical Polarity (+/–)? | Sensitive to Magnetic Polarity (N/S)? | Notes & Edge Cases |
|---|---|---|---|
| Standard Mechanical DC Relay | No | N/A | Armature pulls in regardless of coil current direction. |
| DC Relay with Flyback Diode | Yes | N/A | Reversing polarity shorts the supply through the diode. |
| PMDC Motor | Yes (Reverses direction) | N/A | Swapping + and - reverses rotation. Swapping both stator and rotor on a series-wound motor does not. |
| Hall Effect Switch (e.g., A3144) | Yes (VCC/GND) | Yes | Triggers only on South pole. North pole is ignored. |
| AC Contactor Coil | No (Line/Load agnostic) | N/A | AC current alternates direction 50/60 times a second; magnetic poles constantly flip. |
Frequently Asked Questions
Can a magnet have a positive or negative charge?
A magnet can hold a static electrical charge (just like a balloon rubbed on hair), but this electrostatic charge has absolutely nothing to do with its magnetic field. A neodymium magnet with a net positive electrical charge will still attract and repel other magnets based strictly on its North and South poles. The two phenomena operate on different physical principles.
Why do some DC relays have a + and - marked on the coil if they don't need it?
Many modern industrial relays, such as the Omron MY series with built-in LED indicators or surge suppressors, include internal semiconductor components. The LED requires correct polarity to illuminate, and the surge suppression diode requires correct polarity to avoid shorting the circuit. Even if the raw electromagnetic coil would function either way, the integrated electronics mandate strict adherence to the positive and negative markings.
Does reversing the wires on an AC electromagnet change anything?
No. In an AC circuit, the voltage potential swaps between positive and negative 50 or 60 times per second (depending on your regional grid). Consequently, the magnetic field flips between North and South at the exact same frequency. Swapping the Line and Neutral wires on an AC contactor coil changes nothing about its magnetic operation, though local electrical codes may dictate specific wiring conventions for safety and troubleshooting.






