This intermittent fasting calculator converts your first and last eating times, or your last eating time plus a chosen fasting interval, into a daily clock schedule. The eating interval means the span from the first to the last eating time; it does not mean continuous eating. The complementary interval is the span from the last eating time to the next first eating time. Read protein and intermittent fasting for interpretation alongside this free online tool.
Work out your chosen clock times
The calculation runs in your browser. Your entries are not sent or saved by this tool.
JavaScript is needed for the interactive calculation. The method and worked examples below remain available without it. Read the screening guidance before using the arithmetic.

Who should not rely on this calculator?
Minors under 18 receive no schedule. Johns Hopkins Medicine’s guidance, updated April 2026, advises against intermittent fasting for children and teens, people who are pregnant or breastfeeding, and those with an eating-disorder history. If tracking hours makes eating distressing or restrictive, stop using the tool and seek clinical support. Tracking protein without counting calories offers a different approach to food logging, but a clinician should guide you if tracking itself is difficult.
NIH News in Health’s December 2019 discussion says to talk with a health care provider before fasting, especially for people under 25, pregnancy or breastfeeding, diabetes medicines, medicines taken with food, seizure disorders, night-shift work and operating heavy machinery. This calculator also withholds results for any diabetes, kidney disease or medically managed diet as a design safeguard. Your care team’s meal and medicine instructions take priority. Do not change medicine timing to fit a result.
How does the clock arithmetic work?
The calculation defines a repeating civil day as 24 hours, or 1,440 minutes, with 60 minutes per hour. NIST’s Guide to the SI, Table 6, supplies the hour and day conversions. For first and last eating times, convert each to minutes after midnight. Eating minutes = (last minutes − first minutes + 1,440) modulo 1,440. “Modulo” means keep the remainder after division. Fasting minutes = 1,440 − eating minutes. If the times are equal, the remainder alone cannot tell whether you mean no eating interval or a full day, so the tool asks.
For a chosen fasting interval, next first eating time = (last eating minutes + fasting minutes) modulo 1,440. Eating hours = 24 − fasting hours. The unreduced sum tells the tool whether the next first time falls on the same day or the next day. Results show the sequence starting with the time you entered, so an eating window that crosses midnight is also labelled clearly. These formulas are time arithmetic defined by this tool, not a physiological formula validated by NIH.
The tool accepts whole minutes and does not round intermediate values. The selectable 12-hour view changes the notation, not the interval. Midnight appears as 12:00 AM (midnight) and noon as 12:00 PM (noon); the 24-hour equivalents are 00:00 and 12:00. NIST’s time-of-day FAQ (updated 2024) explains why noon and midnight wording helps avoid ambiguity. Day labels always refer to the start of the displayed sequence.
Can you show a worked example and an invalid entry?
Suppose you already chose a 16-hour fasting interval after a last eating time of 20:00. The arithmetic is 20 × 60 + 16 × 60 = 2,160 minutes; subtract 1,440 to get 720 minutes, or 12:00 next day. The complementary eating interval is 24 − 16 = 8 hours, from 12:00 to 20:00. This is the clock meaning of a 16/8 schedule, not a suggestion to choose it.
An overnight eating-window example is 22:00 to 06:00 next day: (360 − 1,320 + 1,440) = 480 minutes, or 8 hours of eating interval, leaving 16 hours until 22:00. An earlier last time is treated as a midnight crossing; if you meant a same-day end, correct the entry.
An invalid-input example is 25:00: it is not a valid clock time, so no result appears. In duration mode, 24 hours is rejected because this tool does not calculate extended or multiday fasts. Equal first and last times need an explicit 0-hour or 24-hour eating interpretation. The 0-hour eating interpretation is also blocked because it would leave a full-day fasting interval; the 24-hour eating interpretation simply reports no fasting interval. These are scope rules, not medical thresholds.
What happens across daylight-saving changes?
The result is a repeating civil clock schedule, not an elapsed-time measurement. NIST’s daylight-saving explanation, updated February 2026, describes the US clock moving forward by 1 hour in spring and back by 1 hour in fall. An interval spanning that transition can therefore contain a different amount of elapsed time even when its displayed start and end stay the same. Local rules differ, and travel can change the relationship further.
No calendar date, time zone, countdown or elapsed-hour mode is implemented here. Do not treat the displayed duration as actual elapsed hours on a clock-change day. Use a date-aware time-zone calculation if you need to measure an actual interval, and follow your care team’s instructions for medically timed meals. A clock result cannot decide what to do when a local time is skipped or repeated.
Does an eating window change your protein target?
Changing the time fields leaves your existing daily protein target unchanged; the calculator does not compute nutrition needs, allocate protein to meal slots or add a food budget. Use the protein calculator for that separate estimate, with your care team’s advice when relevant. Protein at every meal covers meal distribution without turning this clock into a new per-meal formula. How much protein you need explains the daily target and its limits.
The NIH discussion is dated 2019 and describes uncertainty about fasting research. It does not establish an optimal duration for you. This page makes no efficacy claim, cannot tell whether fasting suits you, and does not predict weight change, glucose response or metabolic stages. The arithmetic alone is not clinical approval.
Before acting on a schedule, check the day labels against what you intended and discuss suitability with your care team. For the food-planning context, continue with protein and intermittent fasting.
Sources
- NIH News in Health. To Fast or Not to Fast: Does When You Eat Matter? December 2019. Screening guidance and evidence limits, not a personalized timing formula. NIH discussion
- Johns Hopkins Medicine. Intermittent Fasting: What Is It, And How Does It Work? Updated April 7, 2026. Who should avoid fasting. Clinical screening guidance
- National Institute of Standards and Technology. Guide to the SI, Chapter 5, Table 6. Time-unit definitions, accessed November 11, 2026. Hour and day conversions
- National Institute of Standards and Technology. Times of Day FAQs. Updated October 11, 2024. Noon and midnight notation
- National Institute of Standards and Technology. Daylight Saving Time Rules. Updated February 9, 2026. Civil clock changes
This article is general information, not medical advice. If you have a health condition, are pregnant, or follow a diet set by your doctor, talk to them or a registered dietitian before changing how you eat.