An intermittent fasting calculator tells you exactly when your eating window opens and closes, so you stop guessing and start timing. Feed it your protocol and your last meal, and it does the math for the whole day.
This guide shows what the calculator works out, how the math behind it works, and why timing the fast is only half of the job.
A calculator times the fast. ContaCal counts the food.
ContaCal reads your plate from a photo and the AI estimates the calories. The clock keeps your window, the app keeps your deficit.
Try Free →
What an intermittent fasting calculator does
An intermittent fasting calculator turns your protocol and your last meal into an exact start and end time for your eating window.
You pick a ratio, like 16:8, and enter when you stopped eating. The tool returns when your fast ends, when your window closes, and how much time is left right now.
It removes the mental math and the second-guessing. The general framework behind these ratios is well described by Johns Hopkins Medicine.
How the math works
The two numbers are fasting hours and eating hours, and they always add up to 24.
On 16:8, you fast for 16 hours and eat within an 8 hour window. If your last bite is at 8 pm, your fast runs overnight and breaks at noon the next day. The window then stays open until 8 pm.
The calculator just adds the fasting hours to your last meal and marks the window. Simple, but easy to get wrong by an hour when you do it in your head.
| Protocol | Fasting | Eating window | Best for |
|---|---|---|---|
| 12:12 | 12 h | 12 h | Beginners |
| 14:10 | 14 h | 10 h | Easing in |
| 16:8 | 16 h | 8 h | Most common |
| 18:6 | 18 h | 6 h | Experienced |
| 20:4 | 20 h | 4 h | Advanced |
📊 Worth knowing: the ratio sets the schedule, not the results. Two people on the same 16:8 can get opposite outcomes, because what they eat in the window decides whether there is a calorie deficit at all.
ContaCal
Count calories and macros with just 1 photo
Snap your meal and the AI instantly calculates calories, protein, carbs and fat.
When your window opens and closes
Your window opens the moment your fast hours are up and closes that many hours later.
Say you finish dinner at 9 pm on 16:8. The fast ends at 1 pm the next day, and the window closes at 9 pm. Most people anchor the window around lunch and an early dinner, which is the easiest to keep socially.
Black coffee, tea, and water do not break the fast, so they are fine before the window opens.
The calculator times the fast, not the food
An intermittent fasting calculator manages the clock, but weight change still comes from the calories inside the window.
This is where most plans quietly fail. The window is perfect, the food is not, and the deficit never happens. A short window even tempts some people to overeat to make up for it.
That is the gap ContaCal fills. It is the photo calorie counting app that uses artificial intelligence to estimate the calories on your plate from a picture, so the window you timed actually adds up. To set the target, see intermittent fasting 1 week results.
Timed the window. Now count what fills it.
Snap each meal and ContaCal's AI adds up the calories, so your fast turns into a real deficit.
Try Free →
How to use it with your goal
Pick the longest window you can keep without overeating, then hold a small calorie deficit inside it.
Start at 12:12 or 14:10, move to 16:8 once it feels natural, and let the calculator handle the times. Pair it with a moderate deficit, the pace Harvard Health ties to lasting results. New to the method? Start with how to do intermittent fasting. Women may want to time the window by cycle, covered in intermittent fasting for women.
⚠️ Caution: a calculator can schedule long fasts, but windows beyond 20:4 or multi-day fasts are not for beginners and need medical guidance. Pregnant women, people with diabetes, and anyone with a history of disordered eating should talk to a doctor first.
Time the fast. Count the window.
Let ContaCal's AI read your plate from a photo and turn your fasting window into a real deficit.
Try Free →

