Potting Soil Calculator

Calculate the amount of soil needed for your container.

Choose between three container shapes: rectangular, round, or flower pot (truncated cone).

Last updated: July 9, 2026
Frank Zhao - Creator
CreatorFrank Zhao

Container Shape

Dimensions

More info
cm
More info
cm
More info
cm
More info
L
1Rectangular container
V=L×W×D×Q\text{V} = \text{L} \times \text{W} \times \text{D} \times \text{Q}
2Round container
V=π×(d2)2×D×Q\text{V} = \pi \times \left(\frac{\text{d}}{2}\right)^2 \times \text{D} \times \text{Q}
3Flower pot (truncated cone)
V=112×π×D×Q×(dt2+dtdb+db2)\text{V} = \frac{1}{12} \times \pi \times \text{D} \times \text{Q} \times (\text{d}_t^2 + \text{d}_t \text{d}_b + \text{d}_b^2)
LLength
WWidth
DDepth
dDiameter
dtDiameter top
dbDiameter bottom
QQuantity
VVolume

Introduction / overview

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?

  • Home gardeners filling pots, planters, or raised beds for flowers, herbs, or vegetables
  • Balcony & patio enthusiasts planning a container garden in limited space
  • Nursery and greenhouse operators who need to fill many pots efficiently
  • DIY landscaping enthusiasts building custom planter boxes

How to use — quick start guide

Using the calculator is straightforward. Here is a step-by-step walkthrough so you can get your soil volume in under a minute.

1

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.

2

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.

3

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.

4

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 66.666666...66.666666... liters. With precision set to:

  • 3 → displays as 66.7 L
  • 4 → displays as 66.67 L
  • 6 → displays as 66.6667 L
  • 10 → displays as 66.66666667 L
5

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.

6

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.

Worked example: rectangular raised bed

Let us say you are building a raised bed for vegetables with the following dimensions:

  • Length = 120 cm
  • Width = 60 cm
  • Depth = 25 cm
  • Quantity = 1 bed

The calculator uses the rectangular volume formula:

V=L×W×D×QV = L \times W \times D \times Q

Plugging in the numbers:

V=120×60×25×1V = 120 \times 60 \times 25 \times 1==180, ⁣000 cm3180,\!000\ \text{cm}^3

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.

Real-world examples & use cases

Repotting indoor plants

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.

  • Shape: Round
  • Diameter: 30 cm
  • Depth: 25 cm
  • Quantity: 1
V=π×(15)2×25V = \pi \times (15)^2 \times 25\approx17, ⁣671 cm317,\!671\ \text{cm}^3==17.7 L17.7\ \text{L}

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.

Filling a raised garden bed

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.

  • Shape: Rectangular
  • Length: 240 cm
  • Width: 120 cm
  • Depth: 30 cm
  • Quantity: 1
V=240×120×30V = 240 \times 120 \times 30==864, ⁣000 cm3864,\!000\ \text{cm}^3==864 L864\ \text{L}

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.

Matching soil bag to flower pots

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.

  • Shape: Flower pot (truncated cone)
  • Top diameter: 20 cm
  • Bottom diameter: 14 cm
  • Depth: 18 cm
  • Quantity: 8
V=112π×18×8×(202+20×14+142)V = \frac{1}{12}\pi \times 18 \times 8 \times (20^2 + 20 \times 14 + 14^2)
\approx27, ⁣500 cm327,\!500\ \text{cm}^3==27.5 L27.5\ \text{L}

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.

Common scenarios

Seasonal repotting

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!

Raised bed gardening

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.

Bulk soil ordering

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.

Container herb garden

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.

Mixing custom blends

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.

Reverse planning

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.

Tips & best practices

Understanding the Precision Setting

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

  • Click the gear button to open the Precision Settings popup
  • Drag the slider from 1 to 16 to set the number of significant figures
  • The badge on the button updates to show your current setting

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 9.9849.984 liters:

  • Precision = 49.984 (4 sig figs)
  • Precision = 39.98 (3 sig figs, rounded)
  • Precision = 210 (2 sig figs, rounded up)

⚠️ 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.

Measure twice, calculate once

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.

Account for root ball

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.

Bulk density varies

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.

Use the bidirectional engine

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.

Calculation method & formulas

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.

1

Rectangular

V=L×W×D×QV = L \times W \times D \times Q

VV = Volume

LL = Length

WW = Width

DD = Depth

QQ = Quantity

2

Round (cylinder)

V=π(d2)2×D×QV = \pi \left(\frac{d}{2}\right)^2 \times D \times Q

VV = Volume

dd = Diameter

DD = Depth

QQ = Quantity

3

Flower pot (truncated cone)

V=112πDQ(dt2+dtdb+db2)V = \frac{1}{12} \pi D Q (d_t^2 + d_t d_b + d_b^2)

VV = Volume

dtd_t = Top diameter

dbd_b = Bottom diameter

DD = Depth

QQ = Quantity

Important note: The flower pot formula is equivalent toV=13πDQ(R2+Rr+r2)V = \frac{1}{3} \pi D Q (R^2 + Rr + r^2) whereR=dt/2R = d_t/2 and r=db/2r = d_b/2 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.

Related concepts & background

What is potting soil?

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.

Why volume matters more than weight

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.

Container shape and root health

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.

Frequently asked questions

How do I determine the amount of potting soil I need?

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.

What if my pot is not rectangular, round, or tapered?

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.

Does the calculator account for soil compression?

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.

What is the difference between potting soil and garden soil?

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.

How much soil do I need for a 30 cm round pot?

Assuming the pot is 30 cm in diameter and 25 cm deep, the volume is:

V=π×152×25V = \pi \times 15^2 \times 25\approx17, ⁣671 cm317,\!671\ \text{cm}^3==17.7 liters17.7\ \text{liters}

That is roughly 18 liters, or about 4.7 US gallons. A standard 20 L bag will fill it with a little to spare.

Can I use this calculator for fish tank gravel or sand?

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.

How accurate is this calculator?

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%.

What if my flower pot has a different shape?

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.

Limitations & disclaimers

While the Potting Soil Calculator provides accurate geometric volume calculations, there are a few important limitations to keep in mind:

  • Not a weight calculator. The calculator gives volume only. Soil weight varies significantly with moisture content and composition. To estimate weight, you will need to multiply the volume by the material density.
  • No soil compression factor. The result assumes a perfectly filled container. In reality, soil settles after watering, and you may need 10–20% extra.
  • Idealized container shapes. The calculator assumes perfect geometric shapes (rectangular cuboid, cylinder, truncated cone). Real pots may have rounded corners, curved sides, or decorative features that alter the actual volume.
  • Not a substitute for professional advice. For large-scale landscaping or agricultural projects, consult a professional who can account for soil type, drainage, compaction, and local conditions.

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.

Potting Soil Calculator - Calculate Soil Volume for Containers