A voltammetric sensor is an effective tool for pharmaceutical analysis due to its simplicity, specificity, sensitivity, fast, cost-effectiveness, and repetitive measurements. A highly sensitive and selective sensor is fabricated based on a polyaniline-modified glassy carbon electrode. It is demonstrated that this sensor can be used for the determination of a pharmaceutically important compound tinidazole using square wave voltammetry, cyclic voltammetry, and electrochemical impedance spectroscopy. The electrode surface was characterized by scanning electron microscopy. The developed sensor also exhibited good reproducibility and long-term stability. Polyaniline nanofibers are expected to be a promising material for sensing applications because of the ease of fabrication, excellent electrochemical performance, and high electroactive surface area. C 2016 Wiley Periodicals, Inc. Adv Polym Technol 201 , , 21694; View this article online at wileyonlinelibrary.com.