The global increase in drug consumption exposes the growing need to develop new systems for the detection, capture, and treatment of bioactive molecules. Carbamazepine is one instance of such contaminants at the top of the ranking commonly found in sewage treatment systems. This work, therefore, presents a theoretical study of fullerene C60 and its derivatives with substitutional doping with B, Al, Ga, Si, Ge, N and P, for the detection and capture of carbamazepine is aqueous medium. Solvation effects were included by means of the Polarizable Continuum Solvent method. The results indicate that doped fullerenes are sensitive for the detection of carbamazepine both in gaseous and aquatic environments. Investigation on the intermolecular interactions between the drug and the fullerene molecule were carried out, allowing the characterization of the interactions responsible for stabilizing the adsorption of carbamazepine to the fullerenes. The theoretical survey revealed that fullerenes doped with Al, Ga, Si and Ge chemically adsorb carbamazepine whereas for the case of fullerenes doped with other heteroatoms physisorption is responsible for the molecular recognition. Relying on DFT calculations, the fullerene derivatives C59Al, C59Si and C59Ga are the most suitable to act both as a sensor and to uptake carbamazepine in aquatic environments.