How Do Magnetic Limit Switches Work?
A complete guide to magnetic limit switches - the contactless position switch that uses a magnet and a reed switch instead of a mechanical actuator: the core principle (a magnetic limit switch is a limit switch actuated by a magnetic field instead of a lever or plunger - the magnet does the "touching," so nothing wears: the switch body holds a hermetically sealed reed switch, and the actuator is a permanent magnet that approaches it and closes the contacts through the wall of the machine), the physics (the magnet's field strength falls as the inverse cube of distance, the reed's two ferromagnetic blades concentrate the field through themselves, the attraction overcomes the blades' spring force and they snap together - and they stay closed until the field drops below the release point, giving the switch its hysteresis), the classic versions (the cylinder magnetic limit switch that reads the piston's magnet through the aluminum or stainless wall, the door and interlock switch with the magnet in the moving part and the reed in the frame, the valve position switch, and the float switch - the most common magnetic limit switch in the world, where the float carries the magnet and the reed sits in the stem), the NAMUR version that carries the magnetic switch into hazardous areas (the 8/16 mA current steps with wire-break detection), the operating parameters (operate distance, release distance, hysteresis, contact ratings, switching frequency, and the load rules that protect the contacts - gold contacts for low-level loads, never switch high current directly), the magnet options (Alnico, ferrite, rare earth - and why the rare earth magnet shrinks the package), the advantages and limitations (no wear, hermetic sealing, works through non-ferrous walls - but shunted by steel, limited by temperature, and magnet strength falls fast with distance), the installation rules (magnet orientation, gap, alignment, non-ferrous mounting, distance from stray fields), the troubleshooting table, the FAQ, and the bottom line.
How Do Magnetic Limit Switches Work? - Quick Answer
A magnetic limit switch is a limit switch actuated by a magnetic field instead of a mechanical lever or plunger: the switch body holds a hermetically sealed reed switch, and the actuator is a permanent magnet that approaches it and closes the contacts through the wall of the machine. The physics: the magnet's field strength falls as the inverse cube of distance, the reed's two ferromagnetic blades concentrate the field through themselves, the attraction overcomes the blades' spring force, and the blades snap together - closing the circuit - until the field drops below the release point, which gives the switch its hysteresis (the operate and release distances differ on purpose). The classic versions are the cylinder magnetic limit switch (the sensor reads the piston's magnet through the aluminum or stainless cylinder wall), the door and interlock switch (magnet in the moving door, reed in the frame), the valve position switch, and the float switch - the most common magnetic limit switch in the world, where the float carries the magnet and the reed sits in the stem. The advantages flow from the physics: no physical contact means no wear (millions of cycles), the reed's hermetic glass seal keeps the contacts clean in dust, moisture, and corrosive atmospheres, and the magnetic actuation works through non-ferrous walls - which is why the magnetic limit switch is the standard for cylinders, doors, valves, and tank floats. The one-sentence rule: the magnet does the touching, the reed does the switching, and nothing wears - but the magnet's field falls fast with distance, steel shunts it, and temperature limits it. (The float switch family: Float Switches & Level Sensors Archives; the switch classification: What Are the Different Types of Switches?; the NAMUR connection: Intrinsically Safe Level Switch.)
The Core Principle: Magnet + Reed
The Limit Switch That Uses a Magnet Instead of a Lever
The anatomy (Featured Snippet):
| Part | What it is | Role |
|---|---|---|
| Reed switch | Two ferromagnetic blades in a sealed glass tube | The actual switching element - the contacts |
| Permanent magnet | The actuator - Alnico, ferrite, or rare earth | Provides the field that closes the blades |
| Switch body | The housing - plastic, aluminum, or stainless | Protects the reed, mounts the switch |
| Cable or connector | The electrical exit | Carries the signal to the controller |
| Mounting | Brackets, clamps, or threads | Holds the switch at the set point |
The magnetic limit switch is a limit switch with a magnet for an actuator - the magnet does the touching, and the reed does the switching: The magnetic limit switch is a limit switch actuated by a magnetic field instead of a mechanical lever, roller, or plunger. The switching element is the reed switch: two ferromagnetic blades sealed inside a glass tube with a small gap between them - the contacts. The actuator is a permanent magnet - Alnico, ferrite, or rare earth - mounted on the moving part of the machine. The switch body protects the reed and mounts the switch; the cable or connector carries the signal; the mounting holds the switch at the set point. The operation is contactless by design: the magnet approaches the reed, the field pulls the blades together, the contacts close, and the circuit carries the signal - then the magnet moves away, the field drops, the blades spring open, and the circuit breaks. Nothing physically touches the switch - the magnet does the "touching" through the air (or through a non-ferrous wall), which is exactly why the magnetic limit switch outlives its mechanical cousins in high-cycle and sealed applications. (The reed in the float: Float Switches & Level Sensors Archives; the classification: What Are the Different Types of Switches?; the mechanical cousins: What Are the Different Types of Switches?.)
The Physics: Why the Blades Snap
The Inverse Cube, the Field Concentration, and the Snap Action
The physics (Featured Snippet):
| Effect | What happens | Why it matters |
|---|---|---|
| Inverse cube falloff | Field strength drops as 1/d³ | The operate distance is short - the magnet must get close |
| Field concentration | The ferromagnetic blades gather the flux through themselves | The gap between the blades sees the strongest field |
| Snap action | Attraction overcomes spring force; the blades close fast | Clean, fast switching - no slow creep, no arcing |
| Hysteresis | Release distance is larger than operate distance | The switch does not chatter at the threshold |
| Dropout | The blades open when the field falls below the release point | The switch returns to its rest state |
The physics is the story of the field and the blades - the inverse cube makes the range short, the concentration makes the switch sensitive, and the snap action makes it clean: The physics of the magnetic limit switch is the story of the magnetic field and the ferromagnetic blades. The field strength of the magnet falls as the inverse cube of distance (1/d³): double the gap, and the field drops to an eighth - which is why the operate distance of a magnetic limit switch is short, and why alignment and gap matter so much. The two reed blades are ferromagnetic, so they concentrate the magnetic flux through themselves: the field threads the blades, and the gap between them sees the strongest flux - the attraction pulls the blades together. The snap action follows: once the attraction overcomes the blades' spring force, the blades close fast - clean, decisive switching with no slow creep and minimal arcing. The hysteresis is by design: the release distance (dropout) is larger than the operate distance (pull-in), so the switch does not chatter when the magnet hovers at the threshold - it closes at one distance and opens at another. The dropout: when the field falls below the release point, the blades' spring force wins and the contacts open. The reading: the inverse cube sets the range, the concentration sets the sensitivity, and the snap action plus hysteresis set the switching quality. (The hysteresis concept: What Are the Different Types of Switches?; the reed in the float: Float Switches & Level Sensors Archives; the sensor physics: How Do Sensors Work?.)
The Classic Versions
Cylinder, Door, Valve, and Float - the Four Standard Jobs
The versions (Featured Snippet):
| Version | Where the magnet is | Where the reed is | The job |
|---|---|---|---|
| Cylinder switch | On the piston (inside the cylinder) | On the cylinder body (outside) | Detects the piston position through the wall |
| Door / interlock switch | In the door or guard | In the frame | Detects open/closed for safety interlocks |
| Valve position switch | On the valve actuator | On the valve body | Confirms open/closed/positioned |
| Float switch | In the float | In the stem | Detects liquid level - the most common magnetic limit switch |
The four classic versions share one trick - the magnet rides the moving part, and the reed reads it through a wall: The classic versions of the magnetic limit switch share one trick: the magnet rides the moving part, and the reed reads it through a wall. The cylinder switch - the industrial standard - puts the magnet on the piston inside the pneumatic or hydraulic cylinder, and the reed switch on the cylinder body outside: the magnetic field passes through the aluminum or stainless wall, so the switch detects the piston position without any hole in the cylinder. The door and interlock switch puts the magnet in the door or safety guard and the reed in the frame: open the door and the field leaves the reed - the interlock drops out, which is the standard safety pattern for machine guarding. The valve position switch puts the magnet on the valve actuator and the reed on the valve body: it confirms open, closed, or mid-position for process control. And the float switch - the most common magnetic limit switch in the world - puts the magnet in the float and the reed in the stem: the float rides the liquid, the magnet passes the reed at the set point, and the switch detects the level with zero electrical contact with the liquid. The reading: wherever a moving part's position must be sensed without touching it or breaching a wall, the magnetic limit switch is the natural answer. (The float switch anatomy: Float Switches & Level Sensors Archives; the valve monitoring: Level Switches for Tanks for Automation; the interlock context: Intrinsically Safe & Explosion-Proof Level Solutions.)
The NAMUR Version: Magnetic Switches in Hazardous Areas
8 mA / 16 mA, Wire-Break Detection, and the Barrier
The NAMUR version (Featured Snippet):
| State | NAMUR current | Meaning |
|---|---|---|
| Magnet away (NO) | ~8 mA | The position is not reached |
| Magnet present (NO) | ~16 mA | The position is reached - the switch is actuated |
| Wire break | 0 mA | The loop is broken - the fault is detected by design |
| Short circuit | ~0 mA or off-scale | The loop is faulty - controller alarm |
The NAMUR magnetic switch carries the contactless reed into hazardous areas - and its 0 mA fault state is the advantage the dry contact cannot match: The NAMUR version of the magnetic limit switch is the hazardous-area edition: the reed contacts are replaced by a transistor that draws a current step - about 8 mA with the magnet away, about 16 mA with the magnet present - and the switch connects to a certified intrinsically safe barrier in the safe area, with the loop calculation (Uo ≤ Ui, Io ≤ Ii, Po ≤ Pi, Co ≥ Ci + Ccable, Lo ≥ Li + Lcable) proving the pair. The advantage is the 0 mA fault state: a wire break, barrier failure, or power loss drops the current to 0 mA, which the controller reads as a fault - the NAMUR switch distinguishes "not actuated" from "loop failed," which a dry contact cannot do (an open contact reads the same as a broken wire). The reed's hermetic seal and the milliwatt electronics make the magnetic switch a natural fit for the intrinsically safe envelope: Ex ia versions reach Zone 0, and the cylinder, valve, and float versions all exist in NAMUR form. The reading: the NAMUR magnetic switch is the contactless position sensor of the hazardous area - 8/16 mA steps carry the state, and 0 mA carries the fault. (The NAMUR deep dive: Intrinsically Safe Level Switch; the hazardous-area map: Hazardous Location Guide to Liquid Level Sensors; the solutions hub: Intrinsically Safe & Explosion-Proof Level Solutions.)
The Operating Parameters
Operate Distance, Hysteresis, Contact Ratings, and the Load Rules
The parameters (Featured Snippet):
| Parameter | What it is | Typical range |
|---|---|---|
| Operate distance | The gap at which the switch closes | 5–40 mm, depending on magnet and reed |
| Release distance | The gap at which the switch opens | Larger than operate - the hysteresis |
| Hysteresis | Operate vs release difference | 10–60% of the operate distance |
| Contact rating | The safe switching load | Gold: 10 mA–0.5 A; tungsten: up to 1 A |
| Switching frequency | How fast the switch can cycle | Up to hundreds of Hz for reed switches |
| Temperature range | The operating envelope | −40 °C to +125 °C typical (magnet-limited) |
The parameters are the contract between the magnet and the reed - and the load rules protect the contacts that the sealed glass tube makes hard to replace: The operating parameters are the contract between the magnet and the reed switch. The operate distance - the gap at which the switch closes - typically 5–40 mm, set by the magnet strength and the reed sensitivity. The release distance - the gap at which it opens - is larger than the operate distance, and the difference is the hysteresis: the deliberate dead band that stops chattering at the threshold. The contact rating is the safe switching load: reed contacts are delicate, and the rule is to match the load to the contact material - gold contacts for low-level loads (10 mA to 0.5 A, the signal world), tungsten contacts for higher loads (up to about 1 A), and never switch heavy current directly through a reed without a relay or contactor. The switching frequency can reach hundreds of hertz - the reed is fast. The temperature range is typically −40 °C to +125 °C, and the limit is usually the magnet (the Curie temperature where the magnet loses its field) rather than the reed. The load rules matter because the contacts are sealed in glass - you cannot clean or adjust them, so protecting them is the whole game. (The contact rules: What Are the Different Types of Switches?; the relay extension: Switch Contact Ratings: Current, Voltage, and Inrush; the sealed advantage: Float Switches & Level Sensors Archives.)
The Magnet Options
Alnico, Ferrite, and Rare Earth - and Why the Magnet Shrinks the Package
The magnet options (Featured Snippet):
| Magnet | Strength | Temperature | Cost | Where it fits |
|---|---|---|---|---|
| Alnico | Moderate | Excellent (up to 500 °C+) | Higher | High-temperature applications |
| Ferrite | Low-moderate | Good (up to 250 °C) | Lowest | Large gaps with big magnets; cost-sensitive |
| Rare earth (NdFeB) | Very high | Moderate (up to 150–200 °C) | Moderate | Small packages, long operate distances |
The magnet choice is a triangle of strength, temperature, and size - and the rare earth magnet shrank the magnetic limit switch: The magnet options for magnetic limit switches are a triangle of strength, temperature, and package size. Alnico - moderate strength, excellent temperature stability (500 °C and beyond), higher cost: the high-temperature choice, where the process heat would demagnetize a rare earth magnet. Ferrite - low to moderate strength, good temperature (up to about 250 °C), the lowest cost: the budget choice, which compensates its weaker field with larger magnets. Rare earth (NdFeB) - very high strength, moderate temperature (up to about 150–200 °C), moderate cost: the compact choice, which delivers a long operate distance from a small magnet - and which is why modern magnetic limit switches are dramatically smaller than the ferrite-era versions. The reading: choose the magnet by the temperature first (the process heat must not demagnetize it), then by the package (the operate distance needed vs the space available), then by cost. (The temperature limits: What Are the Different Types of Switches?; the float density rule: Float Switches & Level Sensors Archives; the sensor selection: How to Choose a Sensor.)
Advantages and Limitations
No Wear, Hermetic Seals, Through-Wall Sensing - Shunted by Steel, Limited by Temperature
The trade table (Featured Snippet):
| Advantage | Why | Limitation | Why |
|---|---|---|---|
| No mechanical wear | The magnet never touches the reed | Steel shunts the field | Ferrous metal redirects the flux - mounting must be non-ferrous |
| Hermetic contacts | The glass seal keeps the contacts clean | Short operate range | The inverse cube - the magnet must get close |
| Works through walls | The field passes through non-ferrous material | Temperature-limited | Heat demagnetizes; the Curie point is the ceiling |
| Millions of cycles | Nothing flexes except the blades | Stray fields interfere | Nearby magnets and coils shift the operate point |
| Intrinsically safe friendly | Milliwatts, sealed, no spark | Delicate contacts | Gold contacts need a minimum load and no heavy switching |
The advantages are the physics of the magnet and the seal - and the limitations are the physics too, which is why the mounting rules matter: The advantages of the magnetic limit switch flow from the physics. No mechanical wear - the magnet never touches the reed, so nothing abrades; the switch runs millions of cycles. Hermetic contacts - the glass seal keeps the contacts clean in dust, moisture, and corrosive atmospheres; the contacts never corrode or oxidize. Through-wall sensing - the field passes through non-ferrous material, so the switch reads the piston through the cylinder wall, the door through the frame, the level through the tank wall. And the intrinsic-safety friendliness - milliwatts, sealed, no spark: the magnetic switch is a natural Ex ia device. The limitations are the physics too. Steel shunts the field - a ferrous mounting plate redirects the flux away from the reed, so the mounting must be non-ferrous (aluminum, plastic, stainless where non-magnetic). The operate range is short - the inverse cube means the magnet must get close. Temperature limits - heat demagnetizes the magnet; the Curie point is the ceiling. Stray fields interfere - nearby magnets, coils, and motors shift the operate point. And the contacts are delicate - gold contacts need a minimum load (a dry circuit through gold contacts can fail from oxide films) and never switch heavy current directly. The rule: the magnet and the seal give the switch its superpowers - and the mounting and the load rules keep them. (The mounting discipline: Level Switches for Tanks for Automation; the contact rules: What Are the Different Types of Switches?; the sealed family: Float Switches & Level Sensors Archives.)
Installation Rules
Gap, Alignment, Non-Ferrous Mounting, and Stray-Field Distance
The installation rules (Featured Snippet):
| Rule | The detail |
|---|---|
| Gap | Set the magnet within the operate distance - with margin for wear and temperature |
| Alignment | Align the magnet's field with the reed's axis - the blades concentrate along the axis |
| Non-ferrous mounting | Mount on aluminum, plastic, or non-magnetic stainless - steel shunts the field |
| Stray-field distance | Keep the switch away from other magnets, coils, and motors |
| Orientation | Mount the switch at the set point in the certified orientation |
| Load protection | Switch through a relay or PLC input - never heavy current through the reed |
The installation rules are the difference between a switch that works for a decade and one that fails in a week - the gap, the alignment, and the non-ferrous mounting: The installation rules for magnetic limit switches are the difference between a decade of service and a week of failures. The gap - set the magnet within the operate distance, with margin for wear, temperature, and mechanical play: the inverse cube makes the gap the dominant variable. The alignment - align the magnet's field with the reed's axis: the blades concentrate the flux along their length, so the magnet should approach in the orientation the manufacturer specifies (usually with the field crossing the blade axis). The non-ferrous mounting - mount on aluminum, plastic, or non-magnetic stainless: a steel mounting plate shunts the field away from the reed and can halve the operate distance or kill the actuation entirely. The stray-field distance - keep the switch away from other magnets, coils, and motors: a strong neighbor shifts the operate point. The orientation - mount the switch at the set point in the certified orientation. And the load protection - switch through a relay or PLC input, never heavy current directly through the reed: the contacts are sealed in glass, so the protection must be external. The rule: set the gap with margin, align the field, mount non-ferrous, respect the neighbors, and protect the contacts. (The automation integration: Level Switches for Tanks for Automation; the wiring discipline: Intrinsically Safe Level Switch; the archives: Float Switches & Level Sensors Archives.)
Troubleshooting
The Symptom → Cause → Fix Matrix
The troubleshooting table (Featured Snippet):
| Symptom | Likely cause | Fix |
|---|---|---|
| No actuation | Gap too large, magnet demagnetized, wrong orientation | Reduce the gap; replace the magnet; check the orientation |
| Intermittent output | Magnet at the threshold, vibration, loose mounting | Add margin to the gap; secure the mounting |
| Stuck closed | Stray field holding the blades, magnet stuck | Remove the stray source; free the moving part |
| Chatter at the threshold | Hysteresis too small for the application, slow motion | Increase the gap margin; use a latching reed |
| No signal (NAMUR) | Wire break, barrier failure, polarity | Trace the loop; test the barrier; check the polarity |
| Early failure | Overload, wrong load type, water ingress | Switch through a relay; match the load; verify the IP rating |
The troubleshooting table is the magnetic switch's service page - six symptoms, each with a known cause and a known fix: The troubleshooting table for magnetic limit switches covers the service life. No actuation - gap too large, a demagnetized magnet, or wrong orientation: reduce the gap, replace the magnet, check the orientation. Intermittent output - the magnet hovering at the threshold, vibration, or loose mounting: add margin to the gap and secure the mounting. Stuck closed - a stray field holding the blades or a magnet stuck in position: remove the stray source and free the moving part. Chatter at the threshold - the hysteresis too small for the application or slow motion: increase the gap margin or use a latching reed. No signal on the NAMUR version - wire break, barrier failure, or polarity: trace the loop, test the barrier, check the polarity. Early failure - overload, wrong load type, or water ingress: switch through a relay, match the load, verify the IP rating. The rule: confirm the cause before the fix, and remember that the inverse cube makes the gap the first suspect. (The NAMUR fault states: Intrinsically Safe Level Switch; the check discipline: Sensor Data Sheet: How to Read and Use One; the archives: Float Switches & Level Sensors Archives.)
FAQ
Q1: How does a magnetic limit switch work?
A magnetic limit switch is a limit switch actuated by a magnet instead of a lever: the switch holds a hermetically sealed reed switch (two ferromagnetic blades in a glass tube), and the magnet's field pulls the blades together, closing the contacts. The magnet moves away, the field drops, and the blades spring open.
Q2: What is the difference between a magnetic limit switch and a mechanical limit switch?
The mechanical limit switch uses a physical lever, roller, or plunger that the machine part must touch and push. The magnetic limit switch uses a magnet: nothing touches the switch, so nothing wears, and the switch works through non-ferrous walls - but its range is short and steel shunts the field.
Q3: How far can the magnet be from the switch?
Typically 5–40 mm, set by the magnet strength and the reed sensitivity - and the field falls as the inverse cube of distance, so doubling the gap drops the field to an eighth. The operate distance is the certified gap; install with margin.
Q4: Can a magnetic limit switch be used in a hazardous area?
Yes - the NAMUR version draws 8 mA (magnet away) or 16 mA (magnet present) through an intrinsically safe barrier, with 0 mA detecting a wire break. The milliwatt, sealed, no-spark design makes the magnetic switch a natural Ex ia device, reaching Zone 0.
Q5: Why do reed contacts fail early?
The usual causes are overload (switching heavy current directly through the gold contacts), the wrong load type (inductive loads without suppression), and water ingress into a switch with an insufficient IP rating. Switch through a relay or PLC input, match the load, and verify the enclosure rating.
The Bottom Line
A magnetic limit switch is a limit switch actuated by a magnetic field instead of a mechanical lever or plunger: the switch body holds a hermetically sealed reed switch, and the actuator is a permanent magnet that approaches it and closes the contacts through the wall of the machine. The physics: the magnet's field falls as the inverse cube of distance, the reed's two ferromagnetic blades concentrate the field through themselves, the attraction overcomes the blades' spring force, and the blades snap together - until the field drops below the release point, giving the switch its hysteresis. The classic versions are the cylinder switch (the piston's magnet read through the cylinder wall), the door and interlock switch (magnet in the door, reed in the frame), the valve position switch, and the float switch - the most common magnetic limit switch in the world. The NAMUR version carries the switch into hazardous areas with 8/16 mA steps and 0 mA wire-break detection through an intrinsically safe barrier. The operating parameters - operate distance, hysteresis, contact ratings, and the load rules - are the contract between the magnet and the reed. The advantages are the physics of the magnet and the seal: no wear, hermetic contacts, through-wall sensing, millions of cycles, and intrinsic-safety friendliness. The limitations are the physics too: steel shunts the field, the range is short, heat demagnetizes, stray fields interfere, and the contacts are delicate. The installation rules - gap with margin, alignment, non-ferrous mounting, stray-field distance, and external load protection - are the difference between a decade of service and a week of failures. The one-sentence rule: the magnet does the touching, the reed does the switching, and nothing wears - but the gap, the mounting, and the load are the three things that keep it that way. (The float family: Float Switches & Level Sensors Archives; the classification: What Are the Different Types of Switches?; the hazardous-area edition: Intrinsically Safe Level Switch.)
Last updated: August 2026
Disclaimer: This article is an educational guide to magnetic limit switches, for general reference. The operating principle, physics (inverse cube falloff, field concentration, snap action, hysteresis), classic versions, NAMUR behavior, operating parameters, magnet options, advantages and limitations, installation rules, and troubleshooting guidance reflect common engineering knowledge and vary by manufacturer and model; always verify the specific switch's data sheet (operate and release distances, hysteresis, contact ratings, temperature range, certification) with the manufacturer's documentation. Installation and wiring must be performed by qualified personnel.
