Directly: volume is calculated via the length times width times height formula
Indirectly: volume is the space something takes up, so typically the water displacement method would be suitable to calculate the amount of volume in an object that can't be calculated directly