Fences
A fence starts at the property line, not at the first post
What a fence crew does, what you check before anyone digs, and how the price is put together, so two quotes mean the same job.
By TerraElm Editorial Team Updated 8 min read
- Priced by
- Linear foot
- Post in the ground
- 1/3 of post length
- Typical post spacing
- 5 to 8 ft
- Permit needed
- Depends on the city
The short answer
A fence is a line of posts, a set of rails and boards, and one or more gates, set along a boundary you can name. Most quotes price it by the linear foot, with gates and old-fence removal as extra lines. Before a crew digs, confirm the property line, the local height and setback rules and the 811 utility marks. Posts go about a third of their length into the ground and below the local frost depth where the ground freezes.
What a fence job includes
A crew lays out the line with stakes and string, digs the post holes, sets the posts in concrete or compacted gravel, hangs rails, attaches boards or panels, then adds gates and hardware. Old fence removal, grading the line and a stain or sealer are separate steps. Whether they are in the price is the first question to ask.
- Layout. Corners and ends first, then the posts in between at an even spacing.
- Posts. The part that decides how long the fence stands up straight.
- Rails and boards or panels. Where the material you picked shows up; see fence materials compared.
- Gates. Each gate has its own posts, hinges and latch, and is usually a separate line.
- Extras. Hauling away the old fence, clearing brush, stain or sealer, and stepping the fence down a slope.
Check these before anyone digs
Three checks come before the first hole, and they do not cost much next to moving a fence later. First, know where your boundary is. A building department that handles fence permits may keep your plot plan or survey on file and can help you read it, and one Connecticut town's building department urges owners and contractors to get that plan before installing. Our guide to finding your property lines covers the records.
Second, read the local height and setback rules. They are set by your city or county and differ a lot, as the examples below show. Third, request the buried-utility marks.
| Place | No building permit needed | Source |
|---|---|---|
| San Francisco | No permit for 3 feet or less at the front, or under about 6 feet at a side or rear line; the two city pages differ on exactly 6 feet, so ask | SF Planning (updated May 10, 2026) and SF DBI |
| Portland, Oregon | Wood fence up to 7 feet; masonry or concrete up to 4 feet. Any fence around a swimming pool needs a permit | Portland Permitting and Development |
Both cities also say that a fence goes on private property, not in the public right of way, and Portland measures height from where the posts enter the ground to the top of the fence, lattice included. A homeowners association can add its own rules on height, material and color on top of the city's, so read those too: HOA rules and your lot.
How deep posts go
The usual rule is to bury at least a third of each post, and never less than 2 feet, according to a treated-wood industry guide. Where the ground freezes, the hole also goes below the local frost line, or the post can heave. Retail and fence-company guides say to look up that depth with your local building office. Local code can ask for a deeper hole than the rule of thumb.
| Item | Common guidance | Who says it |
|---|---|---|
| Post spacing | Typically 5 to 8 feet; follow the maker's spacing for pre-built panels | Retailer installation guide |
| Depth rule of thumb | One third of the post length in the ground, 2 feet at least | Treated wood industry guide |
| Frost line | Set the bottom of the hole below the local frost depth | Retailer and building-office advice |
End, corner and gate posts carry the most load, so crews often set them deeper or in more concrete. Ask which posts get concrete and which get gravel, because it changes both cost and how the fence ages.
How a fence quote is built
Most fence quotes start from a price per linear foot for the fence style, then add lines. The footage comes from the length of the run, so measure it yourself before you call anyone; the fence and deck takeoff turns footage into posts, rails and boards. Compare the lines below on every quote.
Run length and style
Total linear feet, height and board style (solid, spaced, picket, panel). A taller or tighter fence uses more material per foot.
Gates
Count, width and hardware. A double drive gate costs far more than a walk gate, so it should be its own line.
Ground conditions
Slope, rock, roots and tight access slow the crew. Ask whether the price assumes easy digging.
Removal and cleanup
Taking down and hauling away an old fence, and whether holes from old posts are reused.
Permit and survey
Who applies for the permit, who pays the fee and whether a survey or boundary check is included.
Put the quotes side by side with the same footage, gates and extras, then read compare bids side by side. A lower number often means a line is missing, not a better deal.
DIY or hire
A short, low fence on a clearly marked line is a reasonable weekend project if you will wait for the 811 marks and set posts plumb. A long privacy fence is heavy, has to be straight over many posts, and sits on a boundary where a mistake becomes a neighbor dispute. Hiring moves the layout and digging risk to someone insured to take it, but check that first: see contractor licenses and insurance.
Steps to a clean fence project
- Find your line. Pull the plat or survey and mark the corners you can confirm.
- Read the rules. Ask the city or county about height, setbacks and permits, then your HOA if you have one.
- Measure the run. Total feet, number and width of gates, slope and obstacles.
- Request the 811 marks and wait for every utility to respond.
- Get at least two written quotes with the same scope and line items.
- Sign a contract that names the line, height, materials, gates, permit, removal and payment schedule.
Questions homeowners ask
Do I need a permit for a fence?
It depends on the city and the fence. San Francisco, for example, sets different no-permit heights for front and side or rear fences, and Portland, Oregon, uses 7 feet for wood. Ask your building or planning office before you sign.
Can I build a fence right on the property line?
Sometimes, but local setback rules, an easement or your HOA may say otherwise. Confirm the line from your survey first, and talk to the neighbor before you build.
Who calls 811, me or the fence company?
Either can, but check. The Common Ground Alliance advises homeowners to confirm that their contractor will make the request. See the 811 guide.
How many fence posts will I need?
Divide the run by the spacing and add one post, then add posts for corners and gates. The takeoff tool does it for you.
Sources
- Common Ground Alliance: Before You Dig (811)
- City of Portland, Permitting and Development: Fence permits and requirements
- San Francisco Planning: Fences
- San Francisco DBI: Check if your construction project needs a permit
- Town of Granby, Connecticut: Do I need a permit to construct a fence?
- Treated Wood Council: Building a fence (industry guide)
- Home Depot: How to build a fence (retailer guide)
Checked on November 20, 2026. Permit rules are examples from two cities, not a rule for your address. Frost depth and post-depth figures come from industry and retailer guides, not a code; your building office has the binding number.
Next on the lot
-
Lot guide
Find your property lines
Five places to look, why a county parcel map is not a survey, and when to hire a surveyor.
-
Lot guide
Utility locates and the 811 color code
How to request 811 marks, the eight APWA colors, and notice rules in three states.
-
Job
Fence materials compared
Wood, vinyl and chain link: the post, coating and gauge details that make quotes comparable.