How long is the life expectancy of a tankless water heater?

The life expectancy for a tankless water heater is about 20 years but will vary with water quality and overall water consumption.