Riboflavin (vitamin B2) plays an important role in living processes as a precursor of coenzymes. The core structure of riboflavin with isoalloxazine ring participates in enzyme‐catalyzed electron transfer processes of many important metabolites. Several methodologies have been developed for the determination of riboflavin, but those methods have disadvantages like long analysis time, consumption of a lot of reagents, and expensiveness. Hence, to overcome these problems, the DPP technique is proposed in this study. The DPP method is used for the quantitative analysis of riboflavin. The experimental conditions are optimized to obtain the best characterized peak in terms of peak height with analytical validation of the method. The proposed methods are applied for the analysis of riboflavin in pharmaceutical samples and vegetables. The riboflavin is found to adsorb and undergo irreversible reduction reaction at the working mercury electrode.