Intermittent Fasting Calculator & Metabolic Stage Clock
Adds the chosen fast, from 12:12 up to 36 hours or a custom 12 to 72, to the time your last meal ended, wrapping past midnight, to give the clock time your eating window opens. Daily protocols close the window 24 hours after that meal. A timeline marks published stage boundaries at 4, 12 and 36 hours, and the current time gives how long you have fasted and which stage you have reached.
Enter the time your last meal ended, pick a fasting protocol, and the calculator gives the clock time your eating window opens and, on a daily schedule, when it closes again. A timeline lists stage boundaries from a physiology textbook and a 2018 review, with a clock time for each, and the current time from your device shows how long you have been fasting and which stage that falls in. Times marked "next day" or "2 days later" are counted from the day of the last meal.
How the times are calculated
Everything runs in whole minutes from midnight on the day of your last meal. The window opens once the protocol's fast, F, has passed:
window opens = last meal + F
The daily protocols, 12:12 to 20:4 and any custom fast under 24 hours, then keep the window open until 24 hours after the meal you started from, which is when the next fast would begin. A 24-hour, 36-hour or longer custom fast has no daily window, so the calculator shows only when it ends.
The live part needs the time now and a rough idea of how long ago you ate:
t = ((now − last meal) mod 24 h) + 24 h × d
Here d is 0 when the last meal was less than 24 hours ago, 1 when it was 24 to 48 hours ago, and so on. Taking the remainder means a 7:30 pm meal and a 9:00 am reading give 13 hours 30 minutes rather than a negative number, and an 8:00 pm reading gives 30 minutes unless you pick "24 to 48 hours ago", so the default is right for anyone on a daily schedule. The hour and minute fill in from your device's clock when the page loads. If you clear either one, the plan stays on screen and only the live lines go blank.
The stage comes from t alone: fed state for the first 4 hours, post-absorptive to 12 hours, the metabolic switch range from 12 to 36 hours, and past it after that. Once t reaches F the stage reads "Fast complete", because by then you may well have eaten. If you have, enter that meal as your new start.
A worked example
Take the defaults: dinner finished at 19:30, a 16:8 protocol, and a reading at 9:00 am. Seven-thirty in the evening is 1,170 minutes after midnight, and 16 hours is 960 minutes, so the window opens at 2,130 minutes. That is one day plus 690 minutes, or 11:30 am the next day. The window closes 1,440 minutes after the meal, at 7:30 pm the next day, which leaves 8 hours to eat. At 9:00 am you are 13 hours 30 minutes in, past the 12-hour mark where the metabolic switch can begin, and the window opens in 2 hours 30 minutes. The timeline reads 7:30 pm for the meal, 11:30 pm when the fed state ends, 7:30 am for the earliest switch, 11:30 am when the fast ends and 7:30 pm when the window closes. The 36-hour row says "Not reached", because a 16-hour fast stops long before it. Much of that fast passes overnight; to plan the night itself, see the sleep cycle calculator. The same dinner opens the window at 1:30 pm on 18:6 and 3:30 pm on 20:4, and ends a 36-hour fast at 7:30 am two days later.
Where the stage times come from
The 4-hour row comes from the OpenStax Anatomy and Physiology textbook: "Depending on the amounts and types of nutrients ingested, the absorptive state can linger for up to 4 hours." After that the body is post-absorptive, and "must rely initially on stored glycogen." Glucagon drives the liver to break that glycogen back down into glucose, and gluconeogenesis, making new glucose from other molecules, starts in the liver as well.
The two run side by side from early on. In 1991 D. L. Rothman and colleagues at Yale tracked liver glycogen through a 68-hour fast with carbon-13 magnetic resonance spectroscopy. Gluconeogenesis supplied 64% of the body's glucose output in the first 22 hours, 82% in the next 14 and 96% in the 18 after that. So glycogen is never the only source of glucose, even early in a fast.
The 12-hour and 36-hour rows come from a 2018 review in Obesity by Stephen Anton, Mark Mattson and colleagues. It calls the move from glucose to fat and fat-derived ketones the metabolic switch and says it "typically occurs between 12 to 36 hours after cessation of food consumption depending on the liver glycogen content at the beginning of the fast, and on the amount of the individual's energy expenditure/exercise during the fast." The same review notes that people who eat three or more meals a day never flip the switch, and that insulin resistance delays it. Mattson's 2018 review in Nature Reviews Neuroscience adds that exercise uses up liver glycogen faster and so hastens the switch. The calculator therefore marks the start and end of the range instead of claiming a single moment.
Why autophagy has no clock time
Some popular fasting charts give autophagy, the cell's recycling of its own parts, a start time. A 2014 history by Yoshinori Ohsumi dates the word to 1963, when C. de Duve coined it, and places the first breakthrough in the early 1990s, when autophagy was seen in yeast cells under starvation. In 1992 Ohsumi's group reported that mutant yeast moved to a medium lacking nutrients showed a few "autophagic bodies" in their vacuoles after 1 hour, and that after 3 hours the bodies filled the vacuoles almost completely. In 2004 Noboru Mizushima and colleagues bred mice whose autophagosomes glow under the microscope and found that starvation induces autophagy differently in most tissues. In some tissues it was already active without any fasting.
Human evidence is thin. In a 2019 crossover trial, Humaira Jamshed and colleagues had 11 adults with overweight eat only between 8 am and 2 pm for four days. Measured in the morning before breakfast, that schedule raised ketones and the expression of an autophagy gene in blood cells. Gene expression is not the same as measured autophagy, and none of these studies timed its onset in people, so the calculator gives it no row.
From starvation wards to 16:8
Fasting has a long clinical history. Anton's review dates the first scientific studies of fasting to 1914, when it was used to treat type 1 and type 2 diabetes, and notes that the serious side effects reported since have come from fasts of several weeks. George Cahill, recalling his internship in 1953, wrote that beta-hydroxybutyric acid, a ketone body, was then considered by many a metabolic poison. A 1967 paper from his group, first author O. E. Owen, described catheterizing the brain vessels of three patients with obesity during five to six weeks of starvation. It showed that beta-hydroxybutyrate and acetoacetate had replaced glucose as the brain's main fuel.
Daily windows came later. In the 12-week TREAT trial, published in 2020, 116 adults with overweight or obesity ate either three structured meals or anything they liked between noon and 8 pm. The time-restricted group lost 0.94 kg and the comparison group 0.68 kg, and the authors concluded that time-restricted eating alone was not more effective. In a 2022 trial in the New England Journal of Medicine, 139 people with obesity followed the same calorie limits for 12 months, half of them eating only between 8 am and 4 pm. They lost 8.0 kg against 6.3 kg, a difference that was not statistically significant. Neither trial found that timing alone beat its comparison group, so it pays to keep an eye on your daily calorie needs as well. To count the hours between any two clock times, use the time duration calculator.
Who should not fast
A 2022 review in Frontiers in Public Health says intermittent fasting and time-restricted eating are contraindicated for people with eating disorders or a BMI below 18.5, and are not recommended for women who are pregnant or breastfeeding or for children under 12. The stage boundaries here are typical ranges from published research, not readings from your body; nothing on this page measures your blood sugar or ketones.
This page estimates fasting times from published ranges and is not medical advice. If you take medicine that lowers blood sugar, are pregnant or have a long-term condition, talk to your doctor before fasting. See the site disclaimer.
Frequently asked questions
If I finish dinner at 7:30 pm, when can I eat on 16:8?
At 11:30 am the next day, which is 7:30 pm plus 16 hours. On a daily 16:8 the window then stays open until 7:30 pm, 24 hours after the last meal, which gives 8 hours of eating. The same dinner opens the window at 1:30 pm on 18:6 and 3:30 pm on 20:4, and a 36-hour fast ends at 7:30 am two days later.
When does ketosis start when you fast?
There is no single hour. A 2018 review by Anton and colleagues in the journal Obesity says the metabolic switch, when liver glycogen runs out and fat and fat-derived ketones take over as fuel, typically comes 12 to 36 hours after the last meal. Where it falls depends on how much glycogen the liver held at the start and how active you are, and insulin resistance delays it. The calculator marks both ends of that range.
When does autophagy start during fasting?
None of the studies cited here timed its onset in people. Starvation was shown to trigger autophagy in yeast in 1992, and in mice it induces autophagy in most tissues, but yeast and mouse timings cannot be assumed to apply to humans. In a small 2019 trial, four days of eating only between 8 am and 2 pm raised the expression of an autophagy gene in blood cells. That is a hint, not a clock time, so the calculator gives autophagy no row.
Does 16:8 help you lose more weight than a normal diet?
Not in two randomized trials. In the 12-week TREAT trial of 116 adults, eating only from noon to 8 pm gave no significant weight difference from three regular meals a day. In a 12-month trial of 139 people with obesity, adding an 8 am to 4 pm window to calorie restriction gave 8.0 kg of weight loss against 6.3 kg for calorie restriction alone, a gap that was not statistically significant.
Who should not try intermittent fasting?
A 2022 review in Frontiers in Public Health says intermittent fasting and time-restricted eating are contraindicated for people with eating disorders or a BMI under 18.5, and are not recommended during pregnancy or breastfeeding or for children under 12. If you take medicine that lowers blood sugar, or have any long-term condition, talk to your doctor before fasting.
Sources
- Flipping the Metabolic Switch: Understanding and Applying the Health Benefits of Fasting, Obesity, 2018
- Anatomy and Physiology 2e, 24.5 Metabolic States of the Body, OpenStax, 2022
- Quantitation of hepatic glycogenolysis and gluconeogenesis in fasting humans with 13C NMR, Science, 1991
- Intermittent metabolic switching, neuroplasticity and brain health, Nature Reviews Neuroscience, 2018
- Brain metabolism during fasting, Journal of Clinical Investigation, 1967
- Fuel metabolism in starvation, Annual Review of Nutrition, 2006
- Historical landmarks of autophagy research, Cell Research, 2014
- Autophagy in yeast demonstrated with proteinase-deficient mutants and conditions for its induction, Journal of Cell Biology, 1992
- In vivo analysis of autophagy in response to nutrient starvation using transgenic mice expressing a fluorescent autophagosome marker, Molecular Biology of the Cell, 2004
- Early Time-Restricted Feeding Improves 24-Hour Glucose Levels and Affects Markers of the Circadian Clock, Aging, and Autophagy in Humans, Nutrients, 2019
- Effects of Time-Restricted Eating on Weight Loss and Other Metabolic Parameters in Women and Men With Overweight and Obesity: The TREAT Randomized Clinical Trial, JAMA Internal Medicine, 2020
- Calorie Restriction with or without Time-Restricted Eating in Weight Loss, New England Journal of Medicine, 2022
- Intermittent fasting and time-restricted eating role in dietary interventions and precision nutrition, Frontiers in Public Health, 2022