If you sell fencing through WooCommerce — panels, posts, or fencing to enclose a garden or plot — you’ll know the pricing problem is different from most products: customers think in terms of “how much fencing do I need to go around my garden,” not a fixed quantity.
Sell fencing with no way to calculate that, and customers are left doing awkward maths themselves before they can get an accurate price — measuring boundary lengths, working out totals, and often getting it wrong. Standard WooCommerce has no concept of “price this based on the size of my plot.”
This guide covers how to price fencing by the size of the area it encloses, and how to set it up in WooCommerce.
Why fencing pricing needs more than a quantity field
A useful fencing calculator needs to handle:
- Plot dimensions, not a fixed quantity — customers know their garden or plot’s length and width, not how many “units” of fencing that translates to
- Total boundary length calculated automatically — from those two dimensions, so the customer doesn’t have to work out the total perimeter themselves
- A live, updating price as dimensions are entered, so customers see the cost before committing to checkout
- Server-side recalculation at checkout, so the price a customer sees can’t be manipulated in the browser before the order is placed
The formula
For a rectangular plot or garden boundary, the calculation is:
Perimeter = 2 × (Length + Width)
Price = Perimeter × price per metre
For example: a garden measuring 8m × 6m, at £18 per metre of fencing:
Perimeter = 2 × (8 + 6) = 28m
Price = 28 × £18 = £504
This models the total length of fencing needed to enclose a rectangular boundary from just two measurements — something a plain “enter a quantity” field can’t do, since it assumes the customer already knows the total length they need.
Setting this up in WooCommerce
The usual paths stores take:
1. Manual quoting. Works at low volume, but needs a person to calculate every order before checkout — no true self-serve purchase.
2. Generic quantity-input plugins. These let a customer enter a number, but they don’t calculate a perimeter from plot dimensions — the customer has to already know the total length required, which most don’t.
3. A purpose-built dimension-based pricing calculator, with a fencing preset that sets the perimeter calculation up for you.
This is what Woo State Calculator is built for — it includes a one-click Fencing preset that calculates total perimeter from the length and width a customer enters, updating the price live with no page reload. It’s built on State.js, so there’s no jQuery and nothing sitting between the customer typing and the price updating.
What to check before you buy any calculator plugin for fencing
- Does it calculate total length from two dimensions, or does the customer still need to know the total themselves?
- Does the price update live as dimensions are entered?
- Is the price recalculated server-side at checkout?
- Can you set a minimum charge, so small plots don’t undercut your minimum order value?
FAQ
Does this account for gates, or panel and post counts separately? Not automatically — the calculation gives you total boundary length and price from plot dimensions, rather than breaking that down into individual panels, posts, or gate deductions. If your pricing model depends on panel/post counts specifically, factor that into how you set your price per metre.
What if my plot isn’t a simple rectangle? For irregular boundaries, most stores ask customers to enter the total perimeter length directly (measured on site), rather than trying to model the shape inside WooCommerce.
Can I use this for a straight fence run rather than a fully enclosed plot? The underlying calculation is a perimeter formula, so it suits enclosing a rectangular area best; for a single straight run, a length-based (rather than perimeter-based) setup would be a better fit.
Selling fencing, trellis, or another dimension-priced product through WooCommerce? Woo State Calculator includes a ready-made Fencing preset to get set up in minutes.


Leave a Reply