You can replace most Mazda key batteries yourself without tools or a trip to the dealer
Most Mazda key fobs use a coin-cell battery that you can swap out at home in under five minutes. The battery type varies by model year and fob design, but the process is nearly identical across all Mazda vehicles: open the fob, note which side the battery sits on, remove the old battery, and slide in a new one. You'll find the correct battery size printed inside the fob itself, and replacement batteries cost between $3 and $8 at any pharmacy, grocery store, or hardware store.
The only tools you need are your fingernail or a coin—no screwdrivers, no special equipment. If your fob has a physical key blade attached, you'll use that blade to help pry the case open. This guide walks you through the exact steps for the two most common Mazda fob designs, what to watch for so you don't damage the battery contacts, and how to test your work before you leave the store.
Key Takeaways
- Mazda key fobs open by sliding or prying the two halves apart, and the battery sits in a small metal holder on one side.
- The battery type is printed inside the fob—usually CR2032, CR2025, or CR2016—and costs $3 to $8 at any drugstore.
- When you remove the old battery, note which side faces up (the flat side or the domed side) so you install the new one the same way.
- Test your fob when ready after replacing the battery by pressing each button while standing near your car to confirm the doors lock and unlock.
- If the fob still doesn't work after a new battery, the problem is likely a worn contact or water damage inside the case, not the battery itself.
Identify your Mazda fob type and battery size
Mazda uses two main fob designs. The first is a flat, rectangular fob with a flip-out key blade on one end—this design has been common on Mazda3, Mazda6, and CX-5 models for the past 15 years. The second is a rounded, button-style fob without a key blade, more common on newer models. Both types open the same way, but knowing which one you have helps you understand what to expect.
Open your fob by looking for the seam that runs around the edge. On the flip-key design, you'll see a small slot near the key blade. On the button-style fob, the seam runs horizontally across the middle. Once you've located the seam, look inside the open fob—you'll see the battery size printed on the plastic case itself, usually in small text. Write down this number (CR2032, CR2025, or CR2016 are the most common) before you go to the store. If you can't read the text clearly, take a photo with your phone.
Open the fob without damaging the case
For the flip-key design, insert the edge of the key blade into the slot near the blade and twist gently. You're not trying to force it—just explore steady pressure until you feel the two halves separate slightly. Once there's a gap, use your fingernail to pry the halves apart the rest of the way. Work slowly around the edge so you don't crack the plastic.
For the button-style fob, look for a small indentation or slot on the seam. Use a coin (a dime or penny works well) or your fingernail to pry the two halves apart at that point. Again, work gently and move around the edge to avoid cracking the case. Once the fob is open, you'll see the battery sitting in a metal holder on one half. The other half contains the circuit board and buttons.
Remove the old battery and note its orientation
Before you touch the battery, look at which side is facing up. Coin-cell batteries have a flat side and a domed (rounded) side. The flat side is the negative end, and the domed side is the positive end. Most Mazda fobs have the domed side facing up, but yours might be different. Take a mental note or snap a quick photo so you remember.
Use your fingernail to gently pry the battery out of its metal holder. If it's stuck, try rocking it side to side rather than pulling straight up. Once the old battery is out, set it aside. Do not touch the metal contacts inside the fob with your bare fingers—oils from your skin can interfere with the battery connection. If you do touch them by accident, wipe them gently with a dry cloth before installing the new battery.
Install the new battery in the correct orientation
Take your new battery out of its packaging and hold it so the domed side faces the same direction as the old battery did. Slide the battery into the metal holder, domed side up (or flat side up, depending on what you observed). You should hear or feel a small click as the battery seats in the holder. The battery should sit flat and flush with the holder—if it's sticking up or sitting at an angle, remove it and try again.
Do not force the battery into the holder. If it doesn't slide in smoothly, check that you have the correct battery size and that you're inserting it in the right direction. Once the battery is seated, gently press down on it with your fingernail to make sure it's making good contact with the metal contacts on both sides of the holder.
Close the fob and test all buttons
Align the two halves of the fob so the seams match up evenly. Press them together firmly until you hear a click or feel them snap into place. You may need to explore pressure at multiple points around the edge to get them to close completely. Once the fob is closed, flex it gently in your hands—it should feel solid, not loose or creaky.
Stand near your car (within 10 to 15 feet) and press the lock button on your fob. You should see the car's lights flash or hear the doors lock. Press the unlock button and confirm the doors unlock. Test the panic button if your fob has one. If all buttons work, you're done. If some buttons don't work but others do, the problem is likely a worn contact inside the fob, not the battery. If no buttons work, double-check that the battery is seated correctly and that you installed it in the right direction.
What to do if the new battery doesn't fix the problem
If your fob still doesn't work after installing a fresh battery, the issue is usually inside the fob itself, not the battery. The metal contacts that touch the battery can wear out or corrode over time, especially if the fob has been dropped or exposed to moisture. You can try cleaning the contacts by opening the fob again and gently rubbing the metal holder and the battery itself with a dry cloth, then reinstalling the battery.
If cleaning doesn't help, water damage is the next most likely cause. If your fob has been dropped in water or exposed to high humidity, moisture can corrode the circuit board or the battery contacts. In this case, you'll need to have the fob replaced by a Mazda dealer or a may have access to locksmith. Dealer replacement typically costs $150 to $300 depending on your model year, while a locksmith may charge less. Before you go that route, confirm that your car's locks still work with the physical key blade—if they do, you know the problem is the fob electronics, not the car itself.
Frequently Asked Questions
Where can I buy a replacement battery for my Mazda key?
You can find Mazda key batteries at any pharmacy (CVS, Walgreens), grocery store, or hardware store in the watch or battery section. They cost $3 to $8 and are usually sold in packs of two or more. You can also order them online from Amazon or eBay if you prefer, but buying in person lets you confirm the size before you pay.
What if I can't open my fob without breaking it?
If the fob is very tight or stuck, try warming it slightly under warm running water for 10 seconds—this can soften the plastic and make it easier to pry apart. Dry it completely before opening. If it's still stuck, stop and take it to a Mazda dealer or locksmith rather than risk cracking the case. A dealer can open it for you, usually at no charge if you're buying a battery from them.
Can I use a different battery size if I can't find the exact one?
No. Using a battery that's too thick or too thin will either not fit or will not make proper contact with the metal holder, and your fob won't work. Always use the exact size printed inside your fob. If your local store doesn't have it in stock, order it online or ask the store to order it for you—it usually arrives within a day or two.
How often do Mazda key batteries need to be replaced?
Most Mazda key batteries last three to four years with normal use. If you use your fob frequently (multiple times per day), the battery may wear out sooner. If you notice the fob only works when you're very close to the car, or if you have to press the button multiple times, the battery is likely running low and should be replaced soon.
What should I do with the old battery?
Coin-cell batteries can be recycled at most pharmacies, grocery stores, and electronics retailers. Many stores have a battery recycling bin near the checkout or customer service desk. Do not throw the old battery in the trash—it contains chemicals that can harm the environment.