Getting a replacement Mazda key fob: your main options

You have three ways to get a new Mazda key fob: order one from a Mazda dealership, buy an aftermarket fob online and program it yourself, or take your car to a locksmith who handles automotive keys. The dealership route is the most expensive but guarantees compatibility. Aftermarket fobs cost less but require you to program the fob to your car, which takes 10 to 15 minutes and varies slightly by model year. A locksmith falls between the two in cost and handles both the fob and programming for you.

Before you choose a route, you need to know your Mazda's model year and which generation fob your car uses. Mazda changed fob designs multiple times, and ordering the wrong one means wasted money. Your owner's manual lists the fob type, or you can call a Mazda dealership with your vehicle identification number (VIN) and they will tell you which fob you need.

Key Takeaways

  • Mazda dealerships sell OEM (original equipment manufacturer) fobs that are may provide to work but cost $200 to $400 including programming.
  • Aftermarket fobs from online retailers cost $30 to $80 but require you to program the fob yourself using a sequence of button presses and key turns in the ignition.
  • Locksmiths typically charge $100 to $200 and handle both the fob purchase and programming, making them a middle-ground option.
  • You must know your Mazda's model year and fob generation before ordering, because Mazda uses different fob designs across model years and you cannot use a fob from a different generation.

Ordering from a Mazda dealership

Call your local Mazda dealership and give them your VIN. The service department will confirm which fob your car uses and quote you a price. Dealership fobs typically cost $200 to $400 total, including the fob itself and the labor to program it to your vehicle. Some dealerships require you to bring the car in; others can program a fob over the phone if you already have a working key.

The dealership will order the fob if they do not have it in stock, which usually takes three to seven business days. Once it arrives, you schedule an appointment to have it programmed. Programming at a dealership takes 15 to 30 minutes. You will need to bring a photo ID and proof of ownership (your registration or title).

The advantage of the dealership route is certainty: you know the fob will work because it is the exact part Mazda designed for your car. The disadvantage is cost and time. If you need a fob and your dealership is busy, you may wait a week or more before the fob arrives and is programmed.

Buying an aftermarket fob and programming it yourself

Aftermarket fobs are sold on Amazon, eBay, and automotive parts websites. Search for your Mazda's model year and fob type (for example, "2018 Mazda CX-5 key fob"). Prices range from $30 to $80 depending on the seller and whether the fob includes a physical key blade. Read the product reviews carefully: look for comments from buyers who own your exact model year, because a fob that works for a 2015 Mazda3 may not work for a 2018 Mazda3.

Once the fob arrives, you program it yourself using a sequence of actions in your car. The exact sequence depends on your model year, but the general process is: sit in the driver's seat with all doors closed, insert your working key into the ignition, turn the key to the "On" position without starting the engine, turn it back to "Off", then repeat this cycle several times while pressing buttons on the new fob. Your owner's manual contains the exact sequence for your car, or you can find it on Mazda forums or YouTube by searching your model year.

Programming takes 10 to 15 minutes and costs you nothing beyond the fob price. The risk is that if you buy the wrong fob or the programming does not work, you have wasted $30 to $80 and still need to find another solution. Some sellers offer returns, but you will need to pay return shipping.

Using a locksmith for fob replacement and programming

An automotive locksmith can order a Mazda fob and program it for you, usually in one visit or within a few days. Locksmiths typically charge $100 to $200 total, which is less than a dealership but more than buying an aftermarket fob yourself. Call locksmiths in your area and ask if they work on Mazda key fobs; not all locksmiths handle car keys, and some specialize in house locks only.

When you call, have your VIN ready. The locksmith will confirm they can source the correct fob for your model and give you a quote. Some locksmiths keep common fobs in stock and can program one the same day. Others order the fob and schedule you for programming once it arrives, which takes three to seven business days.

Bring your car keys and proof of ownership (registration or title) when you visit. The locksmith will program the fob in front of you, which takes 15 to 30 minutes. This route is useful if you want professional work without dealership prices, or if you are uncomfortable programming a fob yourself.

What to do if your fob is lost or stolen

If your fob is lost or stolen, you have the same three replacement options, but you should also consider whether to reprogram your car's locks. A lost fob is a security risk because someone else could use it to unlock and start your car. Mazda dealerships can reprogram your car's receiver so that the lost fob no longer works, which costs $50 to $150 and takes 30 minutes to an hour.

Reprogramming is optional if the fob was lost in a place where you are confident it will not be found (for example, lost at sea or in a landfill). It is worth doing if the fob was lost in a public place or stolen, because the cost of reprogramming is much less than the cost of replacing a stolen car or paying for theft recovery. Contact your dealership or locksmith to discuss whether reprogramming makes sense for your situation.

Programming a Mazda key fob: the basic steps

If you buy an aftermarket fob and program it yourself, the process is similar across most Mazda models, though the exact sequence varies. Sit in the driver's seat with all doors closed and the windows up. Insert your working key into the ignition. Turn the key to the "On" position (do not start the engine), then turn it back to "Off". Repeat this cycle four to six times, ending with the key in the "Off" position.

Listen for a chime or watch for the lights to flash; this signals that the car has entered programming mode. Press any button on the new fob to program it. You may hear another chime or see the lights flash again. Turn the key back to "On" to exit programming mode. Test the new fob by pressing the lock and unlock buttons from a few feet away from the car.

If the fob does not work, check your owner's manual for the exact sequence for your model year. Some Mazda models use a different number of key cycles or require you to press a specific button on the fob. Mazda forums and YouTube videos for your model year often show the process step-by-step if the manual is unclear.

Cost comparison: dealership vs. aftermarket vs. locksmith

RouteFob CostProgramming CostTotalTime to Get Fob
Mazda Dealership$150–$300$50–$100$200–$4003–7 days (or in stock)
Aftermarket + Self-Program$30–$80Free$30–$802–5 days shipping
Locksmith$60–$120$40–$80$100–$200Same day or 3–7 days

The dealership is the most expensive but offers a may provide that the fob will work. The aftermarket route is the cheapest but requires you to do the programming yourself and carries the risk of ordering the wrong fob. The locksmith is a middle ground: you pay more than aftermarket but less than the dealership, and a professional handles the programming.

Your choice depends on your budget, how much time you have, and whether you feel comfortable programming a fob yourself. If cost is your main concern and you are willing to spend 15 minutes programming, aftermarket is the way to go. If you want the job done right and do not want to risk ordering the wrong part, the dealership or a locksmith are safer choices.

Frequently Asked Questions

Can I program a fob from a different Mazda model to my car?

No. Mazda fobs are model-specific and generation-specific. A fob from a Mazda3 will not work on a CX-5, and a fob from a 2015 Mazda3 may not work on a 2018 Mazda3. Always confirm your exact model year and fob type before ordering.

What if I have a Mazda with a push-button start instead of a key ignition?

Push-button start Mazdas use a different programming sequence. You typically press the brake pedal and push the start button multiple times without starting the engine, then press buttons on the new fob. Check your owner's manual or search your model year online, because the sequence varies by year.

Do I need both keys to program a new fob?

Most Mazda models require at least one working key to program a new fob. If you have lost all your keys, you will need to go to a dealership or locksmith, because they can reprogram the car's receiver without a working key.

How long does a Mazda key fob battery last?

A Mazda fob battery typically lasts three to four years. If your fob is not working, try replacing the battery first (usually a CR2032 or similar coin-cell battery from any drugstore for $3 to $5) before ordering a new fob.

Can a dealership reprogram a fob I bought from another source?

Yes, most dealerships will program an aftermarket fob for a fee, usually $50 to $100. Call ahead and ask, because some dealerships prefer to sell their own fobs and may charge a higher fee or refuse to program third-party fobs.