Because the transcription factor neuronal Per-Arnt-Sim-type signal-sensor protein-domain protein 2 (NPAS2) acts both as a sensor and an effector of intracellular energy balance, and because sleep is thought to correct an energy imbalance incurred during waking, we examined NPAS2's role in sleep homeostasis using npas2 knockout (npas2-/-) mice. We found that, under conditions of increased sleep need, i.e., at the end of the active period or after sleep deprivation (SD), NPAS2 allows for sleep to occur at times when mice are normally awake. Lack of npas2 affected electroencephalogram activity of thalamocortical origin; during non-rapid eye movement sleep (NREMS), activity in the spindle range (10-15 Hz) was reduced, and within the delta range (1-4 Hz), activity shifted toward faster frequencies. In addition, the increase in the cortical expression of the NPAS2 target gene period2 (per2) after SD was attenuated in npas2-/- mice. This implies that NPAS2 importantly contributes to the previously documented wake-dependent increase in cortical per2 expression. The data also revealed numerous sex differences in sleep; in females, sleep need accumulated at a slower rate, and REMS loss was not recovered after SD. In contrast, the rebound in NREMS time after SD was compromised only in npas2-/- males. We conclude that NPAS2 plays a role in sleep homeostasis, most likely at the level of the thalamus and cortex, where NPAS2 is abundantly expressed.