If you got a solid , the volume is the space surrounded by the of the solid. For many solids, there are simple formulas. They are explained at the solid calculation script.