This fasting calculator does two jobs. It shows how many hours you have fasted since your last meal, and it works out the clock time when your eating window opens for a schedule such as 16:8. Enter times in 24-hour form, so 8:00 PM is 20.
Fasting Calculator
Hours since your last meal, or when your eating window opens for an intermittent-fasting schedule (e.g. 16:8).
Starting values: the hours-fasted mode opens with a fast that started at 20 (8:00 PM) and a current time of 8 (8:00 AM). The result is 12.0 hours. The eating-window mode opens with a fast starting at 20 and a 16-hour fasting window, and it returns 12:00 PM (next day).
How to enter times
Both modes take the time as a number on a 24-hour clock. Midnight is 0, 6:00 AM is 6, noon is 12, 6:00 PM is 18 and 8:00 PM is 20. For half hours use a decimal, so 8:30 PM is 20.5 and 6:45 AM is 6.75. The calculator does not check that a time is below 24, so keep your entries between 0 and 24.
Mode 1: hours fasted so far
Hours fasted = Current time − Start time, or if the current time is earlier on the clock, Current time + 24 − Start time
Where the start time is when you finished your last meal and the current time is the time now.
Example 1: the default
Start at 20, now 8. The current time is earlier than the start, so the calculation is 8 + 24 − 20 = 12.0 hours.
Example 2: half-hour times
Start at 19.5 (7:30 PM), now 11.5 (11:30 AM). Hours fasted = 11.5 + 24 − 19.5 = 16.0 hours.
Example 3: the same day
Start at 12 (noon), now 18 (6:00 PM). The current time is later, so 18 − 12 = 6.0 hours.
A limit of this mode
The calculator assumes the fast started within the last 24 hours. If the start and current times are the same, it returns 0.0 hours, not 24. For a fast longer than a day, add the extra whole days yourself. A fast that began at 20 and is now 8 on the second morning is 12 + 24 = 36 hours.
Mode 2: when the eating window opens
Eating window opens = Fast start time + Fasting window length (in hours)
The sum is then turned into a clock time, and the label adds (next day) if it passes midnight.
Example 4: 16:8 from an 8 PM finish
20 + 16 = 36. Subtracting 24 leaves 12, so the eating window opens at 12:00 PM (next day).
Example 5: an 18-hour fast
20 + 18 = 38, which is 14 after one day: 2:00 PM (next day).
Example 6: an earlier finish
Finish eating at 18 (6:00 PM) with a 16-hour fast: 18 + 16 = 34, which is 10 after one day, so the window opens at 10:00 AM (next day).
Example 7: a half-hour start
Start at 20.5 with a 14-hour fast: 20.5 + 14 = 34.5, which is 10.5 after one day, so 10:30 AM (next day).
The label only says next day for any fast that passes midnight. A 36-hour fast from 20 gives 8:00 AM (next day) even though that morning is the second day after your start, so keep count of longer fasts yourself.
What the schedule names mean
A schedule written as 16:8 means a 16-hour fast followed by an 8-hour eating window. 18:6 and 20:4 follow the same pattern. To use them here, enter the first number as the fasting window length. The eating window then runs from the opening time for the second number of hours.
Check with a professional first
Fasting affects people differently. Anyone with a history of disordered eating, who is pregnant or breastfeeding, who has diabetes or who takes medication that must be taken with food should talk to a healthcare provider before trying intermittent fasting. This calculator tracks time only. It does not make any claim about health benefits, and it cannot tell you whether a fast is right for you.
Tips for entering your times
- For a meal that ended at 7:15 PM, enter 19.25, because 15 minutes is a quarter of an hour.
- Black coffee or water timing is up to you. The calculator only counts from the time you enter.
- If you check the hours-fasted mode first thing in the morning, the start is last night’s finish, and the current time is the time now.
Example 8: a 20:4 pattern
With a 20-hour fast that begins at 20 (8:00 PM), 20 + 20 = 40, which is 16 after one day: 4:00 PM (next day). The 4-hour window then runs to 8:00 PM, when the next fast begins.
Frequently asked questions
How do I enter 8 PM in the fasting calculator?
Use the 24-hour clock, so 8 PM is 20. For 8:30 PM enter 20.5.
What does 16:8 mean?
It means fasting for 16 hours and eating within an 8-hour window. Enter 16 as the fasting window length to see when the eating window opens.
Why does the result say next day?
The eating window opens after midnight. The label is added whenever the end of the fast falls after the start day.
Can the calculator track a fast longer than 24 hours?
The hours-fasted mode assumes less than 24 hours. For a longer fast, add whole days to the result yourself.
Who should not try intermittent fasting without advice?
Anyone with a history of disordered eating, who is pregnant or breastfeeding, who has diabetes or who takes medication that requires food should check with a healthcare provider first.
