CFE MXA-0010 2-pin magnetic DC power connector, 12V 5A, shown as a magnetic connector pair
The MXA-0010 2-pin magnetic DC power connector (12 V, 5 A): the kind of magnet-held connection whose stray field needs planning near sensors.

Hold a magnetic charger next to a phone and open the compass app. The needle swings away from north, and nothing is broken. That small moment explains this whole article. A magnetic connector keeps its two halves together with permanent magnets, and the field from those magnets does not stop at the housing wall. It leaks into whatever sits nearby. Engineers call that leakage a stray field, and for a B2B buyer it is a risk worth catching before tooling, not after the first returns.

This guide explains how stray fields behave, which parts react to them, and how to keep them under control. If your product needs a sealed, magnetic power connection, it also shows what to tell your supplier so the right part is quoted the first time. For the connector families themselves, start with CFE’s waterproof pogo pin and magnetic connectors for 5A–30A designs.

Quick answers

  • Stray field: the part of a magnet’s field that extends beyond its working gap and can disturb nearby sensors, compasses, or magnetically sensitive parts.
  • Distance is your strongest tool. For a small magnet, the field falls roughly with the cube of distance, so doubling the gap cuts it to about one eighth.
  • Right-size the magnet. Holding force only has to beat the spring force and vibration, with margin. Extra pull means extra stray field.
  • Measure, don’t guess. Log the sensor with the connector mated, unmated, and rotated in the real product.

What a Stray Field Is and Why Small Magnets Cause Big Problems

In a magnetic connector, the useful field sits between the two mating faces. It pulls the halves together and aligns the pins. The rest spreads out in every direction, through plastic, air, and thin metal alike. A plastic housing does nothing to stop it, because a magnetic field passes through plastic as if it were not there.

Why would a coin-sized magnet matter to a product the size of a watch? Sensors that read magnetic fields are extremely sensitive, and everything inside a compact device sits close together. A few millimetres can be the difference between an invisible effect and a failed heading test.

Two properties make the problem trickier than it first looks. First, the field fades quickly with distance but never reaches zero. For a small magnet, doubling the gap cuts the field to roughly one eighth, which is why a modest increase in spacing so often fixes a problem. Second, direction matters. The field leaves one pole and loops back to the other, so the same magnet can push a sensor reading up on one side and down on the other. The result depends on where the sensor sits and how it is oriented, not only how far away it is.

None of this makes magnetic connectors a poor choice. It means the magnet should be treated like any other component with a side effect, such as a heat source or a radio transmitter: something you can measure and plan around.

How Strong Is a Magnet Compared With the Earth?

A compass works by reading Earth’s field, and that field is weak. According to NOAA’s National Centers for Environmental Information, Earth’s magnetic field intensity is roughly 25,000 to 65,000 nanoteslas (0.25 to 0.65 gauss) depending on location (see the NOAA NCEI geomagnetism FAQ). A small neodymium (NdFeB) magnet can measure thousands of gauss at its own surface. Even after the field drops with distance, a magnet a few centimetres away can match or beat the Earth’s field at the sensor. A compass chip in that spot is trying to hear a whisper next to a speaker.

Field source General scale What it means for a sensor
Earth’s field at the surface About 0.25–0.65 gauss The reference a compass is trying to read
Small NdFeB magnet, at its surface Often thousands of gauss Far beyond what a compass or Hall sensor tolerates
Same magnet, a few centimetres away Much lower, still comparable to Earth’s field Enough to shift a heading or trigger a switch
Same magnet, much farther away Falls roughly with the cube of distance May sink below the sensor’s noise floor

These values describe magnets in general. Real numbers depend on grade, size, and geometry, so measure your own assembly.

Which Parts Get Fooled by a Stray Field

Not every component cares about magnets. The ones that do tend to share one trait: they are built to detect a magnetic field, so they cannot tell a deliberate signal from a leaked one. Before choosing a magnetic connector, list every magnetically sensitive part within a few centimetres of the dock or cable port.

Component What goes wrong What you will notice
Magnetometer or e-compass Reads magnet field added to Earth’s field Heading offset or drift when docked
Hall-effect sensor Output shifts or saturates False lid, position, or presence detection
Reed switch Contacts close under external field Switch stuck closed or random triggers
Magnetic stripe readers and cards Strong fields can disturb stored or read data Read errors in payment or access products
Nearby magnets, motors, and speakers Fields add or oppose each other Changed holding force or odd sensor readings
Medical equipment and implants Magnetic fields can interact with some devices A safety question, not just a performance one

A safety note. If your product could end up near implanted medical devices, follow the guidance from the implant’s manufacturer and the user’s clinician, and keep magnetic parts clear of them. This article covers engineering practice, not medical advice.

Magnetometers show up in more products than people expect. Smart watches, AR/VR headsets, and smart glasses often use them for orientation, which is why the risk is real for wearables. CFE’s pages on smart wear solutions and medical connection solutions show where these connectors are used.

Why Magnetic Connectors Create Stray Fields

MXA-0010 2-pin magnetic DC power connector, male and female halves, for 12V 5A power
A mated pair holds together with NdFeB magnets; the same magnets create the stray field.

A magnetic connector has one job the magnets must do well: hold. The pull has to exceed the combined push-back of the pin springs, plus a margin for vibration and awkward angles. The MXA-0010 shows the balance. Its product page lists a magnetic force of 4.6 N, NdFeB permanent magnets, and a male-side contact force of 120 g ±20% at 1.0 mm working stroke. If that contact force applies to each of its two pins, the springs push back with roughly 2.4 N, which leaves the magnets close to twice the force needed to hold. Confirm the basis for your own part with CFE, but this is the margin check every magnetic design should go through.

The connection to stray fields is direct. A stronger magnet holds better, and it also leaks more. A design that is “safe” on holding force can be overbuilt on field strength. Too much pull also makes the connector awkward to separate and can attract metal debris onto the contact face.

Polarity is the second lever. When opposite poles face each other across the gap, the magnets act as a key, so the connector cannot mate backwards. CFE describes its magnetic connectors as combining magnet positioning with a dual circuit protection structure to identify direction. A paired layout of opposite poles also tends to cancel part of the field far from the connector, which is a quiet side benefit for sensor protection. Because the pattern changes the outside field, treat magnet layout as part of the sensor plan, not only the mating plan.

Five Ways to Protect Sensors and Compasses

Most problems are solved by combining a few simple choices. The order below tends to be cheapest to most involved.

  1. Add distance. Move the sensor, or the connector, even a few millimetres farther apart. Because the field drops so quickly, this is often the most effective fix and costs almost nothing at the layout stage.
  2. Choose the orientation on purpose. Sensors respond along specific axes. Placing the sensor where the connector’s field is mostly perpendicular to its sensitive axis can cut the reading noticeably.
  3. Use alternating polarity. A layout with opposite poles side by side reduces the far field compared with a single large magnet, while keeping the keying benefit.
  4. Right-size the magnet. Calculate the real holding need from spring force, vibration, and handling, then choose the smallest magnet that meets it with margin.
  5. Shield or compensate if needed. High-permeability shielding and firmware compensation are covered in the next section.

There is one more point worth knowing. A magnet that is permanently fixed in the product creates a constant offset, and most e-compass calibration routines can learn and remove that offset. The real trouble starts when the field changes, such as when a dock or charging cable is attached and removed. In that case the offset appears and disappears, and calibration alone cannot follow it. A common approach is to detect the docked state and pause or recalibrate heading readings while the connector is mated.

Shielding and Compensation: What Works and What Costs

Shielding does not block a magnetic field the way a wall blocks light. A shield made of a high-permeability material gives the field an easier path to follow, which guides the flux away from the sensor. That means the shield has to be shaped, placed, and sized with care, and it can saturate if the magnet is strong and the shield is thin.

Approach Strength Limit
More distance Cheap, reliable, no extra parts Limited by product size
Alternating polarity layout Reduces far field and keys the mating Needs tooling and magnet planning early
Smaller or weaker magnet Lower field at the source Holding force must still beat spring force
High-permeability shield Redirects flux away from a sensor Adds cost and thickness; can saturate; can change holding force
Firmware compensation Handles dock-state changes Does not fix saturated sensors

One caution on shields: placing steel or similar material near a magnet changes the magnet’s own behavior, including holding force. Test the connector with the shield in place, never as a separate step.

A Practical Test Plan Before You Freeze the Design

Bench measurements beat assumptions. A handheld gaussmeter or the sensor’s own output is enough to start.

  1. Set a baseline. Log the sensor output with no connector nearby, in the real housing.
  2. Mate and unmate. Record all three axes with the connector attached, removed, and half-seated. Half-seated cases are where odd readings hide.
  3. Rotate the product through 360 degrees. Compare heading error with and without the connector. A fixed offset is easy to remove. A swing that changes with angle is harder.
  4. Test the real assembly. Include the cable, the housing, and any metal parts, because they all change the field path.
  5. Repeat after any change. New magnet grade, new housing, or a new screw location can alter the result.

Magnet strength also needs a check against current and heat, because dense products often combine both. CFE’s guides on why four 5A pogo pins don’t make a 20A connection and PCB design for 30A pogo pins cover the power side of the same decision.

What B2B Buyers Should Send With a Quote Request

Suppliers can only plan around a stray field they know about. Many sourcing teams send current and pin count, and leave the sensors out. Add the information below, and the first sample is far more likely to be right.

What to send Why it matters
Magnetically sensitive parts nearby (compass, Hall sensor, reed switch, card reader) Sets how low the stray field must be
Distance and direction from connector to each sensor Lets the team pick magnet size and orientation
Required holding force and use case (dock, cable, wearable) Avoids an overbuilt magnet
Current, voltage, and duty cycle Chooses the pin series with margin
Water exposure and mating cycle target Decides the sealing method and plating
Any medical or safety constraints on magnets Flags requirements before design lock

One honest note. The MXA-0010 product page we reviewed lists magnetic force, contact force, current, and cycle life, but it does not publish a stray-field map. If your design depends on a specific field limit at a specific distance, ask CFE engineering for measured data on the part, or request samples and measure it yourself.

CFE 2-pin magnetic DC power connector male part with specification table, 12V 5A
The male part of the 2-pin magnetic DC power connector, with its listed specifications.

Where Stray Fields Matter Most, and What CFE Publishes About Its Experience

The risk rises where a magnetic connector sits next to sensors in a small space. Wearables and headsets are the clearest case, followed by smart home devices, cycling products, and automotive electronics. See CFE’s application pages for automotive, smart home, and smart bike products.

These are CFE’s own statements from its website, so you can check them before you contact anyone:

  • Dongguan CFE Electronic Co., Ltd. was founded in 2009, and its founder has worked on pogo pin connectors since 2003 (see the development history).
  • CFE has customized magnetic connectors since 2011, covering nearly 800 products in more than 200 fields.
  • The services page cites more than 1,000 customers served.
  • The MXA-0010 page states that the part passes RoHS, REACH, and HF requirements.

For the process behind these claims, review the quality page and the certifications and honors.

Talk to the CFE Engineering Team

If a compass, Hall sensor, or similar part sits near your connector, tell us early. Browse the 5–30A magnetic connector and waterproof pogo pin categories, or ask about a custom pogo pin connector. Then use the quote and samples form or email cfe@cfeconn.com with your sensor layout, holding force, and current, and the team can recommend a configuration. Our full range for sealed, high-current designs is on the waterproof 5A–30A pogo pin and magnetic connector page.

Frequently Asked Questions

What is a magnet stray field?

It is the portion of a magnet’s field that extends beyond its working gap. In a magnetic connector, it reaches nearby parts and can disturb compasses, Hall sensors, reed switches, and other components that respond to magnetic fields.

Can a magnetic connector affect a compass?

Yes, if the compass sensor is close enough. Earth’s field is weak, roughly 25,000 to 65,000 nT according to NOAA NCEI, so a nearby magnet can shift the reading. Distance, orientation, and magnet size decide how large the shift is.

How far away is far enough?

There is no single number. For a small magnet, the field falls roughly with the cube of distance, so doubling the gap cuts it to about one eighth. The safe distance depends on magnet grade, geometry, and how tolerant the sensor is, so measure your own assembly.

Does shielding fully block a magnet’s field?

No. A high-permeability shield redirects flux rather than blocking it, and a thin shield near a strong magnet can saturate. Shielding can also change holding force, so test it as part of the connector assembly.

Can firmware calibration remove the effect?

It can remove a constant offset from a magnet that never moves. It cannot follow a field that appears and disappears with docking, so those products usually detect the docked state and pause or recalibrate heading readings.

Are magnetic connectors safe near medical implants?

Magnetic fields can interact with some implanted devices. Follow the implant manufacturer’s guidance and the user’s clinician’s advice, and keep magnetic parts away from implants. This article is engineering information, not medical advice.