What a trench volume tells you
Before digging a trench for a pipe, cable duct, drain or footing, two quantities matter: how much soil comes out and how much backfill or bedding goes in. Both start from the geometric volume of the opening. This page computes that volume for a trench whose cross section is a rectangle and whose depth does not change along the length. It also shows a second figure with a percentage allowance added, so you can see a working quantity next to the plain geometry. The page does not decide how wide a trench should be, how deep it has to go or how it must be supported. Those are design and safety questions that depend on the job, the soil and local rules.
Trench volume and the volume with allowance
Volume is length × width × depth, with all three in meters and the result in cubic meters. The volume with allowance is that volume × (1 + allowance / 100). A 10 percent allowance multiplies the volume by 1.1. The allowance is a number you choose, and the page does not infer it from soil type. The outputs are shown with up to six decimal places, so trailing digits can appear when the inputs have many decimals. Enter widths and depths in meters and not centimeters. A trench 45 cm wide is 0.45 m, and typing 45 would multiply the volume by 100.
A trench 10 meters long and 4 wide
The page starts with a length of 10 m, a width of 4 m, a depth of 0.1 m and an allowance of 10 percent. That gives 10 × 4 × 0.1 = 4 m³, and with the allowance 4.4 m³. The proportions describe a shallow, wide excavation more than a narrow trench, which is fine for a demonstration of the arithmetic. The same formula covers a layer of gravel or sand of uniform thickness, which is why the field is labeled depth or thickness. For an actual trench, replace the three dimensions with measured values and decide on the allowance separately from the geometry.
A drainage trench worked through
Suppose a drain run is 25 m long, 0.6 m wide and 1.2 m deep. The volume is 25 × 0.6 × 1.2 = 18 m³. With a 15 percent allowance the page returns 20.7 m³. In cubic yards the geometric volume is about 23.5, because one cubic meter is 1.30795 cubic yards. If the pipe, bedding sand and backfill will fill the trench again, the 18 m³ is also the combined volume of everything that goes back, minus whatever is hauled away. A second case is a service trench of 12 m by 0.45 m by 0.9 m. Its volume is 4.86 m³, and with a 20 percent allowance it is 5.832 m³.
What the allowance is for
The allowance is a single percentage added to the measured volume. People use it for several different reasons, and they should not be mixed without noting which one applies. Excavated soil usually occupies more volume once it is dug and loose than it did in the ground, an effect often called bulking, so haul-away quantities are larger than the hole. Hand-dug trench sides are rarely perfectly straight, which adds a little volume. Over-digging at the bottom to place bedding adds some more. The page does not model any of these. It applies the percentage you give it, so you can enter a value from your contractor or from your own experience on similar soil.
Trenches that change along the length
The formula assumes one width and one depth for the whole run. Real trenches often get deeper toward an outfall to keep a slope for flow, or widen at junctions and pits. In that case, break the trench into sections where the dimensions stay about the same, calculate each one separately and add the volumes. A run that is 0.9 m deep for 10 m and 1.2 m deep for the next 10 m, both 0.5 m wide, holds 4.5 m³ plus 6.0 m³, or 10.5 m³. Sloped sides give a trapezoid cross section, which the rectangular product cannot represent from one width. Use an average width for the section if the difference is small.
Safety and utilities
A volume calculation says nothing about whether a trench is safe to enter. In the United States, OSHA rules for excavations generally require a protective system for trenches 5 feet (1.5 m) deep or more, unless they are cut in stable rock, and many jurisdictions apply stricter limits. Soil can collapse without warning, and the weight of a cubic meter of earth is enough to be fatal. Buried gas, water, electric and communication lines are another hazard, and in the United States the 811 service marks public utilities before digging. Do not use the volume result as a basis for the shape or support of an excavation. Seek qualified guidance on protection and permits.
Turning volume into trucks and trips
A trench volume becomes useful when it is turned into loads. Excavated soil leaves the site by truck or stays on site in a spoil pile, and both need a plan. Divide the volume with allowance by the capacity of the vehicle to estimate the number of loads. With the drainage example above, 20.7 m³ taken out in a truck that carries 6 m³ per trip needs 3.45 trips, so four trips in practice. A mini excavator bucket of 0.1 m³ would make about 207 passes to dig it. These counts help set the schedule and the cost of hauling, and they show quickly whether a spoil pile will fit beside the trench or must be moved. Keep the spoil pile back from the edge of the trench.
Backfill, bedding and disposal planning
Once you know the trench volume, split it into the materials that will go back. A pipe zone may need sand or fine gravel around the pipe, and the remainder may use the excavated soil or imported fill. Subtract the volume taken by the pipe itself if it is large. A pipe of 0.3 m outside diameter and 25 m long displaces about 1.77 m³, which is 25 × pi × 0.15². The page leaves such splits to you, because they depend on the specification. Run the calculator once for the full opening and again for each layer using the layer thickness as depth, then compare totals against what you ordered.