Calories in, calories out. Absent a medical condition that is causing weight gain or obstructing weight loss, the “secret” to losing weight is to live a lifestyle that has you ingest fewer calories than you burn.