In the winter all of the heat lost from the water heater goes to heating the space that it is in. If that is in some part of your insulated dwelling, then you would have to consider the cost differential between heating with electricity (hot water tank) and your house heating source. No matter what your house heating source, it does cost something. Summer is a different story, of course.