How to Program a BMW Key Fob (DIY, Dealer, or Locksmith)
A brand-new BMW key must be coded to your car’s immobilizer module (EWS, CAS, FEM or BDC, depending on the year). BMW dealers order keys pre-coded to your VIN; locksmiths with specialized tools can add keys to many models. Owners can only re-sync the remote buttons on some older EWS-era cars. Expect roughly $300 to $650 at a dealer.
BMW key programming is different from most brands. Instead of a generic fob that gets “learned” by the car, BMW has historically built each key for a specific vehicle at the factory key center, using your VIN. Which immobilizer module your car has decides whether a locksmith can help, how long it takes, and whether any owner procedure applies at all.

BMW Key Systems by Era: EWS, CAS, FEM and BDC
Year ranges are approximate and overlap between series. Your model code (E46, E90, F30, G20 and so on) is the most reliable guide.
| Immobilizer system | Typical BMW models | Key style | Programming notes |
|---|---|---|---|
| EWS (EWS2 / EWS3) | Roughly mid-1990s to mid-2000s: E36, E46 3 Series, E39 5 Series, E38 7 Series, E53 X5 | Metal blade key with remote buttons | Keys coded by BMW or by locksmith EEPROM work; remote buttons can often be re-synced by the owner |
| CAS (CAS2, CAS3, CAS3+) | Roughly 2002 to 2013: E60 5 Series, E90 3 Series, E70 X5, E83/F25 X3 era | Slot key inserted into dash; Comfort Access optional | Dealer-coded keys or locksmith tools; newer CAS3+ software can need more advanced procedures |
| CAS4 / CAS4+ | Roughly 2009 to 2017: F01 7 Series, F10 5 Series, F25 X3 | Keyless fob, push-button start | Locksmith support is good on many cars; some need module removal |
| FEM | Roughly 2012 to 2019: F30 3 Series, F32 4 Series, F20 1 Series | Keyless fob | Locksmith tools often require the module to be read on the bench |
| BDC | Roughly 2014 on: F15 X5, G30 5 Series, G20 3 Series, G05 X5 and most G-series | Keyless fob, Display Key on some, BMW Digital Key | Newer BDC software can be dealer-only, especially with all keys lost |
What BMW Owners Can Program Themselves
There is no owner procedure that adds a brand-new key to a BMW immobilizer. What some owners can do is re-synchronize the remote buttons of a key that is already coded to the car. This is useful when a remote stops locking and unlocking after a battery change on older models.
The widely used re-sync procedure for many EWS-era BMWs (roughly 1997 to 2006, such as the E46, E39 and E53) is:
- Get in, close all doors, and have all keys you want to sync with you.
- Insert the key and turn it to position 1 (accessory), then turn it off within about 5 seconds. Remove the key.
- Within about 30 seconds, press and hold the unlock button on the key.
- While holding unlock, press the lock button three times within about 10 seconds, then release unlock.
- The locks should cycle to confirm. Repeat steps 3 and 4 for each additional key within 30 seconds.
- Test each remote from outside the car.
This does not work for CAS-, FEM- or BDC-equipped cars, where the key’s remote function is synchronized automatically once the key is coded. If your remote is unreliable after a battery change, check the BMW key fob battery replacement guide first. Many CAS-era slot keys charge a rechargeable cell while in the ignition slot, while most F- and G-series keyless fobs use a replaceable CR2032, but confirm on your own key.
What You Need for a New BMW Key
- Your VIN and proof of ownership (registration and photo ID). BMW requires this to order a coded key.
- Your model code, which tells a locksmith whether your car has EWS, CAS, FEM or BDC.
- The right key hardware. Aftermarket keys must match the frequency and system. Used BMW keys are usually locked to their original car unless a locksmith can renew them with special equipment.
- A stable 12V supply. Shops connect a battery maintainer; low voltage during coding can damage modules.
BMW Replacement Key Fob
Confirm the listing names your immobilizer system (CAS, FEM or BDC), frequency and model code, and that your locksmith will program a supplied key before you buy.
As an Amazon Associate, ReplaceKeyFob earns from qualifying purchases.
How BMW Key Programming Works at a Dealer
- Order: The dealer orders a key from BMW using your VIN and ownership documents. The key is built and coded for your car and can take several days to a couple of weeks to arrive.
- Arrival: On many models the new key works once it is used in the car, because the key data already matches the immobilizer. The dealer may still connect ISTA (BMW’s diagnostic software) to check key registration and disable lost keys.
- Disable lost keys: If a key was lost or stolen, ask for it to be disabled. BMW cars track keys by number, so a missing key can be locked out.

How a Locksmith Programs a BMW Key
A locksmith takes a different path. Instead of ordering from BMW, they read the key data from the car’s CAS, FEM or BDC module and write a new key using a professional key programmer. Depending on the model, they may work through the OBD2 port or remove the module and read it on the bench. This is often faster than a dealer order and can be cheaper, especially for older CAS cars.
Limits to know:
- Some newer BDC cars with recent software are hard or impossible to do outside the dealer, particularly when all keys are lost.
- Bench work on FEM and BDC modules carries a small risk; choose a locksmith who does BMW keys regularly.
- Comfort Access keys and Display Keys cost more and are not supported by every tool.
If you are comparing options, our guide to key fob programming tools explains which tools cover BMW, and why most are aimed at professionals.
BMW Key Fob Programming by Model
BMW 328i key fob programming
An E90-era 328i (about 2007 to 2013) uses CAS3 or CAS3+ and a slot key. A late F30 328i (about 2012 on) uses FEM. Both can be done by a dealer; many locksmiths can do both, though FEM often requires bench work.
BMW X3 key fob programming
An E83 X3 (about 2004 to 2010) uses CAS2, an F25 X3 (about 2011 to 2017) uses CAS4, and a G01 X3 (2018 on) uses BDC. Ask your locksmith about the specific generation.
BMW X5 key fob programming
The E53 X5 (about 2000 to 2006) uses EWS3, the E70 (about 2007 to 2013) uses CAS3, and the F15 (2014 to 2018) and G05 (2019 on) use BDC.
How to program a 2013 BMW key fob
A 2013 model could be CAS3+, CAS4 or FEM depending on the series. No owner procedure exists for these; a dealer or BMW-capable locksmith is required.
BMW Key Fob Replacement and Programming Cost
| Option | Typical 2026 US cost | Notes |
|---|---|---|
| Dealer, standard key | About $300 to $500 | Pre-coded by VIN; wait time for the key order |
| Dealer, Comfort Access or Display Key | About $450 to $650 or more | Display Key is at the top of the range |
| BMW-capable locksmith | About $250 to $500 | Often same day; bench work may add cost |
| Owner remote re-sync (older EWS cars) | Free | Only for keys already coded to the car |
For more general pricing, see our key fob programming cost guide.
When a BMW Key Still Won’t Work
If a coded key opens the doors but will not start the car, or the remote works only up close, the issue may be the key battery, a weak 12V battery, or a key that is not registered. The BMW key fob not working guide walks through those checks, and why a key fob won’t program covers common programming failures. For the broader picture across brands, start at our key fob programming guide.
Frequently Asked Questions
Not a new key. BMW keys must be coded to the car’s EWS, CAS, FEM or BDC module by a dealer or a locksmith with BMW-specific tools. Owners can only re-sync the remote buttons on some older EWS-era models.
Dealer keys are ordered by VIN and often take several days to about two weeks to arrive. A locksmith can often make a key the same day for supported models.
Usually not without special equipment. BMW keys are written for one vehicle. Some locksmiths can renew certain used keys, but a new key is the safer purchase.
No, adding a key does not erase the others. A dealer can intentionally disable a lost or stolen key so it can no longer start the car.
Professional key programmers that read CAS, FEM or BDC data and write a new key. They are mainly used by locksmiths. A basic OBD2 code reader cannot program BMW keys.
