Fence calculator
Chain Link Fence Calculator
A chain link fence calculator that turns your fence length and post spacing into the post count, the mesh length and the top rail length you need, then helps you plan the terminal posts, concrete, gates and ties. Mesh and rail run the full length, so a short measure leaves a gap in the run. Enter the length and spacing and get the full materials list.
- Free to use
- No sign-up
- Formula and sources shown

Got the number? Save it before it gets lost.
A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.
Posts needed
11
Mesh needed
100 ft
Top rail needed
100 ft
Turn this result into a priced plan
Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.
Formula
Mesh & Top Rail = Fence Length; Posts = ceil(Length ÷ Spacing) + 1
Worked example. A 100 ft chain link fence with posts every 10 ft: 100 ÷ 10 = 10, plus 1 = 11 posts. Mesh and top rail both run the full 100 ft.
Mesh and rail follow the fence length; posts follow the spacing. The mesh and the top rail each run the full fence length, and the posts are the length divided by the spacing, rounded up, plus one. A 100 ft fence with posts every 10 ft needs 11 posts, 100 ft of mesh and 100 ft of top rail. Add the terminal posts and gates from the same length before you order.
Key takeaways
- •Mesh and top rail = fence length. Posts = ceil(length ÷ spacing) + 1 for a straight run.
- •The maximum line post spacing is usually 10 ft. Closer spacing, such as 8 to 9 ft, is used when the run between terminal posts does not divide evenly.
- •Some of the posts are terminal posts at the ends, corners and gates, and the rest are line posts. Terminal posts are heavier and take more concrete.
- •Fabric is sold in rolls, commonly 50 ft long, and in heights such as 4, 5 and 6 ft.
- •Gates need their own posts and hardware, so subtract the gate opening from the run and add them separately.
How to use the chain link fence calculator
- Measure the total fence length in feet along the line, including each corner. Subtract the gate openings.
- Enter the total length.
- Enter the post spacing in feet. Use 10 ft or less for line posts.
- Read the number of posts, the mesh length and the top rail length.
- Count the terminal posts: one at each end, one at each corner, and two for each gate. The rest are line posts.
- Convert the mesh to rolls and the top rail to pieces using the lengths your supplier sells.
- Add concrete with the fence post concrete calculator and gate hardware with the gate planner calculator.
Chain link fence formulas
Posts = ceil[ Fence length ÷ Post spacing ] + 1
Mesh length = Fence length | Top rail length = Fence length
Line posts = Posts − Terminal posts
Mesh rolls = ceil[ Mesh length ÷ Roll length ] | Top rail pieces = ceil[ Length ÷ Piece length ]
Equal spacing = Fence length ÷ ceil[ Fence length ÷ Maximum spacing ]
Top rail pieces are joined with sleeves inside the rail ends, so each piece is slightly longer than the nominal length. Check your supplier's length, often around 10.5 ft.
Chain link fence examples
Example 1: 100 ft fence, posts every 10 ft
- Posts = 100 ÷ 10 + 1 = 11; mesh = 100 ft; top rail = 100 ft
Example 2: 150 ft fence, posts every 10 ft
- Posts = 15 + 1 = 16; mesh and top rail = 150 ft
Example 3: 200 ft fence, posts every 10 ft
- Posts = 20 + 1 = 21; mesh and top rail = 200 ft
Example 4: 85 ft fence, posts every 10 ft
- 85 ÷ 10 = 8.5, rounded up = 9 sections; posts = 10
- Equal spacing = 85 ÷ 9 = 9.4 ft
Example 5: terminal and line posts for Example 1
- Terminal posts = 2 (the two ends); line posts = 11 − 2 = 9
- Concrete at about one 50 lb bag per line post and two per terminal post = 9 + 4 = 13 bags (a common guide figure; check your fence maker)
Example 6: rolls and rail for Example 1
- Mesh at 50 ft per roll = 2 rolls
- Top rail at 10.5 ft per piece = 100 ÷ 10.5 = 9.5, so 10 pieces
Terminal posts and line posts
| Post | Where it goes | Notes |
|---|---|---|
| Terminal (end) post | At each end of the fence | Takes the tension of the mesh; heavier pipe |
| Corner post | At each change of direction | Counts as a terminal post |
| Gate post | On each side of a gate | Counts as a terminal post and carries the gate weight |
| Line post | Between the terminal posts | Lighter; set no more than about 10 ft apart |
In many fence kits, terminal posts stand about 2 in above the fabric height and line posts about 2 in below it, because the top rail sits on top of the line posts. Check your fence maker's chart.
Fabric, top rail and ties
| Item | How to estimate | Notes |
|---|---|---|
| Mesh (fabric) | Fence length ÷ roll length | Rolls are commonly 50 ft; heights such as 4, 5 and 6 ft |
| Top rail | Fence length ÷ piece length | Often 10.5 ft pieces with sleeves |
| Tension bands and brace bands | Per terminal post | One set at each terminal post for the mesh |
| Tension bars | One per terminal post end | Thread through the mesh end |
| Tie wires | About every 24 in on the top rail and 12 in on line posts | Count by the fence height |
| Bottom tension wire | Fence length, optional | Keeps the bottom of the mesh straight |
| Post caps and rail ends | One per post | Fit the post pipe size |
Typical installation guides show these spacings. Follow the guide for your fence kit.
Mesh heights and uses
| Mesh height | Typical use |
|---|---|
| 4 ft | Front yards, gardens, small pets |
| 5 ft | General residential use |
| 6 ft | Backyards, larger dogs, more privacy and security |
| 8 ft or more | Commercial and security fences |
Slats and privacy screens can be added to the mesh for more privacy.
Setting chain link posts
- •Mark the end, corner and gate positions first, then divide the runs between them into equal spaces of 10 ft or less.
- •Dig the holes to the depth and width the fence maker shows. Terminal posts need larger and deeper holes than line posts.
- •Set the terminal posts first, plumb, and let the concrete cure before you pull the mesh tight.
- •Fast-setting concrete is common for fence posts. Many guides use about one 50 lb bag per line post hole and two per terminal post hole. Check the figure for your hole size with the fence post concrete calculator.
- •Stretch the mesh with a come-along or stretcher bar after the terminal posts have cured.
Estimating chain link fence cost
Cost = Mesh + Top rail + Posts + Fittings + Concrete + Gates + Labor
Example only: a 100 ft fence kit with 11 posts, mesh and top rail may cost several hundred dollars before concrete, gates and tools. Compare the price per foot, and ask whether posts, fittings and gates are included.
Troubleshooting common chain link problems
| Problem | Likely cause | What to do |
|---|---|---|
| Sagging mesh | Not stretched tight, or terminal posts moved | Reset and brace the terminal posts, then stretch the mesh again |
| Leaning terminal posts | Not enough concrete or depth | Reset with larger, deeper holes and braces |
| Rust at cuts or scratches | Coating damaged | Touch up the coating, and use galvanized or coated parts |
| Gaps below the mesh | Uneven ground | Use bottom tension wire, or grade the ground first |
| Gate sags | Light gate posts | Use heavier gate posts and a tension brace |
Terms explained
| Term | Meaning |
|---|---|
| Fabric or mesh | The woven wire that forms the fence |
| Terminal post | An end, corner or gate post |
| Line post | A post between the terminal posts |
| Top rail | The pipe along the top of the fence |
| Tension bar | A flat bar that holds the mesh end to a terminal post |
| Tension wire | A wire along the bottom of the mesh |
| Tie wire | A small wire that fastens the mesh to the rail and posts |
| Brace band | A band that holds the rail brace on a terminal post |
Common chain link fence calculator mistakes
- •Leaving out the terminal posts and treating all posts as the same.
- •Forgetting the gate posts, which carry the gate weight.
- •Using a post spacing over 10 ft.
- •Ordering mesh without allowing for the roll length and the corners.
- •Forgetting the tension bands, bars, ties and caps.
- •Pulling the mesh tight before the concrete has cured.
Metric conversions
| From | To |
|---|---|
| 100 feet | 30.48 metres |
| 10 feet | 3.05 metres |
| 6 feet | 1.83 metres |
| 50 lb bag | About 22.7 kg |
Full materials list for a 100 ft chain link fence
A chain link fence is a system of parts that all have to arrive together. The table below lists every part for a straight 100 ft fence, 6 ft tall, with posts every 10 ft and no gates, so you can check your order against it before you buy.
| Part | Quantity | Notes |
|---|---|---|
| Mesh (fabric), 6 ft × 50 ft rolls | 2 | 100 ft of mesh, cut from two rolls |
| Top rail, 1-3/8 in | 10 pieces | 10.5 ft pieces, joined with sleeves |
| Line posts, 1-5/8 in | 9 | Set every 10 ft; 24 in deep is a common guide |
| Terminal posts, 2-3/8 in | 2 | Ends; 30 to 36 in deep in concrete |
| Tension bars | 2 | One per mesh end at each terminal post |
| Tension bands | 6 to 8 | 3 to 4 per tension bar on a 6 ft fence |
| Brace bands | 2 | One per terminal post for the rail brace |
| Rail ends | 2 | Cap the top rail at each terminal post |
| Post caps | 11 | One per post |
| Tie wires | About 100 | Every 24 in on the rail, about every 12 in on line posts |
| Bottom tension wire | 100 ft | Optional; keeps the bottom straight |
| Concrete, 50 lb bags | About 13 | 1 bag per line post, 2 per terminal post |
Quantities are for a straight run with no corners or gates. Add a terminal post at each corner and two at each gate, and add the gate hardware separately.
Mesh gauge and coating compared
Mesh gauge is the wire thickness, and smaller numbers mean thicker wire. A 9-gauge mesh is thicker and stronger than an 11-gauge mesh, and an 11.5-gauge economy mesh is thinner still. For a backyard fence with children or large dogs, 9-gauge or 11-gauge is the usual choice. The diamond size is usually 2 in. Coatings matter too: galvanized mesh is zinc-coated steel and is the standard, while vinyl-coated mesh adds a color layer over the galvanized wire and resists rust a little longer.
Check the coating on cut ends and scratches. A cut wire exposes bare steel, and rust starts there first. Touch up any damage with a cold-galvanizing spray or a coating made for the fence, and use galvanized or coated fittings so the whole system matches.
| Mesh | Wire | Best for |
|---|---|---|
| 11.5-gauge economy | Thinnest | Light use, temporary fences |
| 11-gauge residential | Medium | Most backyards, pets |
| 9-gauge heavy | Thickest | Large dogs, security, commercial |
| Vinyl-coated (over 9 or 11 gauge) | Same wire, color coat | Color match, extra rust protection |
| Aluminized | Medium | Drier climates, bright finish |
Gauge and coating are listed on the roll label. Confirm the height and the roll length, commonly 50 ft, before you order.
Chain link vs wood privacy fence
Chain link and wood solve different problems. Chain link is cheaper per foot, needs almost no upkeep, and lasts for decades, but it gives no privacy on its own. A wood privacy fence blocks the view and the wind, but it costs more, needs stain or paint, and the boards warp and rot over time.
| Chain link | Wood privacy | |
|---|---|---|
| Privacy | None, unless slats are added | Full |
| Upkeep | Very little | Stain every 2 to 3 years |
| Life | Decades, no rot | 15 to 20 years is common with care |
| Wind | Lets wind through | Catches wind, needs strong posts |
| Cost per foot | Lower | Higher |
| Best for | Dogs, pools, boundaries | Privacy, backyards, noise |
Privacy slats or screens can be woven into chain link mesh for partial privacy. Use the fence stain calculator to work out the stain for a wood fence.
Planning a chain link fence with corners and a gate
Example 1: 150 ft run with a 4 ft gate, posts every 10 ft
- Fence line after the gate = 150 − 4 = 146 ft
- Sections = 146 ÷ 10 = 14.6, rounded up = 15; posts = 16
- Terminal posts = 2 ends + 2 gate posts = 4; line posts = 12
- Mesh = 146 ft, so 3 rolls of 50 ft; top rail = 146 ft, so 14 pieces of 10.5 ft
- Concrete = 12 × 1 + 4 × 2 = 20 bags of 50 lb (a common guide figure)
Example 2: a square yard, 100 ft × 100 ft, closed loop, no gate
- Total length = 400 ft; mesh = 8 rolls of 50 ft
- Top rail = 400 ft, so 39 pieces of 10.5 ft
- Sections = 400 ÷ 10 = 40; a closed loop needs 40 posts
- Terminal posts = 4 corners; line posts = 36
- Concrete = 36 × 1 + 4 × 2 = 44 bags of 50 lb (a common guide figure)
Measure each straight side on its own and round each side up to whole sections, because a corner post belongs to two sides at once. Subtract every gate opening from the run before you count the mesh, and add the gate posts and hardware with the gate planner calculator. Save the full list to your project in the BuildCova app so the mesh rolls, rail pieces and post counts are in one place at the supplier.
Related fence tools
- •Fence calculator for wood and vinyl fences
- •Fence post concrete calculator for post holes
- •Gate planner calculator for gates and hardware
- •Fence panel calculator for pre-made panels
- •Concrete bag calculator for other concrete bags
Assumptions
- •10 ft is a common maximum post spacing for residential chain link. Commercial or taller fences often use closer spacing.
- •Counts posts for a straight run with the end posts included. It does not separate terminal posts from line posts or add gate posts, corners, bracing or other hardware.
- •Mesh and top rail are assumed to run the full fence length, with no allowance for laps, gate openings or waste.
Sources✓ Verified
- Chain link fence installation guides (fence maker and retailer instructions). Line posts no more than 10 ft apart, terminal post spacing, tie wire spacing, top rail and fabric dimensions.
- ASTM F567, Standard Practice for Installation of Chain-Link Fence. Installation practice for chain link fences.
- ASTM F668 and ASTM F1043. Specifications for coated chain-link fabric and for strength and coatings of steel framework.
- Your local building department and homeowner association. Fence height, location and permit rules.
Formula reviewed November 2026.
The mesh and the top rail each equal the fence length, and the posts are the length divided by the spacing, rounded up, plus one. A 100 ft fence with posts every 10 ft needs 100 ft of mesh, 100 ft of top rail and 11 posts.
11 posts at 10 ft spacing, including the two end posts. Add corner and gate posts if the fence has them.
No more than about 10 ft between line posts. If a run does not divide evenly, space the posts equally at a smaller distance, such as 9.4 ft for an 85 ft run.
21 posts at 10 ft spacing. For a fence with corners or gates, add the extra terminal posts.
A terminal post is an end, corner or gate post. It takes the tension of the stretched mesh and carries the gate, so it is heavier and set deeper than a line post.
One at each end, one at each corner, and two for each gate. A straight 100 ft fence with no gate has 2, and the other 9 posts are line posts.
Many installation guides use about one 50 lb bag per line post and two per terminal post. A 100 ft fence with 2 terminal and 9 line posts would use about 13 bags. Check your fence maker.
Commonly 50 ft rolls, in heights such as 4, 5 and 6 ft. Order enough rolls to cover the length with a little to spare.
Often about 10.5 ft pieces with sleeves, so that each piece reaches a little past one post. Check your supplier's length.
Terminal posts are usually about 2 in taller than the mesh and line posts about 2 in shorter, plus the part in the ground. Check your fence maker's chart.
It depends on the post, the soil and the frost line. Many guides show roughly 18 to 30 in, with terminal posts deeper. Follow your fence maker and local practice.
Most residential chain link fences use a top rail for strength and a neat top. Some use a top tension wire instead. Check what your fence system calls for.
Measure each straight side, add them for the total length, and count a terminal post at each corner. Divide each side into equal spaces of 10 ft or less.
Often you must follow local rules on height and placement, and some areas require a permit. Check with your local building department and any homeowner association.
3 rolls of 50 ft. 150 ÷ 50 = 3 exactly. For a run that does not divide evenly, round up to the next whole roll.
16 posts at 10 ft spacing, including the two end posts. Add a terminal post at each corner and two at each gate.
Converters to use with the Chain Link Fence Calculator
Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.
Slope & MeasurementFeet & Inches to Decimal Feet Converter5 ft 6 in = 5.5 ft, both directions.
Lumber, Deck & FenceLinear Feet to Square Feet ConverterLength to area (or back) for any width.
Lumber, Deck & FenceNominal vs Actual Lumber Size ConverterA 2×4 is really 1½ × 3½ in, every size.More fence calculators
FenceFence Stain CalculatorA fence stain calculator that turns your fence length, height and number of coats into the gallons of stain or sealer you need for one face of the fence, then helps you adjust for both sides and your product's coverage. Rough wood drinks stain, so a guess leaves the last section bare. Enter the fence size and coats and get the gallon count.
FenceGate PlannerA gate planner calculator that turns the number of gates and the width of each into the gate posts, hinges and latch sets you need, then helps you plan the opening, the posts and the sag prevention. A gate with the wrong hardware sags on its hinges within months. Enter the gate count and widths and get the hardware list before you build.
FenceWood Fence CalculatorThis wood fence calculator turns your fence length and height into an exact shopping list: pickets, rails, posts, concrete bags and the materials cost. It counts by the real picket width, so a 1x6 counts as 5.5 in, not 6 in, and it compares cedar, pine and redwood before you commit to a species. Order what the job needs, nothing you will return.
FencePicket Fence CalculatorThis picket fence calculator counts exactly how many pickets your fence needs. Enter the fence length, the picket width and the gap between pickets, and get the picket count with waste, plus posts, rails, concrete bags and the materials cost, with pointed, flat-top and dog-ear picket options and a gap comparison built in. The gap is what most people forget, and it changes the count.
FencePrivacy Fence CalculatorThis privacy fence calculator works out exactly what a 6 ft solid privacy fence needs. Enter the fence length and height, choose wood or vinyl, and get the picket or panel count, posts, rails, concrete bags and materials cost, with a wood-vs-vinyl comparison and height options from 4 ft to 8 ft built in. Solid means no gaps, so every board counts and the wind load is real.
FenceHome Depot Fence CalculatorThis Home Depot fence calculator counts a panel fence the way the store sells it. Enter your fence length and this independent estimator counts the 6x8 ft panels, posts and bags of concrete you need, prices them at typical big-box panel prices, and shows an installed cost range, so you can walk into the store with a shopping list instead of a guess. It is not affiliated with or endorsed by The Home Depot.Was this calculator helpful?
Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.