Soil Calculator & Raised Bed Fill Guide
Estimate soil, compost, potting mix, cubic feet, cubic yards, liters, and bag counts for raised beds, planters, and garden beds.
How to use the soil calculator for a real garden project
This soil calculator is designed for homeowners, renters, community garden volunteers, landscapers, and DIY builders who need a conservative material estimate before buying bags or scheduling a bulk soil delivery. It answers a practical question: how much soil, compost, or potting mix is required to fill a raised bed, planter, lawn topdressing area, or small garden repair to a chosen depth?
Start by measuring the inside length and width of the space that will actually receive soil. For raised beds, use the interior dimensions after the lumber, blocks, liners, or corner brackets are installed. For a planter box, measure the usable cavity rather than the outside decorative shell. For an irregular area, divide the shape into rectangles, calculate each section separately, and add the totals before ordering.
The required inputs are length, width, soil depth, measurement units, an optional settling buffer, and an optional compost percentage. The outputs are adjusted cubic feet, cubic yards, liters, common bag counts, and a simple volume split between compost and base soil when a percentage is entered. These outputs help compare bagged products, bulk cubic-yard quotes, and small top-up purchases without relying on mental conversion math.
Formula and calculation logic
The core formula is simple: length × width × depth = volume. The calculator converts all measurements to feet, multiplies the three dimensions to get cubic feet, and then applies the selected buffer. For example, an 8 ft by 4 ft raised bed filled to 12 inches is 8 × 4 × 1 = 32 cubic feet before buffer. With a 10% settling allowance, the planning total becomes 35.2 cubic feet.
For cubic yards, adjusted cubic feet are divided by 27 because one cubic yard equals 27 cubic feet. For liters, adjusted cubic feet are multiplied by 28.3168. For bag counts, the adjusted cubic feet are divided by each common bag size and rounded up, because stores sell whole bags and because soil volume can shrink as it settles, becomes wet, or is tamped around roots.
The compost percentage field is only a volume split. A 20% entry on a 35.2 cubic foot project reports about 7.04 cubic feet of compost and 28.16 cubic feet of base soil. It does not claim that 20% is the correct recipe for every crop, pot, climate, or existing soil condition.
Example 1: filling a raised vegetable bed
A gardener has an interior bed size of 8 ft long by 4 ft wide and wants 12 inches of fill. The raw volume is 32 cubic feet. With a 10% buffer, the result is 35.2 cubic feet, or about 1.30 cubic yards. If buying 2 cubic foot bags, the shopping estimate is 18 bags. If using a 20% compost planning split, the rough volume is 7.04 cubic feet compost plus 28.16 cubic feet base soil.
Example 2: topping up two planter boxes
A balcony has two rectangular planters, each 36 inches long, 12 inches wide, and needing 8 inches of fresh potting mix. One planter is 2 cubic feet before buffer, so two planters need 4 cubic feet. Adding a 10% buffer gives 4.4 cubic feet, which rounds to three 2 cubic foot bags. The renter should still leave room below the rim for watering and should check balcony load limits for heavy wet soil.
Example 3: lawn topdressing patch
A small lawn repair area is 10 ft by 6 ft, and the owner wants only 0.5 inches of topdressing. The depth is 0.0417 ft, so the raw volume is about 2.5 cubic feet. With a 15% buffer, the estimate is 2.88 cubic feet, or four 0.75 cubic foot bags. Thin applications are usually safer for turf than burying grass blades, but local turf guidance should be checked for the actual lawn type.
Common mistakes to avoid
- Using outside raised-bed dimensions instead of interior fill dimensions.
- Entering depth in feet when the measurement was intended to be inches.
- Forgetting that bag labels, moisture, compaction, and settling can change the final filled height.
- Buying exactly the raw mathematical volume with no buffer for uneven ground or spills.
- Assuming a compost percentage is a universal growing recipe rather than a planning split.
Frequently asked questions
How many cubic feet are in one cubic yard of soil?
One cubic yard equals 27 cubic feet. Divide adjusted cubic feet by 27 when comparing a bulk delivery quote to bagged soil.
Should I use a settling buffer?
A small buffer is usually practical because loose soil can settle after watering, handling, and light compaction. Many simple projects use 5–15%, while very uneven beds may need more careful measuring.
Can this calculator be used for round pots?
Yes, but round containers need a different approximation: diameter × diameter × depth × 0.785 after converting to one unit. The planter page explains this shortcut. For exact product planning, check the container label or manufacturer volume.
Does the calculator recommend a soil mix?
No. It only estimates volume and can split that volume by a selected compost percentage. Plant type, drainage, existing soil, climate, pH, fertilizer, and local gardening guidance matter.
Why do bag counts round up?
Stores sell whole bags, and small shortages are frustrating once a bed is partly filled. Rounding up also helps cover product variation and settling.
Can I use it for mulch, gravel, or concrete?
The length × width × depth volume idea is similar, but densities, coverage rules, compaction, and safety assumptions differ. Use a material-specific calculator when weight, drainage, structural load, or curing matters.
Is this professional gardening or landscaping advice?
No. It is a browser-side planning tool for rough material estimates. Verify product labels, local extension guidance, drainage, structural limits, and site conditions before buying or filling.
Limitations and safety notes
Soil is heavy, especially when wet. Raised beds on decks, balconies, rooftops, or retaining structures may create structural loads that require professional review. Garden material can also affect drainage, runoff, plant health, and local rules. This website does not provide engineering, agricultural, environmental, food-safety, pest-control, or code compliance advice.