All cities and towns have different codes in terms of how far a generator should be from a house. In most cases, generators can be 18 inches from a dwelling and 5ft from any opening of the house. But check with your local city before installation.