Topsoil calculator

How to Estimate Topsoil for a Tapered Garden Bed

Convert a simple linear depth change into an equivalent average depth, then estimate raw cubic yards and labeled bag quantities.

Written by
Material Math Guide Editorial Team
Reviewed by
Material Math Guide Technical Review
Last reviewed

A rectangular topsoil calculation assumes one depth across the whole bed. That assumption does not fit a bed whose planned layer changes steadily from one parallel end to the other. In the narrow case of a linear taper, the changing layer is a trapezoidal prism. Its volume can be calculated with the average of the two end depths instead of hiding the variation inside a guessed “waste” percentage.

This method has a strict boundary. It applies only when the bed has a rectangular plan, the two end depths are measured from the same reference surfaces, and the depth changes at a constant rate along one direction. A bed with low spots, compound slopes, curved edges, terracing, several grade breaks, or an unknown finished profile needs separate measured zones or a more detailed grading takeoff.

The topsoil calculator accepts one depth. For a verified linear taper, enter the arithmetic average of the two end depths as the equivalent uniform depth. Keep the original end measurements on the worksheet so the calculator input remains traceable.

Turn the taper into a checkable cross-section

Draw the bed in plan view and mark the direction in which depth changes. If the bed is 18 feet long and 8 feet wide, and the topsoil layer changes from 2 inches at one short end to 5 inches at the other, the changing cross-section is a trapezoid. Its two parallel sides are the 2-inch and 5-inch depths. The distance between them is 18 feet.

For a linear change, average the end depths:

average depth = (shallow-end depth + deep-end depth) ÷ 2

Then treat that average as the depth of an equivalent rectangular prism:

cubic feet = length ft × width ft × (average depth in ÷ 12)

Convert cubic feet to cubic yards only after the raw cubic-foot volume is calculated:

cubic yards = cubic feet ÷ 27

NIST Handbook 133 Appendix E records 1 cubic foot as 1,728 cubic inches and 1 cubic yard as 27 cubic feet. Those unit relationships support the conversions; they do not determine what topsoil depth, grade, or soil profile the project needs.

The same geometry can be checked a second way. Calculate the trapezoid area in the length-depth cross-section, then multiply it by bed width:

cross-section area = length × (shallow depth + deep depth) ÷ 2

Both methods must agree when the taper is truly linear. If they do not, a unit conversion or dimension has been applied incorrectly.

Worked example

Assume a documented planting-bed profile is 18 feet long and 8 feet wide. The planned topsoil layer is 2 inches deep along one short end and 5 inches deep along the opposite short end, with a straight, even change between them. These example depths demonstrate arithmetic; they are not planting, drainage, or grading recommendations.

First calculate the equivalent average depth:

(2 in + 5 in) ÷ 2 = 3.5 in

Convert that depth to feet:

3.5 ÷ 12 = 0.291666... ft

Find the plan area:

18 ft × 8 ft = 144 ft²

Multiply area by the equivalent average depth:

144 ft² × 0.291666... ft = 42 ft³

Convert to cubic yards:

42 ft³ ÷ 27 = 1.555555... yd³

The raw result is 1.556 cubic yards before any separate purchasing allowance or supplier rounding.

Now cross-check it as a trapezoidal prism. Convert the two depths to feet: 2 ÷ 12 = 0.166666... ft and 5 ÷ 12 = 0.416666... ft. The length-depth cross-section is:

18 ft × (0.166666... ft + 0.416666... ft) ÷ 2 = 5.25 ft²

Multiply by the 8-foot width:

5.25 ft² × 8 ft = 42 ft³

The independent result agrees exactly with the average-depth method.

For an example bag labeled 1.5 cubic feet, divide the raw volume by the label volume:

42 ft³ ÷ 1.5 ft³ per bag = 28 bags

That is 28 example 1.5-cubic-foot bags before any separately documented allowance. Do not assume every bag contains 1.5 cubic feet, and do not use bag weight as bag volume. Copy the net volume from the exact product label.

To reproduce the conversion in the topsoil calculator, enter 18 feet for length, 8 feet for width, 3.5 inches for depth, zero for the allowance unless a separate factor has been justified, and the selected bag’s labeled cubic-foot volume. Preserve the 2-inch and 5-inch end depths beside the result; 3.5 inches is valid here only because the change was defined as linear.

Measurement checklist

  1. Draw the plan boundary and confirm that the area is rectangular.
  2. Mark the single direction in which the layer depth changes.
  3. Identify a stable reference for both end-depth measurements.
  4. Confirm that the shallow and deep ends are parallel.
  5. Measure length in the taper direction and width perpendicular to it.
  6. Record the two end depths in the same unit.
  7. Check intermediate points to test whether the change is reasonably linear.
  8. Stop and divide the bed into zones if intermediate measurements do not follow the line.
  9. Average only the two verified end depths for a simple linear taper.
  10. Convert inches to feet before multiplying by plan area.
  11. Keep raw geometry, any purchasing allowance, and supplier rounding on separate lines.
  12. For bags, copy net volume from the exact label; for bulk, confirm the supplier’s selling unit.
  13. Recheck finished elevations, drainage relationships, edging, paving, utilities, roots, and structures before purchase.
  14. Retain the sketch and measurements with the order record.

An intermediate-depth check is important. For a straight change from 2 inches to 5 inches over 18 feet, the theoretical midpoint depth is 3.5 inches. At one-quarter of the length it is 2.75 inches, and at three-quarters it is 4.25 inches. Field readings do not need to be mathematically perfect, but large departures show that one average depth is masking a more complicated surface.

When one average is not enough

Do not average the shallowest and deepest spot found anywhere in the bed. Those points may not represent parallel end sections, and the area between them may not change evenly. A random minimum and maximum cannot define a trapezoidal prism.

For a bed with one documented grade break, split the length at that break and calculate two tapered prisms. Each zone gets its own length and pair of boundary depths; shared boundaries are measured once. Add the raw cubic-foot volumes, then convert the combined total to cubic yards.

For an irregular grid, a simple zone method is safer than pretending the entire bed is linear. Divide the bed into non-overlapping rectangles small enough to represent the measured variation. Assign each zone a depth supported by its measurements, calculate each raw volume, and sum them. A survey, grading model, or qualified site professional may be necessary where elevations, drainage, accessibility, structures, or large quantities make small errors consequential.

NIST Handbook 130 (2026), Method of Sale section 2.29, states that bulk top soil, fill dirt, aggregate, and similar listed materials are sold by cubic meter, cubic yard, or weight. It does not supply a universal density, settling factor, delivery increment, or bag volume. If the supplier sells the selected topsoil by weight, obtain the supplier’s product-specific basis rather than converting this geometric volume with a generic tons-per-yard number.

Common failure modes

  • Averaging unrelated high and low spots. Use parallel end depths for one linear taper, not the site’s absolute minimum and maximum.
  • Measuring from different references. Both depths must describe the same topsoil layer between consistent lower and finished surfaces.
  • Treating a curved profile as linear. Check midpoint or grid depths and split the bed when the profile changes direction.
  • Leaving inches in the volume multiplication. Divide inches by 12 before multiplying by square feet.
  • Dividing by 27 twice. Convert the finished cubic-foot total to cubic yards once.
  • Adding a percentage by changing the average depth. Preserve geometric depth and show any supported purchasing adjustment separately.
  • Inferring bag volume from weight. Use the label’s net cubic-foot value.
  • Using a generic topsoil density. Ask the supplier for the exact selling basis and product-specific conversion when weight is involved.
  • Rounding each zone before summing. Keep several decimal places through the raw volume calculation and round only at the purchasing stage.
  • Letting quantity arithmetic choose the profile. Obtain the actual depth and grade requirements before calculating material.

Limitations and verification

This guide calculates the geometric volume of a simple tapered layer. It does not design grading or drainage, specify a root zone, diagnose existing soil, select topsoil or amendments, predict settlement, evaluate contamination, establish structural fill, or approve finished elevations. It does not replace project drawings, supplier instructions, utility clearance, permits, local requirements, or advice from a qualified landscape, soil, grading, drainage, or construction professional.

Before ordering, verify the plan dimensions, both end depths, intermediate-depth checks, reference elevations, final profile, material definition, selling unit, bag label or bulk quote, delivery access, and supplier rounding rule. Recalculate if any boundary or layer changes. If several materials form the profile, estimate each layer independently rather than applying one average to the combined build-up.

The average-depth shortcut is dependable only because a linear taper gives equal weight to every depth between its two ends. The worked cross-check makes that assumption visible. If a source, unit conversion, or arithmetic step appears wrong, send the evidence through the corrections process so the guide and calculator relationship can be reviewed together.

Primary sources and review notes