Abstract We describe the experimental protocols necessary to measure the crystal structures of minerals trapped within diamonds by single-crystal X-ray diffraction to the same quality as obtained from minerals studied at ambient conditions. The results show that corrections for X-ray absorption in complex cases can be made with good precision. Comparison of the refined structure of a single-crystal olivine inclusion inside a diamond with the structure of a similar olivine held in a high-pressure diamond-anvil cell shows that data resolution, not the correction for absorption effects, is the dominant factor in influencing the quality of structures determined at high pressures by single-crystal X-ray diffraction.