Vinyl fencing is sold as complete panel kits, typically 6 or 8 ft wide, that slot into routed posts. Each run needs one more post than panels, gates need their own posts, and every post is set in concrete. Corners and ends use corner or end posts; line posts take panels on both sides.
How to use the Vinyl Fence Calculator
- Total fence length
- Panel width
- Number of gates
- Gate width
- Concrete bags per post
- Price per panel
- Price per post (with cap)
- Price per gate
- Price per bag of concrete
Results update as you type, and every field accepts the units shown in its menu.
How it works
Enter the total fence length, panel width, the number and width of gates, bags of concrete per post and prices. The calculator subtracts the gates, rounds up the panels, counts posts and caps, and totals the materials.
Inputs explained
| Field | What to enter |
|---|---|
| Total fence length | Units: ft, m, in, yd, cm |
| Panel width | Choose one: 6 ft, 8 ft, 1.8 m, 2.4 m |
| Number of gates | A number |
| Gate width | Units: ft, m, in, yd, cm |
| Concrete bags per post | A number |
| Price per panel | Units: /piece |
| Price per post (with cap) | Units: /piece |
| Price per gate | Units: /piece |
| Price per bag of concrete | Units: /piece |
What each result means
- Panels = ceil(max([Total fence length] – [Number of gates]×[Gate width], 0)÷[Panel width] – 0.000001)
- Posts and caps = [Panels] + 1 + [Number of gates]
- Bags of concrete = [Posts and caps]×[Concrete bags per post]
- Total material cost = [Panels]×[Price per panel] + [Posts and caps]×[Price per post (with cap)] + [Number of gates]×[Price per gate] + [Bags of concrete]×[Price per bag of concrete]
- Cost per foot = [Total material cost]÷[Total fence length]
Example values
How the main result changes when Total fence length changes and everything else stays at the example values above:
| Total fence length (ft) | Panels |
|---|---|
| 75 | 12 |
| 112.5 | 19 |
| 150 | 25 |
| 187.5 | 31 |
| 225 | 37 |
| 300 | 50 |
Formula
Panels = ceil((fence length − gates × gate width) ÷ panel width)
Posts = panels + 1 + gates
Concrete = posts × bags per post
Worked example
Inputs: Total fence length: 150 ft; Panel width: 6 ft; Number of gates: 1; Gate width: 4 ft; Concrete bags per post: 2; Price per panel: $120 /piece; Price per post (with cap): $45 /piece; Price per gate: $250 /piece; Price per bag of concrete: $6.5 /piece.
Results: Panels = 25; Posts and caps = 27; Bags of concrete = 54; Total material cost = $4,816.00; Cost per foot = $32.11 /ft.
Frequently asked questions
How many posts do I need for a vinyl fence?
One more than the number of panels in each straight run, plus an extra post for every gate and corner.
How deep should vinyl fence posts be?
About one-third of the post length (2–3 ft for a 6 ft fence), and below the frost line in cold climates.
Can I cut vinyl fence panels?
Yes, with a fine-tooth blade; you will need to re-rout or bracket the cut end.