To balance redox parameters mentally, remember that each oxygen atom contributes a net demand of $-2$. For neutral $\mathrm{NO_2}$, two oxygens demand $-4$, forcing $\mathrm{N}$ to be $+4$. For $\mathrm{NO_3^-}$, three oxygens demand $-6$, but with a net $-1$ remaining charge, the central $\mathrm{N}$ must supply $+5$.