HomeExpertly
www.homeexpertly.com

Rectangle Fence Perimeter Calculator

Size a fence for a rectangular yard. Enter the length and width, pick the post spacing and the number and width of gates, and get the perimeter, enclosed area, fence length needed, sections (panels), posts and rails, with an optional cost — plus by-spacing and by-length tables and a downloadable PDF.

US units (feet). Perimeter = 2 × (length + width); fence length removes the gate openings. Sections = fence length ÷ post spacing (rounded up), and posts = sections + gates, so the exact count depends on where corners and gates fall. Panels, concrete, caps, fasteners, slope and waste are not fully accounted for. Check property lines, setbacks, easements, utility locates (call 811) and local permits before building.
1 Yard size
ft
ft
Perimeter = 2 × (length + width). Enclosed area = length × width.
2 Posts & gates
6 ft
sturdy
8 ft
typical
10 ft
chain-link
gates
ft
Posts = sections + gates (a closed loop with no gates needs one post per section; each gate adds one).
3 Rails & cost (optional)
/ section
$ / ft
Cost = fence length × price per foot. Posts, gates, concrete, caps and hardware are extra — add them to your price or quote.
Fence perimeter
— feet
Enter the length and width, then click Calculate
Fence length
—
ft, gates removed
Posts
—
incl. corners & gates
Sections
—
panels / bays
Materials list
—
Enter the length and width
A quick materials summary for the fence line, from your yard size, post spacing and gates.
Fence breakdown
Length—
Width—
Perimeter—
Enclosed area—
Gates—
Total gate width—
Fence length—
Post spacing—
Sections (panels)—
Posts—
Rails per section—
Total rails—
Estimated cost—
Result summary
Perimeter —
Sections —
Posts —
Fence length —
Total rails —
Enclosed area —
By post spacing (this perimeter)
SpacingSectionsPostsRails
Enter a yard size to compare
By length (this width & spacing)
LengthPerimeterFence lengthPosts
Enter a yard size to compare
Visualizations
Posts by post spacing