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.
FAQ
Can I store a generator in my garage without running it there?▼
What's the minimum distance a generator can be from my garage?▼
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:
- Inside an attached garage (even with the garage door open)
- Inside a detached garage without adequate permanent ventilation openings
- Inside any basement or crawl space
- Inside an enclosed shed or utility room
- Under a deck without adequate ventilation clearance
- Inside a carport where the exhaust cannot freely disperse
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:
- Exhaust discharge must be directed away from structure openings and neighboring properties
- Adequate clearance from the exhaust outlet to any opening (door, window, vent) per NFPA 37 — typically 5 feet minimum
- No enclosed roof that would allow CO accumulation
- Setback from the main structure (same setback rules as an outdoor pad installation)
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:
- Have dedicated intake and exhaust ventilation meeting NFPA 37 and manufacturer requirements
- Not create an enclosed space that allows CO accumulation
- Allow service access for maintenance without entering an enclosed space
- Be listed and labeled for generator use (improper sheds can void the generator's UL listing)
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.