The CE marking itself costs nothing in the sense that you do not have to pay a fee to use the CE mark. In addition, you don’t have to pay any form of licensing fee to the authorities.
However, the conformity process that must be followed in order to meet the CE marking requirements includes steps where it is often necessary to engage external consultants, testing companies and notified bodies.