Ballasts usually need replacement based on their lifespan. Magnetic ballasts tend to last around 10 to 15 years, while electronic ballasts have a longer lifespan, ranging from 15 to 20 years. Regular maintenance and monitoring can ensure optimal performance and timely replacements when needed.