A method is presented for the linear least-squares refinement of small changes in the UB matrix elements and diffractometer offsets in single-crystal diffractometer experiments. It thus affords a rapid method for calculating the consequent changes in the positions of the centres of Bragg reflections.