Metabolic disorders are among one of the most common diseases in humans. The genetically tractable model organism D. melanogaster can be used to identify novel genes that regulate metabolism. This paper describes a relatively simple method which allows studying the metabolic rate in flies by measuring their CO2 production.