The mechanism, step by step
How do coded magnets work?
Coded magnets work by printing many small North/South cells across a magnet’s face in a correlation code. When two matching codes align, every attracting pair overlaps and the force peaks; shift the code and attracting and repelling pairs cancel, so the magnets weaken or push apart.
The one idea to hold onto: correlation
Coded magnets borrow a trick from radar and radio. Engineers there use special sequences - correlation codes such as the Barker code - that produce one sharp spike when two matching signals line up and almost nothing when they don’t. That “sharp when aligned, quiet when not” property is called good autocorrelation, and it is exactly what you want if you are trying to build a magnet that grabs hard in one position and lets go everywhere else.
Now apply it to magnetism. Treat North as “+1” and South as “−1.” A coded magnet writes a sequence like + + + − − + − across its face. Its matching partner carries the same sequence. When the two are aligned, every cell meets its like partner, all the little forces add up, and the pair snaps together. Nudge one magnet over by a single cell and suddenly many pairs are mismatched - a North now faces a South that wants to push it away. The forces fight each other and the net pull collapses, or even reverses into a shove.
How a coded magnet is made, in four steps
Start with a plain magnet
Begin with an ordinary magnet blank - a neodymium or ferrite disc - that has not yet been given its final pole pattern.
Print the code
A magnetizing machine writes many tiny North/South regions - each a maxel, typically 1-4 mm - across the face, following the chosen correlation pattern.
Make a matching partner
A second magnet gets the matching code (for a strong latch) or a deliberately offset one (to tune spring, shear, or release behavior).
Get a programmed force
Put the pair together: aligned codes attract sharply; shift or rotate them and the force weakens, cancels, or flips to a push - on cue, and repeatably.
Why the force can attract and repel
This is the part that surprises people. With ordinary magnets, two North faces always repel and North-to-South always attracts - flip one over and the behavior flips too. Coded magnets break that rule because each face carries both Norths and Souths in a pattern. Whether the pair attracts or repels depends on how the two patterns line up, not on which way you flipped the magnet. Slide one magnet along its partner and you sweep through attract, cancel, and repel - the interactive strip on the home page lets you drag through exactly that.
From one code, many behaviors
By choosing the code and the offset, a designer sets which behavior a pair exhibits:
- Attach - matching codes aligned pull together hard, often stronger for their size than a plain magnet.
- Repel - a mismatched or shifted code turns the same faces into a controlled push.
- Spring / hold-at-a-distance - layered attract-and-repel codes settle at a fixed gap, like a contactless spring.
- Align - the correlation peak drags an off-center or rotated part into one exact position.
- Latch & release - firm in the aligned position, then a small twist drops the correlation to zero and it lets go.
- Coded-pair keying - a magnet engages strongly only with its matching code and ignores others.
See all six with swatches on the behaviors table, or watch them demonstrated on the videos page.
A note on the history
Correlated magnetics was developed by Larry Fullerton beginning in 2008 and commercialized under the Polymagnet brand by Correlated Magnetics Research. Fullerton’s background was in ultra-wideband radio, which is why the magnets borrow correlation-code ideas from the RF world.
Keep reading
Related guides
What is a programmable magnet?
Plain-language definition and how it differs from an ordinary magnet.
BUYINGWhere to buy programmable magnets
Who makes and sells coded magnets, demo kits, and custom design.
WATCHCoded magnet videos
Authoritative demonstrations of attach, align, latch, and spring behaviors.
REFERENCEGlossary
Maxel, correlation code, Barker code, multipole and more, defined simply.
Ready to build
Get coded magnets
Coded magnets are made and sold commercially under the Polymagnet brand, based on Larry Fullerton’s correlated magnetics work — including demo kits and custom design.
polymagnet.com →