How long do smoke detectors last before they need to be replaced?

Usually manufacturer’s warranty smoke detectors for 10 years. If yours begins to activate needlessly or does not work during monthly tests (and you should test them monthly), replace the detector.