A simple and efficient procedure is described for the electrochemical determination of ledipasvir (LDP) in presence of co‐formulated drug sofosbuvir (SOF). Herein, a highly sensitive, low‐cost electrochemical protocol was utilized to fabricate a zeolite modified carbon paste electrode (ZY/CPE) through mixing of zeolite nanostructures with graphite powder. The fabricated sensor displayed high sensitivity, allowing optimal charge transfer/electrode kinetics. Different experimental and chemical factors, including electrode composition, effect of pH, scan rate and amount of ZY were evaluated carefully to obtain the highest electrochemical response. Under optimized conditions and using square wave voltammetry (SWV), the current response of the ZY/CPE electrochemical sensing platform exhibited a detection limit of 7.5×10−9 M and a large linear range from 5.0×10−8 to 1.0×10−4 M. The practical applicability of the suggested electrochemical platform was verified in the assessment of LDP in pharmaceutical formulations with excellent recoveries in the range of 99.50–98.87 %. Moreover, a biological relevance of the developed sensor was established by the analysis of LDP in human urine and plasma samples with satisfactory recoveries of 99.00 and 99.68 %, respectively. Due to the simplicity and ease of preparation of the proposed sensor, it can be used in quality control laboratories and for clinical analysis.