CalcUnit Logo

How to Calculate Intermittent Fasting

Calculate your fasting and eating windows based on popular intermittent fasting schedules like 16:8.

The Formula

eatingWindow = 24 - fastingHours

The intermittent fasting formula uses the mathematical relationship: eatingWindow = 24 - fastingHours. Each variable in the formula represents a measurable quantity that affects the final result.

What Each Variable Means

Every value in the intermittent fasting formula, what it measures, and the value used in the worked example on this page:

VariableTypeExample value
Fasting Duration (Hours)Input (you provide)16
Last Meal Time (24h format)Input (you provide)20
Eating Window (Hours)Result (calculated)—
Time to Break FastResult (calculated)—

Step-by-Step Method

  1. 1Write down the values you know: Fasting Duration (Hours), Last Meal Time (24h format).
  2. 2Substitute your known values into the formula: eatingWindow = 24 - fastingHours.
  3. 3Work through the arithmetic in the standard order of operations — parentheses first, then exponents, then multiplication and division, then addition and subtraction.
  4. 4Check that your result carries the correct unit and falls in a reasonable range for the problem.
  5. 5Verify your answer with the interactive Intermittent Fasting Calculator — it solves the same formula instantly.

Worked Example

Take a concrete case: fasting duration (hours) = 8, with the other inputs at the typical values from the variables table above. Substituting into the formula gives eating window (hours) = 16, time to break fast = 4. These numbers are solved by the same engine that powers the Intermittent Fasting calculator, so you can reproduce them exactly by entering the same inputs there.

Fasting Duration (Hours)Eating Window (Hours)Time to Break Fast
12321
8164
10146
20416
30-62
40-1612
50-2622
60-368

How each result changes as fasting duration (hours) changes, holding the other inputs constant.

Practice Problems

1. 16:8 (Finish at 8 PM): Plug in Fasting Duration (Hours) 16, Last Meal Time (24h format) 20. What is the answer?

Answer: With Fasting Duration (Hours) 16, Last Meal Time (24h format) 20, the results are Eating Window (Hours) 8, Time to Break Fast 12.

2. Given Fasting Duration (Hours) 18, Last Meal Time (24h format) 19, what does it come out to?

Answer: Entering Fasting Duration (Hours) 18, Last Meal Time (24h format) 19 gives Eating Window (Hours) 6, Time to Break Fast 13.

Frequently Asked Questions

What is the formula for intermittent fasting?

The formula is: eatingWindow = 24 - fastingHours. Calculate your fasting and eating windows based on popular intermittent fasting schedules like 16:8.

What values do I need to calculate intermittent fasting?

You need fasting duration (hours), last meal time (24h format). The calculator produces eating window (hours), time to break fast from those inputs.

What is the intermittent fasting when fasting duration (hours) is 8?

With fasting duration (hours) = 8, the result is eating window (hours) = 16, time to break fast = 4. This is worked through in full in the example on this page.

Related Topics

fastingdiethealthweight lossintermittent fasting

Use the Interactive Calculator

Skip the manual math — get instant results with our free Intermittent Fasting calculator.

Open Calculator

Related Calculators