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.

Carbon Monoxide: Why Enclosed Space Rules Exist

Standby generators produce carbon monoxide (CO) — an odorless, colorless gas that is lethal in enclosed spaces. CO poisoning is the leading cause of generator-related deaths in the U.S. NFPA 37, NEC Article 445, and virtually every local building code prohibit generator installation inside any enclosed structure, including attached garages, for this reason. Modern standby generators produce CO levels that can be fatal within minutes in a closed garage, even with a partially open door.

What "Enclosed Space" Means for Permit Purposes

Building departments evaluate enclosure based on exhaust gas concentration potential, not just whether a door is present. The following are prohibited locations in virtually all jurisdictions:

Detached Structures: When They May Be Permitted

A detached, open-sided structure (a three-sided shelter or a fully open carport) may be permissible in some jurisdictions if exhaust dispersion requirements are met. Key requirements:

Generator Enclosure Sheds: What's Allowed

Pre-fabricated generator enclosures (sound-attenuating sheds designed specifically for generators) are a popular option for noise reduction and weather protection. Code-compliant generator enclosures must:

Always verify with your local building department whether a specific enclosure shed is permissible. Some jurisdictions require the enclosure design to be reviewed as part of the building permit application.

CO Detector Requirements

Regardless of where your generator is installed, most jurisdictions require CO detectors inside the home. If your generator is within 15 feet of any habitable space opening (window, door, vent), your building department may require additional CO detector placement as a condition of permit issuance.

Recommended: Reliance Controls 6-Circuit Transfer Switch Kit — Required for connecting any standby generator to your home's electrical panel. UL-listed and code-compliant.
As an Amazon Associate we earn from qualifying purchases.
Disclaimer: Never operate any generator inside or adjacent to any enclosed space. Always follow NFPA 37 and your local building code for placement requirements.