Intermittent fasting (IF) and the ketogenic diet are a natural pairing. Both approaches shift your body away from glucose as a primary fuel source and toward fat-burning and ketone production. When combined, the effects can compound: keto lowers baseline insulin and blood sugar, while IF extends the fasted state and accelerates the depletion of liver glycogen — the last barrier to deep ketosis.

The most important decision when starting intermittent fasting is choosing the right protocol for your lifestyle and then scheduling your eating window at a time you can realistically maintain. A window you cannot stick to will collapse within a week. The 16:8 protocol (16 hours fasting, 8 hours eating) is the most commonly recommended starting point because it is flexible enough to accommodate most social situations — a noon-to-8 PM window, for example, simply means skipping breakfast while eating a normal lunch and dinner.

More advanced protocols like 18:6 or 20:4 extend the fasting period and may accelerate fat loss, improve insulin sensitivity, and enhance autophagy (the body’s cellular recycling process). OMAD (One Meal A Day) is the most extreme daily schedule — eating all your nutrition in a single one-hour window — and works well for some people on keto who have adapted to fat-burning and no longer feel hunger outside their window.

The 5:2 approach differs fundamentally: rather than daily time restriction, you eat normally five days per week and restrict to 500–600 calories on two non-consecutive days. This is a useful entry point for people who prefer not to skip meals daily.

Use the calculator below to set your eating window, visualize your fasting schedule, and see a live countdown to your next window.

⏱ Intermittent Fasting Window Calculator
12:00 AM 12:00 PM 12:00 AM
Eating window Fasting window
Loading...

Black coffee, plain tea, and water are generally allowed during the fasting window without breaking a fast. Electrolytes (sodium, potassium, magnesium) can help with keto + IF combined. This calculator is for informational purposes only — consult your healthcare provider before starting an extended fasting protocol.

Tips for Combining Keto and Intermittent Fasting

Start with electrolytes. The keto-IF combination increases sodium, potassium, and magnesium excretion. Salted broth, magnesium glycinate, and potassium-rich keto foods during your eating window can prevent the fatigue and headaches some people experience when first combining the two approaches.

Break your fast with protein and fat, not carbs. Starting your eating window with a high-protein, high-fat meal helps maintain stable blood sugar through the window and reduces the likelihood of overeating later in the day.

Be patient with the adaptation period. The first one to two weeks of combined keto + IF can feel challenging as your body recalibrates hunger hormones. Ghrelin (the hunger hormone) typically resets to your new schedule within 7–14 days, after which many people report that fasting feels effortless.

For more on building sustainable habits around the ketogenic lifestyle, see our guides on keto meal planning and the keto food database where you can check the net-carb content of foods to keep your eating window properly keto-aligned.