Neocortical neurons can increasingly be divided into well-defined classes, but their activity patterns during quantified behavior remain to be fully determined. Here, we obtained membrane potential recordings from various classes of excitatory and inhibitory neurons located across different cortical depths in the primary whisker somatosensory barrel cortex of awake head-restrained mice during quiet wakefulness, free whisking and active touch. Excitatory neurons, especially those located superficially, were hyperpolarized with low action potential firing rates relative to inhibitory neurons. Parvalbumin-expressing inhibitory neurons on average fired at the highest rates, responding strongly and rapidly to whisker touch. Vasoactive intestinal peptide-expressing inhibitory neurons were excited during whisking, but responded to active touch only after a delay. Somatostatin-expressing inhibitory neurons had the smallest membrane potential fluctuations and exhibited hyperpolarising responses at whisking onset for superficial, but not deep, neurons. Interestingly, rapid repetitive whisker touch evoked excitatory responses in somatostatin-expressing inhibitory neurons, but not when the intercontact interval was long. Our analyses suggest that distinct genetically-defined classes of neurons at different subpial depths have differential activity patterns depending upon behavioral state providing a basis for constraining future computational models of neocortical function.