CCalcNest AI

Intermittent Fasting Calculator

Plan your intermittent fasting schedule with eating and fasting windows.

0 hrs23 hrs
1 hrs23 hrs
Enter values above — results appear instantly as you type.
AI Insight: Fasting works mainly by making it easier to eat less, not through metabolic magic. If you eat the same calories in a shorter window, results match any other diet — the eating window is a tool for appetite control, not a cheat code.
Reviewed by the CalcNest Editorial Team · Last reviewed: May 2026 · Methodology
Looking for a different calculator? Try our AI Finder — describe what you need in plain English. Try AI Finder →

Formula

Eating Window = 24 – Fasting Hours

Example

Start 8 PM, 16 hours → Eat 12 PM–8 PM.

Embed this calculator on your site

Add this free calculator to your own website with one line of code. The embedded version is responsive, ad-free, and includes a small attribution link back to CalcNest AI.

<iframe src="https://calcnestai.com/embed/intermittent-fasting-calculator.html" width="100%" height="700" frameborder="0" style="border: 1px solid #e5e5e5; border-radius: 12px; max-width: 720px;" loading="lazy" title="Intermittent Fasting Calculator — Free Tool by CalcNest AI"></iframe>

Understanding the Intermittent Fasting Calculator

An intermittent fasting calculator turns a fasting duration and start time into the actual clock hours of your fasting and eating windows. The arithmetic is trivial; what's worth understanding is what the evidence does and doesn't support, and who shouldn't be doing this at all.

How it actually works

Enter the hour you begin fasting and how many hours you want to fast. The calculator derives the eating window as the remainder of the 24-hour day and reports both as clock times. Starting a 16-hour fast at 20:00 means fasting until 12:00 the next day, with an eating window from 12:00 to 20:00, which is the common 16:8 pattern.

Common fasting patterns
PatternFastEating windowNote
12:1212 h12 hGentle starting point
16:816 h8 hMost widely used
18:618 h6 hMore restrictive
20:420 h4 hSometimes called warrior

The deeper context most people miss

One point that gets lost in enthusiasm for the method: in controlled trials where total calorie intake is matched, time-restricted eating generally produces weight loss similar to conventional calorie restriction rather than superior to it. The main practical benefit for many people is that a shorter eating window makes it easier to eat less without counting, which is a genuine advantage in adherence rather than a metabolic one.

What happens during a fast, and where the claims outrun the evidence

The physiological sequence is reasonably well established. In the hours after eating, insulin is elevated and the body preferentially uses glucose. As hours pass without food, insulin falls, glycogen stores deplete over roughly 12 to 24 hours depending on activity and prior intake, and the body shifts increasingly toward fat oxidation and ketone production. This metabolic switching is real and is the mechanism behind most fasting claims. Where the evidence becomes weaker is in the leap from mechanism to outcome. Autophagy, the cellular recycling process frequently cited in fasting discussions, is genuinely important and genuinely upregulated by fasting, but most of the direct evidence comes from animal and cell studies, the timing in humans is not well characterised, and specific claims that autophagy meaningfully switches on at a particular hour are not supported by human data. Similarly, claims about longevity extension rest largely on animal caloric restriction research, where the effects are substantial in short-lived species and much less certain in primates and humans. What human trials do reasonably support is that time-restricted eating can produce weight loss, modest improvements in some metabolic markers including insulin sensitivity and blood pressure, and that it's a tolerable approach for many people. What they generally do not show is a metabolic advantage over equivalent calorie restriction, and several well-controlled trials comparing the two found no meaningful difference in weight or body composition outcomes.

A worked example: fitting a window to an actual day

The default sets a 16-hour fast from 20:00, giving an eating window of 12:00 to 20:00. That means skipping breakfast, eating lunch around midday, and finishing dinner by 20:00. It suits someone who isn't hungry in the morning and eats an early evening meal. Now consider someone who trains at 6:30 in the morning: fasted training is manageable for low-intensity work and generally impairs performance in high-intensity or heavy resistance sessions, and eating nothing until midday leaves a long gap for recovery nutrition, so shifting the window earlier, perhaps 10:00 to 18:00, fits better. Someone whose family eats dinner at 20:00 would find a window closing at 20:00 workable but tight, and might prefer 13:00 to 21:00. Someone doing shift work faces a harder problem, since the circadian dimension of meal timing matters and eating at night appears less metabolically favourable, though a consistent window is still likely better than chaotic eating. The general finding worth noting is that earlier eating windows, finishing in the late afternoon or early evening, have shown somewhat better metabolic outcomes in several trials than late windows, which aligns with circadian biology, though the effect size is modest and adherence probably matters more than optimisation.

Deciding whether this approach suits you

Fasting is not appropriate for everyone, and some of the exclusions are important. Anyone with a history of disordered eating should generally avoid structured fasting, since rigid rules around when eating is permitted can reinforce restrictive patterns and the binge-restrict cycle, and this is a well-recognised concern rather than a theoretical one. People with type 1 diabetes, or type 2 diabetes managed with insulin or sulfonylureas, face genuine hypoglycaemia risk and should not fast without medical supervision and medication adjustment. Pregnancy and breastfeeding both raise nutritional requirements substantially and are not appropriate contexts for restriction. Children and adolescents are still growing. People who are underweight, have a history of eating disorders, or take medications requiring food should not fast without clinical input. Beyond the exclusions, practical fit matters: someone who genuinely enjoys breakfast and finds morning hunger distracting will likely adhere poorly, and there is no requirement to fast at all, since the same outcomes are achievable through other approaches. If the appeal is simplifying eating decisions and reducing snacking, that's a reasonable motivation. If the appeal is a believed metabolic magic, the evidence doesn't support that framing, and disappointment is the usual result.

What breaks a fast, and what to expect in the first weeks

The question of what breaks a fast depends on what you're fasting for, which is why answers vary so much. If the goal is calorie restriction, anything with meaningful calories breaks it. If the goal is keeping insulin low, protein and carbohydrate matter most while fat has less effect. If the goal is autophagy, the honest answer is that the thresholds aren't well established in humans. Practically, water, black coffee, and plain tea are generally accepted as not breaking a fast under any of these framings. Adding milk, sugar, or sweeteners becomes debatable, with non-caloric sweeteners a genuinely open question since some may provoke a cephalic insulin response in some people. Anything with more than a trivial calorie content, including bulletproof coffee with added fat, breaks a fast under a calorie framing whatever its proponents claim. Regarding adaptation, the first one to two weeks are typically the hardest: hunger, irritability, difficulty concentrating, and headaches are common and usually subside as hunger hormone patterns adjust to the new schedule. Hydration and electrolytes help, since a meaningful portion of daily fluid comes from food and skipping meals reduces both fluid and sodium intake. Persistent symptoms beyond a few weeks, particularly dizziness, fainting, heart palpitations, disrupted sleep, or a menstrual cycle becoming irregular or stopping, are signals to stop rather than push through, and the last of these in particular warrants medical attention.

Variations: 5:2, alternate-day, and extended fasting

Time-restricted eating, which this calculator models, restricts the daily window without necessarily restricting calories. The 5:2 approach instead eats normally five days a week and substantially reduces intake on two non-consecutive days. Alternate-day fasting alternates normal eating with either complete fasting or a very low intake day. These whole-day approaches generally produce more weight loss than time restriction alone, largely because they restrict calories more, and they are correspondingly harder to sustain. Extended fasting beyond 24 hours carries meaningfully greater risk, including electrolyte disturbance and, for anyone who has been malnourished, refeeding syndrome, which can be dangerous, and it should not be undertaken without medical supervision. Early time-restricted eating, where the window sits earlier in the day and closes by mid-afternoon, has shown somewhat better metabolic outcomes in several trials, consistent with circadian influences on glucose handling. Religious fasting practices including Ramadan have been studied extensively and provide useful evidence on tolerability, though the pattern differs from most secular protocols since fluid is often also restricted.

Approaching intermittent fasting sensibly

Start gently, since 12:12 or 14:10 is a far more sustainable entry point than jumping to a long fast, and hunger and irritability typically settle over one to two weeks. Choose a window that fits your actual life, particularly around training and family meals, since adherence matters considerably more than optimising the exact hours. Consider an earlier window closing in the late afternoon or early evening, which has shown modestly better metabolic outcomes than late windows. Maintain hydration and pay attention to electrolytes, since skipping meals reduces both fluid and sodium intake. Recognise that in matched trials this generally performs similarly to conventional calorie restriction rather than better, so expect an adherence benefit rather than a metabolic one. And do not fast if you are pregnant or breastfeeding, have a history of disordered eating, or manage diabetes with insulin or sulfonylureas without medical supervision.

What people get wrong

  • Expecting a metabolic advantage over conventional calorie restriction, when matched trials generally find similar outcomes and the real benefit is easier adherence.
  • Treating claims about autophagy switching on at a specific hour as established, when human timing data is limited and most evidence comes from animal and cell studies.
  • Starting with an aggressive window rather than building up, when hunger and irritability typically settle over one to two weeks at a gentler duration.
  • Fasting while pregnant, breastfeeding, managing diabetes on insulin or sulfonylureas, or with a history of disordered eating, all of which warrant medical input first.

Where the math comes from

Eating Window = 24 - Fasting Hours. Fast End = (Start Hour + Fasting Hours) mod 24, and Eating Window End = (Fast End + Eating Window) mod 24, using modular arithmetic so the times wrap correctly across midnight. The calculation is purely a clock conversion and makes no assumptions about calorie intake, which is set independently of the window.

Questions and answers

How accurate is this formula?

Validated body composition formulas are typically within 3-5 percentage points accurate compared to gold-standard methods (DEXA, hydrostatic weighing). Use the result as a guide, not an exact verdict.

Why does my number disagree with my BIA scale?

Bioelectrical impedance analysis (BIA) varies significantly with hydration, time of day, and recent food intake. Same-day measurements with the same device on consistent conditions are most reliable for trends.

What is a healthy range?

Body fat: men 10-22% (athletes lower), women 18-32%. BMI: 18.5-24.9 for most adults, slightly higher acceptable for older adults. Specific targets depend on individual health and goals.

How fast can these numbers change?

Body composition changes slowly - about 1-2 lb per week of fat loss is sustainable; muscle gain is even slower. Day-to-day fluctuations are mostly water and food, not real composition changes.

Should I work with a professional?

For meaningful changes, yes - registered dietitians for nutrition, certified trainers for exercise programming. The calculator gives the starting number; professionals help with the path.

Is intermittent fasting better than regular calorie restriction?

In controlled trials matching total calorie intake, it generally produces similar weight loss rather than superior results. The practical advantage is that a shorter eating window makes eating less easier for many people without counting, which is a genuine adherence benefit rather than a metabolic one.

What breaks a fast?

It depends what you're fasting for. Under a calorie framing, anything with meaningful calories breaks it, including coffee with added fat. Water, black coffee, and plain tea are generally accepted as fine under any framing. Non-caloric sweeteners are genuinely debated, since some may provoke a cephalic insulin response in some people.

Which fasting window is best?

16:8 is the most widely used and 12:12 is a gentler starting point. Several trials suggest earlier windows, closing in the late afternoon or early evening, produce modestly better metabolic outcomes than late windows, consistent with circadian biology. That said, the window you can sustain matters considerably more than the theoretically optimal one.

Who should not try intermittent fasting?

Anyone pregnant or breastfeeding, children and adolescents, people who are underweight, and anyone with a history of disordered eating, since rigid rules about when eating is permitted can reinforce restrictive patterns. People with type 1 diabetes or type 2 managed with insulin or sulfonylureas face hypoglycaemia risk and need medical supervision.

Will I lose muscle while fasting?

Not necessarily, provided total protein intake is adequate and resistance training is maintained. The compressed eating window can make hitting protein targets harder, which is the practical risk rather than fasting itself. Distributing protein across the meals within your window and continuing to train helps preserve lean tissue.

Can I exercise while fasted?

Low-intensity work is generally fine fasted and some people prefer it. High-intensity and heavy resistance training typically suffer without available carbohydrate, so it's often worth arranging the eating window so harder sessions are fuelled, and ensuring protein intake follows training reasonably soon rather than many hours later.

What symptoms mean I should stop?

Hunger, irritability, and headaches in the first week or two are common and usually settle. Persistent dizziness, fainting, heart palpitations, disrupted sleep, or a menstrual cycle becoming irregular or stopping are signals to stop rather than push through, and the last in particular warrants medical attention.

Sources & References

Authoritative references consulted in building this calculator and educational content. These are primary sources — check directly for the most current figures.

Related calculators

IVF Cost · Gut Health Score · Meditation Timer · Thyroid TSH · Daily Fiber