
How close you can build to a boundary fence in WA depends on the wall. For a single-storey wall with no major openings, the answer is usually 1 metre from a side boundary. Some walls, patios and small sheds can go right up to the line. But every one of those distances is measured to the lot boundary, not to the fence. In Western Australia a dividing fence doesn't have to sit on the boundary.
The setback is measured from the boundary, not the fence
Western Australia's Residential Design Codes, known as the R-Codes, set the distances. Part B of the current R-Codes Volume 1, dated 10 April 2026, covers single houses on land coded R40 and below. If your lot has one of those codes, these are your rules.
The R-Codes define a setback as "the horizontal distance between a wall at any point and an adjacent lot boundary". It is measured at right angles to the boundary. The fence isn't mentioned. A lot boundary is "the boundary between a lot and any other parcel of land, excluding a street boundary" (R-Codes Volume 1, Appendix A1 Definitions). Your survey plan shows where that line is.
That matters because the fence and the boundary can be different lines. The WA Government's dividing fences guide says a dividing fence can be "on the common boundary of adjoining lands or in a line other than the common boundary".
The drawing at the top of this page shows it done properly. The wall is 1 m from the boundary, so only 0.7 m from a fence that sits 300 mm inside the lot. Now say you measured 1 m from that fence instead. The wall ends up 1.3 m from the boundary: legal, but you've lost space. If the fence sits on the neighbour's side, the same measurement puts your wall too close. Our guide to finding your property boundaries in Perth explains the records you can check first.
How close a wall can be: the 1 metre and 1.5 metre rules
So how close to the boundary can you build a wall? Tables 2a and 2b of the R-Codes set the side and rear setbacks for walls that aren't built on the boundary. The distance depends on how high and how long the wall is, and whether it has major openings.
A major opening is a window, door or other opening in a habitable room that gives light or a view. Small openings totalling 1 m² or less in that wall don't count. Nor do fixed obscure glass or windows with a sill at least 1.6 m above the floor.
Up to 3.5 m high, no major openings, up to 14 m long
Setback from the lot boundary: 1 m
Up to 3.5 m high, no major openings, longer than 14 m
Setback from the lot boundary: 1.5 m
Up to 3.5 m high, with major openings
Setback from the lot boundary: 1.5 m
Higher walls (a second storey)
Setback from the lot boundary: Set by height and length in Tables 2a and 2b
| Wall | Setback from the lot boundary |
|---|---|
| Up to 3.5 m high, no major openings, up to 14 m long | 1 m |
| Up to 3.5 m high, no major openings, longer than 14 m | 1.5 m |
| Up to 3.5 m high, with major openings | 1.5 m |
| Higher walls (a second storey) | Set by height and length in Tables 2a and 2b |
For heights and lengths between the listed values, the tables say to take the nearest higher value. Rear boundaries are different on low-density lots. For a single house coded R5 to R15, Table B sets a 6 m rear setback, and R2 and R2.5 lots need more.
Eaves, chimneys and similar minor projections can reach up to 0.75 m into a setback area (clause 5.1.3 C3.1). That is the planning rule only. The R-Codes note that separate building code requirements may also apply. Your builder or building surveyor will check how close eaves and walls can go under those rules.
Building right on the boundary: boundary walls
The R-Codes treat any wall on the boundary, or less than 600 mm from it, as a boundary wall. Garages, stores and house walls built "zero lot line" fall in this group. Clause 5.1.3 C3.2 sets the deemed-to-comply limits, behind the street setback:
R20 and R25
Boundary wall limits (deemed to comply): Up to 3.5 m high, for the greater of 9 m or one third of the boundary behind the front setback, on up to two boundaries
R30 to R40
Boundary wall limits (deemed to comply): Up to 3.5 m high, for two thirds of the boundary behind the front setback, on up to two boundaries
R17.5 and below
Boundary wall limits (deemed to comply): Only against a neighbour's boundary wall of equal or greater size, or where both lots are created together with matching walls
Any code
Boundary wall limits (deemed to comply): A wall that abuts an existing or simultaneously built neighbour's boundary wall of equal or greater size
| Density code | Boundary wall limits (deemed to comply) |
|---|---|
| R20 and R25 | Up to 3.5 m high, for the greater of 9 m or one third of the boundary behind the front setback, on up to two boundaries |
| R30 to R40 | Up to 3.5 m high, for two thirds of the boundary behind the front setback, on up to two boundaries |
| R17.5 and below | Only against a neighbour's boundary wall of equal or greater size, or where both lots are created together with matching walls |
| Any code | A wall that abuts an existing or simultaneously built neighbour's boundary wall of equal or greater size |
Lots with different codes on either side use the lower code's limits for the wall between them (clause C3.3). Boundary walls must also meet the overshadowing limits in clause 5.4.2, and the building code applies to them as well.

Here is how the one third works. On an R20 lot with a 40 m side boundary and the 6 m primary street setback in Table B, 34 m of boundary sits behind the setback. One third of 34 m is about 11.3 m. That is more than 9 m, so a boundary wall up to 11.3 m long and 3.5 m high meets the deemed-to-comply rule on that side. On a shorter lot the 9 m figure takes over.
A design that goes past these limits isn't automatically refused. Your council assesses it against the R-Codes' design principles instead.
Patios, carports and verandahs
Open structures get their own rule. Clause 5.1.3 C3.1 says the setback for a carport, patio, verandah or similar structure can be reduced to nil to the posts where it:
- is not more than 10 m long and 2.7 m high;
- is behind the primary street setback; and
- has eaves, gutters and roofs set back at least 450 mm from the lot boundary.
So the posts can stand on the line, but the roof edge has to stop 450 mm short of it. Measured from a fence that's off the boundary, that 450 mm can disappear. Raised outdoor areas are a different case. Once they are 0.5 m or more above natural ground level, Table 2b applies as though they had a 2.4 m wall.
How close can a shed be to the fence?
Two different rules apply to a garden shed, and they use different numbers.
Planning (the R-Codes). Under clause 5.4.3, a small outbuilding meets the deemed-to-comply rule when it:
- is the only outbuilding on the dwelling site;
- is no more than 10 m² in area, with walls no higher than 2.7 m;
- has no more than two boundary walls;
- is outside the street setback area; and
- leaves the open space and outdoor living area the code requires.
Within those limits it can sit on the boundary.
Building permit (the Building Regulations 2012). A freestanding shed needs no building permit if it is not more than 10 m² and no more than 2.4 m high. It also can't be in wind region C or D (Building Regulations 2012, Schedule 4, clause 2, Table item 1).
A 2.6 m high shed of 9 m² can still meet the planning rule but needs a building permit. Bigger sheds are allowed up to 60 m² in total or 10 per cent of the site, whichever is less. Their walls can be no higher than 2.4 m and the ridge no higher than 4.2 m, and they are set back under Table 2a, usually 1 m.
The City of Stirling's outbuilding information sheet (July 2021) gives a worked example. A 6 m² shed, 2.2 m high, sits 0.5 m off the rear and side boundaries of an R30 lot. It needs neither approval.
When your council changes the numbers
The R-Codes are the State's default. Councils can change some of them. Part A of the R-Codes lets a council amend, replace or add to the boundary wall rules (clauses C3.2 and C3.3) through a local planning policy. It doesn't need the Western Australian Planning Commission's approval to do so. Local development plans and precinct structure plans can also set their own boundary wall rules for particular lots.
So before you rely on any number in this guide, check three things with your council:
- Your density code, from the local planning scheme map.
- Any local planning policy on boundary walls, outbuildings or setbacks.
- Any local development plan that applies to your lot.
The City of Stirling's single house information sheet puts the next step simply. A single house that meets every deemed-to-comply rule, the scheme and the council's policies is exempt from development approval. If it doesn't, you lodge a development application and the council assesses it, sometimes after asking the neighbours for comment.
Building on or near the line: your neighbour's consent
Planning approval is one step. The Building Act adds another when work would touch the neighbour's land. Building and Energy says some work needs the neighbour's written consent before the building permit is granted. That applies where a building would encroach onto adjoining land, or the work is likely to adversely affect it.
That consent is asked for on Form BA20. The neighbour has 28 days to give written consent. If consent isn't given, the person doing the work can ask the Magistrates Court for an order. Without consent or an order, the work can't go ahead.
A separate rule covers a wall so close to the boundary that a separate fence isn't practical. With a building permit for that wall, the builder can remove the part of the fence in the way. Building and Energy says the builder should give the neighbour at least seven business days' notice first.
Because encroachment is judged against the boundary, it pays to have the boundary marked before a slab, footing or post goes in on or near the line. A licensed surveyor places those marks, and our construction set-out survey page explains how the building is then pegged from them.
Building close to the line?
Have the boundary marked before you set out the slab, posts or footings, so every measurement starts from the right place.
Are the rules changing?
They may. The draft R-Codes released for comment on 24 October 2026 propose new boundary wall limits. For R20 and R25, the draft allows walls up to 3.5 m high on two boundaries. Each can run for the greater of 9 m or 35 per cent of the lot boundary it abuts. For R10 to R17.5 it adds a new 9 m boundary wall on one boundary. The draft also merges Table B and Tables 2a and 2b into a simpler setback table.
These are proposals, not law. Submissions close at 5.00pm (AWST) on Friday 26 February 2027 through the Department of Planning, Lands and Heritage's Have Your Say page. Until any change is made, the April 2026 R-Codes apply.
What to do before you build
- Look up your code and your council's rules. Together they decide which numbers apply.
- Find the boundary, not the fence. Start with the survey plan. If you'll build within a metre or two of the line, have a licensed surveyor mark it, then set every setback, post and eave from those marks. Our boundary survey page explains the job.
- Talk to your neighbour early. If the work would encroach onto their land or is likely to adversely affect it, the BA20 consent step comes before the permit.
If a wall or shed is already built and you want to know where it sits against the boundary, an identification survey shows that. If the fence itself is the question, our guide on whether you need a survey before building a fence covers that side.
This is general information about WA's planning and building rules, not legal advice. Your council and the permit authority decide each application.
Common questions about building near the boundary
What is the 1 metre boundary rule?
It's the usual setback from a side boundary for a single-storey wall up to 3.5 m high and 14 m long, with no major openings. Table 2a of the R-Codes sets it at 1 m, rising to 1.5 m for longer walls. On lots coded R15 and below, the rear setback for a single house is larger.
Can my neighbour build right on the boundary?
Yes, within limits. On R20 and R25 lots, a boundary wall up to 3.5 m high is allowed on up to two boundaries. It can run for the greater of 9 m or one third of the boundary behind the front setback. Limits are usually wider on R30 to R40 lots, and a council policy or local development plan can change them. If the work would encroach on or adversely affect your land, Building and Energy says they need your consent on a BA20 or a court order.
Do I need council approval for a shed?
A shed that meets the R-Codes' small outbuilding rules usually needs no planning approval. It must be the only outbuilding on the dwelling site, no more than 10 m² and with walls no higher than 2.7 m. A building permit isn't needed if it is not more than 10 m², no more than 2.4 m high and outside wind regions C and D. Check your council's policy first.
How far do eaves have to be from the boundary?
Under the R-Codes, eaves can project up to 0.75 m into a setback area. For a patio, carport or verandah built to nil at the posts, eaves, gutters and roofs must stay at least 450 mm from the lot boundary. Building code requirements may also apply, so check with your builder or building surveyor.
Is my fence on the boundary?
Not necessarily. WA's dividing fences guide says a dividing fence can stand on the common boundary or on another line. The survey plan and the boundary marks show where the line is, and a licensed surveyor can re-mark it.
Measure from the right line
Before you build within a metre or two of the fence, have the boundary marked by a licensed surveyor.
Send us your address through our enquiry form, or call (08) 5122 5501, and ask about a boundary survey.
R-Codes figures, Building Regulations items and Building and Energy guidance in this article were checked on 25 November 2026.
About this guide: City Land Surveyors Perth takes enquiries about land surveying in Perth. This guide is general information for property owners. Read more about us or contact us.
