A computer program, VOIDOO, is described which can be employed in the study of cavities such as they occur in macromolecular structures (in particular, in proteins). The program can be used to detect unknown cavities or to delineate known cavities, either of which may be connected to the outside of the molecule or molecular assembly under study. Optionally, output files can be requested that contain a description of the shape of the cavity which can be displayed by the crystallographic modelling program O. Additionally, VOIDOO can be used to calculate the volume of a molecule and to create a file containing data pertaining to the surface of the molecule which can also be displayed using O. Examples of the use of VOIDOO are given for P2 myelin protein, cellular retinol-binding protein and cellobiohydrolase II. Finally, operational definitions to discern different types of cavity are introduced and guidelines for assessing the accuracy and improving the comparability of cavity calculations are given.