Shimming is another one of those things you have to do to record an NMR spectrum but what exactly is it, and why does it have to be done? Put simply, shimming is the process of optimising the magnetic field around your sample. Shimming your sample will produce spectra with sharper peaks and better resolution.