Mag Locks Code Compliance: What Egress Rules Require
Author: Esteban Galicia
Updated:
A mag lock is code compliant only when people can leave through the door without a key, tool or special knowledge, and when the lock lets go on a defined set of triggers: a sensor or release device, loss of power and fire alarm activation. On a fire-rated door, the lock also cannot replace the latching hardware the door was listed with. This guide walks through each requirement, shows how they fit together on a real opening and explains where the local authority has the last word.
TL;DR
- Egress comes first. Occupants must be able to exit through a mag-locked door without keys, tools or special knowledge, and with no more than one release motion.
- A model-code installation needs a sensor or listed release device, a manual “PUSH TO EXIT” device, unlocking on power loss and unlocking on fire alarm.
- Egress-side electric locking hardware is expected to carry a UL 294 or UL 1034 listing.
- A mag lock holds a door shut. It does not latch. A fire-rated door still needs its listed latching hardware.
- Your local fire code and your authority having jurisdiction (AHJ) decide which edition applies. Confirm before you order.
Table of Contents
- The principle behind every mag lock rule
- Which code governs your door
- The release requirements, one by one
- Do mag locks need to release with the fire alarm?
- Fail-safe or fail-secure?
- Listings and approvals
- Fire-rated doors: the latching problem
- A worked example: a rated stair door in an office building
- Common mistakes that fail inspection
- Perspective
- Get the door side of the project right
- FAQ
- Sources
The principle behind every mag lock rule
Every code provision on mag locks comes from one idea: a locked door must never trap someone in a fire. A mag lock has no latch or bolt. It holds the door with magnetic force, so the code treats it as an electrically controlled barrier on the path out of a building. That is why the rules focus on how the barrier releases rather than on the lock’s strength.
UL’s Code Authority lists the core elements of free egress with locking configurations. Doors must open readily from the occupant side. Locking devices on the egress side must not need keys, tools or special knowledge. Releasing devices must release the door leaf with no more than one motion.
That last point catches many installations. A door that needs two steps to leave, such as pressing a button and then pulling a handle, fails the one-motion test unless a code path specifically allows it. Design the release so the person moving toward the door triggers it without thinking.

Which code governs your door
There is no single national mag lock code. The model codes are the International Building Code (IBC), the International Fire Code (IFC) and NFPA 101, the Life Safety Code. States and cities adopt them, usually with amendments and on different editions. The edition in force where the building stands is the one that counts.
Two examples show how local the answer is:
- Minnesota. The state fire marshal says sensor-release electrified locking systems that use electromagnetic locking devices must conform to the 2020 Minnesota State Fire Code. The state also notes that the code does not apply where the egress side is always unlocked and allows free, uninhibited egress.
- New York City. The city’s code text permits electromagnetically locked egress doors in specified occupancies only when the door has hardware with a built-in switch and meets set conditions. Operating that switch must directly interrupt power to the electromagnetic lock and unlock the door immediately.
The practical lesson: do not specify from a generic checklist. Find the adopted code and edition, then ask the AHJ (usually the fire marshal or building department) how it reads sensor release, built-in switch hardware and delayed egress in your jurisdiction. Our companion piece, Mag Lock Code: What Egress Rules Require in the US, covers the egress side in more depth.
The release requirements, one by one
The model-code language for sensor release sits in IBC section 1010.2.11 in the 2024 edition. Older editions and city codes number it differently, as the New York City text above shows. The 2024 IBC text allows sensor release of electric locking on egress doors in any occupancy except Group H when the installation meets a list of criteria. Minnesota’s fire marshal publishes a plain-language version of the same structure. Together they describe the following pieces.
1. An occupant sensor that unlocks immediately
A sensor on the egress side detects someone approaching and unlocks the door. The sensor does not replace the other methods below. It is the everyday way out.
2. A manual unlocking device marked “PUSH TO EXIT”
The manual device must sit 40 to 48 inches above the floor and within 5 feet of the secured door. It must be easy to reach and clearly marked with a sign reading “PUSH TO EXIT.” When pressed, it must interrupt power to the lock directly, independent of other electronics, and the lock stays unlocked for at least 30 seconds. Minnesota’s guidance gives the same height, distance and 30-second figures.
A button wired through a controller does not meet this. The point of “direct interruption of power” is that the release works even if the access control system has crashed.
3. Unlocking on loss of power
Loss of power to the lock or the locking system must unlock the door. This is why mag locks are fail-safe by nature: no power means no magnetic hold. Minnesota also requires unlocking on loss of power to the occupant sensor, so a dead sensor cannot leave the door held shut.
4. Unlocking on fire alarm
If the building has a fire alarm, activating it must unlock the lock, and the lock stays unlocked until the alarm system is reset. Where a sprinkler system is present, Minnesota’s guidance adds unlocking on sprinkler activation, also until reset. Resetting the door before the alarm panel is reset is a failure mode to check for during commissioning.
Quick reference
| Release method | What the rule asks for | What to check on site |
|---|---|---|
| Occupant sensor | Unlocks immediately on approach | Sensor coverage reaches the full swing path |
| Manual device | 40 to 48 in. high, within 5 ft, “PUSH TO EXIT” sign, 30 seconds unlocked | Direct power interruption, sign legible, nothing blocking access |
| Power loss | Lock and sensor both release | Pull the power and confirm the door opens freely |
| Fire alarm | Unlocks and stays unlocked until reset | Test from the alarm panel and confirm the reset sequence |
| Sprinkler (if present) | Unlocks until system reset | Confirm the interface exists and is tested |
Do mag locks need to release with the fire alarm?
Yes, wherever a building has a fire alarm and the mag lock is on a path of egress under the sensor-release provisions. The IBC text and the Minnesota guidance both tie unlocking to alarm activation. The release has to be part of the design, not an afterthought. In practice, the lock’s power supply passes through a fire alarm relay so the panel can cut power to the lock.
Two details matter on a job:
- Who owns the interface. The fire alarm contractor and the access control installer must agree on the relay, its location and who tests it. Many failed inspections are coordination failures, not hardware failures.
- Two-stage or zoned alarms. Some systems alarm by zone. Ask the AHJ which zones must release the lock on a given door.
Fail-safe or fail-secure?
Mag locks release when power is cut, so they are fail-safe. That matches the requirement that loss of power unlocks the door. A fail-secure device, such as many electric strikes, stays locked when power drops. Fail-secure hardware can be acceptable in other configurations because a mechanical release remains on the egress side, but it does not meet the loss-of-power rule for sensor-release electric locking.
If a design calls for a door that stays locked in a power outage, a mag lock is the wrong tool for that opening. The right answer is usually mechanical egress hardware with electrified access on the outside. Our guide to the electric strike on a fire door explains what is allowed in that case.
Listings and approvals
The lock itself should be a listed product. Minnesota requires door locking system units for sensor-release electrified egress doors to be listed under UL 294. The 2022 edition of NFPA 5000 states that egress-side electromechanical or electromagnetic locking hardware shall be listed to UL 294 or UL 1034. The excerpt explains that this can be a component of an electrical locking system or a device with its own individual listing. UL 294 covers access control units and UL 1034 covers burglary-resistant electric locking mechanisms.
The habit to build: ask for the listing on the submittal, keep the data sheet in the project file and match the model number on site to the listed one. An unlisted or substituted lock is a common reason an inspector rejects an opening.

Fire-rated doors: the latching problem
This is where mag lock projects go wrong most often. Fire doors are tested and listed as complete assemblies: door, frame, hardware, closer. The door is expected to close and latch every time so the fire-rated barrier stays shut. A mag lock holds a door closed with magnetism, but it has no latch bolt. Swapping a mechanical lockset for a mag lock on a rated opening removes the latching function the assembly depends on.
The usual approach to keep both functions looks like this:
- Keep listed latching hardware on the rated door. Use a fire-rated lockset or exit device that provides positive latching and is labeled for the door’s rating.
- Add the electric locking as access control, not as the only closing means. Where the AHJ accepts a mag lock on a rated opening, it works alongside the latch rather than instead of it.
- Do not cut or drill beyond the labeled limits. Fire door labels and listings restrict field modifications. Preparing a door for a mag lock or for a lock that the door is not labeled for can void the label.
- Keep the closer. A fire door must still self-close from the open position. Do not remove or disable the closer to suit the access control.
- Get written approval. Ask the AHJ about the exact configuration before work starts, and keep the answer with the project records.
We cover the hardware side in our commercial door hardware guide. For rated openings that need a latching lockset, our UL 3-hour fire-rated lever lockset is one example of the kind of hardware used. Browse the fire-rated locksets and deadbolts collection to see what is labeled for rated assemblies.
A worked example: a rated stair door in an office building
Take a corridor door that opens to an exit stair in a mid-rise office. The tenant wants badge access from the corridor side. Here is how the checklist applies.
- Egress side (stair side). Occupants leaving must open the door without a key or badge. The design needs a sensor or a listed release, and a mechanical way out that takes one motion.
- Fire alarm. The access control panel’s lock power runs through a fire alarm relay. When the alarm activates, power drops and the lock releases until reset.
- Power loss. The lock must release when power is cut. Test by switching off the supply.
- Rated assembly. The door keeps its labeled latching lockset and closer. Any modification must stay within the label.
- Listing. Lock and controller carry the required UL listing, and the model on the submittal matches what is installed.
- Sign-off. The fire alarm contractor and the installer test together, and the AHJ witnesses or accepts the test.
Walk through that list at design stage and again at commissioning. Most corrections are cheap on paper and expensive after the frame is set.
Common mistakes that fail inspection
- Replacing the lockset with a mag lock on a labeled fire door, with nothing left to latch.
- A “push to exit” button wired through the controller, not directly interrupting lock power.
- No fire alarm release, or a release that was never tested from the panel.
- Signs missing or placed where they cannot be seen, or a button mounted outside the 40 to 48 inch range.
- Wrong code edition. Designing to a model code that the jurisdiction has not adopted, or to an older edition.
- Unlisted hardware or a model substitution after submittal.
- Locking both sides. Minnesota notes the code applies when electrified hardware secures both sides of the door. A door that is always free to leave is treated differently, which is why egress-side function is the first thing to define.
Perspective
Most of the mag lock problems we hear about on rated doors come down to one confusion: people treat the lock as the door’s hardware, when on a fire door the hardware is part of a tested assembly.
Our approach is to settle the rated opening first. We supply fire-rated steel doors, hollow metal frames and commercial door hardware, and we handle installation and service, so the door, frame and latching hardware are chosen together instead of piecemeal. In New York City, where inspectors look closely at fire-rated openings, that matters.
If the opening needs electrified access, bring the AHJ in early. Decide the release method, the fire alarm tie-in and the latching hardware before ordering. It is faster to get one answer in writing than to rework a finished door.
Esteban
Get the door side of the project right
Universal Fireproof Doors manufactures and installs fire-rated steel doors, hollow metal frames and commercial door hardware, built around NYC fire and safety standards. We offer same-day or next-day delivery, custom sizing, bulk order pricing and emergency door replacement and repair, so a failed opening does not hold up a project. We also provide supply, installation and service together.

If you are specifying or replacing a rated opening, start with our fire-rated doors, frames and hardware or browse the commercial door hardware collection for the lockset that keeps the assembly intact.
FAQ
What are the code requirements for mag locks?
Occupants must be able to leave without keys, tools or special knowledge, using no more than one release motion. Under model-code sensor release, the door needs an occupant sensor, a manual “PUSH TO EXIT” device, unlocking on power loss and unlocking on fire alarm. The lock should also carry a UL 294 or UL 1034 listing. Your local code edition and the AHJ decide the final details.
Do maglocks need to release with a fire alarm?
Yes, where the building has a fire alarm. The 2024 IBC sensor-release provisions require the alarm to unlock the lock and keep it unlocked until the alarm system is reset. Minnesota’s guidance adds sprinkler activation where a sprinkler system exists. Have the fire alarm contractor and the installer test the release together.
Are mag locks fail-secure?
No. A mag lock releases when power is lost, so it is fail-safe. That behavior is what the loss-of-power rule expects. If an opening must stay locked during an outage, use mechanical egress hardware with electrified access on the outside instead.
Can I put a mag lock on a fire-rated door?
Only with care. A fire door is listed as an assembly that closes and latches, and a mag lock does not latch. Keep the listed latching hardware and closer, stay within the door’s label for any preparation and get the configuration approved by the AHJ before work begins.
Sources
- Locking Configurations for Access and Egress Control, UL Code Authority
- Sensor release of electrically locked egress doors, Minnesota Department of Public Safety
- Electromagnetically locked egress doors, New York City code (AmLegal)
- 2024 International Building Code, sensor release of electrically locked egress doors
- NFPA 5000-2022 Second Revision No. 8138, locking hardware listing