PileQuote Material Calculator

A gravel, mulch, and topsoil calculator for your own website

A free WordPress plugin for landscape supply yards, garden centers, and contractors. Your customer enters the size of the area and the depth. The calculator tells them how much to order, rounded the way you sell it, with your price and a button to your quote page. Fewer "how many yards do I need?" phone calls, and customers who arrive knowing what to order.

Get the free plugin on WordPress.org Try it in a real WordPress site

The second button opens a throwaway WordPress site in your browser (WordPress Playground) with the plugin installed and example prices set, so you can change the settings and see the result before you install anything. Nothing is saved.

Live demo

This is the plugin's own output, copied from a WordPress site running it, with example prices: #57 crushed stone at $38 a ton, sold in half tons with a 1-ton minimum; mulch $34, topsoil $30, and concrete $165 a cubic yard. Pick #57 crushed stone and try 24 by 10 feet at 4 inches.

Enter the size of the area and the depth.

Request a quote

One material on its own page

Use [pilequote material="gravel"] or pick a material in the block, for a product page.

#57 crushed stone

Enter the size of the area and the depth.

Request a quote

On your site, the "Request a quote" button goes to the page you choose: your contact form, quote form, or shop. You set its text too, or leave it out.

What you can set

MaterialsMulch, topsoil, compost, gravel or crushed stone, sand, and concrete. Rename them ("#57 crushed stone"), hide the ones you don't sell.
Sold byCubic yards or tons (cubic meters or tonnes in metric). Enter your own weight per yard for each stone, since it varies.
PriceYour price per unit. Leave it blank to show quantities only.
RoundingRound orders up to 1/4, 1/2, or whole units, the way your loader or truck sells it.
Minimum orderFor example 1 ton. Small jobs show the minimum and say so.
Extra for wasteA percentage added to every result for settling and uneven ground (0 shows the exact amount).
Concrete bagsOptionally shows how many 40, 60, and 80 lb bags of premix the same pour takes.
Quote buttonLink and button text, or no button.

The plugin's settings page in the WordPress dashboard: materials with price, rounding step, and minimum order

Install

  1. In your WordPress dashboard, go to Plugins > Add New Plugin, search for PileQuote, click Install Now, then Activate. (It's the same plugin as the WordPress.org listing, and updates arrive in your dashboard.)
  2. Go to Settings > Material Calculator: tick the materials you sell, and add your prices, rounding, minimum, and quote page.
  3. Add the Material Calculator block to a page, or paste [pilequote] into one.

Needs WordPress 6.3 or newer and PHP 7.4 or newer. Tested on WordPress 7.1 with PHP 8.3. Can't search the directory from your dashboard? Download the zip and use Plugins > Add New Plugin > Upload Plugin instead (don't unzip it).

How the numbers are worked out

Worked example from the demo: 24 × 10 ft at 4 in is 80 cubic feet, or 2.96 cubic yards. At 1.35 tons a yard that is 4 tons, which is already a multiple of half a ton, so the order is 4 tons at $38 = $152. A 3 × 3 ft patch at 2 in is about 0.075 tons, so it shows the 1-ton minimum: $38.

The math is tested against hand-worked examples and thousands of random cases checked against the engine behind the free DIY Project Calculators site.

Questions

Does it send my customers' data anywhere?

No. The math runs in the visitor's browser. The plugin sends nothing, sets no cookies, adds no tracking, and loads its small script and stylesheet only on pages that show a calculator. (This demo page counts visits with GoatCounter, which uses no cookies; the plugin itself doesn't.)

Will it match my theme?

It uses your theme's fonts, colors, and button style, with a few lines of layout CSS. The screenshots and demo use a plain theme.

Does it cost anything?

No. It's free and open source (GPLv2 or later). A paid add-on with a quote form that emails you the customer's numbers may come later if enough yards use the free version.

My site isn't WordPress, or I need something different.

We can build it for you: a calculator with your materials, prices, and rules (delivery fees, bulk bags, several products), as one block of code you paste into WordPress or your site builder's HTML/embed block. Custom calculator, $90, delivered in 5 days. We never need your site login, and if we can't build what we agreed, you get a full refund. Wix, Squarespace, and Shopify limit custom code on some plans; the product page has our email address, so you can ask first.

Free feature requests and bug reports for the plugin go in a GitHub issue.

Where is the source code?

github.com/Jesse-py/landscape-material-calculator: the plugin folder, the Playground blueprint, and this page.