Selective detection of dopamine (DA) in presence of ascorbic (AA) is an important analytical problem, due to its combined existence in the biological system. In the present study, we are reporting an electrochemical detection method for dopamine (DA) in the presence of ascorbic acid (AA) using graphitized nanoporous carbon (NPC) modified glassy carbon electrode (GCE/NPC) in 0.1 M phosphate buffer solution. The modified electrode shows excellent electrocatalytic activities towards the oxidations of DA and AA in neutral pH buffer solution. Compared to unmodified GCE, GCE/NPC shows well separated and enhanced oxidation peak currents. Differential pulse voltammetric technique used as qualitative analytical tool for the detection of DA. The oxidation peak potentials for DA and AA were at -80 and 136 mV vs Ag/AgCl respectively. The modified electrode shows good stability and reproducibility with the relative standard deviation value of 2.6 %. The analytical application of the modified electrode (GCE/NPC) was demonstrated for the individual determination of DA in clinical injection and pharmaceutical tablet by using standard addition method.