One project, one engine
The four calculators are views of a single project: a set of points, the straight segments between them, a fence type, hole dimensions and a list of prices. One calculation engine turns that project into lengths, posts, materials and costs. Because every page reads the same result, a post count or footage cannot differ from one tool to the next.
Units and precision
- Lengths are stored as whole micrometers (1 ft = 304,800 µm, 1 in = 25,400 µm). Feet and inches are converted when you type them and when results are shown, never in between.
- Displayed lengths are rounded to the nearest 1/8 in or 0.01 ft. Calculations always use the unrounded value.
- Money is stored as whole US cents. Each line total is rounded to the cent (halves round up) and totals are sums of those rounded lines.
- Priced quantities in feet are rounded to 0.01 ft before they are multiplied by a price, so a printed quantity times its printed price equals the printed line total.
- Volumes are in cubic feet, shown to two or three decimals.
Layout and lengths
A layout is a set of points joined by straight segments. Each segment is either solid fence or a gate opening. Its length is the straight-line distance between its two points.
gross length = all segments, including gate openings solid fence = fence segments only gate opening = gate segments only
Fence materials, fabric, rail and fence labor are based on solid fence. Gate openings are never charged as fence.
Connections are explicit
- Two runs are connected only if they end at the same point. That point is one post.
- Segments that cross or touch without a shared point are calculated as separate lines, and a warning is shown.
- Two separate points that sit very close together (under 1 in) are reported, never merged automatically.
- A layout with a zero-length segment, two segments between the same pair of points, two points at exactly the same position, or two gates sharing a post is rejected with an error and no estimate is produced.
Gates
A gate is entered as its distance along a run and the distance between its two posts, centre to centre. That measurement is not the gate’s nominal leaf width and not the clear opening: hinges, latches and the posts themselves take up room, and the allowance differs by product. The planner does not convert between them. Use the post-setting dimension from your gate manufacturer.
A gate must fit inside one straight run. It cannot extend past the end of a run or round a corner, and it cannot touch another gate.
Post spacing and post count
For each solid segment between two fixed posts:
bays = ceiling(length ÷ maximum spacing), at least 1 actual spacing = length ÷ bays line posts = bays − 1 total posts = unique fixed posts + line posts on every solid segment
Positions are stored as whole micrometers, so a run drawn at an angle can measure a fraction of a micrometer more than the length you typed. To stop that rounding from adding a bay, a run must exceed an exact multiple of the spacing by more than 2 micrometers (about 0.00008 in) before another bay is counted.
A gate opening has two fixed gate posts and nothing between them. A closed shape gets no extra closing post. The maximum spacing is the value you enter; the 8 ft starting value is illustrative and is not a code or manufacturer requirement.
Post types, in order of precedence
- Gate – a post at either side of a gate opening.
- End – a point with only one segment.
- Junction (review) – three or more segments meet. Counted once and flagged for an installer’s review.
- Corner – two segments meet and the line bends by more than the corner tolerance (5° by default).
- Line – everything else.
Equal-bay spacing describes site-built and chain-link fences. Fixed-width panels (common in vinyl) cannot simply be shortened to fit; the planner reports linear footage for them and does not claim a panel purchase count.
Concrete
concrete depth = hole depth − gravel depth hole volume = π/4 × hole diameter² × concrete depth ÷ 1,728 post displacement = π/4 × post diameter² × min(embedded length, concrete depth) ÷ 1,728 net per hole = hole volume − post displacement (displacement optional) net total = Σ net per hole × number of holes with allowance = net total × (1 + waste %) bags = ceiling(with allowance ÷ yield per bag)
- Dimensions are in inches and volumes in cubic feet (1 cu ft = 1,728 cu in).
- Holes are assumed to be vertical cylinders and posts round.
- Gravel is not concrete. Its volume is reported separately.
- Bags are rounded up once per concrete product, not per hole and not per post type.
- Inputs are rejected if the hole is not wider than the post, the hole is not deeper than the gravel, or the bag yield is zero.
- Hole depth and diameter are always user inputs. Nothing is inferred from fence height, frost depth or location.
Reference bag yields
| Bag | Approximate yield |
|---|---|
| 40 lb | 0.3 cu ft |
| 50 lb | 0.375 cu ft |
| 60 lb | 0.45 cu ft |
| 80 lb | 0.6 cu ft |
| 90 lb | 0.675 cu ft |
Source: QUIKRETE® Concrete Mix (No. 1101) product data sheet, data sheet marked “Revised October 2022”, checked on 15 November 2026. The manufacturer lists the 90 lb bag as regionally available. Data sheets are revised from time to time, so check the bag you buy. Any other product’s yield must be entered by you.
Chain-link quantities
net fabric = solid fence footage
fabric order = net fabric × (1 + waste %)
rolls = ceiling(fabric order ÷ roll length) (splicing allowed)
= Σ ceiling(span × (1 + waste %) ÷ roll length) (no splicing)
rail pieces for a span = max(1, ceiling((span − overlap) ÷ (piece − overlap)))
top-rail pieces = Σ over uninterrupted spans- A “span” is one solid segment between two fixed posts. Rail pieces are rounded per span; off-cuts are not reused across spans.
- With splicing allowed, the roll count is a theoretical minimum. Without it, the count can be higher than you need, and the result says so.
- The overlap must be shorter than a rail piece.
- Terminal posts are end, corner and gate posts. Line posts are the rest. Junction posts are listed separately for review.
- Fittings, tension bars, bands, ties, bracing, tension wire and gate hardware are not calculated. They appear as lines you fill in from a supplier quote.
Wood and vinyl
For wood and vinyl the planner calculates lengths, posts, gates and concrete. It does not count rails, pickets, boards or panels: those depend on product dimensions, style and cutting rules that have not been validated here. Price them per foot of solid fence, or add your own lines.
Costs
line total = round(quantity × unit price) subtotal = Σ priced line totals tax = round(Σ taxable priced line totals × tax rate) contingency = round(subtotal × contingency %) total = subtotal + tax + contingency
- Every unit price is entered by you. The site holds no price data and makes no regional or ZIP-code assumptions.
- A line with no price is “Not provided”. It is counted as missing, not as $0.
- While any included line is missing a price or quantity, only a partial priced subtotal is shown. The project total, tax and contingency are withheld.
- Lines you switch off are listed on the estimate as excluded.
- Tax applies only to lines you mark taxable, at the rate you enter (0% to start). Contingency is a reserve you choose, calculated on the subtotal before tax and not taxed.
- Negative prices are rejected.
What the tools do not do
- Structural design, wind or load checks, or any statement that a fence is strong enough.
- Building code, permit, setback, HOA or property-line advice.
- Frost-depth or footing recommendations.
- Sloped, stepped or racked fence calculations, and retaining walls.
- Local, current or “typical” prices for materials or labor.
- Complete chain-link fittings schedules or wood and vinyl cut lists.
Testing
The calculation engine is checked automatically against a fixed set of reference cases covering straight runs, shared corners, closed shapes, gates, concrete, chain-link quantities, pricing and invalid inputs. Passing those cases shows the arithmetic is consistent. It does not show that an assumption is appropriate for your site.
Sources
- QUIKRETE® Concrete Mix (No. 1101) product data sheet – bag yields for the reference concrete product.
That data sheet is the only external document these calculations rely on. The layout, spacing, chain-link and pricing rules are this site’s own and are written out above so you can check them.
Found a mistake? Tell us.