Platbookmapper County GIS Directory

Property lines · Setbacks · Garages · October 23, 2026

How Close to Property Line Can I Build a Garage?

How close to property line can I build a garage? Zoning sets the setback, attached or detached, and the building code adds fire rules within 5 feet.

How close to the property line can you build a garage? The honest answer is that your local zoning code decides, and it can be anywhere from a few feet to the same setback as the house. A detached garage tucked into a back corner is often allowed much closer to the line than an attached one, which is treated as part of the house. On top of zoning, the building code adds fire-safety rules for any garage wall less than 5 feet from a lot line. This guide walks through both layers, shows what real city rules look like, and explains how to find your actual line before you pour a slab.

The short answer

Two sets of rules: zoning and the building code

People often mix these up, but they answer different questions.

Rule setWhat it controlsWho enforces it
Zoning ordinanceWhere on the lot a garage may go: setbacks, height, lot coverage, how much of the rear yard it can fill, and which way the door may facePlanning or zoning office
Building code (most places use a version of the IRC)How a garage near the line must be built: fire-rated walls, limits on windows and doors, and how far the eaves may stick outBuilding department, through the permit and inspections
Recorded documentsEasements, plat setback lines and subdivision covenants that may be stricter than zoningEasement holders, HOAs and, ultimately, the courts

A garage has to satisfy all three. Passing zoning does not mean the wall can be built any way you like, and a building permit does not cancel a deed restriction. Our page on setback vs property line explains how a setback is measured, and what is a setback line covers the lines drawn on recorded plats.

Attached vs detached garages

An attached garage shares a wall or roof with the house, so most ordinances apply the main-building setbacks to it. If your side yard minimum for the house is 7 feet, an attached garage normally has to keep 7 feet too. Converting a garage or adding living space over it does not loosen that.

A detached garage is usually an accessory structure, and many codes give accessory buildings smaller side and rear setbacks, along with limits on height and footprint. Common conditions include:

What real city rules look like

Two published examples show how different the numbers can be. Always read your own code, because these change and vary by zoning district.

In other words, one city might let you build 3 feet from the line, another 5 feet, and a third might require 10 feet or the full house setback. The only number that counts is the one in your local ordinance for your zoning district.

The 5-foot fire rule in the building code

The International Residential Code, which most U.S. communities adopt in some form, assumes you have no control over what gets built next door. So it limits how a building close to a lot line is constructed. For homes without sprinklers, Table R302.1(1) works roughly like this:

Distance from lot lineWallsWindows and doorsEaves and other projections
Under 2 feetOne-hour rating, exposure from both sidesNot allowed under 3 feetNot allowed, except up to 4 inches on a detached garage
2 to under 3 feetOne-hour ratingNot allowedAllowed with one-hour protection on the underside
3 to under 5 feetOne-hour ratingUp to 25% of the wall areaAllowed with one-hour protection on the underside
5 feet or moreNo rating requiredNo limitNo protection required

The exception for detached garages accessory to a home is narrow: if the garage sits within 2 feet of a lot line, its roof eaves may stick out no more than 4 inches. The table also has footnotes that can relax the eave rule in some cases, and a fully sprinklered home uses a separate table with a 3-foot trigger. Spokane’s guide gives a common one-hour assembly: 2x4 or 2x6 studs covered on both faces with 5/8-inch Type X gypsum. Your building department will tell you which edition and local amendments apply.

Practically, that means a garage at exactly the zoning minimum may still need a more expensive wall and no side window. Moving it to 5 feet from the line often saves money and hassle.

Easements and recorded restrictions

Many lots carry a utility or drainage easement along the rear or side lines, often shown on the subdivision plat. Utilities can need access to dig there, so building departments and easement holders typically will not let a garage sit on top of one, no matter what zoning says. Check the plat and your title documents, and see how to find an easement on a parcel map and our utility easement map guide. Subdivision covenants can add their own rules on garage size, style or placement, too.

If a neighbor’s structure already sits close to the line, a recorded maintenance easement may be part of the answer, since you cannot repair a wall 1 foot from the line without stepping onto the neighbor’s land.

Find the real property line first

Every setback is measured from the legal boundary. A fence, hedge or mowing line can be feet off. A county parcel map is a good starting point to see your lot’s shape and dimensions, but the lines on GIS viewers are approximate and are not a survey. For a garage near the minimum setback, it is worth locating the corner markers or hiring a surveyor.

Some cities make this the owner’s job explicitly. Faribault, Minnesota, for example, tells homeowners in its garage handout that they are responsible for finding and exposing the property corner stakes so inspectors can check the setbacks, and it asks for a site plan drawn to scale from an accurate boundary survey.

Before you build: a checklist

  1. Find your zoning district on the city or county zoning map and read the accessory building and garage section of the ordinance.
  2. Note the side, rear, front and street-side setbacks, the height limit and any rear-yard coverage limit.
  3. Pull the recorded plat and deed to look for easements, plat setback lines and covenants.
  4. Confirm the boundary on the ground with corner pins or a survey.
  5. Sketch a site plan with the garage, the house, the driveway and distances to each line.
  6. Ask the building department whether the planned distance triggers a fire-rated wall or limits openings.
  7. If you need to be closer than zoning allows, ask about a zoning variance or any neighbor waiver the code allows, and get it in writing before you build.

Plan the driveway along with the garage. A short apron that meets the street at a sensible angle is easier to permit, and if you are paving it, the AsphaltTons driveway asphalt calculator estimates how many tons of asphalt the new driveway will need.

Mistakes that cause trouble later

Building something smaller first? Our companion guides cover how close to the property line you can build a shed and how close you can build a fence.

This page is general background, not legal, surveying or building code advice. Your local zoning and building officials have the final word.

Questions people ask

How close to the property line can I build a garage?

It depends on your local zoning code. Attached garages usually have to satisfy the house setbacks, while detached garages are often allowed closer to side and rear lines. Published examples include 3 feet in St. Paul, Minnesota, and 5 feet in Spokane, Washington, for detached garages on most lots.

Can I build a garage right on the property line?

Only where your zoning code allows it, which is uncommon except in some alley or zero-lot-line settings. Under the International Residential Code, a wall that close generally needs a one-hour fire rating, no windows or doors, and eaves no more than 4 inches for a detached garage within 2 feet of the line.

Does a garage wall near the property line need to be fire rated?

Under the IRC for homes without sprinklers, exterior walls less than 5 feet from a lot line generally need a one-hour fire-resistance rating with exposure from both sides. Check which code edition and local amendments your building department uses.

Is the setback measured to the wall or the roof overhang?

It varies by ordinance. Some measure to the foundation or wall and set a separate limit for eaves; St. Paul, for example, has its own eave setback for accessory buildings. Ask the zoning office how your code measures it.

Can I build a garage on a utility easement?

Usually not. Utilities and drainage authorities need access to easement areas, and building departments typically will not approve a permanent structure on one. Look for easements on your plat and title documents before choosing a spot.

Is a survey worth it before building a garage near the line?

Not always, but it is wise when you plan to build near the minimum setback. GIS parcel lines are approximate, and some cities require a site plan based on an accurate boundary survey or ask you to expose the corner stakes before inspection.