A magnetic switch is a simple device that opens or closes an electrical circuit when a magnet comes near it. The most common type, called a reed switch, has no batteries, no circuit boards, and no moving parts visible from the outside. It relies on two thin metal blades sealed inside a glass tube, and the presence or absence of a magnetic field determines whether electricity flows through.
Inside a Reed Switch
A standard reed switch contains two flat, flexible blades made of ferromagnetic metal (a material attracted to magnets). These blades are sealed inside a small glass tube filled with inert gas, which prevents corrosion and keeps the contact surfaces clean for years. The blades overlap slightly in the center of the tube but don’t quite touch. There’s a tiny gap between them.
When you bring a magnet close to the switch, the magnetic field flows through the two blades and magnetizes them with opposite poles. One blade becomes a north pole, the other a south pole. Since opposite poles attract, the blades flex toward each other. If the magnetic field is strong enough to overcome the natural springiness of the metal, the blades snap together, completing the circuit. Pull the magnet away, and the blades spring back apart, breaking the circuit.
That’s the entire mechanism. No power supply needed, no electronics involved. The switch is either physically touching (closed) or physically separated (open), just like flipping a light switch, except a magnet does the flipping.
Normally Open vs. Normally Closed
Magnetic switches come in two basic configurations, and the names describe what the switch does when no magnet is nearby. A normally open switch has a gap between its blades when no magnet is present. No electricity flows until a magnet brings the blades together. A normally closed switch is the opposite: electricity flows by default, and bringing a magnet near the switch breaks the connection.
A third type, the changeover switch, combines both. It adds a third, non-magnetic blade that rests against one of the ferromagnetic blades. When a magnet approaches, the ferromagnetic blade pulls away from the non-magnetic one and connects to the other ferromagnetic blade instead. This lets a single switch toggle between two different circuits.
Most installations use the normally open configuration. Door and window sensors in home security systems are a good example: a magnet is mounted on the door, and the reed switch sits on the frame. When the door is closed, the magnet holds the switch shut. Open the door, the magnet moves away, the circuit breaks, and the alarm triggers.
Hall Effect Sensors: The Solid-State Alternative
Not all magnetic switches use mechanical blades. Hall effect sensors are solid-state devices, meaning they have no moving parts at all. Instead of metal blades flexing together, a Hall effect sensor uses a thin piece of semiconductor material with a small electrical current flowing through it.
When no magnetic field is present, the voltage across the width of that semiconductor is essentially zero. But when a magnetic field passes through at a right angle to the current, it pushes the flowing charge carriers to one side of the material, creating a measurable voltage. The stronger the magnetic field, the higher the voltage. Electronics inside the sensor read that voltage and decide whether to turn an output signal on or off.
The tradeoff between the two types is straightforward. Reed switches need no power to operate, require no supporting electronics, and can respond to weaker magnetic fields (as low as 5 Gauss, compared to about 15 Gauss minimum for Hall sensors). Hall effect sensors, on the other hand, require a constant power supply and several supporting components like voltage regulators and signal amplifiers. But they have no mechanical wear, since nothing physically moves, and they work well in applications that need precise, proportional readings of magnetic field strength rather than a simple on/off signal.
At low-power switching loads (5 volts, 10 milliamps), both types can last around one billion operations.
How Long Magnetic Switches Last
Reed switches are remarkably durable. Under low-power conditions, a quality reed switch can perform billions of operations with little degradation. Even at moderate loads, lifespan typically exceeds 10 million cycles. In automated test equipment that runs 24 hours a day, seven days a week, reed relays have been proven to outlast most other switching technologies.
One useful trait is that reed switches age well even when idle. A switch can sit unused for years without developing the contact resistance problems that plague other relay types. The hermetically sealed glass tube keeps oxygen and moisture away from the contact surfaces, so they stay clean whether the switch is cycling constantly or sitting on a shelf.
Higher-power loads do shorten lifespan. After about 500 million low-power operations, contact resistance in a typical instrument-grade reed relay starts to creep upward. For higher-power switching, that number drops to around 10 million cycles, still plenty for most applications.
Temperature and Environmental Limits
Standard reed relays operate reliably between -20°C and +85°C (-4°F to 185°F), which covers the vast majority of indoor and general-purpose applications. Specialized versions extend that range down to -40°C or up to +125°C, and with extra design margin, some can reach +150°C.
Heat affects performance in a couple of ways. As temperature climbs past 85°C, the magnetic properties of the blades weaken. The switch may barely activate, producing unstable contact resistance. Push the temperature high enough and the switch stops working entirely. Contact resistance also drifts with temperature, typically changing 3% to 5% for every 10°C shift. In precision measurement applications, this matters. For a door sensor, it doesn’t.
Since the blades are sealed inside glass, reed switches are naturally resistant to dust, humidity, and corrosive environments. This makes them well suited for harsh conditions where exposed electrical contacts would corrode.
Where Magnetic Switches Are Used
Billions of magnetic switches are deployed across industries, often in places you’d never notice. In your home, they detect whether a door or window is open for security systems and trigger the light inside your laptop when you close the lid. In your kitchen, they sense the position of a dishwasher door or whether a removable water reservoir is seated correctly in a coffee maker.
In cars, magnetic switches handle gear position sensing, door lock detection, and fluid level monitoring. A tiny magnet floating in a brake fluid reservoir can activate a reed switch when the fluid drops too low, triggering a dashboard warning. The same principle works for power steering fluid and other reservoirs.
Medical devices rely on magnetic switches because they can be activated from outside a sealed enclosure without any electrical feedthrough. Hearing aids use magnetically operated switches for programming. Insulin pumps use miniaturized reed switches to signal when the reservoir is running low. Cochlear implants have explored magnetic switching as a way to turn the device on and off without exposing internal electronics. Drug delivery systems and endoscopes also use them.
In industrial automation, magnetic proximity sensors detect the position of pistons inside pneumatic cylinders, count items on conveyor belts, and monitor rotating equipment. These sensors typically come in three-wire configurations, outputting a signal to a programmable logic controller. The choice between NPN (sinking) and PNP (sourcing) wiring depends on the input module they connect to, not the sensor itself.
Reed switches also perform well at extremely high frequencies, handling signals from DC up to 6 GHz. This makes them useful in telecommunications testing and radio-frequency switching, where solid-state alternatives struggle.

