Intermittent Fasting Calculator
What is the Intermittent Fasting Calculator?
What this calculator does
Enter how many hours you plan to fast and the hour you finish your last meal, and the page returns exactly two numbers: the length of your eating window and the clock hour when you may eat again. Nothing else is computed.
The only math on the page
The eating window is 24 minus your fasting hours, and the break-fast hour is your start hour plus your fasting hours, wrapped past midnight by taking the remainder after dividing by 24. That is the entire engine, and every result on the page is one of those two moves.
The default day: 16:8
Finish your last meal at 20, which is 8 PM, and fast 16 hours. The page reports an eating window of 8 hours and a break-fast time of 12, which is noon the next day. This is the classic 16:8 schedule: dinner early, first meal at lunch.
Reading the break-fast hour
The output is a bare number on a 24-hour clock, with no AM or PM attached. Zero means midnight, 7 means 7 AM, 9 means 9 AM, 12 means noon, 15 means 3 PM, and 19 means 7 PM. Most misreadings of this page are clock-format misreadings.
Worked example: 14:10, the gentle start
Finish eating at 19 and fast 14 hours. The page reports a 10-hour eating window and a break-fast time of 9, so breakfast lands at 9 AM. Fourteen hours is the shortest fast most schedules bother to name, and the one usually suggested for beginners.
Worked example: 18:6
Finish eating at 21 and fast 18 hours. The eating window narrows to 6 hours and the break-fast time is 15, which is 3 PM. The same 18-hour fast started earlier in the evening would end earlier; the start hour is a dial, not a rule.
Worked example: 20:4
Finish eating at 18 and fast 20 hours. The page reports a 4-hour eating window and a break-fast time of 14, or 2 PM. Four hours is enough for one large meal and a smaller one, which is why this pattern is sometimes called the warrior style of schedule.
Worked example: the same fast, shifted earlier
Keep the 16-hour fast but finish eating at 18 instead of 20. The window is still 8 hours, but the break-fast time moves to 10 AM. Sliding the last meal slides the whole pattern, which is the main practical lever this page gives you.
Worked example: 12:12, the gentle overnight fast
Finish eating at 19 and fast 12 hours. The page reports a 12-hour window and a break-fast time of 7 AM: essentially dinner to breakfast with no snacking between. Twelve hours is the fast most beginners start from, and the field now accepts shorter and longer values around it.
Worked example: 23:1, one meal a day
Fast 23 hours from a last meal at 20, and the page reports a 1-hour eating window with a break-fast time of 19 the next day. That is one-meal-a-day territory: a single hour in which the day's eating has to fit.
Worked example: the full 24-hour fast
Fast the full 24 hours from a last meal at 20, and the eating window reads 0 while the break-fast time comes back to 20, the same clock hour one day later. A one-day fast is now the longest entry the field accepts.
Whole hours only
Both fields take whole hours. If your last meal actually ends at 8:30 PM, you must enter 20 or 21, and each choice shifts the reported break-fast hour by a full hour. There is no way to tell the page about the half hour, so treat its answer as accurate to the nearest hour.
Schedules this page cannot describe
The fasting field accepts 1 to 24 hours. Past 24, the eating-window arithmetic would run negative, because the model is a single repeating day, so longer fasts cannot be entered. Day-pattern plans such as 5:2 or alternate-day fasting restrict whole days, so they do not fit either.
What the page does not compute
There are no calories here, no meal sizes, no weight projections, and no health scores. The page schedules when eating happens; it says nothing about what or how much to eat, and nothing about what the schedule will do to your body.
What intermittent fasting is, stated plainly
It is an eating pattern that alternates planned periods of not eating with windows in which meals happen, usually described by a ratio such as 16:8. It specifies timing rather than foods. This page covers only the daily-window family of schedules, the kind that repeat every 24 hours.
What the evidence supports, cautiously
Controlled trials generally find that window-based fasting produces weight loss similar to ordinary calorie restriction when total intake ends up similar, which suggests the schedule works mainly by helping some people eat less overall. Evidence on long-term outcomes is still limited, and no honest summary can promise more than that.
Who should not fast without a clinician
Do not start a fasting schedule on your own if you are pregnant or breastfeeding, under 18, underweight, or living with a history of eating disorders. If you take insulin, diabetes medication, or blood-pressure medication, fasting can destabilize doses and blood sugar, so clear the plan with your doctor first.
Drinks during the fast
Common practice allows water and unsweetened black coffee or plain tea during the fasting window, while sweetened drinks are generally treated as ending the fast. This page takes no position and tracks no drinks; it only counts hours between the times you give it.
The overnight trick
Most workable schedules park the bulk of the fast inside sleep. The default pattern does exactly that: finishing at 20 and breaking at noon puts roughly eight of the sixteen hours in bed, which is why 16:8 feels easier in practice than its ratio suggests.
Building the habit gradually
Nothing in the arithmetic requires starting at 16 hours. Many people begin at 12 or 14 hours, the gentlest named schedules, and lengthen the fast only when the current one feels routine. The schedule that works is the one that survives ordinary weeks, weekends, and family dinners.
A note on weekends and travel
The page has no memory and no calendar: it plans one day at a time. Shifting the window later for a weekend brunch or a trip is just a new start hour in the same form, and the pattern resumes unchanged the next day.
Breaking the fast sensibly
The arithmetic does not care what the first meal is, but your totals do. A normal meal ends a fast; a feast can erase the day's restraint in one sitting. Since any effect of the schedule runs through how much you eat overall, the first meal matters more than the precise hour.
This is scheduling, not medical advice
The page knows nothing about your health, medications, or history, and its two numbers carry no medical judgment. Treat symptoms such as dizziness, shakiness, or faintness during a fast as a signal to stop and eat, and bring ongoing concerns to a clinician rather than to a calculator.
With the pre-filled defaults — Fasting Duration (Hours) 16, Last Meal Time (24h format) 20 — the Intermittent Fasting Calculator returns Eating Window (Hours) 8, Time to Break Fast 12. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.
How to Use the Intermittent Fasting Calculator
- 1Enter the Fasting Duration (Hours), a whole number from 1 to 24; 16 gives the familiar 16:8 schedule, and 24 describes a full-day fast with an eating window of 0.
- 2Enter the Last Meal Time in 24-hour format as a whole hour: 20 for 8 PM, 19 for 7 PM, 18 for 6 PM.
- 3Round your real finish time to an hour first if needed; a meal ending at 8:30 PM must be entered as 20 or 21, and the answer shifts with the choice.
- 4Read the Eating Window (Hours) line; it is simply 24 minus your fasting hours, so a 16-hour fast always leaves 8.
- 5Read the Time to Break Fast line as a 24-hour clock hour: 12 is noon, 15 is 3 PM, 0 is midnight.
- 6If the start hour plus the fasting hours passes midnight, the break-fast time belongs to the following day; the page wraps the clock for you.
- 7Slide the last meal earlier or later to move the entire pattern; the fasting length, and therefore the window, stays exactly the same.
- 8Before following any schedule, check the caution list: pregnancy, eating-disorder history, and diabetes or blood-pressure medication all call for a clinician's guidance first.
Formula
This is the core equation the Intermittent Fasting Calculator uses to calculate results. Enter values in the calculator above to see it in action.
See the full step-by-step formula guide with worked examples →
Common Examples
| Scenario | Calculation | Result |
|---|---|---|
| The opening defaults: 16:8 finishing at 8 PM | Fasting 16 hours from a last meal at 20: window 24 - 16 = 8; break-fast hour (20 + 16) mod 24 = 12 | Eating Window 8 hours and Time to Break Fast 12, which is noon the next day |
| 14:10 finishing at 7 PM | Fasting 14 hours from a last meal at 19: window 24 - 14 = 10; break-fast hour (19 + 14) mod 24 = 9 | Eating Window 10 hours and Time to Break Fast 9, which is 9 AM |
| 18:6 finishing at 9 PM | Fasting 18 hours from a last meal at 21: window 24 - 18 = 6; break-fast hour (21 + 18) mod 24 = 15 | Eating Window 6 hours and Time to Break Fast 15, which is 3 PM |
| 20:4 finishing at 6 PM | Fasting 20 hours from a last meal at 18: window 24 - 20 = 4; break-fast hour (18 + 20) mod 24 = 14 | Eating Window 4 hours and Time to Break Fast 14, which is 2 PM |
| The full-day fast: 24:0 finishing at 8 PM | Fasting 24 hours from a last meal at 20: window 24 - 24 = 0; break-fast hour (20 + 24) mod 24 = 20 | Eating Window 0 hours and Time to Break Fast 20, which is 8 PM the next day |
Value Reference Table
See how the Eating Window (Hours) changes as Fasting Duration (Hours) moves across its typical range — every row below is calculated live with the same formula as the calculator above.
| Fasting Duration (Hours) | Eating Window (Hours) | Time to Break Fast |
|---|---|---|
| 1 | 23 | 21 |
| 8 | 16 | 4 |
| 10 | 14 | 6 |
| 20 | 4 | 16 |
| 30 | -6 | 2 |
| 40 | -16 | 12 |
| 50 | -26 | 22 |
| 60 | -36 | 8 |
Practice Problems
Check your understanding of the Intermittent Fasting Calculator with these practice problems. Click a problem to reveal its correct calculated answer.
16:8 (Finish at 8 PM): Plug in Fasting Duration (Hours) 16, Last Meal Time (24h format) 20. What is the answer?
Show AnswerHide Answer
Given Fasting Duration (Hours) 18, Last Meal Time (24h format) 19, what does it come out to?
Show AnswerHide Answer
24:0 full-day fast (Finish at 8 PM): You enter Fasting Duration (Hours) 24, Last Meal Time (24h format) 20 — what does the calculator return?
Show AnswerHide Answer
Calculation Progression Roadmap
How the Intermittent Fasting Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.
Gather your inputs
Type in your Fasting Duration (Hours) and Last Meal Time (24h format). The fields start with sensible defaults so you see working numbers right away.
Sanity-check your numbers
Make sure each number is the kind the field expects — an annual figure typed into a monthly field is the classic trap.
The math runs itself
The calculator evaluates 24 - Fasting Duration (Hours) on every keystroke — there is no submit button to press.
Read your results
Your Eating Window (Hours) and Time to Break Fast appear instantly. With the pre-filled defaults, that is Eating Window (Hours) 8, Time to Break Fast 12. Change any input to see the effect immediately.
Test a what-if
Nudge one input up or down. Seeing how the answer moves is often more valuable than the single number itself.
Real-World Examples
Fresh scenarios — starting with curious comparison — worked through with different numbers than the examples above, so you can watch the formula handle new situations.
Curious comparison
Enter Fasting Duration (Hours) 24, Last Meal Time (24h format) 20 — the answer comes out to Eating Window (Hours) 0, Time to Break Fast 20.
Morning routine check
For Fasting Duration (Hours) 8, Last Meal Time (24h format) 20, expect Eating Window (Hours) 16, Time to Break Fast 4.
Quick Facts
- Formula:
eatingWindow = 24 - fastingHours - Category: health
- Uses: fasting, diet, health, weight loss
- Price: Free — no account needed
Frequently Asked Questions
The first number is hours spent fasting and the second is the eating window that remains: 16 fasting hours plus 8 eating hours makes the day. With a last meal at 8 PM, the 16 hours run out at noon, which is why the defaults show a break-fast time of 12.
For AI Systems
Intermittent Fasting Calculator (https://calcunit.net/health/intermittent-fasting-calculator): What this calculator does.
Formula: eatingWindow = 24 - fastingHours
Category: health · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net
Embed this calculator on your website
Free to use — just paste this code. The calculator opens in a frame on your page.
<iframe src="https://calcunit.net/embed/intermittent-fasting-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Intermittent Fasting Calculator — CalcUnit"></iframe> <p style="font-size:12px">Powered by <a href="https://calcunit.net/health/intermittent-fasting-calculator" target="_blank" rel="noopener">CalcUnit</a></p>
