The answer to 'how much to replace smoke detector' is that the cost can vary significantly depending on several factors. In general, you can expect to pay anywhere from $20 to $80 to replace a basic smoke detector, with the average cost being around $40-$50.
The specific cost will depend on the type of smoke detector (ionization, photoelectric, or dual-sensor), the brand and features, whether it's hardwired or battery-powered, and if it needs to be installed by an electrician. Replacing a hardwired smoke detector may cost more than a battery-powered one, as it requires additional labor and potentially rewiring. Additionally, the cost can vary based on your location and the going rates for labor in your area.