Graphical AbstractA simple and rapid voltammetric method for piroxicam (PRX) determination was developed using an anodically pretreated boron-doped diamond electrode and the square-wave voltammetric technique. Analytical curves were obtained for −1 PRX concentrations from 0.50 to 11.0 µmol L , with detection −1 limits of 0.16 µmol L . The proposed method was successfully applied in the determination of PRX in pharmaceutical formulations (tablets), with results similar to those obtained using a reference spectrophotometric method (at a confidence level of 95%), and in the recovery of PRX in synthetic urine and tap water samples.Comparative to other electroanalytical methods based on different electrodes, the method yielded good results, being adequate for PRX determination in different samples with the advantage that it involves the use of a non-modified electrode.