You lose fat when you take in fewer calories, or less energy, than you use. Exercise can help burn fat and either maintain or build muscle.