Generally, key fob batteries last between 3 to 4 years, depending on usage. However, it's a good idea to replace the battery every 2 to 3 years to maintain optimal performance and avoid unexpected battery failures. If you notice a decrease in the range or responsiveness of your key fob, it may be time for a battery replacement.