With Gas (natural, propane, etc) fired - 12 to 15 years
Electric water heater - 16 to 20 years
The real key to making a water heater last is to drain it once every year. This gets all the sediment out of the bottom which will prevent eventual rusting and eventually, leaks.