Can I Put a Generator in a Garage or Enclosed Space?

⏱ 8 min read🔄 Updated 2025
🚨
Carbon monoxide kills. A generator running inside an attached garage can produce lethal CO levels inside the home within minutes. Most building codes prohibit generator operation inside any enclosed or semi-enclosed space attached to a dwelling.

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:

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:

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:

  1. Exhaust must exit the enclosure directly to the outside — through a dedicated exhaust port or stack, not through ventilation gaps
  2. Combustion air must be provided — the enclosure needs adequate fresh air intake, sized per the generator manufacturer's specifications
  3. Manufacturer clearances must be maintained inside the enclosure — the generator must have the specified clearance on all sides for cooling airflow and service access
  4. The structure must be permitted as a building improvement — a generator shed is a permanent structure subject to building permits
  5. 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.

FAQ

Can I store a generator in my garage without running it there?
Storing a generator in a garage when not running is generally fine — it's operation inside the garage that's dangerous and prohibited. However, long-term storage of a generator with fuel in the carburetor or tank inside a garage presents fire risk. Most manufacturers recommend draining the fuel system for storage periods over 30 days.
What's the minimum distance a generator can be from my garage?
The standard setback rules apply — 5 feet from any opening (windows, doors, garage door opening when open), 18 inches to 5 feet from the wall. If the garage door opening faces the generator, the relevant measurement is from the generator to the garage door opening, not the wall itself.
Use our Permit Checker for a custom permit list, or Size Calculator to pick the right generator first.
Disclaimer: Requirements vary by jurisdiction. Always verify with your local building department before beginning any installation work.