What is an accessory structure under the IRC?
What Is an Accessory Structure Under the IRC 2018?
Definitions
Published by Jaspector
Code Reference
IRC 2018 — R202
Definitions · Definitions
Quick Answer
Under IRC 2018 Section R202, an accessory structure is a structure not greater than 3,000 square feet in floor area and not more than three stories above grade plane that is appurtenant to and located on the same lot as a one- or two-family dwelling. Detached garages, sheds, playhouses, carports, and workshops are common examples. Accessory structures are regulated by the IRC, not the IBC, when appurtenant to an IRC-covered dwelling.
What R202 Actually Requires
IRC 2018 Section R202 defines Accessory Structure as: A structure not greater than 3,000 square feet (279 m²) in floor area, and not more than three stories above grade plane in height, the use of which is incidental to that of the main building and which is located on the same lot. This definition has five elements: the structure must be a building or structure (not just an unenclosed feature); it must not exceed 3,000 square feet; it must not exceed three stories above grade plane; its use must be incidental — subordinate or secondary — to the main dwelling; and it must be located on the same lot as the primary dwelling it serves. The phrase incidental to that of the main building is the key qualifier distinguishing accessory structures from independent buildings. A detached garage used to park cars in connection with the dwelling is incidental to the dwelling. A commercial workshop on the same lot that operates as an independent business is not incidental to the dwelling and does not qualify as an accessory structure under R202. The size limit of 3,000 square feet distinguishes accessory structures from larger buildings that would require IBC review regardless of their incidental character. The same three-story limit applicable to the main dwelling also applies to accessory structures under R101.2.
Floor area for the 3,000 square foot limit is measured as the gross floor area enclosed by the exterior walls of the structure. Covered porches, carports, and open breezeways attached to the accessory structure may or may not be included in the floor area calculation depending on the degree of enclosure — the building official makes this determination during plan review. For structures with loft or mezzanine levels, each habitable level's area is included in the total floor area. A detached garage with an unfinished storage loft above does not automatically double its floor area for the 3,000-square-foot limit, but a finished second floor with walls and ceiling would be included. Contractors and owners planning large accessory structures should have an architect or designer calculate the gross floor area before permit application to confirm the structure stays within the R202 limit.
Why This Rule Exists
The accessory structure definition ensures that smaller, subordinate buildings associated with a primary residence are regulated consistently with the IRC rather than requiring separate IBC permit applications and compliance. Without this definition, every detached garage, workshop, or shed on a residential lot would require its own IBC analysis, which would be disproportionate to the nature of these structures. The 3,000 square foot size limit acknowledges that larger structures — even if claimed to be accessory — present fire, structural, and occupancy risks that warrant IBC review. The incidental use requirement prevents commercial operations from being permitted as accessory structures to avoid commercial building code requirements.
What the Inspector Checks at Rough and Final
Plan review confirms that a proposed accessory structure meets the R202 definition: floor area under 3,000 square feet, three stories or fewer, incidental use, and same lot as the dwelling. Field inspections focus on the construction quality and code compliance of the structure. For detached garages, inspectors check: fire separation distance from the dwelling per R302.1 (when less than 3 feet from the dwelling, an exterior wall must be 1-hour rated; garage openings less than 3 feet from the dwelling are prohibited); foundation per Chapter 4 requirements; framing per Chapter 5; roof per Chapter 9; electrical if any is installed per Chapters 34–43. R302.6 requires that the garage be separated from the dwelling's living space by a wall of not less than 1/2-inch gypsum board applied to the garage side, and by a self-closing, solid-wood or solid-steel door or a 20-minute fire-rated door. At final inspection, the inspector verifies fire separation materials are in place, the access door is self-closing, and any installed electrical meets code.
What Contractors Need to Know
Contractors building accessory structures must understand that while accessory structures are regulated by the IRC, the specific code provisions applicable to accessory structures differ from those applicable to the primary dwelling. Habitable space requirements (R303–R305), egress requirements (R310), and smoke alarm requirements (R314) do not apply to accessory structures in the same way they apply to the dwelling. However, if an accessory structure contains any habitable space — such as a guest room, workshop with a loft bedroom, or garage apartment — the habitable portions must comply with all applicable habitable space requirements, and the structure's status as accessory must be re-evaluated. If the accessory structure contains an independent living unit, it may no longer be accessory to the dwelling and may instead constitute a second dwelling unit, changing the primary building's classification to a two-family dwelling. Contractors should also confirm that proposed accessory structure locations comply with local zoning setback requirements, as code compliance and zoning compliance are separate obligations.
Contractors should also understand the permit pathway for accessory structures in their jurisdiction. Many local governments offer simplified or streamlined permit processes for detached garages and sheds, including prescriptive plan sets that eliminate the need for custom structural drawings for standard configurations. However, even simplified permits require a site plan showing the structure's location relative to property lines and the primary dwelling. The required fire separation distances under R302.1 — which require rated wall assemblies when the structure is within 3 feet of the property line — must be shown on the site plan. A 1-hour fire-rated wall is required on the side facing the property line when the accessory structure is less than 3 feet from the lot line, and no openings are permitted within 3 feet of the property line. Knowing these distances before framing begins prevents costly retrofits.
What Homeowners Get Wrong
Homeowners frequently assume that a large detached structure is automatically an accessory structure under the IRC. If the floor area exceeds 3,000 square feet, the structure does not qualify as an accessory structure under R202 and must be reviewed under the IBC. A 60x60 foot shop building on a residential lot (3,600 square feet) requires IBC review regardless of its incidental relationship to the residence. A second common error is assuming that adding living quarters to an accessory structure — a bedroom above a garage, an apartment in a barn — does not change the structure's classification. An accessory structure with an independent living unit is no longer simply accessory; it may qualify as a second dwelling unit that converts the property to a two-family dwelling, requiring a two-family dwelling permit with fire separation requirements under R302.3. Third, homeowners often believe that zoning and building code are the same. A structure might comply with the IRC as an accessory structure while violating zoning setback requirements, or vice versa.
Another common misunderstanding involves permit exemptions. IRC 2018 R105.2 exempts certain one-story detached accessory structures under 200 square feet used for tool or storage purposes from the permit requirement. Homeowners sometimes interpret this as an exemption from building code requirements altogether. The exemption covers only the permit — the structure still must comply with all applicable IRC provisions, including setback distances and fire separation from the dwelling. A shed placed 18 inches from a neighbor's property line without the required rated wall does not become compliant simply because it was small enough to be built without a permit. Inspectors enforcing the property maintenance code or responding to complaints can still require compliance with construction standards even for permit-exempt structures.
State and Local Amendments
IRC 2018 states generally adopt the R202 accessory structure definition without amendment, though local zoning restrictions on accessory structure sizes and locations often create constraints that are more restrictive than the IRC's 3,000 square foot limit. Texas municipalities frequently have accessory structure size and height limits in zoning ordinances that are smaller than the IRC's code maximum. Georgia and North Carolina have local amendments in some jurisdictions limiting accessory structure floor area for permitting or setback purposes. In IRC 2021, the accessory structure definition in R202 was not substantively changed from the 2018 version. The 3,000 square foot limit and the incidental use requirement are identical. The most significant development in accessory structure regulation between the 2018 and 2021 editions relates to ADUs: IRC 2021's explicit ADU provisions clarify how a detached dwelling unit on the same lot — which could otherwise be considered an accessory structure — is specifically addressed as an ADU within the IRC's scope.
When to Hire a Licensed Contractor
Most detached garage, shed, and workshop projects qualify for IRC-regulated permits and can be built by contractors who are familiar with the IRC's residential requirements. For larger accessory structures approaching the 3,000 square foot limit, a licensed contractor or design professional should verify that the structure stays within the accessory structure definition and that local zoning requirements are satisfied. When an accessory structure includes electrical, plumbing, or mechanical systems, licensed trade contractors should pull the appropriate trade permits. For accessory structures with any habitable component — particularly guest quarters or above-garage apartments — a licensed contractor who understands the boundary between accessory structure and dwelling unit should be involved to ensure proper permit classification.
Common Violations Found at Inspection
- Accessory structure exceeds 3,000 square feet but was permitted under IRC 2018 as an accessory structure; requires IBC review.
- Detached garage with bedroom suite above permitted as an accessory structure when the living unit qualifies as a second dwelling unit, changing the property's classification.
- Fire separation between garage and attached dwelling (R302.6) not installed: missing 1/2-inch gypsum board on garage side of wall or non-compliant door.
- Accessory structure built within the required setback from the dwelling without providing the required 1-hour rated exterior wall per R302.1.
- Electrical installed in accessory structure without an electrical permit on the claim that the structure itself was permit-exempt under R105.2.
- Plumbing rough-in installed in accessory workshop without a plumbing permit; improperly connected to dwelling's sanitary system.
- Accessory structure with independent living facilities classified as accessory when it should be permitted as a second dwelling unit.
- Commercial use of accessory structure (rental workshop, commercial vehicle storage) that is not incidental to the residential use of the dwelling.
Frequently Asked Questions
FAQ — What Is an Accessory Structure Under the IRC 2018?
- Is my detached garage an accessory structure under IRC 2018?
- Yes, provided it is not greater than 3,000 square feet, not more than three stories above grade plane, its use is incidental to the main dwelling, and it is located on the same lot. A standard one- or two-car detached garage easily meets all these criteria and is regulated by the IRC, not the IBC.
- What fire separation is required between my house and attached garage?
- R302.6 requires that the garage be separated from the dwelling by walls and ceilings of not less than 1/2-inch gypsum board applied to the garage side. The door between the garage and the dwelling must be a solid-wood door or solid-steel door not less than 1-3/8 inches thick, a 20-minute fire-rated door, or a fire door with a self-closing device. The door must be self-closing and self-latching.
- Can I add a bedroom above my detached garage under IRC 2018?
- You can add a non-independent room above the garage (such as a bonus room or home office) as part of an accessory structure with a permit. However, if you add a self-contained living unit with a kitchen — creating independent living facilities — the space becomes a second dwelling unit. This converts the property to a two-family dwelling, requiring a two-family dwelling permit with additional fire separation and code requirements.
- My workshop is over 3,000 square feet. Can it still be permitted under the IRC?
- No. The R202 definition limits accessory structures to not greater than 3,000 square feet. A structure exceeding this limit does not qualify as an accessory structure under IRC 2018 and must be regulated by the IBC as a separate building. The IBC permit process and requirements are more demanding and typically require a licensed architect or engineer to prepare plans.
- Does a permit-exempt shed under R105.2 also need to meet the accessory structure definition?
- A permit-exempt shed under R105.2 (under 200 sq ft, one story, used for tool or storage) is also an accessory structure under R202. The permit exemption means it does not require a permit, but it must still comply with all IRC requirements including fire separation distances from property lines and the primary dwelling under R302. The accessory structure definition establishes what code applies; the permit exemption determines whether a permit is required.
- Can I run electricity to my detached garage without a separate electrical permit?
- No. The accessory structure permit under the IRC covers the structural work, but electrical work — installing circuits, outlets, and sub-panels in the garage — requires a separate electrical permit under R105.1. The fact that the accessory structure itself is permitted under the IRC does not exempt the electrical work from trade permit requirements.
Also in Definitions
← All Definitions articles- Is Converting a Garage, Basement, or Accessory Building to Living Space a Change of Occupancy Under IRC 2018?
Is changing a garage, basement, office, or accessory building into living space a change of occupancy?
- What Counts as a Story Under the IRC 2018?
What counts as a story under the IRC?
- What Counts as Habitable Space Under the IRC 2018?
What counts as habitable space under the IRC?
- What Is a Basement Under the IRC 2018, and Does a Walkout Count Differently?
What is a basement under the IRC, and does a walkout basement count differently?
- What Is a Dwelling Under the IRC 2018?
What is a dwelling under the IRC?
- What Is a Habitable Attic Under the IRC 2018?
What is a habitable attic under the IRC?
- What Is a Townhouse Under the IRC 2018?
What is a townhouse under the IRC?
- What Makes a Room a Bedroom or Sleeping Room Under the IRC 2018?
What makes a room a bedroom or sleeping room under the IRC?
Have a code question about your project? Get personalized answers from our team — $9/mo.
Membership