Abstract A new electrochemical sensor based on a carbon nanotube paste electrode modified with a Santa Barbara Amorphous material (SBA‐15) decorated with silver nanoparticles, namely CNT/SBA/Ag‐PE, was developed. It was successfully applied for individual and simultaneous determination of both paracetamol (PC) and sulfamethoxazole (SMZ) medicines. The electrode exhibited a linear dynamic range of 0.12–110 μmol L −1 for paracetamol and 0.06–70 μmol L −1 for sulfamethoxazole, and detection limits of 38 and 19 nmol L −1 , respectively. The proposed sensor offered high sensitivity, fast response time and the potential for detecting both drugs simultaneously. The CNT/SBA/Ag‐PE enabled the simultaneous determination of PC and SMZ in urine samples with high recovery rates.