Can I Put a Generator in a Garage or Enclosed Space?
This is one of the most asked and most misunderstood generator questions. The short answer: you generally cannot operate a standby generator inside an attached garage, basement, or enclosed outbuilding. Here's exactly what the codes say and what your options are.
What the Codes Actually Say
NFPA 37 (Standard for Stationary Combustion Engines and Gas Turbines) and the International Mechanical Code (IMC) both address indoor generator installations. The key requirements:
- Generators must be installed with the exhaust directed to the outside — no exhaust can accumulate in an enclosed space
- The installation must provide adequate combustion air supply and exhaust ventilation — most enclosed spaces cannot achieve this without significant engineered ventilation systems
- Generators in or attached to dwelling units must comply with CO safety requirements — California and many states require CO alarms within the dwelling when any generator is within 20 feet of a habitable opening
- Fire separation requirements apply between a generator enclosure and any attached dwelling space
Attached Garage: Almost Always Prohibited for Operation
Operating a standby generator inside an attached garage — even with the garage door open — is prohibited or strongly discouraged in most jurisdictions for these reasons:
- An attached garage shares a fire-rated wall with the dwelling. CO from exhaust can penetrate through gaps around doors, outlets, and utility penetrations into the living space.
- Most attached garage doors do not provide sufficient ventilation to safely exhaust a running generator.
- A generator running inside a garage with the overhead door open still generates CO at levels that exceed safe limits within 10–15 minutes in many configurations.
Detached Shed or Outbuilding: Possible With Proper Design
A detached shed or outbuilding — physically separated from the dwelling — is a different situation. Many homeowners use purpose-built generator enclosures or sound-attenuating shed structures. Requirements for this to be code-compliant:
- Exhaust must exit the enclosure directly to the outside — through a dedicated exhaust port or stack, not through ventilation gaps
- Combustion air must be provided — the enclosure needs adequate fresh air intake, sized per the generator manufacturer's specifications
- Manufacturer clearances must be maintained inside the enclosure — the generator must have the specified clearance on all sides for cooling airflow and service access
- The structure must be permitted as a building improvement — a generator shed is a permanent structure subject to building permits
- Electrical conduit must run from the shed to the transfer switch in the main house — adding conduit length and cost
What About Factory Acoustic Enclosures?
Generac, Kohler, and other manufacturers offer factory-built steel enclosures ("sound enclosures" or "quiet packs") that reduce operating noise by 5–10 dB. These are outdoor enclosures designed for the generator to operate inside while exposed to weather — they are not indoor installation solutions. They still require outdoor placement with all standard setback rules applying.
CO Safety Requirements Near Garages
Even for outdoor generator installations near garages or attached structures, many states now require CO alarms to be installed within the dwelling if the generator is within 20 feet of any habitable opening. California, Colorado, and several Northeastern states have explicit CO alarm requirements triggered by generator installation proximity.