How to Program a Mazda Key Fob (DIY, Dealer, or Locksmith)

Quick Answer

On many Mazdas with a flip key or separate remote, roughly 2003-2013, you can program the remote at home: cycle the ignition three times, open and close the driver door three times, then press a remote button twice. The immobilizer chip and push-button smart keys on the Mazda3, Mazda6, CX-5 and CX-9 need a tool, a locksmith or a dealer.

Mazda’s keys fall into two clear groups. The flip keys and separate remotes common in the 2000s and early 2010s let owners program the lock and unlock buttons with a door and ignition sequence. The Advanced Keyless Entry smart keys, and the immobilizer chip in every key, need diagnostic equipment.

Many 2000s Mazdas also share immobilizer technology with Ford from the companies’ long partnership, which is why some locksmiths call it Mazda PATS. This guide covers the Mazda3, Mazda6, CX-5, CX-7 and CX-9.

What this guide covers: How to Program a Mazda Key Fob (DIY, Dealer, or Locksmith)

Mazda key types by era

Key type Typical Mazda years Remote buttons Immobilizer chip
Transponder key + separate remote Early-to-mid 2000s (Mazda6, Mazda3, Tribute, MPV) Onboard on many Tool or pro; some accept a two-key method
Flip key (switchblade) About 2006-2015 (Mazda3, Mazda6, CX-7, CX-9, CX-5 base trims) Onboard on many Tool or pro
Advanced Keyless smart key (card or fob) About 2007 onward on upper trims; most models since the mid-2010s Tool or pro Tool or pro

The same model year can come with either a flip key or a smart key depending on trim, so check what you have before you buy anything.

What you need

  • A key or remote with the correct FCC ID and part number. Mazda flip keys from different generations are not interchangeable even when they look identical.
  • A fresh battery. Many Mazda flip keys from around 2010-2013 use a CR1620, while most Mazda smart keys from around 2014 on use a CR2025. Our Mazda key fob battery guide lists sizes by model.
  • Every remote you want to keep, because programming mode usually clears ones not pressed in the session. Most Mazdas store up to three remotes.
  • A working key for the ignition.
Check trim and FCC ID

Replacement Mazda Flip Key or Smart Key

Match the FCC ID and part number from your original. A flip key still needs cutting and immobilizer programming to start the car; a smart key needs professional programming.

Check Price on Amazon →

As an Amazon Associate, ReplaceKeyFob earns from qualifying purchases.

Mazda key fob programming instructions (flip key or separate remote)

This sequence is widely used on Mazda3, Mazda6, CX-7 and CX-9 models with a flip key or separate remote from roughly 2003 to 2013. Some steps differ slightly by model, so if it does not respond, check the manual.

  1. Close all doors, then open the driver’s door and leave it open.
  2. Insert the key into the ignition.
  3. Turn the key from LOCK to ON and back three times within about 10 seconds. Use ON, not ACC. Some owners find it works better ending each cycle in ACC rather than LOCK; try both if needed.
  4. Close and open the driver’s door three times, leaving it open.
  5. The door locks cycle to show programming mode.
  6. Press the UNLOCK or LOCK button on the first remote twice. The locks cycle to confirm.
  7. Repeat for each additional remote, including your old ones (up to three in most cars).
  8. Close the driver’s door or turn the ignition off to exit. Test every remote.

If the locks do not cycle at step 5, wait about 40 seconds and try again from the beginning. This procedure programs only the remote buttons, not the immobilizer chip.

Mazda key fob programming with a flip key and door sequence

Programming the Mazda immobilizer and smart keys

Mazda does not list an owner procedure for the immobilizer on most models. Your options:

  • Two-key method on some 2000s Mazdas: Ford-derived systems on vehicles such as the Tribute, and some Mazda3 and Mazda6 years, may accept a new key after two programmed keys are cycled in the ignition, similar to Ford’s two-key PATS method. Support varies; a locksmith can confirm.
  • Key programmer: tools with Mazda IMMO coverage handle add-key and smart key jobs. Some Mazdas require all keys to be programmed in the same session. See our best OBD2 scanners for Mazda.
  • Locksmith or Mazda dealer: the usual route for smart keys and all-keys-lost.

Model notes: Mazda3, Mazda6, CX-5 and CX-9

  • Mazda3 (2004-2013): flip key or separate remote on most trims, so the onboard sequence is worth a try. Smart key trims need a tool.
  • Mazda3 (2014 on): most trims use a smart key or a remote that requires a tool.
  • Mazda6: 2003-2013 flip keys and remotes are often DIY for the buttons; later cars mostly need a tool.
  • CX-5 (including 2016): base trims may have a flip key and upper trims a smart key; plan on a locksmith or dealer for smart keys.
  • CX-9: 2007-2015 flip keys and smart keys; 2016 and newer mostly smart key.

Choosing a replacement Mazda key

Mazda used several remote and smart key families, and the same model year can have different keys by trim and market. Before buying:

  • Read the FCC ID and part number from your current key.
  • Check the button layout. Some keys have a trunk or liftgate button, others do not.
  • Confirm the blade profile for flip keys. The locksmith must cut it to your car, by VIN code or from an existing key.
  • Bring all keys to any professional programming visit. On some Mazdas the immobilizer is reprogrammed with every key at once, and a missing key stops starting the car.

If Mazda key fob programming is not working

Mazda key fob programming cost

Job Typical 2026 cost
Remote only, onboard (DIY) Free, plus the remote
Locksmith: flip key cut and programmed About $120-$250
Locksmith: smart key About $180-$350
Mazda dealer: key plus programming About $200-$450

For general methods and other brands, see our main key fob programming guide.

See also  How to Program a Key Fob Yourself: Step-by-Step Methods That Work

Frequently Asked Questions

Can I program a Mazda key fob myself?

Yes for the remote buttons on many 2003-2013 Mazdas with a flip key or separate remote. Smart keys and the immobilizer chip need a tool, a locksmith or a Mazda dealer.

How do I program a Mazda 3 key fob?

On 2004-2013 cars with a flip key: open the driver door, cycle the ignition LOCK to ON three times, close and open the door three times, then press a remote button twice when the locks cycle.

How much does Mazda 6 key fob programming cost?

As of 2026, a locksmith typically charges about $120 to $350 depending on key type, and a Mazda dealer about $200 to $450 including the key.

Is there a Mazda key fob programmer I can buy?

Yes, several key programmers cover Mazda immobilizers. Check that the tool lists your exact model and year for add-key before buying.

What battery does a Mazda key fob use?

Many 2010-2013 flip keys use a CR1620 and most 2014 and newer smart keys use a CR2025. Check the cell in your fob.

How many keys can a Mazda store?

Most Mazdas store up to three remotes for onboard programming, and the immobilizer stores a limited number of keys. If a key is lost or stolen, ask the programmer to erase it so it can no longer start the car.

Author

  • ReplaceKeyFob Editorial Team

    The ReplaceKeyFob Editorial Team researches and writes practical guides on key fob batteries, smart keys, keyless entry problems and basic car electronics. Every guide is checked against manufacturer owner's manuals, battery maker specifications (CR2032, CR2025, CR1632 and others) and real-world troubleshooting before it is published, and we update articles when vehicle models or procedures change. Spotted an error? Contact us and we will review it.