Sleep deprivation is a powerful tool to investigate sleep function and regulation. We describe a protocol to sleep deprive Drosophila using the Sleep Nullifying Apparatus, and to determine the extent of rebound sleep induced by deprivation.