Background and purpose: Erectile dysfunction is a common issue among adult males involving difficulty in maintaining an erection, and it is often treated with fast-acting, low-side-effect drugs like avanafil (AVN), among other phosphodiesterase-5 inhibitors. Hence, developing fast, simple, and sensitive methods to detect AVN is crucial. Experimental approach: This study conducts an electroanalytical inquiry and provides a new voltammetric method for accurately analyzing AVN utilizing a boron-doped diamond (BDD) electrode without any modifications. Key results: In the Britton-Robinson buffer (BR, 0.04 mol L-1, pH 4.0), cyclic voltammetry showed a clearly defined and irreversible anodic peak at around +1.44 V relative to Ag/AgCl. The pH of the solution was shown to have an impact on the voltammetric signals of the oxidation peaks. A good linear response for AVN quantification was achieved using square-wave voltammetry. This was done in a 0.04 mol L-1 BR (pH 4.0) solution at a potential of +1.33 V (vs. Ag/AgCl). The method exhibited a wide dynamic range of 0.5 to 30.0 μg mL-1 (1.0 to 62 µmol L-1) and a low limit of detection of 0.14 μg mL-1 (0.29 µmol L-1). The method proposed demonstrated suitability for determining AVN content in pharmaceutical formulations. The accuracy of the approach was demonstrated by comparing the results obtained using the developed method with those achieved using the UV-Vis spectrometry method. Conclusion: Our method simplifies the analytical process by eliminating the need for electrode modification, reducing both time and resource requirements while enhancing overall feasibility.