Fasting for short periods Intermittent fasting (IF) can help a person reach a state of ketosis. In some controlled cases, a doctor may recommend fasting periods of 24–48 hours , but most people do not need to fast this long to reach ketosis.