Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Intermittent fasting calculator

Pick a fasting schedule and the time your last meal ends, and see when your fast ends and your eating window starts.

A general estimate, not medical advice. Fasting isn't advised for children and teens, during pregnancy or breastfeeding, for people with type 1 diabetes who take insulin, or with a history of eating disorders. If you take medicine or have a health condition, check with your doctor first. It can't diagnose anything. For advice about your own health, talk to your doctor.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Setting a calorie target too? Try the calorie calculator.

How the windows are worked out

Fast ends = last meal + fasting hours
Eating window = (last meal − eating hours) to last meal
Fasting hours + eating hours = 24

These daily schedules are often called time-restricted eating. The first number is the hours of fasting and the second the hours you eat in. With OMAD (one meal a day), the eating window is about an hour.

ScheduleFastingEating windowExample (last meal 7:00 PM)
14:1014 h10 hEat 9:00 AM – 7:00 PM
16:816 h8 hEat 11:00 AM – 7:00 PM
18:618 h6 hEat 1:00 PM – 7:00 PM
20:420 h4 hEat 3:00 PM – 7:00 PM
OMAD (23:1)23 h1 hEat 6:00 PM – 7:00 PM

Worked example

On 16:8 with your last meal ending at 7:00 PM: 7:00 PM + 16 hours = 11:00 AM the next day. You'd eat between 11:00 AM and 7:00 PM, then fast again.

What the research says

Intermittent fasting is popular, and studies have looked at weight, blood sugar and other markers. A 2019 review in the New England Journal of Medicine by de Cabo and Mattson summarized possible benefits, mostly from animal studies and short human trials. In a year-long trial published in 2022, people who ate within an 8-hour window and also cut calories lost about the same weight as people who cut calories alone. For many people, how much and what they eat matters more than when.

Tips and cautions

  • Water and drinks without calories, such as plain tea or black coffee, are usually allowed while fasting.
  • Starting with 12 or 14 hours and working up is easier than jumping straight to 18:6 or OMAD.
  • Johns Hopkins advises that children and teens, people who are pregnant or breastfeeding, people with type 1 diabetes who take insulin, and anyone with a history of eating disorders shouldn't try intermittent fasting.
  • If you take diabetes or blood pressure medicine, fasting can change how it affects you. Talk to your doctor first.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • 16:8 with the last meal at 7:00 PM: eat again at 11:00 AM ✓
  • 20:4 at 6:30 PM: eating window 2:30 PM to 6:30 PM ✓
  • OMAD at 6:00 PM: one hour, 5:00 PM to 6:00 PM ✓
  • Edge: last meal at midnight, 16:8: fast ends at 4:00 PM ✓
  • Edge: no time entered asks for one ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How does 16:8 intermittent fasting work?

You fast for 16 hours and eat within an 8-hour window each day. If your last meal ends at 7:00 PM, you'd eat again at 11:00 AM.

What can I drink while fasting?

Water and drinks without calories, such as plain tea or black coffee, are usually allowed. Drinks with sugar, milk or other calories end the fast.

Is 18:6 or 20:4 better than 16:8?

There's no strong evidence that longer daily fasts are better for most people. A schedule you can keep up, with a healthy diet, matters more.

Does intermittent fasting help with weight loss?

It can help some people eat less. In a 2022 trial, an 8-hour eating window plus calorie cutting gave about the same weight loss as calorie cutting alone.

Who shouldn't do intermittent fasting?

Johns Hopkins lists children and teens, people who are pregnant or breastfeeding, people with type 1 diabetes who take insulin, and anyone with a history of eating disorders.

Related calculators