A dirt calculator works out how much fill dirt you need — in cubic yards and tons — from the area you're filling and the depth, and tells you how many dump-truck loads that is. It's for levelling, raising grade, backfilling and building up low spots.
Dirt is bought by the yard and delivered by the ton, so this gives both. The catch most people miss is compaction: loose fill settles a lot, so you order more than the empty hole measures.
Volume = area × depth, in cubic yards (÷ 27). Tons ≈ cubic yards × 1.3 (fill dirt density varies with moisture and clay). Truckloads assume ~10 yd³ per standard dump truck. Add 10-25% for compaction if the fill must be tamped to grade.
A 20 × 15 ft area filled 6 in deep needs about 5.6 cubic yards of dirt — roughly 7.2 tons, or one dump-truck load.