Yard & Garden
Dirt Calculator for Topsoil and Fill Dirt
A 12 by 8 ft bed takes 24 cu ft of soil 3 in deep: 0.89 cubic yards, or 32 bags of 0.75 cu ft (Scotts, Miracle-Gro and NIST as of November 2026). Enter your own area below.
- Updated
- Nov 11, 2026
Your dirt
Example garden bed
How this calculator works
- Cubic feet = length (ft) × width (ft) × depth (in) ÷ 12
- Cubic yards = cubic feet ÷ 27
- Bags = cubic feet ÷ the bag size, rounded up
The bags are the sizes of Miracle-Gro Garden Soil All Purpose: 0.75, 1, 1.5 and 2 cu ft. Scotts Premium Topsoil comes in 0.75 cu ft bags. Nothing is added for settling or waste.
Worked example
Say you’re adding 3 in of topsoil to a new garden bed 12 by 8 ft, the most Scotts suggests for a new garden.
- Area: 12 ft × 8 ft = 96 sq ft
- Volume: 96 sq ft × 3 in ÷ 12 = 24 cu ft
- Cubic yards: 24 ÷ 27 = 0.89 cu yd
- 0.75 cu ft bags: 24 ÷ 0.75 = 32 bags
- 1 cu ft bags: 24 ÷ 1 = 24 bags
- 1.5 cu ft bags: 24 ÷ 1.5 = 16 bags
- 2 cu ft bags: 24 ÷ 2 = 12 bags
Result: A 12 by 8 ft bed takes 24 cu ft of soil 3 in deep: 0.89 cubic yards, or 32 bags of 0.75 cu ft.
Topping the bed with mulch? Use our mulch calculator.
For any other fill, our cubic yard calculator gives the volume.
Measuring a raised bed or a planter box in feet and inches? Our cubic footage calculator shows how to measure cubic feet step by step.
Questions about dirt and topsoil
How much will 5 yards of topsoil cover?
5 cubic yards are 135 cu ft of topsoil: about 810 sq ft at 2 in deep, 540 sq ft at 3 in, 405 sq ft at 4 in or 270 sq ft at 6 in. Scotts suggests 1–2 in of topsoil over a lawn and 2–3 in for a new garden.
How much will 3 cubic yards of soil cover?
3 cubic yards are 81 cu ft of soil: about 486 sq ft at 2 in deep, 324 sq ft at 3 in, 243 sq ft at 4 in or 162 sq ft at 6 in. Scotts suggests 1–2 in of topsoil over a lawn and 2–3 in for a new garden.
How many bags of garden soil do I need for 1 cubic yard?
A cubic yard is 27 cubic feet, so it depends on the bag. With the sizes of Miracle-Gro Garden Soil All Purpose: 36 bags of 0.75 cu ft, 27 bags of 1 cu ft, 18 bags of 1.5 cu ft or 14 bags of 2 cu ft.
How to calculate how much fill dirt you need?
Multiply the length and width of the hole in feet by its depth in feet (inches ÷ 12), then divide by 27 for cubic yards. A hole 6 by 4 ft and 18 in deep takes 6 × 4 × 1.5 = 36 cu ft: 1.33 cubic yards.
Where these numbers come from
-
Bag sizes, Miracle-Gro Garden Soil All Purpose 0.75, 1, 1.5 and 2 cu ft
-
Scotts Premium Topsoil bag 0.75 cu ft
-
Topsoil over a lawn, Scotts 1–2 in
-
Topsoil for a new garden, Scotts 2–3 in
-
Cubic feet in a cubic yard, NIST 27
Miracle-Gro and Scotts are trademarks of their owner.
USRemodelCost is not affiliated with or endorsed by ScottsMiracle-Gro.