Cubic Yard Calculator
Work out cubic yards for soil, fill, mulch or any loose material.
Last updated 2026-11-28 · How we calculate this
Volume Needed
Complete an area and depth to see the volume.
This is a planning estimate based on the measurements you enter. It assumes an even depth across each area and does not account for settling, compaction or moisture beyond the allowance you choose. Confirm bag sizes, bulk prices and delivery rules with your supplier.
Quick Answer
Cubic yards are length × width × depth in feet, divided by 27. A bed 12 ft × 10 ft filled 3 in deep is 12 × 10 × 0.25 = 30 cubic feet, which is 30 ÷ 27 = 1.11 cubic yards.
How to Use This Calculator
Add each part of the job as a named area and choose its shape, then enter one depth for the whole job. The calculator adds the areas, multiplies by the depth and shows the volume in cubic yards and cubic feet, or cubic meters and liters in metric. It works for any loose material sold by volume: dirt, fill, compost, mulch, sand or stone. If you are buying bags, enter the bag size to see how many to buy.
- Split the job into rectangles, circles or triangles that do not overlap.
- Enter each area's measurements, using whatever unit your tape shows.
- Enter the depth you want to fill, and an allowance if you want extra.
- Open "Plan a supplier order" and enter the bag size, and a price if you want a cost.
The Formula
Cubic yards = total area (sq ft) × depth (ft) ÷ 27; Bags = volume ÷ bag size, rounded up
A cubic yard is a cube 3 ft on each side, so it holds 3 × 3 × 3 = 27 cubic feet. The calculator converts every measurement exactly, adds the areas at full precision, multiplies by the depth, applies any allowance once and rounds bags up once at the end. In metric mode 1 m³ is 1,000 L, and 1 cubic yard is 0.7646 m³.
Worked Example
A rectangular bed 12 ft × 10 ft (120 sq ft) and a round tree ring 6 ft across (π × 3² = 28.27 sq ft) make 148.27 sq ft. At 3 in deep that is 148.27 × 0.25 = 37.07 cu ft, or 1.37 cu yd. With a 10% allowance it becomes 40.78 cu ft (1.51 cu yd), which is 21 bags of 2 cu ft.
Known area: a lawn of 500 sq ft topped up 2 in deep needs 500 × 2 ÷ 12 = 83.33 cu ft, which is 3.09 cubic yards.
Metric: a bed 3 m × 2 m at 75 mm deep holds 3 × 2 × 0.075 = 0.45 m³, or 450 L. With 50 L bags that is exactly 9 bags.
Frequently Asked Questions
Sources: NIST Guide to SI, Appendix B (conversion factors)