The average cost of a whole-house generator falls between $5,000 and $25,000. Keep reading to learn how much you can expect to spend.