Fasting calculator
Set your last meal time and a pattern. The tool schedules the window and nothing more.
Free · no signup Runs in your browser
Markers through the fast
How does 16:8 fasting work?
You eat within an 8-hour window and take nothing with calories for the other 16 hours. If your last food is at 8 pm, the fast runs until noon the next day and the window is noon to 8 pm. Water, plain black coffee and unsweetened tea are generally considered not to break a fast.
It is clock arithmetic, and that is all
Most fasting calculators bundle the timing with calorie targets, weight projections and claims about what happens to your metabolism at particular hour marks.
This one does the timing. The evidence on the wider claims is genuinely mixed and moves regularly, and a calculator is a poor place to arbitrate it. What is not in doubt is that people find the window arithmetic fiddly, particularly when it crosses midnight — so that is what this solves.
The quarter, halfway and three-quarter markers exist because the practical difficulty of a fast is usually planning the day around it rather than the fast itself.
The patterns
Each is written as fasting hours to eating hours, adding to 24.
12:12 12 hours fasting, 12 hour window14:10 14 hours fasting, 10 hour window16:8 16 hours fasting, 8 hour window18:6 18 hours fasting, 6 hour window20:4 20 hours fasting, 4 hour windowfast ends = last food + fasting hourswindow ends = fast ends + (24 − fasting hours)
The overnight sleep does most of the work in every pattern. On 16:8 with a last meal at 8 pm, roughly eight of the sixteen hours are spent asleep — which is why the pattern is manageable for most people and why moving the window later rarely makes it easier.
Water, plain black coffee and unsweetened tea are conventionally treated as not breaking a fast. Anything with calories does, including milk in coffee and most so-called zero-calorie additions in sufficient quantity.
Worked example: 16:8 with dinner at 8 pm
Finishing dinner at 8:00 pm on a 16:8 pattern.
- Last food8:00 pm
- Fast length16 hours
- Fast ends12:00 pm next day
- Eating window12:00 pm to 8:00 pm
- Halfway through the fast4:00 am
Skip breakfast, eat between noon and 8 pm, repeat.
Note that the halfway point falls at 4 am. In practice most of the difficulty sits in the final three or four hours before the window opens, not in the middle.
Practical notes
- Water, black coffee and unsweetened tea are generally considered not to break a fast
- Milk, sugar and most flavoured drinks do break one
- Medication that must be taken with food takes priority over the window, always
- Shift workers usually find a window anchored to their own sleep works better than a clock time
- Starting at 12:12 and shortening gradually is easier than beginning at 20:4
Assumptions and limits
- Schedules times only — no calorie, macro or weight modelling
- Assumes a single continuous eating window per day
- Extended fasts beyond 24 hours are not covered and warrant medical supervision
- Makes no claim about health outcomes, which remain genuinely debated
- Not suitable as guidance for anyone with a history of disordered eating
Common questions
What is 16:8 fasting?
Eating within an 8-hour window and consuming nothing with calories for the other 16 hours. With a last meal at 8 pm, the fast runs to noon and the eating window is noon to 8 pm. Roughly half the fast is spent asleep.
Does coffee break a fast?
Plain black coffee is generally considered not to, and the same goes for water and unsweetened tea. Adding milk, sugar or syrup adds calories and does break it. Definitions vary between protocols, so this is a convention rather than a rule.
Which fasting pattern should I choose?
This tool schedules whichever you pick and deliberately does not recommend one. If you are starting out, a shorter fast such as 12:12 or 14:10 is easier to sustain than jumping to 18:6 or 20:4.
Can I take medication during a fast?
Medication that must be taken with food takes priority over the eating window, without exception. Adjust the window around your medication rather than the other way round, and speak to your pharmacist or doctor about timing.
Is intermittent fasting safe for everyone?
No. It is not appropriate during pregnancy or breastfeeding, for people managing diabetes or other metabolic conditions, for anyone on medication requiring food, or for anyone with a history of disordered eating. Speak to a doctor before starting.
Where these numbers come from
- Government of Canada — Canada's Food Guide National healthy eating guidance, including eating habits and meal timing.
- Diabetes Canada Guidance for anyone managing diabetes who is considering changes to meal timing.
Last verified 2026-08-01 The method on this page is checked against the sources above at least once a year. Spotted something out of date? Tell us and we will fix it.
Related calculators
Caffeine calculator
Daily intake against Health Canada limits, plus how much is still in you tonight.
Open calculatormg to mL
Convert milligrams to millilitres — which needs a concentration, and always will.
Open calculatorCorrected age
Adjusted age for a baby born preterm, with the milestone dates that follow from it.
Open calculatorVDOT calculator
Turn a race result into a VDOT score and the five training paces that follow from it.
Open calculatorVertex conversion
Convert a glasses prescription to its contact lens equivalent using vertex distance.
Open calculatorHumidex
Canada's own heat index, from temperature and either dewpoint or relative humidity.
Open calculator🩺 Health and animal calculators
Estimates only. Every tool in this section names its source and tells you when to ask a professional instead.
See all 10 calculators in this section