The ion energy distributions (IEDs) at the electrodes in a capacitively coupled 13.56 MHz plasma in CF4 have been measured mass resolved with a Balzers quadrupole in combination with a home-built energy analyzer. Mass-resolved determination offers the possibility to compare the IED of different ions achieved in the same sheath. The IEDs have been determined at both the largest and the smallest electrode. Apart from the IEDs of the CF4 species, the IEDs of ionic species in plasmas in argon and nitrogen also were determined. Apart from the CF4 ionic species CF+3, CF+2, CF+, and F+, CHF+2 ions also are present in the CF4 plasma due to residual water in the reactor. Because the CHF+2 ions are not produced in the sheath and because we do not detect elastically scattered ions, the IEDs of these ions show the typical bimodal distribution for rf plasmas which corresponds to an IED of ions which have not collided in the sheath. From these IEDs we can obtain the sheath characteristics, such as the averaged sheath potential. From the IEDs of CF+n ions one can conclude that, in the sheath of the CF4 plasma, a large number of chemical reactions takes place between the CF+n ions and the neutrals.