The formula for the volume of a cuboid is l × w × h = lwh, where l is the length, w is the width and h is the height of the rectangular prism. a table of volume formulas and surface area formulas used to calculate the volume and surface area of three-dimensional geometrical shapes: cube, cuboid, prism, solid cylinder, hollow cylinder, cone, pyramid, sphere and hemisphere. 2  a more detailed explanation (in text and video) of each volume formula.