Mag Lock Code: What Egress Rules Require in the US
Author: Esteban Galicia
Updated:
A maglock is allowed on an exit door only if the people inside can always get out. In US practice that means the lock must release when power is lost, release when the fire alarm goes off, and release when someone pushes a manual button or moves toward the door. If any one of those is missing, the opening is likely to fail inspection.
This guide is for contractors, property managers, and architects who have to specify, install, or sign off on a magnetic lock. It covers the release conditions, the fire alarm question, occupancy limits, how a maglock differs from an electric strike, and what to verify before closeout. Codes are adopted and amended locally, so your building department or fire marshal has the final word on any opening.
TL;DR
- A maglock has no mechanical latch. It holds the door with electromagnetic force, so the code treats it as an electrically locked egress door with extra release rules.
- Power loss must unlock it. Under the sensor-release provisions, the fire alarm must unlock it too, and it stays unlocked until the alarm system is reset.
- You need an egress-side sensor plus a manual “PUSH TO EXIT” device that directly interrupts lock power.
- Some occupancies restrict or prohibit maglocks. Confirm with the authority having jurisdiction before you order.
- Test the release paths at install and on a regular schedule, and keep records.
Table of Contents
- Why maglocks get their own code rules
- The release conditions a maglock must meet
- Do maglocks need to be connected to the fire alarm?
- Push buttons are not a substitute for proper hardware
- Occupancy matters
- Maglock vs. electric strike
- What to verify before the opening closes out
- Keeping release systems working
- Where we fit in
- Our perspective
- FAQ
- Sources
Why maglocks get their own code rules
A conventional lockset keeps the door shut with a latch or bolt. Turn the lever or push the bar and the mechanism retracts. A maglock works differently: an electromagnet on the frame pulls against an armature plate on the door. Cut the power and the door is free. Leave the power on and nothing mechanical lets the door open.

That is exactly why codes pay attention. A person in a smoke-filled corridor should never need special knowledge to leave. The rules exist to make sure the lock never stands between an occupant and the exit.
One point trips up many projects: maglocks are never required by code. They are an option, and using one means you accept a set of conditions. If you cannot meet them on a given door, use different hardware.
The general principle is stated plainly in a fire prevention design bulletin from a US university: electrically locked egress doors that use door-hardware or sensor release must unlock when power to the locking system is lost.
The release conditions a maglock must meet
In the US, most maglock installations on exit doors fall under the “sensor release” approach found in the model codes. The Minnesota State Fire Marshal explains the sensor release of electrically locked egress doors as a system with two parts: an occupant sensor on the egress side and a manual release. The manual release has to meet set requirements for location, signage, power interruption, and unlocking time.

1. The egress-side sensor
A sensor on the inside of the door detects a person approaching and unlocks the door. This is usually a motion or request-to-exit sensor mounted so it sees someone walking up to the opening. The goal is that a person walks to the door and it opens, with no thought required.
Placement matters. A sensor aimed badly, blocked by a coat rack, or masked by a nearby ceiling feature is one of the most common reasons a door fails its test.
2. The manual “PUSH TO EXIT” device
The second release is a manual device, often a button. Per the university fire prevention bulletin, the device must:
- Be within 5 feet of the door.
- Be mounted 40 to 48 inches above the floor.
- Directly interrupt power to the lock, not just send a signal to a controller.
- Keep the door unlocked for at least 30 seconds.
The “directly interrupt power” wording is the one designers miss. A button wired to an access control input, where software decides whether to release, is not the same as a button that breaks the lock’s power circuit.
3. Power loss and alarm release
The third path is automatic. If power to the lock fails, the door unlocks. If the building fire alarm activates, it unlocks as well. Together with the sensor and manual device, that gives the three release conditions inspectors look for.
Here is how the three paths fit together:
| Release path | What triggers it | Typical failure on site |
|---|---|---|
| Egress-side sensor | Person approaching the door | Sensor blocked, mis-aimed, or bypassed |
| Manual “PUSH TO EXIT” device | Person pressing the button | Wrong height, too far from the door, or not wired to cut lock power |
| Power loss and alarm | Outage or fire alarm activation | Lock on a circuit that is not tied to the alarm, or not reset-tested |
Do maglocks need to be connected to the fire alarm?
If the door uses sensor release, yes. The same bulletin states that activation of the building fire alarm, and the sprinkler or fire-detection system where one is provided, must unlock the electric lock. The door stays unlocked until the fire alarm system is reset.
That last part is practical. If a lock re-engages the moment the alarm silences, occupants and firefighters may meet a locked door while the building is still being cleared. Hold the release until the panel is reset.
On a project this usually comes down to coordination between trades. The access control installer, the electrician, and the fire alarm contractor each own a piece. Put the release interface on the drawings, name who wires it, and name who tests it.
Push buttons are not a substitute for proper hardware
A common shortcut is to treat the exit button as the door’s main way out. Code does not accept that. A Calgary Fire Department bulletin notes that push-to-exit buttons are often barred from serving as the primary door-opening hardware when they need more than one releasing operation or knowledge that might not be available in a panic. Calgary is in Canada and follows Canadian codes, so treat it as a useful comparison rather than a US rule. The principle of one simple motion to exit is the same one US inspectors apply.
The same bulletin says maglocks should not be used indiscriminately and that their design should be evaluated to ensure fail-safe exiting. That is sound advice anywhere. Ask first whether the opening needs a maglock at all, then design the release.
Occupancy matters
The same door can be fine in an office and unacceptable in another building type. The Calgary bulletin reports that electromagnetic locks are generally prohibited in high-hazard occupancies such as F1 and carry specific restrictions in detention, care, or treatment facilities. Canadian classifications differ from US ones, so do not carry that list across the border. What you can carry over is the habit: check the occupancy classification of the space before choosing hardware.
Before you specify, find out:
- Which edition of the building and fire code your jurisdiction has adopted, and any local amendments.
- The occupancy classification of the space the door serves.
- Whether the door is on a required means of egress or is a secondary opening.
- Whether the opening is in a fire-rated wall.
For New York City work, the city has its own construction and fire codes, so confirm requirements with the Department of Buildings and the Fire Department rather than assuming model code language applies word for word.
Safer hardware choices for restricted occupancies
Where a maglock is not allowed or is hard to justify, a mechanical solution is usually simpler. Exit devices such as a vertical rod exit device give a one-motion exit with no electrical dependency, and an exit device trim can control the outside while the inside always opens by pushing the bar. Our commercial door hardware guide walks through how these pieces fit together.
When electrical work is needed on a lock power supply, de-energize and secure it first. A clear explanation of lockout tagout procedures shows how that sequence works before anyone opens a panel.
Maglock vs. electric strike
People searching this topic often ask which is better. The answer depends on the door and the code, not on a general preference.
| Maglock | Electric strike | |
|---|---|---|
| How it holds | Electromagnet against an armature plate | Replaces the strike plate; works with a latch |
| Mechanical latch | None | Yes, the door still latches |
| Power-off state | Unlocked (always fail-safe) | Fail-secure or fail-safe, depending on model |
| Egress | Needs added release paths | Lever or exit device retracts the latch as usual |
| Fire-rated openings | Verify listing and approvals with the AHJ | Often used where the door must latch positively |
The key difference is the latch. With a strike, the door still has a mechanical way out: push the bar or turn the lever and the latch retracts, powered or not. A maglock has no such backup, which is why the code adds the sensor, the manual release, and the alarm link.
Fire doors add another layer. A fire-rated door is an assembly, and a fire door normally has to close and latch on its own. Every component on it, including any lock, has to be listed for use on a fire-rated opening. Before putting any electrified lock on a rated door, check the listing on the hardware and the label on the door and frame, and confirm with the authority having jurisdiction. Our guide to fire-rated door ratings and requirements covers how the door, frame, and hardware work together.
What to verify before the opening closes out
A maglock that works on the day of install is not necessarily compliant. Use this list at closeout.
- Permits and inspections. Confirm the work is permitted and the inspection is scheduled. The Calgary bulletin lists permits and inspections among the items to verify.
- Power-loss release. Cut power to the lock and confirm the door opens freely.
- Fire alarm release. Trigger the alarm (with the building owner’s coordination) and confirm the door unlocks and stays unlocked until reset.
- Sensor function. Walk toward the door from inside and confirm the sensor releases it with no pause.
- Manual release. Check the height (40 to 48 inches), the distance (within 5 feet), the signage, and that it cuts lock power directly and holds for at least 30 seconds.
- Door hardware. Confirm the door still has compliant hardware and nothing on the opening blocks it.
- Documentation. Keep the test results, wiring diagram, and manufacturer’s data on file.
The Calgary bulletin also points to annual functional testing, and that is a sensible floor. Outside the US, rules can be tighter. In England, the Fire Safety (England) Regulations 2022 guidance calls for monthly checks on automatic door-release mechanisms, including those that release electromagnetic locks on alarm. US building owners should follow their own adopted codes and their insurer’s requirements, and many choose a more frequent schedule on busy doors anyway.
Keeping release systems working
Most maglock failures are maintenance failures. A sensor gets covered, a button is relocated during a renovation, a power supply is swapped, or a fire alarm upgrade changes the relay wiring. None of it shows until the next test.
Build a routine:
- Test every release path on a set schedule and log the result.
- Retest after any change to the door, the access control system, or the fire alarm.
- Record who tested, when, and what was found.
- Fix and retest failed doors the same day.
A safe maintenance checklist is a good model for structuring that routine with clear steps and sign-offs. Our commercial door maintenance program covers recurring inspection and service for fire-rated openings.
Where we fit in
If you manage fire-rated openings in New York City, door, frame, and hardware have to work as one assembly. We manufacture and supply fire-rated steel doors, hollow metal frames, and commercial door hardware, and we handle installation and service. Whether you need a replacement opening on a tight schedule or a full set of rated units for a project, our fire-rated steel door units are a good place to start.

For urgent jobs, we offer same-day or next-day delivery and emergency door replacement and repair. Tell us the opening, the rating, and the hardware, and we will help you match the assembly. You can start at ufdoors.com.
Our perspective
We see the same pattern on many openings: someone wants more control over who comes in, so a maglock goes on, and the exit side gets treated as an afterthought. The code asks for the reverse. Start from the way out, then add access control around it.
Our view is that a rated opening should be built as one assembly from the start. The door, the frame, the closer, and the lock are chosen together, and any electrified hardware is checked against the rating and the local authority before it is ordered. That saves rework when the inspector arrives.
Where a mechanical exit device meets the need, we usually point customers there first. It has no power supply to fail, nothing to retest after an alarm upgrade, and it opens with one motion. Where electrified control is needed, we help contractors and property managers sort out the opening so it can be installed and serviced correctly.
Because we supply, install, and maintain, we also see what happens after closeout. The doors that stay compliant are the ones tested on a schedule and recorded.
Esteban
FAQ
Do maglocks need to be connected to fire alarms?
On doors using sensor release, yes. Activation of the building fire alarm, and of the sprinkler or fire-detection system where one exists, must unlock the lock. It stays unlocked until the alarm system is reset, according to a US university fire prevention bulletin.
Are maglocks required by code?
No. Code never requires a maglock. It permits one on certain doors if you meet the release conditions. If the opening cannot meet them, or the occupancy restricts them, use mechanical hardware such as an exit device instead.
What is the difference between a maglock and a door strike?
A maglock holds the door with an electromagnet and has no latch. An electric strike works with a latch, so the door still latches and the inside lever or bar still retracts it mechanically. That is why a maglock needs extra release paths and a strike usually does not.
Where must the “PUSH TO EXIT” button go?
Within 5 feet of the door and 40 to 48 inches above the floor. It must directly interrupt power to the lock and keep the door unlocked for at least 30 seconds, per the same bulletin. Your local adopted code and fire marshal may add signage or other requirements.
How often should maglock release systems be tested?
At minimum, annually, in line with the functional testing the Calgary bulletin recommends, and after any change to the door or alarm system. Check your local fire code and insurer for the schedule that applies to your building.
Sources
- Fire Prevention Design Bulletin #0002: Code Required Egress, Building Security, Electronically Locked
- Sensor release of electrically locked egress doors, Minnesota State Fire Marshal
- Fire Marshal Bulletin 2023-001: Electromagnetic Locks, Calgary
- Guidance Documents: Fire Safety (England) Regulations 2022