VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

How Town Planning Works | TPW-0168 — The Accessory Structure Test: How Sheds, Garages, Workshops and Secondary Buildings Fit on a Lot Without Becoming a Second Principal Building

Series ID: TPW-0168

A house has a detached garage.

The garage gets a workshop.

The workshop gets plumbing.

The owner adds insulation, a bathroom, a large window and a separate entrance.

At some point the ordinary question—“Can I put a small building in my back garden?”—becomes a planning question about what that building is, where it may sit, how large it may become, what it may contain and whether its relationship to the main building has changed.

An accessory structure is not merely a smaller building. It is a secondary building whose legality depends on its relationship to the principal use, the geometry of the lot and a separate stack of dimensional and permit rules.

The reader job: decide whether a secondary building can lawfully fit on the parcel, what rules control it and what happens if its function changes

This article owns the generic accessory-structure problem: detached sheds, garages, carports, workshops, greenhouses, pool houses and similar secondary buildings or structures on the same lot as a principal building.

It does not re-own the generic principal-versus-accessory use test. That relationship is explained in The Principal and Accessory Use Test. It does not replace The Setback Line, The Lot Coverage Ratio or the dedicated accessory-dwelling-unit owner. Instead, it shows how those rules converge on one apparently simple backyard building.

A structure and a use are two different questions

Planning becomes much clearer when we separate the physical object from the activity inside it.

A detached garage is a structure. Parking cars in it is a use. A shed is a structure. Storing garden tools in it is a use. A small detached building can physically remain unchanged while its land use changes from storage to a workshop, office, bedroom, retail room or dwelling.

That means two approvals can behave differently. The structure may be lawful in its location while the proposed activity inside it is not. Conversely, a use may be allowed in the district but the structure proposed to contain it may violate height, setback, lot-coverage, fire-separation or building-code rules.

The first discipline is therefore simple: never ask only, “Is a shed allowed?” Ask both, “Is this structure allowed here?” and “Is this use allowed inside it?”

“Accessory” describes a relationship to the principal building or use

An accessory structure normally exists in support of a principal building or use on the same lot. The main house exists first; the detached garage supports it. The commercial building exists first; a small storage structure serves it. The community facility exists first; a maintenance shed supports it.

Raleigh’s current Unified Development Ordinance makes the relationship explicit: an accessory use or structure must be incidental to, subordinate to and serving an allowed principal use, and generally be located on the same lot. The code also says an accessory use or structure may not be established before the permitted principal use.

The physical rules then become more specific. Raleigh has separate accessory-structure standards for building separation, floor area, placement, alley relationships, setbacks and height. This layered structure is common: first establish the accessory relationship; then test the building against dimensional rules.

A tiny building can still be illegal, and a large accessory building can still be lawful

Size matters, but size does not answer the whole question.

A ten-square-metre shed placed across an easement or too close to a street can fail. A much larger detached garage can be lawful if the zoning district allows its area, height, location and use.

This matters because people often assume there is a universal “small shed exemption.” There is not. Building codes may exempt very small structures from a building permit, but zoning rules can still regulate where the structure sits and how much of the lot it covers.

Portland makes this distinction unusually clear. Its current residential permitting guidance says certain small detached non-habitable accessory buildings can be exempt from a building permit, yet they remain subject to zoning setbacks, building coverage and floor-area limitations. Seattle gives the same practical warning: even when a shed does not require the same permit path as a larger building, it still has to comply with land-use, stormwater, grading and environmentally critical area rules.

Permit-exempt does not mean rule-exempt

This is one of the most useful rules in the entire subject.

A permit threshold answers an administrative question: must this work go through a particular permit process?

A zoning standard answers a spatial question: may this structure exist in this size, location and form?

A building code answers a safety question: how must it be constructed?

A fire code, drainage rule, heritage overlay, flood standard, easement, utility rule or private covenant can add still more constraints.

The absence of one permit requirement does not erase the rest of the stack.

The lot is not an empty rectangle

When an owner sees unused grass behind a house, the planning system may see several overlapping zones:

  • a rear setback;
  • a side setback;
  • a street-side setback on a corner lot;
  • a utility easement;
  • a drainage route;
  • a tree-protection area;
  • a flood or environmental overlay;
  • a sight-distance area;
  • required open space;
  • maximum lot coverage;
  • minimum separation from another building;
  • and perhaps an alley access zone.

Accessory structures are difficult not because each rule is mysterious, but because several ordinary rules can apply to the same square metre of land.

Start with the parcel boundary, not the fence

A fence is evidence of occupation, not necessarily evidence of the legal property line.

If a setback is measured from a lot line, a misplaced fence can produce a misplaced building. This is especially important on older lots, irregular parcels, alleys, corner lots and properties where successive owners have treated a hedge or wall as the boundary without checking the survey.

Before designing to the last few centimetres or inches of an allowed setback, establish the legal boundary from reliable records and, where necessary, a survey.

The first dimensional test is usually placement

Many zoning systems are deliberately more permissive toward accessory structures at the rear of a property than at the street edge.

The reason is urban form. A garage or storage shed can be useful without becoming the dominant object that defines the street. Keeping secondary structures behind or beside the principal building can preserve a coherent frontage while allowing substantial practical flexibility behind it.

Raleigh’s current residential accessory-structure table, for example, requires accessory structures to be located at or behind the front wall of the house relative to the primary street. Seattle similarly places specific limits on accessory structures within required setbacks while allowing certain structures in rear or side areas subject to conditions.

Front, side, rear and street-side setbacks can treat the same shed differently

A rectangle on a site plan does not have one universal setback.

The front edge may need the greatest distance because it shapes the public street. An interior side may need less. A rear yard may permit a shed closer to the boundary. A corner lot may have a second street-facing edge with a separate rule.

This is why “five feet from the boundary” is rarely a safe summary. Which boundary? Which zoning district? Which structure? Which height? Which street classification? Which lot orientation?

The correct geometry comes from the local code, not a generic rule of thumb.

Rear-yard permission is usually conditional, not absolute

A city may allow detached accessory buildings in areas where a principal house could not ordinarily sit, but that does not mean the whole rear yard becomes buildable.

Conditions may include a maximum height, maximum footprint, minimum distance from side or rear lines, minimum separation from the house, limitations near a street, caps on cumulative accessory floor area and restrictions on vehicle doors facing an alley.

Seattle’s current rules illustrate the pattern. Certain detached garages, carports and other non-ADU accessory structures may occupy required rear or side setbacks, but conditions govern proximity to street lot lines, side lines and principal structures. The permission is a designed exception, not an unregulated zone.

Height is measured separately from footprint

A small footprint can still produce a tall building.

A steep roof, mezzanine, loft, raised foundation or sloping site can turn a modest ground plan into a visually dominant structure. Codes therefore commonly regulate accessory height separately from area.

Raleigh currently caps the overall height of residential accessory structures in its relevant table. Seattle’s shed guidance likewise states a height limit for the common shed case. Portland’s guidance distinguishes small non-habitable structures by both area and height when discussing building-permit exemptions.

Do not infer height permission from footprint permission.

The code may cap all accessory buildings together

An owner may look at each structure independently: one shed, one garage, one greenhouse, one covered patio.

The zoning code may add them together.

Raleigh’s current standards use combined floor-area maximums for accessory structures on a lot. That prevents a simple loophole in which an owner avoids a maximum by building five small structures instead of one large structure.

Whenever the code sets an accessory-area limit, check whether the number applies to each structure or to the cumulative total.

Lot coverage is a second cumulative limit

Even if a shed satisfies its own maximum area, it can still cause the parcel to exceed overall lot coverage.

Seattle’s current shed and garage guidance makes this explicit: the footprint of the house, garage, shed and certain elevated decks contributes to the total structure coverage, with the allowed percentage depending on the zone and development form.

This creates an important design lesson. The “remaining capacity” for an accessory building depends on what is already built.

Two identical lots can therefore have very different accessory-structure capacity because one already contains a larger house, covered deck or other counted structure.

Coverage and floor area are not the same calculation

A two-storey accessory building can have one footprint but two levels of floor area. A roofed open structure may count toward coverage differently from enclosed floor area. An eave may or may not count depending on the code’s measurement rules.

Always identify the numerator and denominator:

  • Does “area” mean building footprint?
  • Gross floor area?
  • Conditioned floor area?
  • Roofed area?
  • All accessory structures combined?
  • A percentage of the principal building?
  • A percentage of the lot?

Planning errors often begin when two different area measures are treated as interchangeable.

Building separation protects more than appearance

A code can require space between an accessory building and the principal building even when both are comfortably inside property-line setbacks.

Raleigh currently requires a minimum separation between accessory structures and other buildings on the same lot, while also creating a detailed rule for when a breezeway still allows two structures to be treated as detached.

Seattle’s 2026 residential amendments likewise include minimum separation conditions for accessory structures in required setbacks.

These rules can interact with fire-resistance construction, roof projections, drainage and access. A site plan should therefore measure not only wall-to-property-line distances but building-to-building distances, including whatever elements the local rule says count.

A breezeway can change the legal identity of a building

Suppose a detached garage is lawful in the rear yard because accessory structures receive special placement rules. The owner then adds a covered connection to the house.

Has the garage remained detached, or has it become part of the principal building?

The answer can alter setbacks, height, floor area and fire requirements. Raleigh demonstrates how detailed this classification can become: its current code sets width, height, openness, placement and roof-use conditions for a breezeway if the connected buildings are still to be treated as detached.

A physical connection is therefore not merely architectural. It can move the project from one regulatory category to another.

An alley creates a different frontage problem

Garages often want to be near alleys because that is where vehicles enter.

But a garage door placed too close to an alley can cause a vehicle to block the lane while the door opens, create poor visibility or remove the space needed to stand a car outside the garage.

Raleigh’s current accessory rules respond with a distinctive either-or geometry for certain alley-facing garage openings: one condition permits a very close relationship to the alley, while another requires enough distance to accommodate a vehicle. Portland likewise separates general garage-wall setbacks from a specific garage-entrance distance at a street property line.

This is a good example of planning logic being driven by behaviour, not just abstract distance.

A garage is not automatically just a parking box

Garages accumulate secondary functions easily: storage, workshop benches, exercise equipment, hobby space, laundry, office work, music practice and sometimes sleeping accommodation.

The structure can remain a garage physically while its use becomes mixed. If that change introduces a dwelling, a home occupation, public customers, employees, food preparation or another regulated activity, the use rules need to be checked separately.

The correct question is not what the owner calls the room. It is what facilities exist and what activity actually occurs.

Plumbing is a clue, not proof of a dwelling

A sink does not automatically create a house.

Portland changed its own treatment of additional sinks in detached structures, explaining in 2023 that the city had removed an earlier covenant approach while building-code reviewers would continue to determine when a proposal becomes a dwelling unit based on the package of permanent living, sleeping, eating, cooking and sanitation facilities.

The broader lesson travels well. Regulators should classify the functional whole rather than use one fixture as a magical threshold. Owners should likewise avoid assuming that leaving out one appliance prevents a space from being treated as habitable or residential when all other evidence points the other way.

Habitable space can trigger a different code path

A tool shed and a sleeping room expose people to different risks.

Once a detached structure is intended for living, sleeping, eating or similar habitation, building-code requirements for light, ventilation, egress, insulation, fire protection, sanitation and structural performance can change sharply. The planning classification may also change if the space becomes an accessory dwelling unit or an additional principal dwelling.

Portland’s current accessory-structure guidance is explicit that habitable structures require a building permit regardless of the small-structure exemption used for certain non-habitable buildings.

An accessory dwelling unit is a special housing category, not merely a shed with a bed

Many jurisdictions now have dedicated ADU legislation because secondary housing raises different policy questions from storage buildings.

An ADU can have its own maximum floor area, height, placement, entrance, parking, utility and occupancy standards. Some cities intentionally make ADUs easier to build than generic accessory structures because housing supply is the policy goal.

Do not assume that the rules for a detached garage or workshop automatically carry across when the same shell becomes a dwelling.

A workshop can also change the land-use question

A private hobby workshop has a different planning profile from a fabrication business receiving employees, customers, deliveries and commercial vehicles.

The building can be perfectly legal as an accessory structure while the commercial activity exceeds home-occupation or accessory-use limits.

This is where the distinction established in TPW-0167 becomes operational: the building does not automatically authorize every use that physically fits inside it.

Greenhouses reveal the difference between transparent walls and planning impact

A greenhouse can look visually light, but planning rules often still treat it as a structure.

It can occupy lot coverage, sit within setbacks, affect drainage, create night lighting, contain heaters or fans and become part of a commercial growing operation.

Material transparency is therefore not the same as regulatory invisibility.

Carports test where “building” ends and “structure” begins

A carport may have a roof but few walls. It may be attached or detached. Its posts and roof can still create setback, coverage and fire-separation questions.

Portland’s current Building Official Determination on small carports makes the distinction practical: certain small structures can avoid a building permit under specified conditions, yet zoning requirements for setbacks, coverage and vehicle-area location continue to apply.

The lesson again is that “open-sided” does not mean “outside planning.”

Roof overhangs can be regulated differently from the walls below

When a code allows a structure five feet from a boundary, does the wall need five feet, or must the gutter also stay five feet away?

Measurement rules answer this. Some codes permit eaves and roof overhangs to project into a required setback by a specified distance. Others measure separation to projecting features in particular contexts.

That is why a site plan should dimension both wall planes and major projections when the design is tight.

Drainage can become the hidden limiting factor

A new roof converts rainfall into concentrated runoff.

Where water once fell across garden soil, gutters may now discharge toward a neighbour, alley, slope or foundation. The structure can also increase impervious coverage and reduce infiltration.

Seattle’s current shed guidance specifically reminds applicants that stormwater and grading codes still apply alongside land-use rules. This is not administrative clutter. A small roof can alter how water moves across a constrained lot.

Environmentally sensitive land can narrow the ordinary accessory allowance

A shed that is easy on a flat urban lot may be difficult near a steep slope, wetland, shoreline, flood area or other protected feature.

Seattle explicitly flags environmentally critical areas in its shed and garage guidance. Other jurisdictions use flood overlays, riparian buffers, wildfire rules or tree-protection standards.

The base-zone permission is therefore only the first map layer.

Easements can make technically buildable land practically unavailable

A zoning setback tells you where the zoning code lets a building go. It does not promise that no one else has rights over that land.

Utility, drainage, access or other easements can restrict construction, preserve access for maintenance or require the owner to remove improvements later.

A thorough accessory-structure check therefore includes title or survey information where easements are relevant. Passing zoning does not extinguish private or utility rights.

Private covenants can be stricter than zoning

A city can issue a permit and a private restriction can still prohibit the project.

Homeowners’ association rules, deed restrictions, estate covenants or shared-property agreements may regulate detached structures, exterior materials, location or use.

Planning approval answers a public-law question. It does not normally adjudicate every private covenant.

Utilities can convert a simple shell into infrastructure

Electricity for one light is one thing. A workshop with high electrical load, water supply, sewer connection, gas, heating, cooling and data is another.

Utility work can trigger trade permits, trenching, clearances and capacity questions even if the accessory structure itself is small.

When the proposed use depends on utilities, map those requirements early rather than treating them as a final fit-out detail.

The smallest possible structure is not always the best planning answer

Owners sometimes design to remain one unit below a permit threshold.

That can be sensible when the program genuinely needs little space. It becomes false economy when the structure is so constrained that it later acquires informal extensions, storage lean-tos, extra roof cover or unapproved conversions.

A better approach is to design the smallest building that actually completes the intended job while complying cleanly with the whole rule stack.

The future-use test should happen before construction

Ask what the structure might reasonably become in five years.

If a garage is likely to become a home office, does the ventilation and access make sense? If a workshop may become an ADU, would its location ever satisfy dwelling rules? If a shed is likely to receive plumbing, where will services run?

This does not mean overbuilding for hypothetical futures. It means avoiding a location or geometry that makes every likely future change impossible or illegal.

Conversion is often where yesterday’s shortcut becomes tomorrow’s constraint

A structure lawfully built under a non-habitable accessory standard may sit closer to a boundary than a dwelling would be allowed to sit.

Years later, an owner sees a perfect small apartment. The shell exists, but the conversion can trigger different setbacks, fire separation, egress, parking, utility or size standards.

Existing walls do not automatically grandfather a new use.

A structure can be lawful while a later alteration is not

Suppose a shed was permitted at the maximum height. The owner later raises the roof. Or a garage was lawful at a specified footprint and later acquires a covered side bay. Or an open carport is enclosed.

Each alteration can change measured height, floor area, coverage, setbacks or building classification.

The legal status of the original structure is not a blank cheque for future modifications.

Maintenance does not usually reset the zoning clock, but replacement can raise new questions

Replacing roofing, cladding or doors on a lawful structure is different from demolishing it and constructing a new building in the same place.

If standards have changed, a replacement may have to satisfy current rules unless the code provides a nonconforming-structure continuation right. Damage by fire or storm can introduce separate reconstruction thresholds.

Before demolition, understand whether the existing structure possesses a lawful condition that cannot simply be recreated after removal.

The street sees secondary buildings differently from the owner

To the owner, a detached garage is storage and convenience.

To a planning system, it also contributes to frontage, bulk, roofscape, shadow, driveway width, pedestrian visibility, stormwater and the amount of built mass on the lot.

This explains why codes sometimes regulate whether accessory buildings can sit forward of the house, how garage doors face alleys or streets, and how tall secondary buildings may become.

The neighbour sees boundary effects

Accessory structures are often closest to neighbours precisely because they are pushed toward the edges of the lot.

That concentrates potential effects: roof runoff, shade, windows, mechanical noise, fire exposure, tree conflicts and maintenance access.

A setback is therefore not merely unused land. It is part of a negotiated spatial buffer between separate properties.

Worked example one: the 180-square-foot garden shed

An owner proposes a small prefabricated shed. The supplier says no building permit is required.

The correct next question is not “So I can put it anywhere?” The owner still checks the zoning district, setbacks, lot coverage, easements, drainage and any environmental overlay. If the city requires a zoning permit even where no building permit is needed, that process still applies.

The permit exemption changes paperwork. It does not move the property line.

Worked example two: the garage at the alley

A rear alley makes the garage location logical, but the designer must check both wall setback and vehicle-door geometry.

If the local code permits a near-alley garage only under one configuration and otherwise requires enough depth for a car to stand outside the door, moving the garage by a few metres can be the difference between a functional site and one that blocks the alley.

Worked example three: the hobby workshop

A resident builds a detached workshop for woodworking. Years later, the hobby becomes a business with two employees, customer pickups and daily deliveries.

The structure may remain physically compliant while the activity inside it exceeds the local home-business or accessory-use standard. The next approval question is about use, not structure.

Worked example four: the garage conversion

A detached garage was lawfully built close to the rear boundary under an accessory-building rule. The owner wants to convert it into a dwelling.

The shell does not guarantee the conversion. The project must now satisfy whatever ADU or dwelling rules apply, plus building, fire, sanitation and utility standards. If the new use has a stricter setback or size rule, the existing location becomes the central problem.

Worked example five: the greenhouse plus shed plus garage

Each structure is individually below the city’s per-building size that the owner has heard about.

But the ordinance uses a combined accessory-floor-area cap and an overall lot-coverage cap. The third structure pushes the parcel over both.

The problem is cumulative, not individual.

Worked example six: the corner-lot shed

A backyard touches a second street.

What feels like the “side” of the garden may legally be a street-side yard with a larger setback and visibility requirements. The shed location that would work on an interior lot fails on the corner lot.

Worked example seven: the shed over a utility easement

The zoning map permits the location, and the shed meets every setback.

A title plan reveals a utility easement through the proposed footprint. The utility provider needs permanent access and does not permit the building there.

Zoning compliance was necessary but not sufficient.

Worked example eight: the roof extension that changes the calculation

A small garage receives a wide covered patio along one side.

Depending on local definitions, the roofed addition may increase building coverage, accessory floor or roof area, or measured building width. What looked like outdoor amenity can therefore consume the remaining development capacity of the lot.

The accessory-structure audit

  1. Principal use: What principal building or use makes the secondary structure accessory?
  2. Structure type: Shed, garage, carport, greenhouse, workshop, pool house, covered patio or something else?
  3. Proposed use: Storage, parking, hobby, work, habitation or commercial activity?
  4. Same lot: Must it be on the same lot as the principal use?
  5. Sequence: Can it exist before the principal building?
  6. Zone: What base zoning district applies?
  7. Overlay: Is there a flood, heritage, environmental, wildfire or other overlay?
  8. Legal boundary: Are the property lines known from reliable records or survey?
  9. Frontage: Which lot line is primary street, side street, side and rear?
  10. Corner lot: Does a second street change placement?
  11. Front-wall rule: Must the accessory building sit behind the principal building?
  12. Front setback: What distance applies?
  13. Side setback: What distance applies?
  14. Rear setback: What distance applies?
  15. Street-side setback: Is it different from the interior side?
  16. Alley setback: Is there a special rule?
  17. Garage door: Is vehicle-opening distance regulated separately?
  18. Building separation: How far from the principal structure?
  19. Projection measurement: Do eaves or gutters count in separation?
  20. Breezeway: Would a connection make the building attached?
  21. Footprint: What is the structure’s ground coverage?
  22. Floor area: What is its gross floor area?
  23. Combined area: Are all accessory structures added together?
  24. Relative size: Is accessory area capped as a percentage of the principal building?
  25. Lot coverage: How much coverage is already consumed?
  26. Height: What is the maximum accessory height?
  27. Height measurement: From what grade and to what roof point?
  28. Roof: Do eaves or covered extensions alter area or setback calculations?
  29. Habitable: Will anyone live, sleep, eat or regularly occupy the structure?
  30. ADU: Does the proposed function meet a dwelling-unit definition?
  31. Home business: Do employees, customers or deliveries change use status?
  32. Plumbing: What fixtures are proposed and what approvals follow?
  33. Electrical: Is a new service or major load needed?
  34. Heating/cooling: Does equipment need its own setback?
  35. Fire: Do proximity and openings trigger fire-resistance requirements?
  36. Drainage: Where will roof runoff go?
  37. Impervious area: Does the structure affect stormwater thresholds?
  38. Grading: Will construction alter slopes or drainage?
  39. Trees: Are protected roots or canopy affected?
  40. Easements: Is the footprint inside utility, drainage or access rights?
  41. Private controls: Do covenants or association rules add limits?
  42. Building permit: Is one required?
  43. Zoning permit: Is a separate zoning permit required even if building permit is not?
  44. Trade permits: Electrical, plumbing, mechanical or sewer?
  45. Future conversion: Could the structure later become an office or dwelling, and would the site still work?
  46. Alterations: Would enclosure or roof extension change its classification?
  47. Replacement: Would demolition destroy an existing lawful nonconforming condition?
  48. Inspection: What must be verified after construction?
  49. As-built condition: Will the final location match the approved plan?
  50. Final conclusion: Can you prove both that the building fits and that the activity inside it is lawful?

The useful mental model: a secondary building sits at the intersection of relationship, geometry and function

Accessory structures are useful because cities do not need every garden shed, garage and workshop to behave like a principal building.

But the flexibility works only when the secondary structure remains secondary in the ways the code defines, fits within the parcel’s dimensional capacity and contains a lawful use.

That produces three questions worth keeping separate:

  • Relationship: Is it genuinely accessory to a principal use?
  • Geometry: Does it fit within setbacks, height, coverage, separation and other site limits?
  • Function: Is the activity inside it lawful under the use rules?

If all three answers are clear, the accessory building is simple. If one is vague, the “small shed” can become the most complicated object on the lot.

Sources and further reading

Continue reading: The Principal and Accessory Use Test · The Setback Line · The Lot Coverage Ratio · Full Town Planning Series Index.

Discover more from eduKate Singapore

Subscribe now to keep reading and get access to the full archive.

Continue reading