Calculate the amount of soil needed for your container.
Choose between three container shapes: rectangular, round, or flower pot (truncated cone).

The Potting Soil Calculator helps you figure out exactly how much soil, compost, or growing medium you need for any container — whether it is a simple rectangular planter box, a round tub, or a tapered flower pot. Instead of guessing and ending up with either a half-empty bag or a messy overflow, you get a precise volume tailored to your container shape and dimensions.
This tool is especially handy if you have multiple identical containers. Set the quantity, and the calculator multiplies the volume for you — no repetitive math needed. It supports both metric and imperial units, and lets you view the result in liters, gallons, cubic feet, and many other volume units so you can compare directly with what is written on the soil bag.
✅ Whether you are a weekend gardener repotting succulents or a landscaping enthusiast planning a raised bed, this calculator saves time, reduces waste, and helps you buy the right amount of soil — every single time.
Who will find this useful?
Using the calculator is straightforward. Here is a step-by-step walkthrough so you can get your soil volume in under a minute.
Choose your container shape
Select from Rectangular, Round, orFlower pot (truncated cone) using the shape selector at the top of the calculator. Only the relevant fields will be shown.
Enter your container dimensions
Fill in the length, width, depth (for rectangular), diameter and depth (for round), or top diameter, bottom diameter, and depth (for flower pot). You can switch between millimeters, centimeters, meters, inches, feet, and yards using the dropdown on the right side of each input.
Set the quantity
If you have more than one identical container, enter the number here. The calculator automatically multiplies the volume. The default is 1.
Adjust the precision (optional)
On the top-right corner of the calculator, you will see a gear icon with a number badge (default 10). Click it to open the Precision Settings panel. Drag the slider between 1 and 16 to control how many significant figures are shown in the results. For everyday gardening, 3–4 significant figures are usually enough; for precise work, go higher.
Example: Precision in action
Suppose your result is liters. With precision set to:
Choose your volume unit
The result is shown in the volume unit dropdown next to the "Volume of soil needed" field. You can switch between liters, gallons (US and UK), cubic feet, cubic yards, quarts, pints, cups, and more — whatever matches your soil bag.
Read your result (or change your input)
The "Volume of soil needed" field updates automatically. Thanks to the smart bidirectional engine, you can also type a target volume and the calculator will figure out the missing dimension — perfect for when you know how much soil you have and need to choose the right pot size.
Let us say you are building a raised bed for vegetables with the following dimensions:
The calculator uses the rectangular volume formula:
Plugging in the numbers:
That is 180 liters (or about 47.5 US gallons). Most bagged potting soil comes in 20–50 L bags, so you would need roughly 4–9 bagsdepending on the bag size.
You just bought a beautiful Monstera deliciosa and a new round pot. The pot has a diameter of 30 cm and a depth of 25 cm. You want to fill it to about 80% capacity because the root ball will take up some space.
Since the root ball takes about 20% of the volume, you actually need about 14 Lof potting soil. A standard 20 L bag will leave you with some spare for another small plant.
You are building a raised bed that measures 240 cm by 120 cm, with a depth of 30 cm. You want to mix topsoil and compost in a 2:1 ratio.
That is 864 liters total. With a 2:1 mix, you will need about 576 L of topsoiland 288 L of compost. In cubic feet (common for US bulk suppliers), that is roughly 30.5 ft³ total — enough to order a small bulk delivery.
You have 8 identical flower pots (truncated cone shape) for your balcony herb garden. Each pot has a top diameter of 20 cm, a bottom diameter of 14 cm, and a depth of 18 cm.
You need about 27.5 liters for all 8 pots. A typical 25 L bag of potting soil will be just enough, but buying a 40 L bag gives you extra for future plantings.
Many indoor plants need repotting every 1–2 years. Use the calculator to determine how much fresh potting mix each new pot size requires. Great for batch-repotting day!
Planning a vegetable or flower raised bed? Enter your planter dimensions to figure out how much soil you need, then visit our Soil Calculator to estimate weight and cost.
Nurseries and landscape suppliers sell soil by the liter, cubic foot, or cubic yard. Convert your soil volume to the supplier's unit to order the right amount — no overpaying or running short.
Growing basil, mint, rosemary, or thyme on a sunny windowsill? Small decorative pots vary wildly in size. Use the calculator to check if one bag of potting mix covers all your herbs, or if you need a second bag.
Many gardeners mix their own soil (e.g., 3 parts potting mix, 1 part perlite, 1 part compost). Calculate the total volume first, then use the ratio to determine each ingredient's quantity.
Have a leftover bag of soil and not sure what size pot to use? Enter the volume you have as the "Volume of soil needed" and an approximate depth — the calculator will tell you the maximum dimensions your leftover soil can fill.
The precision control is the gear button with a number badge in the top-right corner of the calculator. It lets you decide how many significant figures (not decimal places) your results should show.
How it works
Significant figures vs decimal places
Significant figures count from the first non-zero digit, regardless of where the decimal point is. For example, with a result of liters:
⚠️ Low precision warning
Setting precision too low (1–2) can cause rounding errors that accumulate in multi-step calculations. For intermediate results, use higher precision (≥6), then adjust to your desired output precision at the end.
Use the inside dimensions of your pot (not the outside) for the most accurate result. For tapered pots, measure the inside diameter at both the top and bottom rim, not including the pot wall thickness.
When repotting an existing plant, the root ball already takes up space. Reduce the calculated volume by 15–25% to estimate how much fresh soil you actually need to add.
A 40 L bag of moist potting soil can weigh 15–20 kg, while dry soil weighs less. Volume is a more reliable measure than weight for planning purposes. If you need weight estimates, check our Soil Calculator for density-based conversions.
Not sure what size pot to buy? Type the volume of soil you already have into the "Volume of soil needed" field, enter a reasonable depth, and the calculator will work backward to tell you what length, width, or diameter your container should be.
The calculator uses three different volume formulas depending on the container shape you select. All formulas assume the container is filled to the brim — adjust downward if you only plan to fill partially.
= Volume
= Length
= Width
= Depth
= Quantity
= Volume
= Diameter
= Depth
= Quantity
= Volume
= Top diameter
= Bottom diameter
= Depth
= Quantity
Important note: The flower pot formula is equivalent to where and are the top and bottom radii. The calculator uses the diameter-based form for convenience so you can enter the measurements directly without halving them first.
Potting soil (also called potting mix or container mix) is a specially formulated growing medium designed for use in containers. Unlike garden soil, it is lightweight, drains well, and is usually sterile — meaning it contains no weed seeds or pathogens. Most commercial mixes contain peat moss or coco coir, perlite or vermiculite, and compost.
Soil moisture content can change its weight dramatically — a bag of wet potting mix can weigh twice as much as the same volume when dry. This is why potting soil is sold by volume (liters or quarts) rather than by weight. Always use the volume measurement from our calculator when comparing with bag labels.
The shape of your pot affects not only soil volume but also root development. Tall, narrow pots may cause roots to circle at the bottom, while wider shallower containers encourage lateral root growth. The tapered flower pot shape (truncated cone) is a popular compromise — it provides good drainage while giving roots room to spread near the top.
Looking for more?
If you need to calculate the weight or cost of your soil, or want to compare different soil types, check out our Soil Calculator — it extends the volume calculation with density and price estimates for bulk topsoil, compost, and mulch.
The amount of potting soil you need is determined using the volume of your container. Measure the inside dimensions (length, width, depth for rectangular boxes; diameter and depth for round pots; top and bottom diameter plus depth for tapered flower pots). The calculator multiplies these dimensions using the appropriate geometric formula, then multiplies by the number of identical pots you have.
Keep in mind that the calculator gives you the volume for a full container. If you already have a plant with roots inside, reduce the result by about 20% to account for the root ball.
For uncommon shapes (hexagonal pots, oval planters, self-watering containers with internal reservoirs), you can approximate by choosing the closest standard shape. For example, an oval planter can be approximated as a rectangle (use the average of the long and short widths). A hexagonal pot can be approximated as a round pot with a diameter equal to the distance across the flats.
For oddly shaped containers, fill them with water first, then measure the water volume — that is the most accurate method.
No — the calculator gives you the geometric volume of the empty container. In practice, potting soil compresses when you fill the pot, especially if you tap it down or water it. Most bagged potting soils settle by 10–20% after watering, so consider buying 10–20% more than the calculated volume, or plan to top off after the first watering.
Potting soil (potting mix) is designed for containers — it is lightweight, drains well, and is sterilized. Garden soil (topsoil) is heavier, contains natural organic matter, and is used for in-ground planting. Never use garden soil in pots, as it compacts too much and drowns the roots.
If you are filling a raised bed, a 50/50 mix of topsoil and compost is usually better than pure potting soil, which would be too expensive for large volumes.
Assuming the pot is 30 cm in diameter and 25 cm deep, the volume is:
That is roughly 18 liters, or about 4.7 US gallons. A standard 20 L bag will fill it with a little to spare.
Absolutely. The calculator works for any granular or loose material that fills a container — potting soil, compost, gravel, sand, pebbles, mulch, or even water. Just select the appropriate container shape, enter the dimensions, and you will get the volume in any unit you need. Note that for aquarium gravel, you usually only need a 2–5 cm deep layer, so enter that as the depth.
The calculator is mathematically exact — it uses standard geometric volume formulas with up to 16 significant figures of precision. The accuracy of your result depends entirely on the accuracy of your measurements. For best results, measure the insidedimensions of your container in at least two places and use the average. A 1 cm error in depth on a 30 cm pot changes the volume by about 3%.
Many flower pots are slightly tapered but not perfect truncated cones — or they may have curved sides. For standard nursery pots, the truncated cone formula is a very good approximation. For pots with significant curves (like urn-shaped or bulbous pots), the geometric formula may overestimate or underestimate. In those cases, the "fill with water and measure" method is the most reliable.
While the Potting Soil Calculator provides accurate geometric volume calculations, there are a few important limitations to keep in mind:
Disclaimer
This calculator is provided for informational and planning purposes only. Results are estimates based on geometric formulas. Always verify your actual soil requirements before making purchases, especially for large or critical projects. The authors assume no responsibility for over- or under-ordering of materials.
Convert a docker run command into a docker-compose.yml file. Runs locally in your browser with copy and download.
Calculate your cat's Feline Body Mass Index (FBMI) using rib cage circumference and lower back leg length to help assess if your cat is at a healthy weight.
Calculate your dog's Body Mass Index (BMI) based on breed, height, and weight to determine if they are healthy, overweight, or underweight.
The cat pregnancy calculator will compute the due date of your favorite feline.
The dog life expectancy calculator estimates the age of your dog based on their breed and gives their average life expectancy.
Convert your dog's age to human years based on breed and size.