Fence Panel Calculator

Enter the length of the fence, the gates, the space each panel fills between two posts and the post width. The calculator counts whole panels and posts, gives the on-center post spacing and the size of the last cut panel, and adds post caps, brackets and screws.

This is a material estimate, not an engineering calculation. Consult a qualified professional for structural or code-sensitive decisions.

Example values are filled in. Replace them with your own measurements.

The total length along the fence line, from the outside of the first post to the outside of the last, gates included. Mixed units work: 100 ft or 30 m.

Fence shape

Each gate opening sits between two posts. A double gate is one opening.

The clear width of each gate opening between its two posts.

The space one panel fills between two posts, from the maker’s instructions. UFP’s 6x6 board-on-board panel, for example, needs 67 in inside to inside. For panels screwed to the face of the posts, enter the on-center spacing and a post width of 0.

The actual width of the post along the fence line. Freedom’s privacy fence guide, for example, uses 5 in × 5 in vinyl posts.

Material needed

Fence panels
16
Posts
18
Of which gate posts
2
Post caps
18
Brackets
64
Bracket screws
256
Post spacing on center
72 in (6 ft)
Last panel cut to
57 in (4.75 ft)
  • The run does not divide into whole panels, so one panel is cut down to the width shown. Makers suggest placing the cut panel where it shows least, such as a rear corner.
  • Panels are counted along the whole fence. Each straight stretch between corners, gates and ends is filled on its own, so a fence with several stretches can need one cut panel – and up to one more panel – per stretch. Count each stretch separately for an exact order.
  • Panels, posts and hardware only. Post length, hole depth and concrete depend on your fence height, soil, frost depth and local code – see the fence post and post hole calculators and the maker’s instructions.

Optional. Enter your supplier’s price – we never fill in prices for you.

Estimates only. Actual material requirements may vary – verify manufacturer specifications before you buy.

16 pieces to buy
More options

Usually one per rail at each end – UFP’s 6x6 panel has two rails and comes with 4 mounting brackets. Enter 0 if the panels slide into routed posts.

UFP’s instructions use four screws per bracket. Check the bracket you buy.

How it works

The calculator lays the fence out as post, panel, post, panel along the line, leaves room for each gate and its extra post, and rounds up to whole panels.

Post spacing on center = Panel opening + Post width
Open fence: Panels = ⌈ (Length − Post width − Gates × (Post width + Gate width)) ÷ Spacing ⌉, Posts = Panels + 1 + Gates
Closed fence: Panels = ⌈ (Length − Gates × (Post width + Gate width)) ÷ Spacing ⌉, Posts = Panels + Gates
Post caps = Posts; Brackets = Panels × Brackets per panel; Screws = Brackets × Screws per bracket

⌈ ⌉ means rounding up to a whole panel; the leftover, less one post width, is the width of the last cut panel. The rule “one post per panel and one to complete the fence run” is from UFP’s panel instructions, and the on-center spacing of panel width plus post width from Freedom’s vinyl fence guide. A 100 ft fence with a 4 ft gate, 67 in openings and 5 in posts: (1,200 − 5 − 53) ÷ 72 = 15.86 → 16 panels, 18 posts, the last panel cut to 57 in. Units are converted internally, so feet, inches and meters can be mixed.

Worked example

Inputs

Fence length
100 ft
Fence shape
Open – the fence has two ends
Gates
1
Gate opening width
4 ft
Panel opening
67 in
Post width
5 in
Brackets per panel
4
Screws per bracket
4

Result

Fence panels
16
Posts
18
Of which gate posts
2
Post caps
18
Brackets
64
Bracket screws
256
Post spacing on center
72 in (6 ft)
Last panel cut to
57 in (4.75 ft)

Common mistakes

  • Spacing posts by the nominal panel width. An "8 ft" or "6 ft" panel is rarely that wide – use the opening from the maker’s instructions and add one post width for the on-center spacing.
  • Forgetting the extra post at each gate. A gate opening has a post on both sides, so every gate in a fence line adds one post.
  • Setting all the posts before the panels. Makers have you set one post, hang a panel and set the next, so the opening stays right.
  • Counting brackets per post instead of per panel. Each panel needs its own brackets at both ends of every rail.
  • Measuring the fence from post center to post center. This calculator wants the full length from the outside of the end posts.

Assumptions and limits

  • Posts and panels alternate along the line; an open fence starts and ends with a post, and each gate is an opening between two posts.
  • All panels and gates of one kind are the same width. The last bay takes a cut panel when the length does not divide evenly.
  • Corner posts are shared by the stretches they join, so corners add no posts – but each stretch is rounded to whole panels on its own when you build it.
  • One post cap per post. Bracket and screw counts are what you enter per panel and per bracket; post sizes, depths and footings follow the maker and your local code – this is a quantity estimate, not a structural design.

Frequently asked questions

How many fence panels do I need for 100 feet?

It depends on the real panel opening and post width. With 67 in openings and 5 in posts, posts are 72 in on center, so 100 ft with one 4 ft gate takes 15.9 → 16 panels and 18 posts. Without a gate, 1,195 ÷ 72 = 16.6 → 17 panels and 18 posts.

How many posts do I need for fence panels?

One per panel plus one to finish the run, as UFP’s instructions put it, plus one for each gate. A closed fence that runs all the way round needs one post fewer.

How far apart are posts for 6 ft or 8 ft fence panels?

The panel opening plus one post width, on center. Freedom’s vinyl fence guide says to measure the panel width plus the post width for the center-to-center distance; UFP’s 6x6 panel needs 67 in between posts, so with 5 in posts that is 72 in on center.

How many brackets does a fence panel need?

Usually one at each end of every rail. A two-rail panel takes four brackets, as in UFP’s 6x6 kit; a three-rail panel takes six. Panels that slide into routed posts need none.

Panel fence or picket fence – which calculator should I use?

Use this one for ready-made panels hung between posts. For a fence built picket by picket on rails, the fence picket calculator counts the boards; the fence post calculator counts posts by a maximum spacing.

Sources

Method reviewed November 6, 2026

Privacy choices

Choose whether this site may use analytics cookies to measure which calculators are used. Your calculator inputs are never sent.