# What does California's good neighbor fence law require?

> California's good neighbor fence law explained: the equal-benefit presumption in Civil Code 841, what the 30-day notice must say, and when a share can be reduced.

URL: https://groveontariofencebuilders.com/guide/good-neighbor-fence-law-california/

Learn

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.

Last Updated: October 31, 2026

The law starts both owners at half. The 30-day notice is what turns that starting point into a real conversation.

California’s good neighbor fence law, Civil Code 841, presumes that two adjoining owners benefit equally from the fence between them and share the reasonable cost of building, maintaining or replacing it, unless they agree otherwise in writing. Before spending money on a shared fence, an owner who wants the neighbor to contribute must give 30 days’ written notice with specific details.

[Grove Ontario Fence Builders](https://groveontariofencebuilders.com/) replaces and repairs shared side and rear fences across Ontario and the west Inland Empire, with the work carried out by licensed and insured fence contractors. Most of those fences sit on a line two households share, so the cost question comes up early. This page describes what the statute says and how it plays out on a typical tract fence. It is general information about the law, not legal advice for a particular dispute.

Key takeaways

- Civil Code 841 has applied in its current form since January 1, 2014.
- Adjoining private owners are presumed to share equally in the reasonable cost of a dividing fence.
- Written notice at least 30 days before the work must state the presumption, the problem, the fix, the estimated cost, the proposed split and the timeline.
- A neighbor can rebut the presumption by showing an equal share would be unjust.
- Civil Code 841.4 separately treats a malicious fence over 10 feet as a private nuisance.

## What Civil Code 841 actually says

The statute has three working parts. Subsection (a) says adjoining landowners share equally in maintaining the boundaries and monuments between them. Subsection (b)(1) adds the fence rule: owners are presumed to share an equal benefit from any fence dividing their properties and, unless a written agreement says otherwise, are presumed equally responsible for the reasonable costs of construction, maintenance or necessary replacement. Subsection (c) defines who counts. A landowner is a private person or entity holding a possessory interest in the property, and public bodies such as cities, counties and districts are excluded.

The current text replaced an older version of section 841 and took effect on January 1, 2014. Two words carry most of the weight. “Reasonable” limits the presumption to sensible costs, not whatever one owner chooses to spend. “Necessary” limits replacement to a fence that actually needs it, which is why the condition of the old fence matters as much as the price of the new one. The full text is on the [California Legislative Information site](https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=CIV&sectionNum=841).

## The equal-benefit presumption on a tract lot

On most Ontario tract lots, the fence or wall on the interior side and rear lines divides two backyards that use it the same way: privacy, a place for dogs to stay put, a screen for a pool. That is the situation the presumption was written for. A plain 6-foot redwood or cedar privacy fence replacing a failed one is close to the textbook case.

The presumption gets weaker as one owner’s preferences take over. If one side wants board-on-board with a cap rail where a dog-ear fence would do, or a decorative iron section where wood would serve, the extra cost is the kind a neighbor can argue is aesthetic rather than shared. The [fence cost guide](https://groveontariofencebuilders.com/guide/fence-cost-ontario-ca/) explains why those choices move a price toward the top of the range, which is useful context when two owners are deciding what “reasonable” means for their own line.

Many shared lines in Ontario are block walls built with the subdivision rather than wood fences. Whether a particular wall project falls under section 841 is a legal question for the owners, and work on an existing wall is covered on the [block wall extension page](https://groveontariofencebuilders.com/block-wall-fence-extension/).

## What the 30-day notice must include

Section 841(b)(2) lists the contents of the notice, and leaving one out weakens it. The notice goes to each affected adjoining owner, in writing, at least 30 days before the owner incurs the cost.

| Required element | What it looks like in practice |
| --- | --- |
| The presumption of equal responsibility | A sentence stating that California law presumes both owners share reasonable fence costs equally |
| The nature of the problem | For example: posts rotted at grade, a section down after a wind event, boards missing |
| The proposed solution | Repair of specific posts and panels, or full replacement, with height and material |
| Estimated costs | A written estimate from a contractor for the work described |
| The proposed cost-sharing approach | An even split, or a different split the sender proposes |
| The proposed timeline | When the work would start and roughly how long it would take |

A contractor’s written estimate is the natural source for the cost line, and a scope that separates the fence itself from extras such as a new gate on one owner’s side makes the split easier to defend. Photos of the old fence help show that replacement is necessary rather than cosmetic. Keep a copy and a record of how and when the notice was delivered. The [blog post on talking to a neighbor about a new fence](https://groveontariofencebuilders.com/blog/how-to-talk-to-your-neighbor-about-a-new-fence/) covers the conversation that usually comes before the letter.

## How a neighbor can rebut the presumption

The presumption is a starting point, not a final answer. Under section 841(b)(3), it can be overcome by a preponderance of the evidence showing that equal responsibility would be unjust. The statute directs a court to weigh these factors:

- Whether one owner’s financial burden is substantially out of proportion to the benefit that owner receives.
- Whether the cost of the fence would exceed the increase in the property’s value from installing it.
- Whether the burden would cause undue financial hardship, shown by reasonable proof.
- Whether the project is reasonable, including whether costs look unnecessary or excessive and whether they come from one owner’s aesthetic, architectural or other preferences.
- Any other equitable factor that fits the circumstances.

If the presumption is rebutted, the court can order a contribution smaller than half, or none at all. In practice, the factors explain why neighbors who compare two or three like-for-like estimates and agree on a standard fence rarely end up arguing. The disputes that reach a judge tend to involve one owner who replaced a sound fence, chose a premium style, or never sent notice.

## Repair or replacement: what “necessary” means

A shared fence with two leaning posts and a few loose boards is a repair, not a replacement, and the cost of fixing it is far less than a new run. A fence with rot at most posts, termite damage in the rails and sections already down is a different case. The [fence repair page](https://groveontariofencebuilders.com/fence-repair/) and the [fence replacement page](https://groveontariofencebuilders.com/fence-replacement/) describe how that line is drawn, and the [repair or replace assessment](https://groveontariofencebuilders.com/tools/fence-repair-or-replace-assessment/) walks through the same questions for your own fence.

The difference matters under section 841 because only necessary replacement is presumed to be shared. If one owner wants a full replacement and the other wants a repair, an assessment that documents post condition along the whole line gives both of them something more solid than opinion. After a windstorm, check homeowners coverage before assuming the neighbors split everything; the [wind-damaged fence insurance guide](https://groveontariofencebuilders.com/guide/wind-damaged-fence-insurance/) explains how that usually works.

## If you cannot agree: small claims in general terms

When notice has gone out and the neighbor still declines, the next step for most homeowners is a conversation about a written agreement, and failing that, court. Disputes over a share of a fence bill are often modest enough for small claims court, where people usually represent themselves and the dollar limit is set by state law. The [California Courts self-help pages](https://selfhelp.courts.ca.gov/small-claims-california) explain the current limits and filing steps. A copy of the notice, the estimate, photos and the paid invoice are the documents that matter there.

Two practical points sit outside the statute. The fence has to sit on the line or on one owner’s side, and an old fence does not prove where the line is; the [property line and survey guide](https://groveontariofencebuilders.com/guide/fence-property-line-survey/) explains when a surveyor is needed. And in Ontario a fence over 3 feet needs a building permit whoever pays for it, as the [Ontario permit guide](https://groveontariofencebuilders.com/guide/fence-permits-height-rules-ontario-ca/) explains, while tracts with an association add an [HOA approval step](https://groveontariofencebuilders.com/guide/hoa-fence-approval/).

## The spite fence statute: Civil Code 841.4

A separate section deals with the opposite problem: a fence built to annoy rather than to divide. Civil Code 841.4 says that a fence or other structure in the nature of a fence that unnecessarily exceeds 10 feet in height, and is maliciously erected or maintained to annoy the owner or occupant of the adjoining property, is a private nuisance. A neighbor injured in their comfort or enjoyment of their property can pursue the nuisance remedies the Civil Code provides.

Each element has to be present. The fence must be taller than 10 feet, the extra height must be unnecessary, and the purpose must be malicious. A 6-foot privacy fence within Ontario’s residential limit does not come close, and city height limits would stop most residential fences well short of 10 feet anyway. The statute has been on the books since 1953 and mostly matters in unusual disputes, but it is the answer to the common question of whether California has a spite fence law.

## Putting it in order

For a shared fence that has reached the end of its life, the sequence that keeps both households on the same page is short: agree on where the line is, get a written estimate for a standard fence, send the 30-day notice with every required element, then pull the permit and schedule the work. If you want an estimate written so it can go straight into that notice, call Grove Ontario Fence Builders at [(909) 324-5352](tel:+19093245352) or [request an estimate](https://groveontariofencebuilders.com/contact/). Splitting a wood or vinyl fence? The [vinyl vs wood comparison](https://groveontariofencebuilders.com/guide/vinyl-vs-wood-fence/) can help two owners settle on a material first.

## Questions about this guide

### Can my neighbor refuse to pay half of a new shared fence?

A neighbor can decline, and the law does not force anyone to pay on the spot. Civil Code 841 creates a presumption that both owners share reasonable costs equally, which a neighbor can rebut by showing an equal split would be unjust, for example because the project is excessive or driven by one owner's taste. If no agreement is reached, a court decides.

### Does Civil Code 841 apply when a city or water district owns the land behind my fence?

No. The statute defines a landowner as a private person or entity and expressly excludes cities, counties, districts, public corporations and other public agencies. A fence along a flood channel, utility corridor or public park edge is therefore outside the cost-sharing presumption, and any contribution would have to come from an agreement with that agency.

### Is there a California law against spite fences?

Yes. Civil Code 841.4 makes a fence or fence-like structure a private nuisance when it unnecessarily exceeds 10 feet in height and is maliciously built or kept to annoy the adjoining owner or occupant. The injured neighbor can pursue the nuisance remedies in the Civil Code. Ordinary fences within city height limits are not covered.

## Related service

### Fence replacement →

Tear-out, haul-away and a new fence on the line.

## More guides

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.

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

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

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.

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

Is wind damage to a fence covered by homeowners insurance?

How a typical California homeowners policy treats a fence, why the cause of the failure matters as much as the storm, and what to photograph before anything gets moved.
