The N-doped mesoporous carbon having 4.7 wt% of nitrogen delivered the gravimetric capacitance of 169 F g -1 at 0.4 A g -1 in 0.5 M H2SO4 solution which is higher than S-doped mesoporous carbon (91 F g -1 ) and mesoporous carbon (76 F g -1 ). The increased performance by the N-doped mesoporous carbon is attributed to the fact that it possesses a SBET of 200 m 2 g - phosphoric acid with the irradiation power of 600-800 W for 1-3 minutes. On other hand, the P-doped mesoporous carbon was prepared by the carbonization of the mixture of inositol and phosphoric acid at 650 °C about 2 h in the atmosphere containing Ar gas. It was also reported that the content of phosphorus decreases with rise in microwave irradiation period. Among the variety of samples, the PMC prepared at the microwave power of 800 W about 2 minutes reached the maximum gravimetric capacitance of 210 F g -1 at 0.5 A g -1 in 6 M KOH solution by two-electrode system which is more than that prepared from the carbonization route having the value of 146 F g -1 at 0.5 A g -1 . Also, 97.3% of retention of capacitance after 10000 cycles was observed for the PMC by microwave route. The improved energy storage performance is attributed to the greater SBET of 2055 m 2 g -1 along with large pore volume of 2.73 cm 3 g -1 . Zhang higher pore size of 3.5 nm. Also, the 96.3% of the capacitance retained after 5000 cycles at 5