A reed switch is a small electromagnetic switch that opens or closes when exposed to a magnet. In this article, you’ll learn how it works, which magnets operate it, and how to solve common problems with practical steps.
What Is A Reed Switch?
At its core, a reed switch is an electromagnetic switch that controls the current flow in a circuit. It comprises two thin strips of ferromagnetic material (called reeds) sealed inside a small glass tube. When a magnetic field comes near, the reeds either move together to complete a circuit or move apart to break it. Because they’re sealed in glass, reed switches are protected from dust, moisture, and corrosion, making them highly durable.
Related Reading: What is a reed switch and how does it work?
Types Of Reed Switches
- Typically Open (NO): The switch is open by default, meaning no current flows. When a magnet comes close, the reeds pull together, closing the circuit.
- Normally Closed (NC): By default, the switch is closed, meaning current flows. When a magnet approaches, the reeds repel and break the circuit.
- Changeover (SPDT): This type has three terminals, and it switches the circuit from one connection to another when a magnet is applied.
How Does A Reed Switch Work With Magnets?
A reed switch only works when paired with a magnetic field. The reeds attract or repel each other when the magnet is brought near depending on the switch type. But here’s the catch: not all magnets behave the same way. Distance, orientation, and magnet strength can dramatically affect whether your reed switch operates correctly.
Key Factors That Influence Operation
- Distance: The farther the magnet is, the stronger it needs to be. If the magnet is too weak or too far away, the switch won’t trigger.
- Orientation: Reed switches respond differently depending on the alignment of the magnet’s poles. Axial alignment (along the switch’s length) is usually most effective.
- Sensitivity Rating: Reed switches are rated in Gauss, which measures the magnetic field strength needed to operate them. A more sensitive switch will require a weaker magnet, while less sensitive switches need stronger magnets.
Advantages Of Using Reed Switches
Why choose reed switches over other sensors? Here are the most significant benefits:
- No power supply needed: Unlike Hall effect sensors, reed switches don’t need electricity to detect magnets.
- Extremely long lifespan: High-quality switches last millions of open/close cycles.
- Low cost and compact size: Ideal for mass production and small devices.
- Reliable operation: Can work through non-metallic materials like plastic or glass.
- Durable: Resistant to corrosion and sealed against environmental damage.
These advantages make reed switches a cost-effective and versatile in consumer electronics and industrial systems.
Which Magnets Operate A Reed Switch?
The good news is that any permanent magnet can trigger a reed switch. The not-so-good news is that not every magnet works equally well. The effectiveness depends on magnet strength, size, and positioning.
Best Magnet Types
- Neodymium magnets: The strongest type available, even small ones, can reliably trigger reed switches. These are the go-to choice for compact projects.
- Ferrite (ceramic) magnets are cheaper and more resistant to corrosion than neodymium, but they are also bulkier and weaker. Therefore, they are useful for larger applications where space isn’t limited.
- Alnico magnets: Not as strong as neodymium, but stable in high temperatures, making them useful in harsh environments.
Tips For Choosing The Right Magnet
- Check your reed switch sensitivity rating in the datasheet (measured in Gauss).
- Match magnet strength to distance. The farther away your magnet will be, the stronger it must be.
- Experiment with placement. Test different distances and angles until the switch operates reliably.
- Avoid interference. Keep magnets and switches away from ferrous metals that can distort magnetic fields.
By following these tips, you’ll avoid the frustration of switches that don’t trigger or stay stuck closed.
Common Problems And How To Solve Them
Reed Switch Does Not Trigger
- Problem: Magnet is too weak or too far away.
- Solution: Use a stronger magnet (like neodymium) or reduce the distance.
Reed Switch Stays Stuck Closed
- Problem: Magnet is too strong or too close, causing the reeds to remain magnetized.
- Solution: Move the magnet farther away or switch to a weaker magnet.
False Triggers From Nearby Fields
- Problem: Motors, transformers, or nearby ferrous materials are interfering.
- Solution: Reposition the switch, add shielding, or move it away from interference sources.
Fragile Installation
- Problem: The glass capsule and legs are delicate, and rough handling can break them.
- Solution: Reinforce the legs with solder, use adhesives to hold them in place, or mount the switch inside a protective housing.

Practical Steps To Select The Right Magnet
- Identify your application. For example:
- Door/window alarm → short distance, use small neodymium.
- Outdoor environment → ferrite magnet for durability.
- Robotics project → compact neodymium for precise triggering.
- Check reed switch datasheet. Look for pull-in and drop-out field ratings in Gauss.
- Test with real magnets. Hold the magnet at different distances and orientations to see where it reliably opens or closes.
- Secure installation. Once you find the optimal setup, fix the switch and magnet firmly so they don’t shift with vibration or time.
Common Applications Of Reed Switches
Reed switches are used in countless devices you interact with every day:
- Door and window sensors in security systems detect unauthorized entry.
- Laptops: Detects when the lid is closed and turns off the screen automatically.
- Flip phones: Powers on/off when the case is opened or closed.
- Automotive systems: Monitors fluid levels or acts as part of ABS braking systems.
- DIY and Arduino projects: Used in bike speedometers, magnetic counters, or home automation sensors.
FAQs About Reed Switches And Magnets
Q1: Can any magnet operate a reed switch?
Yes, but neodymium magnets are most effective because of their strength.
Q2: How far can a magnet be from a reed switch?
It depends on the switch sensitivity and magnet strength—usually a few millimeters to a couple of centimeters.
Q3: Why does my reed switch stay closed after removing the magnet?
Your magnet is too strong or too close. Increase the distance or use a weaker magnet.
Q4: What’s the difference between reed switches and Hall sensors?
Reed switches are mechanical, require no power, and are cheaper. Hall sensors need power but provide more precision and digital/analog output options.
Q5: How long does a reed switch last?
High-quality reed switches can last millions of cycles if used within their ratings.
Conclusion
Reed switches may look small, but they pack a lot of functionality. They’re simple, cost-effective, and incredibly versatile, provided you choose the right magnet and install them correctly. By understanding how they work, selecting the right magnet type, and applying the practical steps outlined here, you can confidently use reed switches in everything from DIY electronics to industrial systems. These tiny switches can make your projects more reliable and efficient with just a little testing and careful placement.
XURUI Engineering Team







