Analyses of gene-expression dynamics in research on circadian rhythms and sleep homeostasis often describe these two processes using separate models. Rhythmically expressed genes are, however, likely to be influenced by both processes. We implemented a driven, damped harmonic oscillator model to estimate the contribution of circadian- and sleep-wake-driven influences on gene expression. The model reliably captured a wide range of dynamics in cortex, liver, and blood transcriptomes taken from mice and humans under various experimental conditions. Sleep-wake-driven factors outweighed circadian factors in driving gene expression in the cortex, whereas the opposite was observed in the liver and blood. Because of tissue- and gene-specific responses, sleep deprivation led to a long-lasting intra- and inter-tissue desynchronization. The model showed that recovery sleep contributed to these long-lasting changes. The results demonstrate that the analyses of the daily rhythms in gene expression must take the complex interactions between circadian and sleep-wake influences into account. A record of this paper's transparent peer review process is included in the supplemental information.