It is essential to develop a simple and disposable electrochemical sensor for monitoring organic pollutants in water systems. This work aims in the quantification of hazardous water pollutant 4-Nitrophenol (4-NP) by electropolymerizing vitamin B complex (Vitamin B2/Riboflavin) over pencil graphite electrode (PGE). By differential pulse voltametric technique, the anodic peak current increased appreciably for 4-NP oxidation on poly-riboflavin modified pencil graphite electrode (PRB/PGE) as compared to bare PGE. The adapted sensor was characterized using scanning electron microscopy (SEM), infrared spectrometry (IR), energy dispersive X-ray analysis (EDX) and electrochemical impedance spectroscopy (EIS). The increased electroactive surface area and decreased electron transfer resistance was achieved by electropolymerisation of the electrode. A well-defined anodic peak of 4-NP was observed on the adapted electrode at a potential of +0.864 V in phosphate buffer solution of pH 7.2. Factors affecting the current response were optimized. Scan rate and pH analysis were used to study the fabricated electrode and thereby determining transfer electron and proton number. The sensor spectacled a linearity of 5.0 μM–700.0 μM with lower detection of limit (LOD) of 1.78 μM and limit of quantification (LOQ) of 5.94 μM. By using a simple single-step fabrication method, the PRB/PGEs exhibit high stability, reproducibility and repeatability making them an ideal tool to detect 4-NP in real water samples. The developed disposable sensor exhibited a recovery between 97-103%. Hence it is found to be a favorable tool for the electroanalysis of the analyte with high reliability.