← All garden guides

How to Calculate Yards of Dirt for Any Project Shape?

Learn how to calculate yards of dirt for rectangles, circles & irregular areas. Get the formulas, worked examples & practical ordering tips inside.

Key Steps

  1. Step 1: Measure the project's dimensions in feet.
  2. Step 2: Determine the area using the correct shape formula.
  3. Step 3: Convert soil depth from inches to feet by dividing inches by 12.
  4. Step 4: Multiply the area in square feet by depth in feet to get cubic feet.
  5. Step 5: Divide cubic feet by 27 to convert the result into cubic yards.
  6. Step 6: For irregular projects calculate each section separately then add the cubic yard totals.
  7. Step 7: Review the final quantity with the supplier before ordering & account for project specific settling or material requirements.
How to Calculate Yards of Dirt for Any Project Shape? guide featured image

Most guides that explain how to calculate yards of dirt only cover a simple rectangle then wave their hands at everything else. That leaves a lot of people stuck when their project is round L shaped or something more irregular than a tidy box.

This guide walks through the actual formulas for every common shape you are likely to run into including rectangular beds circular planters triangular corners & irregular combinations of all three. You will also get worked examples for each one plus guidance on when doing the math by hand makes sense versus reaching for a calculator tool.

By the end you will be able to calculate a yard of dirt for practically any layout your project throws at you not just the easy cases.

Key Takeaways

Every Shape Reduces to the Same Core Formula

Area times depth divided by 27 gives you cubic yards whether that area comes from a rectangle circle triangle or a combination of all three.

Irregular Shapes Just Need Splitting Up

Break complex areas into simpler rectangles triangles or circles. Calculate each section separately & add the totals together for an accurate final number.

Always Add a Compaction Buffer

Ten to fifteen percent extra covers most standard projects while compacted base material can need considerably more.

Why Getting This Calculation Right Matters?

A miscalculated order costs money in one direction or the other either through a rushed second delivery or a pile of unused material sitting in your yard. Getting comfortable with the math behind different shapes removes most of that risk.

Suppliers price by the cubic yard & once you know how to translate your project's actual footprint into that unit comparing quotes & planning delivery becomes far more predictable.

The Core Formula to Calculate Cubic Yards of Dirt

Every shape eventually reduces to the same underlying formula once you know the area & depth. This is the foundation everything else in this guide builds on.

The Formula Itself

Volume in cubic feet equals area in square feet multiplied by depth in feet. Divide that number by 27 to convert cubic feet into cubic yards since one cubic yard always equals 27 cubic feet.

Converting Depth to Feet First

Depth is almost always measured in inches on site but the formula needs feet. Divide your inch measurement by 12 so 4 inches becomes 0.33 feet & 8 inches becomes 0.67 feet.

How to Calculate a Yard of Dirt for a Rectangular Area?

Yard of Dirt for a Rectangular Area

Rectangles are the easiest shape to work with & the starting point for almost every other calculation in this guide. Even irregular shapes usually get broken down into rectangles eventually.

Measuring & Calculating

Measure length & width in feet then multiply them for area. Multiply the area by depth in feet for cubic feet. Divide by 27 for cubic yards using the same core formula covered above.

Worked Example

Say you have a rectangular bed 10 feet long 6 feet wide & you want 6 inches of depth which converts to 0.5 feet. Multiply 10 by 6 by 0.5 to get 30 cubic feet then divide by 27 for about 1.1 cubic yards.

Figuring Cubic Yards of Dirt for Circular Areas

Yards of Dirt for Circular Areas

Round beds & planters need a different area formula but the rest of the process stays identical once you have that number. This is one of the most commonly skipped calculations in other guides.

The Circle Formula

Area equals pi times radius squared where radius is half the diameter of your circle. Multiply that area by depth in feet then divide by 27 exactly as you would for a rectangle.

Worked Example

For a circular bed 6 feet across the radius is 3 feet so area equals pi times 3 squared or about 28.3 square feet. At a 12 inch depth that is 1 foot giving you 28.3 cubic feet or roughly 1.05 cubic yards.

Figuring Cubic Yards of Dirt for Triangular & Irregular Areas

Real projects rarely come in perfect rectangles or circles & this is where most calculators fall short. Breaking a complex shape into simpler pieces solves the problem reliably.

Triangular Sections

For a triangular area area equals half of base times height using the base & height of the triangle in feet. Multiply that result by depth & divide by 27 just like any other shape.

Breaking Down Complex Shapes

For an L shaped or irregular bed split it into two or more rectangles triangles or circles that you can measure individually. Calculate the cubic yards for each section separately then add the totals together for your final number.

Worked Example: An L Shaped Bed

Say your L shaped bed splits into a 10 by 6 foot rectangle & a smaller 4 by 3 foot rectangle both filled 6 inches deep. The larger section needs about 1.1 cubic yards & the smaller section needs roughly 0.2 cubic yards giving you a combined total of about 1.3 cubic yards.

How Much Extra to Add for Compaction & Settling?

A calculated number is only the starting point since loose dirt behaves differently once it is delivered & spread. Skipping this step is one of the most common reasons people run short mid project.

Typical Buffer Percentages

Most landscaping projects benefit from adding 10 to 15 percent extra to the calculated volume. Compacted base material like what goes under a driveway or patio can need closer to 15 to 35 percent extra depending on how heavily it gets compressed.

Why This Matters More on Larger Orders?

A 5 percent miscalculation on a small garden bed barely matters but the same percentage on a 20 yard order can mean a full extra yard short. Scaling your buffer with project size keeps larger orders from falling short unexpectedly.

When to Use a Yards of Dirt Calculator Instead?

Doing the math by hand works fine for a single shape but a dirt calculator yards tool saves real time once your project involves multiple sections or shapes. A good yards dirt calculator lets you enter each section separately & adds the totals automatically.

This is especially useful for a cubic yard calculator dirt tool that handles circular & rectangular sections in the same project since manually tracking several separate calculations increases the chance of a small arithmetic error.

The same logic applies whether you are searching specifically for a yards of soil calculator or a general dirt volume tool since the underlying math is identical regardless of material name.

Common Mistakes When Calculating Yards of Dirt

A handful of errors account for most of the confusion people run into with this calculation.

Forgetting the Inches to Feet Conversion

Leaving depth in inches instead of converting to feet is the single most frequent error & it inflates your result by a factor of 12. Always double check that every measurement uses the same unit before multiplying.

Measuring Only Once on Irregular Shapes

Taking a single length & width measurement on an oddly shaped area usually produces an inaccurate total. Break the space into smaller regular sections & measure each one individually for a far more reliable number.

Skipping the Compaction Buffer Entirely

Ordering the bare calculated minimum with no buffer at all is a common way to fall short before a project wraps up. Even a modest 10 percent addition covers most normal settling.

Practical Tips for Accurate Calculations

A few habits make the whole process smoother & more reliable.

Sketch Irregular Areas First

Drawing your project on graph paper with each square representing one square foot makes it much easier to spot how to divide an irregular shape into calculable sections. This takes a few minutes & prevents costly measurement mistakes.

Double Check Your Math

Run your calculation twice ideally using two different methods before finalizing an order. A simple sanity check like confirming your total feels proportional to the size of the area catches most major errors.

Confirm Delivery Details Before Ordering

Once you have your final number check with your supplier about delivery access & minimum order sizes. The how much yard of dirt guide covers typical costs & what a cubic yard actually looks like if you want a clearer picture before calling anyone.

Bringing In Weight & Cost Once You Have Your Number

Volume is only half the picture once you are ready to order. Suppliers sometimes quote by weight & knowing your rough tonnage helps you compare pricing accurately.

The cubic yards to tons guide walks through that conversion for different soil types while the how much dirt do I need guide is worth a look if you are still deciding on your project's depth. For a quick sense of what a single cubic yard actually looks like once delivered 1 cubic yard of soil has some useful visual comparisons.

Setting Up for a Mulch Finish

A finished bed usually needs one more layer once the dirt work is done. Mulch protects the soil beneath it locks in moisture & gives the whole area a tidy finished edge. When you get to that step the mulch calculator uses this exact same shape by shape approach to work out your total.

Conclusion

Once you know how to calculate yards of dirt for more than just a plain rectangle almost any project layout becomes manageable with a tape measure & a few minutes of math. Breaking complex shapes into simpler pieces is the one trick that handles nearly every irregular space you will run into.

Use the dirt calculator for a quick rectangular estimate or work through the shape specific formulas here for anything more complex then head to the mulch calculator once your dirt is down & settled.

FAQs

How Do I Calculate Cubic Yards of Dirt for a Rectangular Area?

Multiply length by width by depth all in feet to get cubic feet then divide by 27 to convert to cubic yards.

How Do I Calculate a Yard of Dirt for a Circular Bed?

Find the area using pi times radius squared. Multiply by depth in feet then divide by 27 just like a rectangular calculation.

How Do I Figure Cubic Yards of Dirt for an Irregular Shape?

Break the area into smaller rectangles triangles or circles. Calculate the volume for each section separately & add the totals together.

Is There a Simple Dirt Calculator Yards Tool I Can Use Instead of Doing This by Hand?

Yes. Most online dirt calculators let you enter length width & depth directly & handle the conversion automatically which is faster for larger or multi section projects.

How Much Extra Should I Add When I Calculate Yards of Dirt?

Most projects benefit from a 10 to 15 percent buffer while compacted base material for driveways or patios can need 15 to 35 percent extra.

Expert Quotes

"First, it is critical to know there are 27 cubic feet in a cubic yard."

— Dr. Shaun Robert Broderick, Associate Extension/Research Professor, Mississippi State University Extension Service

Key Terms

Cubic Yard

A cubic yard is a unit of volume equal to 27 cubic feet. Landscape suppliers commonly use cubic yards when selling bulk soil, compost, mulch & other landscape materials. To convert a calculated volume from cubic feet to cubic yards, divide the cubic foot total by 27.

Cubic Foot

A cubic foot is a volume measurement representing a space that is 1 foot long × 1 foot wide × 1 foot deep. For soil calculations, cubic feet are found by multiplying the project area in square feet by the required depth in feet.

Soil Volume

Soil volume is the amount of material required to fill a defined area to a specified depth. Calculate it by multiplying the area's square footage by depth in feet. The resulting cubic feet can then be converted into cubic yards for bulk ordering.

Compaction

Compaction occurs when soil or other loose material becomes more densely packed, reducing the amount of open space between particles. Because delivered or placed material can settle or compact, the final quantity required can differ from the initial geometric volume.

Irregular Area

An irregular area is a project footprint that does not form one simple geometric shape. It can be divided into smaller rectangles, triangles, circles or other measurable sections. Calculate each section separately then add the individual volumes to determine the total.

Comparison

Project ShapeArea FormulaVolume Calculation
RectangleLength × widthArea × depth ÷ 27
Circleπ × radius²Area × depth ÷ 27
TriangleBase × height ÷ 2Area × depth ÷ 27
L shaped areaSplit into rectangles or other simple shapesCalculate each section then add totals
Irregular areaDivide into measurable sectionsCalculate each section separately then add totals

Sources

  1. One cubic yard equals 27 cubic feet. Cubic feet can be calculated by multiplying length × width × depth after converting measurements to feet, then dividing by 27 to obtain cubic yards. — Extension Gardener Handbook — Vegetable Gardening
CONTINUE EXPLORING

Explore practical advice and volume estimators for related UK landscaping projects.