No—double-sided (keyed on both faces) APT-style door locks are not illegal anywhere in the United States. They are ordinary cylinder locks sold openly, and building codes permit them, but they carry one crucial code restriction: in most U.S. jurisdictions, a lock that requires a key from the inside is prohibited on egress (exit) doors of dwellings and limited to one such lock on the main entrance door.
The confusion arises because "double-sided" can mean two different things: a cylinder with a keyway on both sides (no thumb-turn), or a lock that uses the same key inside and out. This article separates those, explains what the International Residential Code and model fire codes actually say, and covers where the locks are legal, where they are restricted, and what to install instead.
What "double-sided" actually means for an APT lock
A double-sided APT key lock has a keyed cylinder on both faces of the door, so the occupant needs the key to open the door from inside the home. That is the configuration the code restrictions target, because it can trap someone during a fire or emergency.
The term "APT" is used loosely in the lock market as a shorthand for locks suited to apartment and entry doors—many of them with anti-pick, anti-bump or restricted-key features—but it is not a single standardized product class. When a product listing says "double-sided," check the photo and spec sheet to see whether the interior side has a keyway or a thumb-turn.
A lock that uses the same key on both sides is not automatically "double-sided" in the code sense. If the interior side has a thumb-turn that lets anyone exit without a key, the lock is an ordinary single-cylinder deadbolt and the exit-door rules generally don't restrict it. The restriction attaches to key-locking from the inside, not to the key being shared between inside and outside.
That distinction—keyed inside versus thumb-turn inside—is the whole legal question. Everything below hinges on it.
The code rule that governs keyed interior locks
The International Residential Code (IRC), which is the model residential code most U.S. states and localities adopt in some form, has long included an egress requirement. The standard provision, found in the means-of-egress section (R310 in recent editions), states that egress doors must be readily openable from inside without a key, tool, special knowledge or effort.
For exterior exit doors, the IRC's door provisions (historically R311.2, and renumbered in later editions) add a specific allowance: a dwelling may have one exterior door with a key-operated lock on the interior side, and that door must be the main entrance. Other exterior egress doors cannot require a key from inside.
The practical translation is straightforward:
- One keyed-inside lock on the front door is permitted under the model code.
- Keyed-inside locks on multiple exit doors, or on a door other than the main entrance, are generally prohibited.
- Any lock that blocks egress from a sleeping room, basement or secondary exit is a code problem regardless of how the door is otherwise configured.
The International Fire Code (IFC) and NFPA 101 (Life Safety Code) apply similar principles, chiefly to commercial and multifamily occupancies rather than one- and two-family homes, and they are stricter: they generally require doors to be openable from the egress side without a key at all times.
Why the codes target this
The concern is fire survival, not burglary. A person awakened by smoke may not be able to find a key in the dark, and a child or guest may not have one. The model codes resolve that conflict by allowing residents one keyed-inside door—the one they use daily and keep a key near—while requiring all other exits to open freely from inside.
Which doors can legally carry a keyed-inside lock
A double-sided key lock generally passes code on the main entrance door of a single-family home or apartment, in the single permitted instance. That is the front door the household uses as its primary entry and where keeping a key on the inside is manageable.
It falls outside the permitted use on:
- Secondary exterior doors—back doors, side doors, garage-to-house doors, patio doors.
- Doors serving sleeping rooms or basements that function as egress paths.
- Any door in the required means of egress of a multifamily or commercial building, where fire codes typically forbid keyed exit entirely.
- A second keyed-inside door on the same dwelling, even if it is also a main entrance.
Renters face an additional layer: the lease and the landlord's building permits may restrict or prohibit added locks. Apartment buildings in particular are often governed by fire-code provisions stricter than the residential code, and drilling or replacing a landlord's lock without permission can create a lease violation independent of the building code.
Where the restriction comes from and how it varies
Three separate authorities can affect legality, and they don't always match:
- The adopted building code, usually a state or local version of the IRC or IBC, sets the egress rule.
- Fire codes, adopted at the state or local level, add life-safety requirements for multifamily and commercial buildings.
- Your lease, if you rent, adds contractual restrictions that can be stricter than the code.
Because adoption and amendments vary, a configuration legal in one city may be restricted in another. Some jurisdictions have amended the IRC's keyed-inside allowance; others enforce it as written. Before installing or keeping a keyed-inside lock beyond the front door, the reliable step is to ask the local building or code-enforcement office which code edition and amendments apply. That is a local verification, not something a generic article can settle.
A few exclusionary arrangements deserve mention. Privacy locks on bedroom and bathroom doors are not egress locks in the usual sense. Exit devices and panic hardware don't apply to residential doors. Child-safety and window-egress rules are separate. And electronic or smart locks that open from inside with a thumb-turn or lever are not "keyed" in the code sense, even though a key may work outside—so they sit outside this issue.
Double-sided keys versus the alternative setups
The table below compares the practical arrangements a homeowner or renter typically weighs. "Keyed inside" means the interior face needs a key; "thumb-turn" means it opens freely from inside.
| Arrangement | Interior exit needs a key? | Code position (model IRC) | Typical best use |
|---|---|---|---|
| Single-cylinder deadbolt, thumb-turn inside | No | Permitted on egress doors | Standard exit doors; safest default |
| Double-sided (keyed both faces) on front door | Yes | One keyed-inside lock permitted on main entrance | Households wanting keyless-outside protection with a keyed interior |
| Double-sided on a back or secondary door | Yes | Generally prohibited on egress doors | Not recommended; replace or add thumb-turn |
| Double-sided on two or more doors | Yes | Generally prohibited beyond the single allowance | Not compliant as a set |
| Smart lock with interior thumb-turn/lever | No | Treated as freely openable from inside | Main entrance and secondary doors |
The comparison is not about which lock is "better." It's about whether the interior side opens without a key. Any setup that does passes the general egress test; only the single front-door instance under the IRC gets the explicit keyed-inside allowance.
What a compliant installation looks like in practice
Take a typical two-story house with a front door, a back door and a door from the garage into the house. A household that wants a double-sided key lock can keep it on the front door only. The back and garage doors should use a deadbolt with a thumb-turn on the interior so anyone inside can leave without hunting for a key.
For an apartment with a single entrance, a double-sided lock on that entrance is within the model code's single-door allowance, but the lease and building rules still control whether the tenant may change the lock. A renter should get written permission and keep the original hardware to restore at move-out.
For a multifamily or commercial property, the fire code is likely to forbid a keyed exit entirely. Building owners replacing locks should check the applicable fire code and the local fire marshal's requirements rather than assuming the residential allowance carries over.
A useful self-check before installing any double-sided lock: stand inside with the door closed and ask whether a person who has never seen the door could get out in the dark, without a key. If the answer is no, the lock is in the restricted category and should be confined to the single front-door allowance or swapped for a thumb-turn model.
Safety considerations beyond the code question
Legality is the floor, not the ceiling. A double-sided lock on the only exit a household uses from a bedroom wing is a genuine fire risk even when it technically falls within the single-door allowance, because the allowance assumes the household treats that door as the main entrance and keeps a key accessible.
Three practical risks deserve consideration:
- Key placement. If you keep a keyed-inside lock, the key should live in the lock or immediately beside it, not on a hook across the room or in a drawer. A key you can't reach in smoke is no better than no key.
- Guests and children. Visitors and young children may not know a key is needed. A thumb-turn deadbolt removes that failure mode entirely.
- Break-in resistance is unchanged. A double-sided cylinder does not make a door meaningfully harder to defeat than a single-cylinder deadbolt; the security difference is largely cosmetic. Buyers seeking anti-pick or anti-bump protection should look at the cylinder's rating and the door's strike and frame reinforcement, not the number of keyways.
The safer default for nearly every household is a single-cylinder deadbolt with a thumb-turn inside on each egress door, reserving any keyed-inside lock for the single front-door instance the code permits—if you want one at all.
Frequently Asked Questions
Is a double-sided key lock illegal in the United States?
No. Double-sided key locks are legal and widely sold. The building code restricts them on egress doors: the model IRC permits only one keyed-inside lock, on the main entrance of a dwelling. Local amendments and fire codes for multifamily buildings can be stricter.
Can I put a double-sided lock on my back door?
Generally no, if the back door is an exit door of a dwelling. The model residential code limits keyed-inside locks to one main-entrance door, so a keyed-inside lock on a back door falls outside that allowance. A thumb-turn deadbolt is the compliant choice.
Does a double-sided lock with the same key inside and out count as keyed inside?
Yes, if the interior face has a keyway. Sharing one key doesn't change the egress question—what matters is whether the interior side opens without a key. A thumb-turn interior with a keyed exterior is a different, generally compliant setup.
Can renters install a double-sided lock?
Only with the landlord's permission and subject to the lease and building rules. Apartment buildings are often governed by fire-code provisions stricter than the residential code, and unauthorized lock changes can breach the lease.
Are smart locks and electronic locks treated the same way?
No. If the interior side opens with a thumb-turn, lever or push-button, the lock is generally treated as freely openable from inside, even though a key or code works the outside. The egress restriction targets key-locked interior faces.
What should I do if my home already has keyed-inside locks on several doors?
Replace all but the front-door one with thumb-turn deadbolts, and keep a key immediately at hand for the remaining door. Confirm the local code edition with the building department if the configuration matters for a sale, rental or inspection.