← Earthwork cut and fill calculator
Every site-work estimate starts with the same question: how much ground comes off the high side, how much goes back on the low side, and is there anything left over to truck away or bring in. This page explains how that is worked out from a surveyor's shots, and walks through a small lot where every number can be checked by hand.
A survey gives you points: an easting, a northing and an elevation for each shot. To get a volume you need a surface between them. Civil design software joins the shots into triangles, a triangulated irregular network (TIN), choosing the triangles by the Delaunay rule: no shot lies inside another triangle's circumscribed circle. That rule avoids long thin triangles wherever it can, so each triangle spans shots that are actually near each other.
Inside one triangle the ground is taken to be flat, a plane through its three shots. The design (a flat pad, a sloped pad, or the proposed grade from the engineer's plan, triangulated the same way) is also a plane inside each of its triangles.
Where both surfaces are planes, the depth between them (design minus existing) changes linearly across the triangle. Positive depth is fill, negative is cut. If all three corners are fill, the fill volume is the triangle's plan area times the mean of the three corner depths. If the depth changes sign inside the triangle, it is split along the zero line and each part is integrated the same way. Add every triangle up and you have the volume between the two TINs, exactly, with no rounding to a grid.
The older grid method samples both surfaces at the centre of square cells and multiplies each depth by the cell area. On a fine grid it converges to the same answer; on a coarse one it misses what happens between samples. The average-end-area method, from cross-sections at stations, suits roads and channels better than pads.
| Term | Meaning | Typical |
|---|---|---|
| Bank | Soil in place, undisturbed. Cut is measured in bank volume. | |
| Swell | Gain when dug and loaded loose. Trucks haul loose volume. | 15 to 40% for earth |
| Shrink | Loss from bank when placed and compacted as fill. | 10 to 25% |
The typical ranges are rough; the real factors depend on the soil and the compaction spec and should come from the geotechnical report or experience on that material. With shrink s, a cubic yard of cut builds (1 − s) cubic yards of compacted fill. A site balances when cut × (1 − s) = fill. Raising a pad lowers the cut and raises the fill, so there is exactly one balancing pad elevation, and a bisection search finds it.
A made-up lot 100 ft square rises evenly 10 ft from west to east: elevation 100 + 0.1·x, where x is feet east of the west line. The shots are a 25 ft grid, 25 points. Because the ground is one plane, the TIN reproduces it exactly and every number below has a closed form.
Pad at 105.00. The pad meets the ground at x = 50. The east half is cut, a wedge 50 ft wide, 0 to 5 ft deep, 100 ft long: ½ × 50 × 5 × 100 = 12,500 cu ft = 463.0 cu yd. The west half is fill of the same size, 463.0 cu yd.
Equal cut and fill is not a balance: with 20% shrink the cut builds only 463.0 × 0.8 = 370.4 cu yd of fill, 92.6 short. That shortfall is 92.6 / 0.8 = 115.7 cu yd of bank borrow, 144.7 cu yd loose at 25% swell, 13 loads in 12-yd trucks.
Balance elevation. With the pad at elevation E, the crossing is at a = 10(E − 100), fill is 5a² cu ft and cut is 5(100 − a)². Setting 0.8 × cut = fill gives a = 100√0.8 / (1 + √0.8) = 47.21 ft, so E = 104.72: 516.0 cu yd of cut building 412.8 cu yd of fill.
The calculator gives the same figures from the 25 shots:
node cli.mjs lot.csv --pad 105 --shrink 20 --swell 25 --truck 12 Cut: 463.0 cu yd bank (deepest 5.00 ft) Fill: 463.0 cu yd compacted (deepest 5.00 ft) Import: 115.7 cu yd bank, 144.7 loose at 25% swell, about 13 truckloads (shrink 20%) node cli.mjs lot.csv --balance --shrink 20 Design: balanced pad at 104.721 ft ...
Its test suite checks this case and others against their closed forms, and a separate script checks the triangulation and volumes against SciPy's Qhull and an independent formula on 800-shot sets (identical triangles, volumes equal to 1 part in 1013).