There are several mature methods of earthwork calculations according to the former study. However, they have advantages and disadvantages due to different applicable conditions and input data types. It's a problem that how to learn the advantages of these methods and take a more data-compatible way to calculate earthwork project. Inheriting the most widely used method of grid principle and the advanced GIS technology, we proposed an earthwork volume calculation method based on GIS raster data. Through the method the grid can switch freely according to the required accuracy, the amount of earth can be quickly and accurately calculated. Also, this paper discussed the impacts of the grid size on earthwork calculation accuracy.