We present a maximum-likelihood (ML) method for calibrating the geometrical parameters of an x-ray computed tomography (CT) system. This method makes use of the full image data and not a reduced set of data. This algorithm is particularly useful for CT systems that change their geometry during the CT acquisition, such as an adaptive CT scan. Our ML search method uses a contracting-grid algorithm that does not require initial starting values to perform its estimate, thus avoiding problems associated with choosing initialization values.