Dirt Calculator

Calculate exactly how much dirt, topsoil, or fill dirt you need in cubic yards, cubic feet, and tons — plus bags needed and estimated cost — based on your area’s size, shape, and depth.

Dirt Calculator

Bed shape

Results

Area

0 sq ft

Volume

0 cu ft

Cubic yards

0 yd³

Estimated weight

0 tons

Weight is an estimate — actual density varies by moisture content and compaction. 1 cubic yard of average topsoil weighs roughly 1 to 1.3 tons.

What is a dirt calculator?

Dirt Calculator

This dirt calculator helps you figure out exactly how much dirt, topsoil, fill dirt, or garden soil you need for any project, from a small flower bed to a full backyard grading job. Instead of guessing or over-ordering, enter the size and depth of your area and the calculator instantly converts that into cubic yards, cubic feet, estimated weight in tons, the number of bags required, and a rough cost estimate.

It works as a combined yards of dirt calculator, cubic yard of dirt calculator, and dirt weight calculator in one tool, so you don’t need to jump between three different pages or run the math by hand. Whether you’re filling a raised bed, leveling a yard, backfilling a foundation, or topping off a lawn, this tool covers the calculation from start to finish.

It’s part of the full set of landscaping tools available on our mulch calculator that estimates total cost homepage, so if your project also needs mulch or topsoil, you can size those up in the same place.

How this dirt calculator works

The calculator follows the same formula contractors and landscapers use to estimate dirt, fill, and topsoil orders. Here’s the process, step by step:

  1. Choose your bed or area shape. Pick a rectangle, circle, or triangle to match the space you’re filling—a rectangular garden bed, a circular tree ring, or an irregular triangular corner.
  2. Enter your measurements. Type in the length and width (or diameter, or base and height) in feet, inches, or meters. The calculator converts everything to a common unit automatically, so you can mix and match without doing your own conversions.
  3. Set your depth. This is how thick a layer of dirt you want to add. A typical topsoil layer is 2–4 inches, while fill dirt for grading or leveling can go much deeper.
  4. Pick your material. Topsoil, fill dirt, garden soil blend, sand, and gravel all have different densities, so the calculator adjusts the weight estimate depending on which one you select.
  5. Read your results instantly. As soon as you type, the calculator recalculates area, volume, weight, bag count, and cost—no submit button needed.

Under the hood, the math is straightforward:

  • Area = length × width (rectangle), π × radius² (circle), or ½ × base × height (triangle)
  • Cubic feet = area × depth (converted to feet)
  • Cubic yards = cubic feet ÷ 27
  • Tons = cubic yards × average material density

This is the exact same formula used behind a mulch calculator or topsoil calculator, just applied to dirt and fill materials with their own density values.

What this dirt calculator's results actually show you

Once you enter your measurements, the calculator returns four key numbers:

  • Area (sq ft): the total surface area you’re covering. Useful for comparing against supplier quotes that price by square footage.
  • Volume (cu ft and cubic yards): how much material you need to fill that space at your chosen depth. Cubic yards is the standard unit most bulk suppliers sell by, so this is usually the number you’ll give them.
  • Estimated weight (tons): how heavy that volume will be once delivered, based on the material you selected. This matters for delivery trucks, trailer weight limits, and knowing whether your driveway or yard can handle the load.
  • Bags needed: if you’re buying bagged dirt or soil instead of a bulk delivery, this converts your cubic yardage into a bag count for common bag sizes (0.5 to 3 cubic feet).
  • Estimated cost: a running total based on price per yard or price per bag, plus any delivery fee, so you know roughly what to budget before you call a supplier.

Yards of dirt calculator: worked example

Cubic yards is the unit almost every bulk supplier prices by, so this section walks through exactly how the yards-of-dirt calculator arrives at that number.

Example: say you’re filling a 10 ft × 10 ft garden bed at a 3-inch depth.

  1. Area = 10 ft × 10 ft = 100 sq ft
  2. Depth in feet = 3 in ÷ 12 = 0.25 ft
  3. Cubic feet = 100 sq ft × 0.25 ft = 25 cu ft
  4. Cubic yards = 25 cu ft ÷ 27 = about 0.93 yd³

So for that bed, you’d order roughly 1 cubic yard of dirt from your supplier, rounding up slightly to avoid coming up short.

The same yards-of-dirt calculator logic applies no matter the size of the project—a driveway, a 10-yard grading job, or a small planter all use the identical area × depth ÷ 27 formula. Only the numbers you plug in change. If your area isn’t a simple rectangle, use the circle or triangle option in the tool above, and the calculator will still return your total in cubic yards automatically.

Dirt removal calculator: How much are you hauling out?

This tool works as a dirt removal calculator just as well as a fill calculator — the formula doesn’t change, only the direction the dirt is moving.

  • Digging a hole, trench, or footing? Enter the length, width, and depth of the excavation into the calculator above, and the cubic yard result tells you how much dirt you’ll need to haul away.
  • Removing an old raised bed, pad, or fill pile? Same math: area × depth ÷ 27 = cubic yards for removal.
  • One thing to plan for: excavated soil typically “swells” 15–25% once it’s dug up and loosened, so a hole measuring 1 cubic yard in the ground may fill closer to 1.2–1.25 cubic yards once it’s in a truck or dumpster. Budget hauling capacity accordingly.

Dirt pad calculator for new construction

If you’re a contractor or DIYer sizing up a dirt estimator for new construction — a shed pad, garage pad, driveway base, or house pad — here’s how to use the tool above for that:

  1. Select the rectangle shape and enter the pad’s length and width.
  2. Set your depth. Most compacted fill pads run 6–12 inches; engineered structural pads for larger buildings often go deeper — check your local building code or engineer’s spec.
  3. Choose “Fill dirt / compacted soil” as the material, since pads use denser, compactable fill rather than loose topsoil.
  4. Read off cubic yards and estimated tons to give your supplier an accurate order.

This gives you a fast dirt pad calculator figure without waiting on a formal excavation quote.

Black dirt calculator

Black dirt” is a regional name (common in the Midwest and Northeast) for dark, nutrient-rich topsoil used for lawns, gardens, and general grading. There are no separate settings for it—just use the Topsoil material option in the calculator above. Black dirt and topsoil share a similar density, roughly 1 to 1.3 tons per cubic yard, so your volume, weight, and cost estimates will come out accurate either way.

Common dirt calculations this tool handles

  • How much dirt is in a yard — 1 cubic yard of dirt equals 27 cubic feet.
  • Cubic yard of dirt calculator for square or rectangular areas.
  • Dirt weight calculator to estimate tons per cubic yard by material type.
  • Fill dirt calculator for backfilling, grading, or leveling projects.
  • How many bags of dirt or soil you need for a raised bed or planter.
  • Cost estimate for bulk dirt delivery versus bagged soil from a garden center.

Quick reference — cubic yards by depth (per 100 sq ft):

DepthCubic yards needed
1 inch0.31 yd³
2 inches0.62 yd³
3 inches0.93 yd³
4 inches1.23 yd³
6 inches1.85 yd³
12 inches (1 ft)3.7 yd³

Frequently asked questions

How much dirt is in a cubic yard?

One cubic yard of dirt equals 27 cubic feet. That’s the volume of a cube measuring 3 feet on each side, and it’s the standard unit most bulk suppliers use for pricing and delivery.

A cubic yard is 3 feet long, 3 feet wide, and 3 feet deep. In practical terms, one cubic yard of loose topsoil covers about 100 square feet at a 3-inch depth, or roughly 300 square feet at a 1-inch depth.

It depends on the material and moisture content, but as a general rule, 1 cubic yard of topsoil weighs roughly 1 to 1.3 tons. Fill dirt and compacted soil run slightly heavier, while sand and gravel are denser still. This calculator adjusts the weight estimate automatically based on the material you select.

Multiply the length by the width of your area to get square footage, then multiply by your desired depth (converted to feet) to get cubic feet. Divide by 27 to convert to cubic yards. This calculator does that conversion for you automatically once you enter your dimensions.

It depends on the bag size. A standard 0.75 cubic foot bag means you’ll need about 36 bags to equal 1 cubic yard. Larger 2 or 3 cubic foot bags need far fewer bags for the same volume. Use the bags tab in this calculator to get an exact count for the bag size you’re buying.

Topsoil is nutrient-rich soil meant for planting, lawns, and gardens. Fill dirt is typically subsoil with little organic matter, used for grading, leveling, and backfilling where plant growth isn’t the goal. Fill dirt is usually cheaper and denser than topsoil.

Bulk (by the cubic yard) is almost always cheaper per unit for anything over about 1–2 cubic yards, but it typically requires delivery and space to dump the pile. Bagged dirt costs more per cubic yard but is easier to transport and store for small projects.

Prices vary by region, material, and supplier, but bulk topsoil and fill dirt commonly range from $15 to $50 per cubic yard before delivery. Use the cost tab in this calculator with your local supplier’s price to get an accurate total.

Break the area into simpler shapes—rectangles, circles, or triangles—calculate each one separately, then add the volumes together. This calculator supports all three shapes individually so you can total them up for irregular spaces.

Dirt is measured by volume, not weight, when you’re placing an order—almost always in cubic yards for bulk/truckload delivery or cubic feet for small or bagged amounts. Suppliers calculate volume as length × width × depth, then divide cubic feet by 27 to get cubic yards. Weight in tons is a secondary number, used mainly for delivery truck limits and driveway load capacity.

Measure your pad’s full footprint (length × width), then multiply by your required compacted fill depth—typically 6 to 12 inches for sheds and small structures, more for engineered pads. Use the rectangle option above with “Fill dirt / compacted soil” selected to get an accurate cubic yard and tonnage figure.

Yes. The same area × depth ÷ 27 formula applies whether you’re filling a space or calculating how much dirt to remove and haul away. Enter the dimensions of the hole, trench, or area you’re excavating, and remember to add 15–25% for soil swell once it’s dug up.

Not really—”black dirt” and “topsoil” refer to essentially the same material in most regions: dark, organic-rich soil used for lawns and gardens. Use the topsoil setting in the calculator above for accurate black dirt estimates.

They’re two ways of asking the same question. A “coverage calculator” usually starts from area and depth to find volume (how much dirt to order), while an “amount calculator” starts from a target volume and works backward. This tool handles both directions — enter your area and depth to get volume, or use the bags/cost tabs to work from a known cubic yard amount.

Whatever your project size, this dirt calculator is built to give you an accurate, no-hassle estimate before you order.

A mulch calculator estimates the amount of mulch needed for landscaping projects quickly and accurately.

Quick Links
Get In Touch

Street 7171 W Irving Park Rd, Chicago, Illinois, 60634, United States

Email: info@mulchcalculatoronline.com

Disclaimer

The results provided by this mulch calculator are for estimation purposes only. Calculations are based on the measurements and depth you enter and are intended as a general guide to help you plan your project. Actual material needs may vary depending on settling, waste, irregular bed shapes, and the specific mulch product you purchase. We recommend adding 10–15% to your estimated total to account for variations. Always consult your local supplier for product-specific coverage rates before placing a final order. We are not responsible for over-purchasing, under-purchasing, or any costs incurred based on estimates generated by this tool.

© All Rights Reserved.