Contact Sensor Magnet Gap Distance: What Determines It

Contact Sensor Magnet Gap Distance: What Determines It

Can a door sensor really tell you it is “closed” when the gap is twice what the box claims? Yes, and that mismatch is behind a surprising share of false alarms and missed openings. The number printed on a security contact’s datasheet, usually something like 1/2 inch or 12 mm, is not a universal law of physics. It is a conditional figure tied to a specific magnet, a specific approach angle, and a specific threshold. Get any of those wrong, and the real contact sensor magnet gap distance on your door or gate can differ from the spec by a wide margin.

This article breaks down what the gap distance actually means, why reed switches behave the way they do, how security contacts differ from Hall-effect and GMR sensors, and which practical mistakes cause the most trouble in the field.

What “gap distance” actually means on a magnetic contact sensor

A magnetic contact sensor is a two-part device. One half holds a reed switch, a tiny glass tube with two flexible ferromagnetic blades sealed inside. The other half holds a permanent magnet. When the magnet comes close enough, its field pulls the blades together and closes the circuit. Move the magnet away, and the blades spring apart.

The gap distance is the separation at which that switching happens. But here is the catch that trips up installers: there are two gap distances, not one.

  • Operate distance (pull-in): how close the magnet must get before the switch closes.

  • Release distance (drop-out): how far the magnet must move away before the switch opens.

These are never the same. The difference between them is called hysteresis, and it is a normal, intentional feature of reed switch design. A switch that closed at 15 mm might not open until the magnet is 20 or 25 mm away. Datasheets list both numbers, and the release figure is almost always the larger one.

Why does this matter? Because a sensor that “works” during a quick bench test can sit right at the edge of its release threshold once installed. The door closes, the switch latches, and then a slight settle in the frame pushes the magnet just past the release point, triggering an alarm at 3 a.m.

Why the magnet matters as much as the switch

The single most common misconception is that gap distance is a property of the switch alone. It is not. It is a property of the switch-magnet pair.

The same reed switch will close at very different distances depending on what magnet you pair it with. A small ferrite disc produces a weak field and a short gap. A strong neodymium block produces a much larger gap with the same switch. This is why reputable datasheets specify a test magnet, including its size and grade, next to the operate and release distances. A gap figure without a stated test magnet is close to meaningless.

For small axial-lead glass reed switches, operate distances in the range of roughly 10 to 30 mm are typical with common test magnets. Treat that as an order of magnitude, not a specification. Real values vary enormously by part number and magnet strength.

The practical takeaway: never mix and match halves from different contact sets unless the manufacturer explicitly supports it. A replacement magnet from a different brand can shift your effective gap by several millimeters in either direction.

Alignment and approach angle: the hidden variable

Most gap specs assume an on-axis approach: the magnet moves straight toward the switch along its centerline, with the two halves perfectly aligned. Real doors, gates, and windows rarely cooperate.

Three factors quietly change the effective distance:

  • Lateral offset. If the magnet is shifted sideways from the switch axis, the field at the blades weakens and the gap shrinks. A few millimeters of misalignment can cost you a meaningful chunk of your rated distance.

  • Rotation. Rotating a bar or block magnet changes which pole faces the switch, which can dramatically alter the field strength at the blades.

  • Separation plane. Magnets mounted side by side behave differently from magnets mounted face to face. The rated distance usually assumes one specific orientation.

This is why a contact rated for 12 mm might only reliably switch at 7 or 8 mm on a poorly aligned sliding door. Field experience suggests budgeting a healthy safety margin, often 30 to 50 percent below the rated figure, rather than installing at the maximum.

Security contacts versus Hall-effect and GMR sensors

Not all magnetic sensors work the same way, and “gap distance” does not translate cleanly between them. Here is a comparison.

Sensor type Switching mechanism How gap is defined Typical behavior
Reed switch contact Mechanical blade pull-in Physical distance with a specified magnet Clear operate and release points, visible hysteresis
Hall-effect sensor Semiconductor detects field strength Magnetic flux density threshold No mechanical parts, gap depends on field strength and supply
GMR/TMR sensor Thin-film magnetoresistance Field strength and direction threshold High sensitivity, different gap behavior entirely
Mechanical plunger switch Physical button press Travel distance of the actuator Wears with use, no magnet involved

The key difference is that reed switches respond to a mechanical force generated by the field, while Hall and GMR devices respond to field strength directly. That means a Hall sensor’s “gap” is really a field threshold that changes with magnet grade, temperature, and supply voltage. Comparing a reed contact’s 12 mm to a Hall sensor’s “gap” is comparing two different measurements.

For most residential doors and windows, reed contacts remain the default because they need no power, work in a simple closed loop, and are cheap and reliable. Hall sensors earn their place in applications needing direction sensing, tamper detection, or continuous position output.

What the standards do and do not tell you

Security contacts for burglar alarm systems are sometimes evaluated against UL 634, the standard covering connectors and switches for use in burglar-alarm systems. The IEC 62246 series covers reed contact units more broadly. These documents set performance and testing expectations, but they do not hand you a universal gap number you can apply to every product.

The gap figure that matters is the one in your specific product’s datasheet, measured with the specified test magnet under specified conditions. Standards tell you a product has been tested to a benchmark. They do not override the physics of your particular installation. (NFPA codes and standards overview)

Practical installation tips that actually work

Field experience points to a handful of habits that prevent most gap-related problems.

  • Test with the real magnet, in the real position. Bench-testing the switch alone tells you almost nothing. Mount both halves, close the door, and verify with a meter.

  • Check both the release point and the operate point. Open the door slowly and watch for the exact moment the circuit opens. If it opens late, your gap is too generous.

  • Leave a margin. Install at roughly two-thirds of the rated gap so temperature drift, door sag, and settling do not push you past the release threshold.

  • Keep the halves aligned. Shim the magnet or switch so their centerlines match. This is the cheapest reliability upgrade available.

  • Watch for steel. Mounting a contact directly on a steel frame can shunt the magnetic field and shrink your effective gap. Use a non-ferrous spacer if needed.

  • Recheck after the season changes. Wooden doors and frames move with humidity. A contact that worked in summer can drift out of range in winter.

If you are evaluating sensors at scale, whether for a building rollout or a product comparison, it helps to treat gap specs as one data point among many. Teams comparing hardware options often pair sensor datasheets with broader best sales intelligence tools for b2b contact data research when scoping vendor relationships, and a quick look at how large organizations structure their facilities decisions, such as who owns Gap in the retail world, shows how much context matters before committing to a supplier.

Common mistakes that cause false alarms

Most gap problems fall into a few predictable patterns.

Installing at the maximum rated distance. The spec is a best-case figure under ideal conditions. Installing at the limit leaves no room for drift.

Ignoring hysteresis. Installers test the close and never test the open. The result is a sensor that arms fine but fails to report an opening, or reports one when the door is merely rattling.

Mismatched magnet and switch. Replacing a lost magnet with a generic one changes the field and therefore the gap. Always use the manufacturer’s matched pair.

Mounting on conductive frames. Steel and some aluminum alloys affect the field. Non-metallic shims solve this cheaply.

Skipping the meter. A quick continuity test with a multimeter takes thirty seconds and catches nearly every alignment problem before it becomes a service call.

Temperature, aging, and drift

Two slow variables erode gap performance over time. The first is temperature. Reed switch sensitivity shifts with temperature, and so does magnet strength. A contact installed near a rated limit in a mild climate may fail in extreme heat or cold.

The second is mechanical aging. Reed blades can develop slight changes in stiffness over millions of operations, and door hardware sags. Neither happens fast, but both mean that a contact installed with zero margin will eventually drift out of spec.

The fix is simple: design in margin at installation, and schedule periodic checks for critical openings. A yearly verification pass on perimeter doors catches most drift before it becomes an incident.

How to choose the right gap for your application

Work backward from the physical reality of the opening.

  • Measure the actual travel. How far does the door or window move between fully closed and open? Your gap must sit comfortably inside that range.

  • Identify the mounting surfaces. Steel frames, uneven trim, and thick weatherstripping all change the effective distance.

  • Check the datasheet’s test conditions. Note the specified test magnet and whether the gap figure is operate or release.

  • Apply a safety margin. Target roughly two-thirds of the rated operate distance.

  • Verify with a meter in the installed position. Close, open, and watch the exact switching points.

  • Document the result. Recording the measured gap helps future maintenance and troubleshooting.

If you need help scoping a sensor deployment or want to talk through the trade-offs, you can contact a specialist who works with these systems daily.

Conclusion

Contact sensor magnet gap distance is not a single number you can copy from a box. It is the product of a specific switch, a specific magnet, a specific alignment, and a specific threshold, with temperature and aging layered on top. The rated figure on a datasheet is a starting point measured under controlled conditions, not a guarantee for your door frame.

The installers who get reliable results share a few habits. They test the release point as carefully as the operate point. They leave a real margin instead of installing at the limit. They keep the two halves aligned and use matched components. And they verify with a meter in the final installed position rather than trusting a bench test. Do those things, and the gap stops being a source of mystery alarms and starts being what it should be: a predictable, measurable design parameter.

FAQ

What is a normal magnet gap distance for a door contact sensor?

Most residential security contacts are rated around 1/2 inch, roughly 12 to 13 mm, with the specified test magnet under ideal alignment. That is a nominal figure, not a universal one. The real working distance depends on the magnet grade, the approach angle, and whether you are measuring the operate or release point. Installing at two-thirds of the rated distance is a safer target.

Why does my sensor trigger when the door is still closed?

This is almost always a hysteresis or alignment problem. The switch closed at a certain distance but needs the magnet to move farther away before it opens. If the door settles or vibrates slightly, the magnet can cross the release threshold while the door still looks shut. Check the release distance with a meter and increase your margin.

Can I use a different magnet with my existing switch?

Technically yes, practically it is risky. The gap distance is a property of the switch-magnet pair, so a replacement magnet with a different size or grade shifts the effective distance in ways the datasheet does not describe. Always use the manufacturer’s matched replacement, or re-verify the switching points with a meter after any substitution.

What is the difference between operate and release distance?

Operate distance is how close the magnet must get for the switch to close. Release distance is how far it must move away for the switch to open. Release is almost always the larger of the two because of hysteresis, the built-in lag in reed switch behavior. Both figures appear on a proper datasheet and both matter for reliable operation.

Do Hall-effect sensors have the same gap distance as reed switches?

No. Hall-effect and GMR sensors respond to magnetic field strength rather than mechanical pull-in, so their “gap” is really a field threshold that changes with magnet grade, temperature, and supply voltage. Comparing a reed contact’s millimeter rating to a Hall sensor’s threshold is not a like-for-like comparison.

How often should I check the gap on installed contacts?

For critical perimeter doors, an annual verification pass is reasonable. Wooden frames move with humidity, hardware sags, and magnets weaken slowly over time. A thirty-second continuity test at the release point catches most drift before it becomes a false alarm or a missed opening.

on this page