On average, a traditional tank water heater lasts about 8 to 12 years, while a tankless water heater typically lasts 15 to 20 years. Proper maintenance and regular inspections can help extend the life of either type.