Recent experiments have shown that nitrogen doping enhances capacitance in carbon electrode supercapacitors. However, a detailed study of the effect of N-doping on capacitance is still lacking. In this paper, we study the doping concentration and the configuration effect on the electric double-layer (EDL) capacitance, quantum capacitance, and total capacitance. It is found that pyridinic and graphitic nitrogens can increase the total capacitance by increasing quantum capacitance, but pyrrolic configuration limits the total capacitance due to its much lower quantum capacitance than the other two configurations. We also find that, unlike the graphitic and pyridinic nitrogens, the pyrrolic configuration's quantum capacitance does not depend on the nitrogen concentration, which may explain why some capacitance versus voltage measurements of N-doped graphene exhibit a V-shaped curve similar to that of undoped graphene. Our investigation provides a deeper understanding of the capacitance enhancement of the N-doping effect in carbon electrodes and suggests a potentially effective way to optimize the capacitance by controlling the type of N-doping.