# Do you need a permit for a fence in Ontario, CA? Heights, rules and approvals

> Fence permit rules in Ontario, CA: when a building permit is needed, height limits by yard, corner lots, pool enclosures, HOA approval and nearby city rules.

URL: https://groveontariofencebuilders.com/guide/fence-permits-height-rules-ontario-ca/

Learn

What the City of Ontario permits and reviews, how tall each part of a fence can be, and the state, HOA and neighbor rules that sit on top of the city code.

Last Updated: October 31, 2026

In Ontario the permit line is 3 feet, not 6 or 7. Almost every backyard privacy fence crosses it.

Usually, yes. The City of Ontario requires a building permit for wood, chain link and wrought iron fences and gates over 3 feet tall, and for block walls over 3 feet. Every fence, wall and gate is also subject to Planning review of its design and location, even when no building permit is needed. Since a normal backyard privacy fence is 5 or 6 feet tall, nearly every one needs a permit.

[Grove Ontario Fence Builders](https://groveontariofencebuilders.com/) installs fences, [replaces worn-out ones](https://groveontariofencebuilders.com/fence-replacement/) and builds gates and block wall extensions across Ontario and the west Inland Empire, with the work carried out by licensed and insured fence contractors. Permits and approvals shape every job here, so this guide sets out the rules in the order they come up: the permit itself, height, location on the lot, materials, pools, large lots, HOAs, wind, digging, neighbors and property lines, then how the surrounding cities differ.

Key takeaways

- Ontario requires a building permit for wood, chain link and iron fences and block walls over 3 feet, and Planning reviews every fence's design and location.
- Residential height limits: 3 feet in the front yard, 6 feet on side, street-side and rear property lines.
- Height is measured from the lowest adjacent finished grade, so a fence on the high side of a grade change loses usable height.
- Pools, spas and ponds deeper than 18 inches need a full 5-foot nonclimbable enclosure in Ontario.
- Rancho Cucamonga and Chino Hills do not require a building permit for a typical fence up to 6 feet; Ontario does.

## When Ontario requires a building permit

The City of Ontario’s [Building Permit FAQ](https://www.ontarioca.gov/government/community-development/building/general-requirements/building-permit-faqs) lists what needs a permit: concrete block walls more than 3 feet high from grade, block pilasters over 3 feet, chain link fences over 3 feet, open or screened wrought iron fences and gates over 3 feet, and wood fences over 3 feet. Retaining walls over 2 feet, measured from the bottom of the footing to the top of the wall, need a permit as well.

That threshold is unusually low. The model building codes most cities start from exempt fences up to 7 feet, and two neighboring cities exempt fences up to 6 feet. In Ontario, a 3-foot line means a standard 6-foot backyard fence goes through the permit counter with a site plan and an inspection, which adds lead time and a fee to the job. The [fence cost guide](https://groveontariofencebuilders.com/guide/fence-cost-ontario-ca/) shows how the city calculates that fee from the project’s valuation.

The FAQ names wood, chain link and wrought iron but not vinyl or aluminum. Treat a vinyl or aluminum fence over 3 feet the same way until the Building Department says otherwise; the [vinyl fence installation](https://groveontariofencebuilders.com/vinyl-fence-installation/) page explains why a solid vinyl panel is also the type most affected by wind design.

### Planning review applies even without a building permit

Ontario’s Development Code, section 6.02.005, makes the design and location of all walls, fences and gates subject to the Planning Director’s review and approval, whether or not a building permit is required. A 3-foot front-yard fence that needs no building permit is still expected to meet the height, location and material rules below. Allowable heights come from the Planning Department, reachable at (909) 395-2036.

### Work in the street right-of-way

No fence or wall can be placed in a street right-of-way without an encroachment permit from the City Engineer. The parkway strip between the sidewalk and the street, and sometimes ground behind the sidewalk, can be city right-of-way. Unpermitted work there must be removed within 7 days of notice, so the property line, not the edge of the lawn, decides where the fence starts.

## How tall a fence can be in Ontario

Section 6.02.020 of the [Ontario Development Code](https://content.ontarioca.gov/sites/default/files/2026-09/Chapter%206.0%20-%20Development%20%26%20Subdivision%20Regs_Rev%2008-18-2026.pdf) sets the maximum heights for walls and fences in residential districts.

| Location on the lot | Maximum height |
| --- | --- |
| Front yard | 3 ft |
| Interior side property line | 6 ft |
| Street-side property line (corner lots) | 6 ft |
| Rear property line | 6 ft |
| Subdivision perimeter walls | 6 ft |
| Within the buildable area behind the setbacks | The base zone’s height limit |

The practical effect is a two-height fence on most lots: 6 feet along the side and rear lines, stepping down to 3 feet once it crosses into the front setback. A 4-foot picket or 5-foot iron fence across a front yard needs an approval first. The code allows higher combinations only where a fence sits on a retaining wall (covered below) and for acoustic sound walls, which need Planning Director approval above 6 feet.

### How height is measured

Ontario measures a wall or fence on its street side or exterior side, from the top of the fence down to the lowest adjacent finished grade. On a flat lot that changes nothing. Where the ground on one side is higher, such as a planter bed built up against the fence or a yard graded above the neighbor’s, the measurement starts from the low side. A 6-foot fence set on the high side of a 1-foot grade change measures 7 feet and exceeds the limit, so the panel has to be shorter and the owner on the high side gets less screening than the number suggests. Specific plans can measure differently: the Edenglen plan in Ontario Ranch measures side and rear fences from the highest adjacent finished grade.

## Where a fence can go on the lot

Fences may be built on common interior side and rear property lines. Corner and reverse-corner lots can build along the street-side property line, but the strip between the fence and the sidewalk or curb must be fully landscaped and maintained by the owner. Front-yard walls up to 3 feet may sit on the front or street-side property line, again with landscaping to the curb.

Through-lots, which face a street at both front and back, follow a different rule: the rear wall must sit at least 5 feet behind the rear property line, landscaped to the sidewalk. That matters on a replacement, because an old rear fence built closer than 5 feet cannot simply be rebuilt in place. Nonresidential properties set security fences at least 5 feet behind the front and street-side lines; [commercial fencing](https://groveontariofencebuilders.com/commercial-fencing/) covers that work.

### Corner clearance and driveways

At intersecting streets, nothing over 3 feet above the nearest street pavement, whether wall, fence or mature planting, may stand in the corner clearance area, whose dimensions come from the city’s corner clearance standard. Where a driveway meets a street or alley, the Planning Director or City Engineer can require a corner cutoff defined by a 45-degree line through a point 20 feet from the intersection, and the same can apply on reverse-corner lots next to a neighbor’s driveway. Separately, any wall, fence or hedge judged to affect safe entry and exit is limited to 3 feet within a required front or street-side setback. On a corner lot, this is why the street-side fence often steps down or angles in near the corner, and why the layout is confirmed before posts go in.

## Fences on top of retaining walls

Where the ground differs in height between lots or along a street, a fence combined with a retaining wall may exceed the normal height with Planning Director approval. Next to a public right-of-way the limits tighten: the retaining portion can be no more than 3 feet and the free-standing portion no more than the normal maximum, and anything retaining more than 3 feet must be tiered. The code’s figure shows a 3-foot maximum retaining wall, at least 3 feet of separation, then a wall of up to 6 feet.

A fence on a retaining wall also raises a structural question. The wall was designed to hold soil, not to resist wind on a 6-foot panel attached to its top, and a retaining wall over 2 feet needs its own permit in Ontario. The [block wall extension](https://groveontariofencebuilders.com/block-wall-fence-extension/) page explains how a wall is checked before anything is mounted on it.

## Materials Ontario allows and bans

The Development Code sets a material palette for residential districts in section 6.02.020.B:

- **Walls visible to the public:** decorative masonry, such as brick, split-face or slump block, or an equal approved by Planning, with a decorative cap. Grout caps are not permitted.
- **Fences:** ornamental steel or iron, wood, or PVC consistent with industry standards. Other materials only where the Planning Director finds them compatible.
- **Chain link in front and street-side yards:** allowed at single-family homes only where it is the predominant material in the neighborhood, as the Planning Director determines.

Section 6.02.010 adds the prohibitions. Razor wire is banned everywhere in the city. Barbed wire is banned in residential, commercial and mixed-use districts and allowed in industrial districts only if it does not project above the fence where the public can see it. Electrified fences are banned in residential districts. No fence may be made of metal other than ornamental iron or tube steel, chain link, or wire mesh of at least 4 by 4 inches in 12.5 gauge, which rules out lighter welded-wire panels and corrugated metal panel fences. In practice, Ontario homes choose among [wood](https://groveontariofencebuilders.com/wood-fence-installation/), vinyl, [wrought iron or tubular steel](https://groveontariofencebuilders.com/wrought-iron-fence-installation/) and decorative block, with [chain link](https://groveontariofencebuilders.com/chain-link-fence-installation/) mostly in back yards. The [vinyl vs wood comparison](https://groveontariofencebuilders.com/guide/vinyl-vs-wood-fence/) weighs the two most common choices.

## Block walls and subdivision perimeter walls

New single-family subdivisions in Ontario must build 6-foot decorative masonry walls along the project perimeter, street-side property lines and the rear lines of through-lots, plus masonry walls on interior side and rear lines and decorative return walls between the side-yard walls and the house, with rear-yard access gates. That is why so many Ontario tract lots already have block on three sides. Much of the fence work on those lots is gates in the return walls, [repairs to damaged sections](https://groveontariofencebuilders.com/fence-repair/) and height added to an existing wall, rather than a new perimeter; the [block wall vs fence guide](https://groveontariofencebuilders.com/guide/block-wall-vs-fence/) compares the two when a wood fence is due for replacement. The [gate installation](https://groveontariofencebuilders.com/gate-installation/) page covers the side-yard gates that sit between those return walls.

## Pools, spas and ponds

Ontario’s own rule is broader than the state’s. Under section 6.02.020.A.3, any swimming pool, hot tub, spa, pond or decorative body of water more than 1.5 feet deep, above or below ground, must be fully enclosed by a decorative nonclimbable fence or wall at least 5 feet tall with decorative gates, built to the building code.

State law adds a separate requirement when a building permit is issued for a new or remodeled pool or spa at a single-family home. [Health and Safety Code 115922](https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=HSC&sectionNum=115922) requires at least two of seven drowning-prevention features, such as an enclosure, a removable mesh fence with a self-closing, self-latching, lockable gate, a safety cover, exit alarms or self-closing door devices. An enclosure that meets section 115923 is at least 60 inches tall, leaves no more than 2 inches to the ground, has no opening that passes a 4-inch sphere and no handholds or footholds, and has gates that open away from the pool and self-close and self-latch with the latch at least 60 inches above the ground. Ontario’s [Information Bulletin 114](https://content.ontarioca.gov/sites/default/files/2025-01/IB%20114%20%28Swimming%20Pools%2C%20Spas%20and%20Hot%20Tubs%20Safety%20Requirements%29%20-%20eff%2011-07-2024.pdf) applies the same list and requires the enclosure and safety measures to be installed by the pre-plaster inspection, so on a new pool the fence is part of the pool schedule. No fence product complies everywhere automatically; the [pool fence requirements guide](https://groveontariofencebuilders.com/guide/pool-fence-requirements-california/) and the [pool fence installation](https://groveontariofencebuilders.com/pool-fence-installation/) page go through the details.

## Large lots, equestrian trails and animal keeping

Ontario’s larger residential lots carry their own fence rules. In the AR-2 and RE-2 zones, the Development Code requires an unobstructed 8-foot equestrian trail easement along the front property line. A fence at the edge of the easement may be no taller than 48 inches, plus 1 inch for every 2 inches it is set back from the easement, and within 4 feet of the easement it may be no more than 50% opaque. Wood rail and plank fencing are preferred; chain link and wrought iron should be avoided there. A 6-foot privacy fence along the trail is not what the code has in mind.

Where animals are kept, section 5.03.410 requires them to be secured by a fence or wall at least 5 feet high when outdoors, and remaining agricultural parcels under the AG overlay, including dairies, keep their own containment needs until they develop. Corral and pasture fencing on those properties is a different job from tract privacy fencing.

## Ontario Ranch specific plans and HOA approval

Much of southern Ontario is governed by specific plans, and the city lists more than 50 of them on its [specific plans page](https://www.ontarioca.gov/government/community-development/planning/governing-documents/specific-plans), including residential plans such as Edenglen, Esperanza, Rich-Haven, Countryside, Parkside, West Haven and Grand Park. Each plan has its own development regulations, and where they set wall and fence standards those apply on top of, or in place of, the citywide code.

Edenglen shows how far they can go. Its regulations cap side and rear fences at 6 feet measured from the highest adjacent grade, require perimeter thematic fencing to be durable wood-look material or tubular steel and state that wood fencing is not permitted there, and require front-yard fences to be wood or wood-look. A master homeowners association maintains the community theme wall, including structural and face repairs, so a homeowner’s side fence that meets a theme wall needs the association involved.

HOA approval is a separate step from the city permit. An architectural review committee typically asks for a site plan showing where the fence runs, the material, color and height, and sometimes a product sheet. Approval from one does not stand in for the other, and the CC&Rs can be stricter than the city on color or style even where the height is allowed. The [HOA fence approval guide](https://groveontariofencebuilders.com/guide/hoa-fence-approval/) walks through a typical submittal, and the [Ontario Ranch area page](https://groveontariofencebuilders.com/service-areas/ontario-ranch/) covers fence work in those tracts.

## Wind design and why it shapes post layout

Ontario’s [Information Bulletin 103](https://content.ontarioca.gov/sites/default/files/2026-02/IB%20103%20%28Structures%20Design%20Criteria%20-%202025%20Codes%29%20eff%201-1-2026.pdf) sets the design criteria for structures in the city: wind Exposure C, the open-terrain category, with a basic wind speed of 110 mph under the residential code, and a default lateral soil bearing of 100 psf per foot unless a soil report says otherwise. Those inputs are what a designer uses to size footings for engineered fences and walls.

They are not academic here. The National Weather Service office in San Diego issued 44 High Wind Warnings for the Inland Empire valley zone that includes Ontario between January 2016 and October 2026, with none from May through August and most from October through February, the Santa Ana season. A solid 6-foot privacy panel catches that wind like a sail, while an [open iron or tube steel fence](https://groveontariofencebuilders.com/guide/wrought-iron-vs-tubular-steel-vs-aluminum/) lets it through. Post depth and diameter, spacing and gate hardware are therefore set by fence height, panel type, wind and soil together, and no single depth fits every fence; the [steel vs wood posts guide](https://groveontariofencebuilders.com/guide/steel-vs-wood-fence-posts/) covers how footings are sized in sand. Gate posts carry the heaviest load of all, which is why [a sagging gate](https://groveontariofencebuilders.com/guide/fix-sagging-gate/) usually traces back to its post. In the sandy soils mapped across much of Ontario, a footing gets its grip from its depth and width rather than from the soil around it. The [Santa Ana winds guide](https://groveontariofencebuilders.com/guide/santa-ana-winds-fence/) goes further.

## Call DigAlert before any digging

California [Government Code 4216.2](https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=GOV&sectionNum=4216.2) requires anyone excavating, which includes augering post holes, to mark the area and notify the regional center at least two working days, and no more than 14 calendar days, before digging. In Southern California that center is [DigAlert](https://www.digalert.org/), reachable by calling 811. A ticket is valid for 28 days and must be renewed if the work runs longer. A licensed contractor digging post holes is an excavator under the law, so the ticket and its two-working-day lead time sit in every fence schedule.

## Neighbors and shared fences

California’s Good Neighbor Fence Act, [Civil Code 841](https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=CIV&sectionNum=841), in effect since January 1, 2014, presumes that adjoining owners benefit equally from a dividing fence and share the reasonable cost of building, maintaining or replacing it, unless they agree otherwise in writing. An owner who wants the neighbor to share the cost must first give 30 days’ written notice describing the problem, the proposed solution, the estimated cost, the proposed split and the timeline. The presumption can be rebutted, for example where the cost is unreasonable or driven by one owner’s taste. This is general information, not legal advice. The [neighbor conversation post](https://groveontariofencebuilders.com/blog/how-to-talk-to-your-neighbor-about-a-new-fence/) has practical tips for raising it; the [good neighbor fence law guide](https://groveontariofencebuilders.com/guide/good-neighbor-fence-law-california/) covers the notice in detail.

The city side can involve the neighbor too. Ontario’s wood-fence handout may ask for the adjoining owner’s written sign-off when a fence sits on a shared property line. Whether that applies is confirmed for each project with the Building Department when the permit is applied for.

## Property lines and surveys

An old fence does not prove where the property line is. Fences drift off line over decades of replacements, and a replacement built on the old footprint can carry the old error forward. When the line is clear and the neighbors agree, the fence usually follows recorded corners or visible survey monuments. When the line is uncertain or disputed, a licensed land surveyor sets it, and a fence contractor should not substitute a guess for a survey.

Chino Hills offers a useful contrast. For property-line walls and fences that need a permit, the city accepts a Common Property Line Wall/Fence Agreement signed by every adjoining owner instead of a formal survey; if anyone will not sign, the permit must show the work wholly on the applicant’s side and a stamped survey goes to the inspector at the footing inspection. Ontario’s permit FAQ does not describe an equivalent form, so how a shared line is documented is confirmed with the Building Department. The [property line and survey guide](https://groveontariofencebuilders.com/guide/fence-property-line-survey/) explains when a survey is worth it.

## How nearby cities differ

Cities a few miles apart treat the same fence very differently.

| Topic | City of Ontario | Rancho Cucamonga | Chino Hills | Unincorporated San Bernardino County |
| --- | --- | --- | --- | --- |
| Building permit for a fence | Wood, chain link and iron over 3 ft | Over 6 ft | Over 6 ft, or heavier than 3 lb per sq ft | Required for residential chain link, wood and iron fencing; $117 plus $57 intake, $174 in all |
| Block walls | Permit over 3 ft | Permit over 3 ft | Permit unless 4 ft or less and more than 5 ft from every property line | Charged by wall area |
| Front-yard height | 3 ft | 3 ft solid; open fencing up to 6 ft | Confirmed per address | Confirmed per address |
| Side and rear height | 6 ft | 6 ft; up to 2 ft more by Minor Exception with neighbor notice | Confirmed per address | Confirmed per address |

[Rancho Cucamonga’s fence handout](https://cityofrc.us/sites/default/files/2025-01/HANDOUT%20-%20Residential%20Fences%20%26%20Walls%2011.2024.pdf) also requires new street-side fences to sit at least 5 feet back from the property line, keeps anything over 3 feet out of a visibility triangle with 20-foot sides at intersections and 10-foot sides at driveways, limits screening fences to solid wood on steel frames, solid vinyl, or backed iron or tube steel, and does not allow chain link with slats as screening. Retaining walls there top out at 4 feet. The [Rancho Cucamonga area page](https://groveontariofencebuilders.com/service-areas/rancho-cucamonga/) covers those rules in context.

In Chino Hills, the [permit exemption list](https://www.chinohills.org/DocumentCenter/View/1560) frees a light fence up to 6 feet, but the condition that an exempt masonry wall sit more than 5 feet from every property line means almost any block wall on a lot line needs a permit. Any combination of retaining wall and fence over 6 feet does as well. The [Chino Hills area page](https://groveontariofencebuilders.com/service-areas/chino-hills/) explains how its steep lots change the work. In unincorporated county areas, permits come from [County Land Use Services](https://lus.sbcounty.gov/wp-content/uploads/sites/48/FY-2026-BNS-Fee-Schedule.pdf), with the flat fence fee including one inspection.

## Wildfire zones and fences near the house

The City of Ontario has no Moderate, High or Very High Fire Hazard Severity Zones on CAL FIRE’s maps, so fire-zone rules do not shape fences in the city itself. They matter next door. About 30% of Rancho Cucamonga and about 73% of Chino Hills fall in Very High zones on CAL FIRE’s local responsibility area maps.

In those zones, state law already requires an ember-resistant area within 5 feet of the house. The State Board of Forestry and Fire Protection has been drafting the “Zone 0” regulations for that area, and its current draft would prohibit new combustible fences within 5 feet of a structure, let existing ones stay and be repaired in kind, and require a noncombustible section, such as a noncombustible gate, where a fence or gate meets the house within five years of the rules taking effect. Those rules are proposed and their final adoption and effective date should be checked on the [Board’s Zone 0 page](https://bof.fire.ca.gov/projects-and-programs/defensible-space-zones-0-1-2/) before a foothill project is designed. The [wildfire zone fence guide](https://groveontariofencebuilders.com/guide/fences-wildfire-zones/) tracks the details.

## A step-by-step approval checklist

The order matters, because each step can change the one after it. The [fence cost estimator](https://groveontariofencebuilders.com/tools/fence-cost-estimator/) gives a budget range before any of it starts.

1. **Confirm the jurisdiction.** An Ontario mailing address does not always mean City of Ontario rules; check whether the parcel is in the city, a neighboring city or unincorporated county.
2. **Check for a specific plan and HOA.** In Ontario Ranch and other master-planned tracts, read the plan’s wall and fence standards and the CC&Rs, and submit to the architectural committee.
3. **Confirm the line.** Find the recorded corners or survey monuments; if the line is unclear or a neighbor disputes it, hire a licensed land surveyor.
4. **Talk to the neighbor.** For a shared fence, send the Civil Code 841 notice at least 30 days ahead if you want to share the cost, and ask whether the city’s wood-fence handout calls for a signed consent.
5. **Design to the limits.** Set heights by yard and grade, step down at the front setback and corners, choose an allowed material, and size posts and gates for wind and soil.
6. **Apply for the permit.** Submit the site plan with fence locations, lengths and heights to the Building Department, and get Planning’s sign-off on design and location.
7. **Call DigAlert.** Request the ticket at least two working days before the first post hole.
8. **Build and inspect.** Schedule the inspections the permit lists, and for a pool, have the barrier finished by the pre-plaster inspection.

Most of these steps are paperwork, but skipping one is what turns a finished fence into a correction notice. To plan a fence around these rules, call Grove Ontario Fence Builders at [(909) 324-5352](tel:+19093245352) or [request an estimate](https://groveontariofencebuilders.com/contact/), and see the [fence installation process guide](https://groveontariofencebuilders.com/guide/fence-installation-process/) for how a job runs once the approvals are in place.

## Questions about this guide

### Can I build a 4-foot picket fence in my Ontario front yard?

Not under the standard residential rules. Ontario's Development Code caps walls and fences in the front yard at 3 feet, so a 4-foot picket or a 5-foot open iron fence there needs a city approval first. Rancho Cucamonga is different: it allows open fencing such as pickets or iron up to 6 feet in a front yard.

### Can I put barbed wire or razor wire on top of my fence in Ontario?

No, not at a home. Ontario's Development Code prohibits razor wire everywhere in the city and barbed wire in residential, commercial and mixed-use districts, and it bans electrified fences in residential districts. Added security on a home lot comes from height within the limits, tube steel or iron, or decorative masonry.

### Does a vinyl fence need a permit in Ontario?

Plan on it. The city's Building Permit FAQ lists wood, chain link and wrought iron fences over 3 feet but does not name vinyl or aluminum, and the Planning review applies to every fence regardless. Confirm with the Building Department at (909) 395-2023 before ordering material for a vinyl fence over 3 feet.

## More guides

Cost Guide

How much does fence installation cost per linear foot in Ontario, CA?

Typical installed ranges by material, the site conditions that push a job up or down, and the public figures that sit inside an Ontario fence price.

Learn

What does California's good neighbor fence law require?

How Civil Code 841 splits the cost of a dividing fence, what a written notice has to contain, how a neighbor can push back, and where the spite fence rule fits.

Learn

Can you put a fence on the property line?

Where Ontario lets a fence sit, how the true line is found, what a licensed land surveyor does, and the easements and buried utilities that decide where a post can go.

Learn

How do HOA fence rules and approvals work in Ontario?

Three layers of rules can apply to one backyard fence in a master-planned tract: the specific plan, the association's CC&Rs and the city permit. Here is how they fit together.

Learn

What are the pool fence requirements in California?

State law sets the drowning-prevention features a new pool needs, Ontario's code adds a full enclosure, and federal guidelines explain why each dimension exists.
