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
- Zoning sets the distance. Your city, township or county ordinance lists side, rear and front setbacks for garages, usually separately for attached and detached ones.
- Attached garages follow the house. Most codes treat an attached garage as part of the main building, so it must meet the full house setbacks.
- Detached garages can often sit closer to side and rear lines, especially in a rear yard, but rarely in front of the house.
- Inside 5 feet, the building code steps in. Under the International Residential Code, a wall less than 5 feet from the lot line generally needs a one-hour fire rating, and openings are limited or banned.
- Easements override setbacks. Even where zoning would allow it, you usually cannot build a garage on a utility or drainage easement.
- Know where the line really is. The setback is measured from the legal boundary, not from a fence or the edge of the lawn.
Two sets of rules: zoning and the building code
People often mix these up, but they answer different questions.
| Rule set | What it controls | Who enforces it |
|---|---|---|
| Zoning ordinance | Where 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 face | Planning 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 out | Building department, through the permit and inspections |
| Recorded documents | Easements, plat setback lines and subdivision covenants that may be stricter than zoning | Easement 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:
- It must sit in the rear yard, or at least behind the front wall of the house.
- It must stay back from a street side line on a corner lot as far as the house does.
- It has a height cap well below the house.
- A garage door facing a street or alley needs extra depth so a car can pull in without blocking the right-of-way.
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.
- Spokane, Washington. The city’s garage and carport guide sheet calls for detached garages and carports to stay at least 5 feet from a side or rear line shared with another parcel, and at least 20 feet back when the door faces a street. Building closer than 5 feet to a neighbor requires a waiver agreement signed by that neighbor. Next to an alley the 5-foot minimum does not apply the same way, although a garage whose door opens onto the alley may have to sit farther back to leave turning room.
- St. Paul, Minnesota. The city’s accessory building handout limits accessory buildings to the rear yard among the required yards and, on most lots, requires them to be at least 3 feet from interior lot lines, with eaves held back at least a third of the wall setback or 1 foot, whichever is more. Garages must also be set back from the front line at least as far as the house. That interior setback can be dropped if the neighbors record a maintenance easement and the garage still keeps 3 feet from any building next door.
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 line | Walls | Windows and doors | Eaves and other projections |
|---|---|---|---|
| Under 2 feet | One-hour rating, exposure from both sides | Not allowed under 3 feet | Not allowed, except up to 4 inches on a detached garage |
| 2 to under 3 feet | One-hour rating | Not allowed | Allowed with one-hour protection on the underside |
| 3 to under 5 feet | One-hour rating | Up to 25% of the wall area | Allowed with one-hour protection on the underside |
| 5 feet or more | No rating required | No limit | No 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.
- Read your existing survey or mortgage plat if you have one: how to read a property survey.
- Look for the iron pins at your corners: how to find property corners.
- Get a rough idea from records you already have: how to find property lines without a survey.
- Budget for a stakeout if you are close to the limit: how much a land survey costs.
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
- Find your zoning district on the city or county zoning map and read the accessory building and garage section of the ordinance.
- Note the side, rear, front and street-side setbacks, the height limit and any rear-yard coverage limit.
- Pull the recorded plat and deed to look for easements, plat setback lines and covenants.
- Confirm the boundary on the ground with corner pins or a survey.
- Sketch a site plan with the garage, the house, the driveway and distances to each line.
- Ask the building department whether the planned distance triggers a fire-rated wall or limits openings.
- 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
- Measuring from the fence. If the fence is inside or outside the true line, the garage is too.
- Forgetting the eaves and gutters. Some codes measure the setback to the wall and others to the roof edge, and the fire rules limit projections separately.
- Building on an easement. A utility may have the right to remove what is in its way.
- Skipping the permit. An unpermitted garage that violates a setback can surface during a sale, and fixing it after the fact is far harder than planning it right. A structure over the line can also become an encroachment on the neighbor’s land.
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.