What this cubic yards calculator does
The Cubic Yards Calculator estimates the volume of a rectangular area in cubic yards. It uses three measurements: length and width in feet, plus depth in inches. This combination is useful for common DIY planning because a patio, garden bed, trench, or small area to be filled is often measured across in feet while the desired layer thickness is described in inches.
The calculator converts the depth from inches to feet, multiplies the three dimensions to find cubic feet, and divides that volume by 27 to express it in cubic yards. The result is labeled Cubic Yards and displayed to two decimal places. It represents the geometric volume of the space described by your measurements. It does not determine how much material a supplier sells, how material settles, or how much extra you may want to order.
A cubic yard is a unit of volume equal to 27 cubic feet. For example, a space measuring 3 feet long, 3 feet wide, and 3 feet deep contains 27 cubic feet, or 1 cubic yard. This calculator applies that relationship to the dimensions you enter.
How to use the cubic yards calculator
Measure the area you plan to fill or cover. For a rectangular area, record its length and width in feet. Measure the planned depth in inches. Enter each value into the matching field, then read the result in cubic yards.
- Length is the longer side of the rectangular space, measured in feet.
- Width is the other horizontal side, also measured in feet.
- Depth is the thickness of the material layer, entered in inches.
For a worked example, consider a garden bed that is 12 feet long and 8 feet wide, with a planned soil depth of 4 inches. Convert the depth to feet: 4 ÷ 12 = 0.3333 feet. The volume is (12 × 8 × 0.3333) ÷ 27, which is approximately 1.19 cubic yards. Using the unrounded depth, the result is 1.185 cubic yards, displayed as 1.19.
Check that your measurements describe the space consistently. If you measure one side in inches, convert it to feet before entering it. The depth field is the only one intended for inches. The accepted ranges are 0.1 to 1,000 feet for length and width, and 0.1 to 120 inches for depth. A positive value in each field avoids a zero-volume result caused by a missing dimension.
How the cubic yards formula works
The calculator uses this formula: (length_ft × width_ft × (depth_in ÷ 12)) ÷ 27. The names in the formula correspond to the input labels. First, depth in inches is divided by 12 because there are 12 inches in a foot. The converted depth and the two horizontal dimensions are then multiplied to calculate cubic feet. Finally, cubic feet are divided by 27 to convert the result to cubic yards.
The units matter at each step. Multiplying feet by feet by feet produces cubic feet. Dividing a cubic-foot quantity by 27 produces cubic yards. Keeping the length and width in feet and the depth in inches as requested helps the calculation apply the conversions in the right places.
This is a rectangular-prism model. It assumes the area has straight sides, a level base, and a uniform depth. The formula does not include a separate allowance for uneven ground, compaction, spillage, or settling. Those conditions depend on the project and material, so treat the displayed quantity as a volume estimate based on the dimensions you supplied.
Use cases for the cubic yards calculator
The calculation can help with early planning for DIY projects that involve filling or covering a measured rectangular space. Examples include estimating the geometric volume of a garden bed, checking the volume of a rectangular planter, or calculating the amount of space in a straight-sided trench section. It can also help compare alternate dimensions. If you increase the depth while keeping the footprint fixed, the calculated volume increases in the same proportion.
For a non-rectangular project, divide the space into simpler rectangles, calculate each section separately, and add the cubic-yard results. For instance, an L-shaped bed can be split into two non-overlapping rectangles. Make sure the split does not count any area twice. If the shape has sloping sides or substantial changes in depth, a single rectangular estimate may not represent its volume well.
When planning a material order, use the result as a starting point for discussion with the supplier. Product coverage, moisture, grading, delivery increments, and handling can affect the amount that is practical to order. The calculator does not apply a universal extra percentage because project conditions vary.
Other factors to consider when calculating cubic yards
Careful measurements are the most useful way to improve this estimate. Measure the inside dimensions of the space that will actually receive material. For an existing excavation, use its dimensions rather than the surrounding landscape. If the base is uneven, measure depth at several points and use a reasonable average for a rough estimate, while recognizing that this simplifies the shape.
Material behavior also matters after delivery. Loose aggregate or soil may settle under weight or after watering. Some materials are supplied by weight, and their volume can vary with moisture and composition. Ask the supplier how its product is measured and whether it can help translate the calculated volume into an order quantity. For construction work with specifications, use the project documents and qualified guidance where required.
Finally, keep the scope of the number clear. The calculator reports volume in cubic yards, rounded to two decimal places. Rounding can make small differences visible, but it does not make the measurement exact. Recheck the inputs before relying on the estimate, especially when a project has irregular boundaries or depth requirements.
Frequently asked questions
How many cubic feet are in a cubic yard?
One cubic yard contains 27 cubic feet. A yard is three feet long, so a cubic yard is 3 × 3 × 3 feet, or 27 cubic feet.
Why does the calculator ask for depth in inches?
Many DIY layer depths are easier to measure or specify in inches. The formula converts that input to feet by dividing by 12 before multiplying the dimensions.
Can I use this for a circular area?
This configuration is for rectangular spaces. A circle needs a different area calculation, so entering its diameter as both length and width would overstate its volume. For an irregular project, use an appropriate shape-specific method or divide it into sections that can reasonably be represented as rectangles.
Does the result tell me how much material to buy?
It gives the geometric volume from the entered dimensions. The amount to order may depend on settling, compaction, moisture, product packaging, and supplier practices. Confirm those details for the material and project before ordering.
What if the area has different depths?
Divide it into sections with reasonably consistent depths, calculate each section separately, and add the results. If the base changes gradually, an average depth can provide a rough estimate, but it simplifies the actual shape.