Fence Calculator
Calculate fence materials including posts, rails, pickets, panels, concrete, and hardware for privacy, picket, post & rail, and panel fence styles.
What Is a Fence Calculator?
A Fence Calculator helps you estimate all the materials needed for a fencing project: posts, rails, pickets or panels, concrete, and fasteners. By entering your fence dimensions, style, and spacing preferences, you instantly get a complete material list for privacy, picket, post and rail, or panel fence styles.
Key Formulas
Posts needed depend on the total fence length and post spacing. The number of sections is the effective length divided by post spacing, rounded up:
$$\text{Sections} = \lceil \frac{\text{Fence Length} - (\text{Gates} \times \text{Gate Width})}{\text{Post Spacing}} \rceil$$
$$\text{Posts} = \text{Sections} + 1 + (2 \times \text{Gates})$$
$$\text{Boards} = \lceil \frac{\text{Post Spacing}}{\text{Board Width} + \text{Gap}} \times \text{Sections} \rceil$$
How to Use
- Select fence style: Choose from Privacy (solid boards, no gaps), Picket (spaced boards), Post and Rail (horizontal rails only), or Panel (pre-made sections).
- Choose measurement system: Imperial (ft, in) or Metric (m, cm).
- Enter fence dimensions: Total length, height, and post spacing (typically 6-8 ft apart).
- Configure rails: Enter the number of horizontal rails (2-3 is typical for most fences).
- Set board details (if applicable): For privacy or picket fences, enter board width and the gap between boards.
- Specify panel width (if applicable): Standard panels are 6 or 8 feet wide.
- Add gates: Enter the number of gates and their width to account for extra posts and materials.
Fence Styles Explained
- Privacy Fence: Vertical boards installed side-by-side with no gaps. Standard height is 6 ft with boards typically 5.5 or 3.5 inches wide. Requires 3 horizontal rails for support.
- Picket Fence: Classic style with pointed or flat-topped boards and gaps between them. Usually 3-4 ft tall with 1.5-2 inch spacing between pickets.
- Post and Rail Fence: Also called split rail or ranch fencing. Uses only horizontal rails between posts. Common for property boundaries and rural areas.
- Panel Fence: Pre-assembled fence panels (usually 6 or 8 ft wide) installed between posts. Faster to install than board-by-board construction.
Post Installation Guidelines
- Depth: Set posts at least one-third of the total post length in the ground (minimum 2 ft for a 6-ft fence).
- Hole diameter: Approximately 3 times the post width (10-12 inches for standard 4x4 posts).
- Gravel base: Add 4-6 inches of gravel at the bottom of each hole for drainage.
- Concrete: Use quick-setting concrete for stability. The calculator estimates 2-4 bags per post depending on depth.
Related Tools
For other construction and DIY projects, try our Concrete Calculator, Decking Calculator, Stair Calculator, and Roofing Calculator.
Frequently Asked Questions
How many fence posts do I need?
The number of fence posts depends on your total fence length and post spacing. Divide your fence length by the post spacing, round up, and add 1 for the starting post. For example, a 100-ft fence with 8-ft spacing needs 14 posts. Each gate adds 2 extra posts.
How deep should fence posts be set?
Fence posts should be buried at least one-third of their total length. For a 6-ft fence, posts should be 8 ft long with 2 ft buried. In frost-prone areas, posts should extend below the frost line (typically 36-48 inches). Always add 4-6 inches of gravel at the bottom for drainage.
How many bags of concrete per fence post?
For a standard 4x4 post in a 10-inch diameter hole that is 2 ft deep, you will need approximately 3 bags of 50-lb quick-setting concrete per post. Deeper holes or larger posts require more concrete. The calculator automatically estimates concrete based on post depth.
What is the standard spacing between fence pickets?
For privacy fences, pickets are installed with no gap for complete coverage. Picket fences typically have 1.5-2 inch gaps for the classic look. Shadow box fences alternate pickets on each side with about 1 inch overlap.
How much does it cost to build a fence?
Materials for a wood privacy fence typically cost $12-25 per linear foot. A 100-ft fence might cost $1,500-2,500 in materials. Labor adds $15-35 per linear foot if hiring a contractor. Panel fences are generally less expensive, while cedar and composite materials cost more.
Should I use pressure-treated lumber for fence posts?
Yes, always use pressure-treated lumber for fence posts as they are in direct contact with the ground and moisture. For the visible fence boards, you can choose from pressure-treated, cedar, redwood, or composite materials depending on your budget and aesthetic preferences.