How to Calculate Cubic Yards of Dirt

Use our comprehensive calculator to determine the exact amount of dirt or soil you need for your project.

Cubic Yards of Dirt Calculator

Choose the unit for your length, width, and depth measurements.
Enter the length of the area in feet. Length must be a positive number.
Enter the width of the area in feet. Width must be a positive number.
Enter the desired depth of dirt in feet. Depth must be a positive number.

Calculation Results

0.00 Cubic Yards
Volume in Cubic Feet: 0.00
Volume in Cubic Meters: 0.00
Volume in Cubic Inches: 0.00

Formula Used: (Length × Width × Depth) ÷ 27. This formula assumes your measurements are in feet, converting the resulting cubic feet into cubic yards. If you use other units, the calculator first converts them to feet internally.

Visualizing Dirt Volume by Depth (for 10' x 10' area)

This chart illustrates how the required cubic yards of dirt change with varying depths for a fixed 10' x 10' area. Adjust the depth in the calculator to see real-time updates.

What is Cubic Yards of Dirt?

When you're planning a landscaping project, filling a raised garden bed, or estimating for an excavation, understanding "how to calculate cubic yards of dirt" is fundamental. A cubic yard is a standard unit of volume, representing a cube that measures one yard (or three feet) on each side. It's the most common unit used by suppliers and contractors for bulk materials like soil, sand, gravel, and mulch.

This calculator is designed for anyone needing to accurately measure soil volume: homeowners tackling DIY projects, professional landscapers, construction workers, and garden enthusiasts. Knowing your exact cubic yardage helps prevent over-ordering (wasting money and creating excess material) or under-ordering (leading to project delays and additional delivery fees).

A common misunderstanding is confusing linear feet, square feet, and cubic feet/yards. Linear feet measure a single dimension (length), square feet measure a flat area (length × width), while cubic yards measure a three-dimensional volume (length × width × depth). Our area calculator can help with 2D measurements, but for dirt, you need 3D volume.

How to Calculate Cubic Yards of Dirt: Formula and Explanation

The calculation for cubic yards of dirt is straightforward once you have your three primary dimensions: length, width, and depth. The basic principle is to find the total volume in cubic feet and then convert that into cubic yards.

The formula for a rectangular area is:

Volume (Cubic Feet) = Length (feet) × Width (feet) × Depth (feet)

Once you have the volume in cubic feet, you convert it to cubic yards:

Cubic Yards = Volume (Cubic Feet) ÷ 27

This is because there are 27 cubic feet in one cubic yard (3 feet × 3 feet × 3 feet = 27 cubic feet). Our calculator automates this process for you, handling various input units.

Variables for Calculating Cubic Yards of Dirt

Key Variables for Dirt Volume Calculation
Variable Meaning Unit (Inferred) Typical Range
Length The longest dimension of the area to be filled or excavated. Feet, Inches, Meters, Yards 5 - 1000+ units
Width The shorter dimension of the area to be filled or excavated. Feet, Inches, Meters, Yards 5 - 500+ units
Depth The desired height or thickness of the dirt layer. Feet, Inches, Meters, Yards 0.25 - 10+ units
Cubic Yards The total volume of dirt required. Cubic Yards 0.5 - 1000+ cubic yards

Practical Examples: Calculating Cubic Yards of Dirt

Example 1: Filling a Raised Garden Bed

Imagine you have a raised garden bed that is 8 feet long, 4 feet wide, and you want to fill it with 1.5 feet of topsoil.

  • Inputs:
    • Length: 8 feet
    • Width: 4 feet
    • Depth: 1.5 feet
    • Unit: Feet
  • Calculation:
    1. Volume in Cubic Feet = 8 ft × 4 ft × 1.5 ft = 48 cubic feet
    2. Cubic Yards = 48 cubic feet ÷ 27 = 1.777... cubic yards
  • Result: You would need approximately 1.78 cubic yards of topsoil. Most suppliers round up, so you might order 2 cubic yards to be safe and account for compaction.

Example 2: Estimating Dirt for a Small Trench

You're digging a trench for a new drainage pipe that is 20 meters long, 0.4 meters wide, and 0.6 meters deep. You need to backfill it with fill dirt.

  • Inputs:
    • Length: 20 meters
    • Width: 0.4 meters
    • Depth: 0.6 meters
    • Unit: Meters
  • Calculation (using our calculator's internal conversion):
    1. The calculator converts meters to feet:
      • Length: 20 m × 3.28084 ft/m = 65.6168 ft
      • Width: 0.4 m × 3.28084 ft/m = 1.312336 ft
      • Depth: 0.6 m × 3.28084 ft/m = 1.968504 ft
    2. Volume in Cubic Feet = 65.6168 ft × 1.312336 ft × 1.968504 ft ≈ 169.76 cubic feet
    3. Cubic Yards = 169.76 cubic feet ÷ 27 ≈ 6.287 cubic yards
  • Result: You would need approximately 6.29 cubic yards of fill dirt.

How to Use This Cubic Yards of Dirt Calculator

Our cubic yards of dirt calculator is designed for ease of use and accuracy. Follow these simple steps:

  1. Select Correct Units: Start by choosing the measurement unit (Feet, Inches, Meters, or Yards) that you used to measure your project area. This is crucial for accurate calculations.
  2. Enter Dimensions: Input the Length, Width, and Depth of the area you wish to calculate for. Ensure these measurements are consistent with the unit you selected in step 1.
  3. Review Helper Text: Each input field has helper text that updates based on your unit selection, guiding you on what to enter.
  4. Instant Calculation: As you type or change values, the calculator will automatically update the "Total Cubic Yards" and intermediate results in real-time.
  5. Interpret Results: The primary result, highlighted in green, shows the total cubic yards of dirt needed. Below that, you'll find intermediate volumes in cubic feet, cubic meters, and cubic inches for additional context.
  6. Copy Results: Use the "Copy Results" button to quickly grab the calculated values and assumptions for your records or to share with a supplier.
  7. Reset: If you want to start a new calculation, click the "Reset" button to clear all fields and set them back to intelligent default values.

Key Factors That Affect Cubic Yards of Dirt

While calculating the basic volume is straightforward, several factors can influence the actual amount of dirt you need or move:

  • Soil Compaction and Settlement: Freshly delivered dirt, especially topsoil or fill dirt, will settle and compact over time, reducing its volume. It's often recommended to order an extra 10-20% to account for this. Our soil compaction guide offers more details.
  • Material Type: Different types of dirt (e.g., topsoil, fill dirt, sand, gravel) have varying densities and compaction rates. While the volume calculation remains the same, the weight per cubic yard will differ significantly. See our material density table below.
  • Uneven Terrain: If your area isn't perfectly flat, you'll need to average the depth measurements across various points to get a more accurate estimate. For complex shapes, consider breaking the area into smaller, simpler sections.
  • Waste and Spillage: During transport and spreading, some material can be lost due to spillage, wind, or adherence to tools. A small buffer (e.g., 5%) can help cover this.
  • Project Type (Excavation vs. Filling): For excavation, the removed dirt often "fluffs up" (becomes less dense) and takes up more space than its original in-ground volume. For filling, you're usually adding material that will compact.
  • Slope and Grade Changes: If your project involves creating slopes or changing the grade, the calculation becomes more complex than a simple rectangular prism. You may need to average depths or consider specialized calculations for sloped volumes.

Common Material Densities per Cubic Yard

Approximate Weights of Common Materials per Cubic Yard
Material Type Approximate Weight per Cubic Yard (lbs) Approximate Weight per Cubic Yard (kg)
Topsoil (Loose, Dry) 1,800 - 2,200 815 - 1,000
Fill Dirt (Compact) 2,400 - 3,000 1,090 - 1,360
Sand (Dry) 2,500 - 2,700 1,135 - 1,225
Gravel 2,700 - 3,000 1,225 - 1,360
Mulch (Wood) 400 - 800 180 - 360

Note: These are approximations. Actual weights can vary based on moisture content, particle size, and compaction.

Frequently Asked Questions About Cubic Yards of Dirt

Q: Why do I divide by 27 when calculating cubic yards of dirt?

A: You divide by 27 because there are 27 cubic feet in one cubic yard. A cubic yard is a cube with sides of 1 yard. Since 1 yard equals 3 feet, a cubic yard is 3 feet × 3 feet × 3 feet, which equals 27 cubic feet. This conversion is essential to get your final volume in the standard unit for bulk dirt orders.

Q: Can I use different units for length, width, and depth (e.g., feet for length, inches for width)?

A: Our calculator handles this by allowing you to select a single input unit (feet, inches, meters, or yards) for all three dimensions. If your measurements are in mixed units, you should convert them all to your chosen unit before entering them into the calculator for consistency and accuracy. For example, convert 6 inches to 0.5 feet before entering if you selected feet as your primary unit.

Q: Does this cubic yards of dirt calculator account for compaction?

A: No, this calculator provides the theoretical volume of dirt needed based on your dimensions. It does not automatically account for compaction or settlement. As a general rule, it's wise to add an extra 10-20% to your calculated cubic yards of dirt to ensure you have enough material after it settles. For more details on this, refer to our guide on soil compaction.

Q: How much does a cubic yard of dirt weigh?

A: The weight of a cubic yard of dirt varies significantly depending on the type of soil, its moisture content, and compaction. Loose, dry topsoil might weigh around 1,800-2,200 lbs (815-1,000 kg) per cubic yard, while dense fill dirt can weigh 2,400-3,000 lbs (1,090-1,360 kg) or more. Refer to the table above for approximate weights of common materials per cubic yard.

Q: What's the difference between cubic feet and cubic yards?

A: Both cubic feet and cubic yards are units of volume. A cubic foot is a cube measuring 1 foot on each side. A cubic yard is a much larger cube measuring 1 yard (or 3 feet) on each side. Therefore, 1 cubic yard contains 27 cubic feet (3x3x3). Cubic yards are typically used for larger landscaping or construction projects for ordering bulk materials.

Q: How much dirt do I need for a 10x10 area?

A: A 10x10 area refers to 100 square feet. To calculate the cubic yards of dirt needed, you also need to know the desired depth. For example, if you want a 10x10 area covered with 1 foot of dirt, you'd need (10 ft × 10 ft × 1 ft) ÷ 27 = 3.70 cubic yards of dirt.

Q: What if my area isn't a perfect rectangle?

A: For irregular shapes, you can often approximate by breaking the area into smaller, more manageable rectangles or squares. Calculate the cubic yards of dirt for each section and then sum them up. For very complex shapes, you might need to use more advanced geometric calculations or consult with a professional.

Q: How do I measure the depth if the ground is uneven?

A: To measure depth on uneven ground, take several depth measurements across the area and calculate the average. For instance, if you measure depths of 6 inches, 8 inches, and 10 inches, the average depth would be (6+8+10)/3 = 8 inches. Use this average depth in the calculator for a more realistic estimate of the cubic yards of dirt required.

Related Tools and Internal Resources

Beyond learning how to calculate cubic yards of dirt, exploring related tools and guides can further assist with your project planning:

🔗 Related Calculators