How do you calculate the volume of a box-shaped object?

length x width x height for example a 3 inch long box that is 3 inches wide and 3 inches high would be 3x3x3=27 cubic inches