24-Hour Simulator
Build a whole day of food, insulin, and exercise, and watch every effect stack and interact.
Every other simulator on this site looks at one thing at a time: a single bolus (insulin dose), one workout, a temp basal change. In real life, all of those things happen on the same day. The effects build on each other in ways that aren’t always easy to guess. A workout at noon changes how your evening meal behaves.
Set your Wake Time and Bed Time and choose Injections, Pump or AID. Then add boluses, food and exercise at any time of the day, up to six of each. On a pump you can also add up to six temp basals, which are temporary changes to the rate of background insulin. An AID pump runs its basal (background insulin) itself, and you choose when its exercise mode comes on before each workout. AID is automated insulin delivery.
Watch how the recovery from one workout adds to the next. Watch the dawn rise that comes every morning. And see how a big workout day leaves your basal insulin working harder while you sleep, raising the risk of a low overnight.
What’s happening here?
This simulator uses the same underlying math as all the other simulators. The effects stack and build on each other the way they do in a body. New here? If the chart looks like too much, start with the individual simulators to learn each effect on its own. Then come back here to practice combining them.
Each bolus here is modeled on rapid-acting insulin (aspart, lispro, or glulisine), and on injections the basal is modeled on a long-acting insulin.1 If you use Regular or another mealtime insulin, the idea is the same, but the curve shifts later and runs longer. The Bolus Insulin Types simulator compares them side by side.
During a workout, exercising muscle responds more strongly to insulin. Insulin also absorbs faster, a bolus and a pump’s basal alike. Long-acting insulin doesn’t. Late in a long workout at a moderate pace the liver can run low, and blood sugar falls faster.
Carbs eaten during the workout put that drop off when they’re enough to hold blood sugar level or are covered by insulin. A small amount on background insulin alone doesn’t stop the liver running low.2,3 Working muscle also burns most of the carbs eaten beyond what holds blood sugar level. They become fuel instead of raising blood sugar. The simulator counts about 80% of them this way, which is its own estimate. In the study behind it, trained men without diabetes drank glucose while cycling. Their muscles took up more glucose and their livers released less, which together matched about 97% of what arrived.4 The simulator uses a lower number because in type 1 insulin does not rise with the food.
The liver adds a rise every morning.
In the early morning, hormones drive the liver to release more glucose (sugar). The main one is growth hormone, released in spikes overnight. This is the dawn phenomenon. It starts during sleep. It starts during sleep. In type 1 diabetes no extra insulin answers it, so in people who have it blood sugar rises by about 15–25 mg/dL before breakfast.5 The simulator starts it at waking, where its day begins, and adds 20 mg/dL over the next two and a half hours, fastest about 75 minutes in. Many people who have it cover it with a dose on waking or, on a pump, a higher rate set before waking. The Dawn Phenomenon simulator takes one morning on its own.
Two workouts in a day stack.
When you exercise more than once in a day, the effects stack. The extra insulin sensitivity from your first session may still be active when your second workout begins. More importantly, the glycogen (stored glucose) used up in the first workout has to be refilled through food before the next session. Otherwise your muscles are drawing from a store that is already low. That makes the blood sugar drop during exercise larger and faster than expected.
Insulin works harder the night after exercise.
Research consistently shows that moderate-to-heavy exercise increases insulin sensitivity for 12–24 hours afterward, including during sleep.6 Insulin sensitivity is how hard insulin works. For people on insulin, this means the basal rate that kept blood sugar stable the night before a workout day may cause low blood sugar the night after.
The effect grows with how much you exercised. A light 30-minute walk has very little effect. An hour-long moderate run or a long bike ride can shift overnight sensitivity in a way that matters. People commonly use a reduced overnight basal rate or a bedtime snack; work out yours with your care team.
Injections are fixed once given, and a pump can be adjusted.
People on multiple daily injections (MDI) have long-acting basal insulin that cannot be adjusted once injected. Their only tools are the timing and amount of rapid-acting doses, and food. Pump users can add temp basals at any point to adjust delivery up or down. A temp basal set hours before exercise still has insulin on board during it. That gives more flexibility around exercise, meals, and overnight patterns.
On an AID pump
An automated insulin delivery (AID) pump runs the basal by itself, changing it every few minutes from what the sensor reads, day and night.7 The pump still has to be told about meals and exercise: a meal through its bolus, a workout through exercise mode.7 Anything else it sees only once blood sugar starts to move, on a sensor a few minutes behind the blood. The insulin it adds then takes time to work.7 Guidance suggests setting exercise mode 1–2 hours before activity. Set at the start, it is less likely to prevent a low.8
On the simulator, temp basals are left to the pump. You choose how long before each workout exercise mode comes on, and it goes off when the workout ends. A bolus within an hour of a meal goes through the pump’s bolus calculator, and a meal with no bolus is never entered. Delivered Basal shows what the pump gave.
Applying this to your own life
The goal of the individual simulators is to help you understand each effect in isolation. The goal of this one is to help you understand how they interact. Use them in that order.
- Start with the individual simulators. Use Bolus Timing, Split Bolus, Exercise Timing, and the others to build a feel for each effect on its own. Then come back here to practice combining them. If you see something in the 24-hour chart you don’t understand, open the simulator for that effect.
- Match the simulator to your day. Think of a real day you’ve had: a workout, a meal that didn’t go as expected, a late correction bolus. Try to recreate it here. See if the chart reflects what you actually experienced.
- On AID, learn how your own system works. Every AID system works its own way, from Omnipod 5, Control-IQ and MiniMed 780G to Loop, iAPS, twiist and CamAPS FX. They differ in the target they aim for, how fast they react, and what their exercise or activity setting does. Some offer an extended bolus or a temporary target, and some don’t. The AID on the simulator is one example of how such a system can act. It is based on LoopKit’s open-source algorithm, the math behind the Loop app, simplified for this simulator. Other AID systems use their own algorithms, so yours will act differently. Learn how yours works from its maker’s guides and your care team.
- Keep notes. When you notice a pattern in your own data — lows on workout evenings, a stubborn high every morning — bring that question to the simulator. Try different combinations and see what the chart shows.
- Try things you wouldn’t try in real life. This is a simulation. Setting a temp basal two hours before exercise and seeing how it plays out costs nothing here. Build the intuition before you need it.
Where the numbers come from
Food comes in three types, by what is in the meal:
- Carbs Only. Juice, candy or a sports gel. A small amount is absorbed within about an hour.9 A big amount takes longer. At rest, the stomach passed a glucose drink on at a steady half a gram a minute in one study.10,11 The simulator treats that as the fastest rate and lets it tail off as the stomach empties, its own estimate. So 60 g is mostly in by 2 hours and all in by about 3¼. During exercise, athletes burned sugar from a drink at up to about a gram a minute (60 g an hour), probably because the gut absorbs it no faster.12 The simulator uses that limit during a workout, so the same 60 g takes about 2 hours.
- Medium Fat. A usual meal with some fat and protein, like a taco: about 4½ hours.13
- High Fat. A meal high in fat, like pizza. Fat slows the stomach,14,15 and in one type 1 study a meal with 31 g of fat was still being absorbed after 8 hours.13 The simulator spreads its carbs over about 7 hours, and its fat and protein raise blood sugar for hours after that.
Very little reaches the blood in the first 10 minutes, so the simulator starts each meal 10 minutes after it is eaten. Then the food comes in faster and faster, for about 20 minutes with carbs on their own and 40 minutes with a meal. After that it holds steady, then eases off. Fat slows the stomach, so a high-fat meal eases off sooner and trails on for hours.
The more carbs are absorbed, the more blood sugar rises. A dose that matches the carbs brings blood sugar back to where it started once both are done. A high-fat meal is the exception (below).
Fat and protein are why the types differ. In one study, people ate the same carbs with 35 g of fat or 40 g of protein added. Either one raised blood sugar 3 to 5 hours after eating, and together the two added up.16 Fat often lowers blood sugar for the first 2–3 hours, then raises it later.17
The model adds that glucose (sugar) too. A High Fat meal’s protein brings glucose of its own from about 1½ hours. Its fat makes both the meal dose and the background insulin work less for many hours. After a high-fat dinner, people with type 1 needed about 42% more insulin in the 5 hours after it, and their insulin levels stayed higher 5 to 10 hours later.18
With the carb dose alone, a high-fat meal here ends above where it started. It needs more insulin, some of it later.17 A Medium Fat meal adds nothing, because a carb ratio is set on usual meals. (A carb ratio is how many grams of carbs one unit of insulin covers.) The food curve shows all of it: the carbs, the protein and what the fat leaves behind.
Exercise empties the fuel stores, and recovery refills them.
Each workout draws on the body’s fuel stores. How far it empties them shapes what happens next, later in a long day and overnight.
- Fuel stores. A 75 kg man holds about 500 g of glycogen in his muscles and about 80 g in a fed liver, less after a night’s fast.19,20,21 An hour at a Moderate pace burns about a third of what the working legs hold. Half an hour of intervals burns more than that.22,23,24 Use slows as a store runs low.25,26
- The liver, and carbs during the workout. The liver keeps blood sugar up by releasing glucose from its glycogen. At a Moderate pace the model’s liver lasts three to four hours when fed, and two to three after a night’s fast. Then its output falls away and blood sugar falls faster. The fasted figure matches healthy men who cycled after a night’s fast. Nobody has timed it in type 1.25,27,28,29 Overnight the liver uses some of its store, so a long workout before breakfast runs it low sooner.21,29 In trained athletes without diabetes, a lot of carbs during exercise stopped the liver’s own release and kept its glycogen from running down.2,3 In the simulator, carbs spare the liver only when they are burned or covered by insulin, so a small amount on background insulin alone doesn’t stop the liver running low on a hard workout. That rule is the model’s own. It has not been measured in type 1. Muscle low on glycogen may also take more glucose from the blood: about 30% more in one study, none in others. The model adds up to 30%, once the working muscle is more than half empty.30,31,32
- Refilling, and the night after. Muscle refills its glycogen slowly with nothing eaten, and two to four times faster with carbs. In type 1 diabetes it refills nearly as fast as without.33,34,35,36 The longer and harder a workout, the more insulin’s effect rises afterwards. In adolescents with type 1, each extra half hour of afternoon activity raised the odds of a low that night or the next day by about a third.37 Eating afterwards does not take that rise away. A meal and snack after evening exercise protected the first hours, not the late night.38 And the morning after a marathon, insulin worked no harder, although the muscles were still low on glycogen.39
- Carbs beyond what holds blood sugar level. In type 1 diabetes with little mealtime insulin on board, about 18–19 g of carbs an hour still let blood sugar drift down 35–50 mg/dL over two to three hours of walking.40,41 During exercise, most of the glucose eaten beyond what holds blood sugar level is burned. In people without diabetes, the liver held back and working muscle took up nearly all of it.4 But riders with type 1 eating about 75 g an hour with little extra insulin still spent a third of a race above 180 mg/dL.42 So during a workout the model lets a fifth of the carbs beyond that level raise blood sugar. No study has fed 45–60 g an hour on background insulin alone for hours, so that share is the model’s own estimate.
Sources
- Hirsch IB. Insulin analogues. N Engl J Med. 2005;352(2):174–183. doi.org
- Jeukendrup AE, Wagenmakers AJ, Stegen JH, et al. Carbohydrate ingestion can completely suppress endogenous glucose production during exercise. Am J Physiol. 1999;276(4):E672–E683. doi.org
- Gonzalez JT, Fuchs CJ, Smith FE, et al. Ingestion of glucose or sucrose prevents liver but not muscle glycogen depletion during prolonged endurance-type exercise in trained cyclists. Am J Physiol Endocrinol Metab. 2015;309(12):E1032–E1039. doi.org
- McConell G, Fabris S, Proietto J, Hargreaves M. Effect of carbohydrate ingestion on glucose kinetics during exercise. J Appl Physiol. 1994;77(3):1537–1541. doi.org
- Porcellati F, Lucidi P, Bolli GB, Fanelli CG. Thirty years of research on the dawn phenomenon: lessons to optimize blood glucose control in diabetes. Diabetes Care. 2013;36(12):3860–3862. doi.org
- Riddell MC, Gallen IW, Smart CE, et al. Exercise management in type 1 diabetes: a consensus statement. Lancet Diabetes Endocrinol. 2017;5(5):377–390. doi.org
- Phillip M, Nimri R, Bergenstal RM, et al. Consensus recommendations for the use of automated insulin delivery technologies in clinical practice. Endocr Rev. 2023;44(2):254–280. doi.org
- Moser O, Zaharieva DP, Adolfsson P, et al. The use of automated insulin delivery around physical activity and exercise in type 1 diabetes: a position statement of the European Association for the Study of Diabetes (EASD) and the International Society for Pediatric and Adolescent Diabetes (ISPAD). Diabetologia. 2025;68(2):255–280. doi.org
- Wiethop BV, Cryer PE. Alanine and terbutaline in treatment of hypoglycemia in IDDM. Diabetes Care. 1993;16(8):1131–1136. pubmed
- Brener W, Hendrix TR, McHugh PR. Regulation of the gastric emptying of glucose. Gastroenterology. 1983;85(1):76–82. pubmed
- Edinburgh RM, Hengist A, Smith HA, et al. Preexercise breakfast ingestion versus extended overnight fasting increases postprandial glucose flux after exercise in healthy men. Am J Physiol Endocrinol Metab. 2018;315(5):E1062–E1074. pubmed
- Jeukendrup AE, Jentjens R. Oxidation of carbohydrate feedings during prolonged exercise: current thoughts, guidelines and directions for future research. Sports Med. 2000;29(6):407–424. doi.org
- Elleri D, Allen JM, Harris J, et al. Absorption patterns of meals containing complex carbohydrates in type 1 diabetes. Diabetologia. 2013;56(5):1108–1117. pubmed
- Gentilcore D, Chaikomin R, Jones KL, et al. Effects of fat on gastric emptying of and the glycemic, insulin, and incretin responses to a carbohydrate meal in type 2 diabetes. J Clin Endocrinol Metab. 2006;91(6):2062–2067. pubmed
- Faggionato E, Schiavon M, Ekhlaspour L, et al. Quantifying the effect of fat and protein on the postprandial glucose excursion in individuals with type 1 diabetes using an automated insulin delivery system. J Diabetes Sci Technol. 2026. pubmed
- Smart CE, Evans M, O’Connell SM, et al. Both dietary protein and fat increase postprandial glucose excursions in children with type 1 diabetes, and the effect is additive. Diabetes Care. 2013;36(12):3897–3902. doi.org
- Bell KJ, Smart CE, Steil GM, et al. Impact of fat, protein, and glycemic index on postprandial glucose control in type 1 diabetes: implications for intensive diabetes management in the continuous glucose monitoring era. Diabetes Care. 2015;38(6):1008–1015. doi.org
- Wolpert HA, Atakov-Castillo A, Smith SA, Steil GM. Dietary fat acutely increases glucose concentrations and insulin requirements in patients with type 1 diabetes: implications for carbohydrate-based bolus dose calculation and intensive diabetes management. Diabetes Care. 2013;36(4):810–816. doi.org
- Areta JL, Hopkins WG. Skeletal muscle glycogen content at rest and during endurance exercise in humans: a meta-analysis. Sports Med. 2018;48(9):2091–2102. doi.org
- Janssen I, Heymsfield SB, Wang ZM, Ross R. Skeletal muscle mass and distribution in 468 men and women aged 18–88 yr. J Appl Physiol. 2000;89(1):81–88. doi.org
- Taylor R, Magnusson I, Rothman DL, et al. Direct assessment of liver glycogen storage by 13C nuclear magnetic resonance spectroscopy and regulation of glucose homeostasis after a mixed meal in normal subjects. J Clin Invest. 1996;97(1):126–132. doi.org
- van Loon LJ, Greenhaff PL, Constantin-Teodosiu D, et al. The effects of increasing exercise intensity on muscle fuel utilisation in humans. J Physiol. 2001;536(Pt 1):295–304. doi.org
- Gollnick PD, Piehl K, Saltin B. Selective glycogen depletion pattern in human muscle fibres after exercise of varying intensity and at varying pedalling rates. J Physiol. 1974;241(1):45–57. doi.org
- Vigh-Larsen JF, Ørtenblad N, Andersen OE, et al. Fibre type- and localisation-specific muscle glycogen utilisation during repeated high-intensity intermittent exercise. J Physiol. 2022;600(21):4713–4730. doi.org
- Coyle EF, Coggan AR, Hemmert MK, et al. Muscle glycogen utilization during prolonged strenuous exercise when fed carbohydrate. J Appl Physiol. 1986;61(1):165–172. doi.org
- Bosch AN, Dennis SC, Noakes TD. Influence of carbohydrate loading on fuel substrate turnover and oxidation during prolonged exercise. J Appl Physiol. 1993;74(4):1921–1927. doi.org
- Petersen KF, Price TB, Bergeron R. Regulation of net hepatic glycogenolysis and gluconeogenesis during exercise: impact of type 1 diabetes. J Clin Endocrinol Metab. 2004;89(9):4656–4664. doi.org
- Ahlborg G, Felig P, Hagenfeldt L, et al. Substrate turnover during prolonged exercise in man: splanchnic and leg metabolism of glucose, free fatty acids, and amino acids. J Clin Invest. 1974;53(4):1080–1090. doi.org
- Ahlborg G, Felig P. Lactate and glucose exchange across the forearm, legs, and splanchnic bed during and after prolonged leg exercise. J Clin Invest. 1982;69(1):45–54. doi.org
- Blomstrand E, Saltin B. Effect of muscle glycogen on glucose, lactate and amino acid metabolism during exercise and recovery in human subjects. J Physiol. 1999;514(Pt 1):293–302. doi.org
- Hargreaves M, McConell G, Proietto J. Influence of muscle glycogen on glycogenolysis and glucose uptake during exercise in humans. J Appl Physiol. 1995;78(1):288–292. doi.org
- Weltan SM, Bosch AN, Dennis SC, et al. Influence of muscle glycogen content on metabolic regulation. Am J Physiol. 1998;274(1):E72–E82. doi.org
- Maehlum S, Hermansen L. Muscle glycogen concentration during recovery after prolonged severe exercise in fasting subjects. Scand J Clin Lab Invest. 1978;38(6):557–560. doi.org
- Ivy JL, Katz AL, Cutler CL, et al. Muscle glycogen synthesis after exercise: effect of time of carbohydrate ingestion. J Appl Physiol. 1988;64(4):1480–1485. doi.org
- Blom PC, Høstmark AT, Vaage O, et al. Effect of different post-exercise sugar diets on the rate of muscle glycogen synthesis. Med Sci Sports Exerc. 1987;19(5):491–496. pubmed
- Maehlum S, Høstmark AT, Hermansen L. Synthesis of muscle glycogen during recovery after prolonged severe exercise in diabetic and non-diabetic subjects. Scand J Clin Lab Invest. 1977;37(4):309–316. doi.org
- Metcalf KM, Singhvi A, Tsalikian E, et al. Effects of moderate-to-vigorous intensity physical activity on overnight and next-day hypoglycemia in active adolescents with type 1 diabetes. Diabetes Care. 2014;37(5):1272–1278. doi.org
- Campbell MD, Walker M, Trenell MI, et al. A low-glycemic index meal and bedtime snack prevents postprandial hyperglycemia and associated rises in inflammatory markers, providing protection from early but not late nocturnal hypoglycemia following evening exercise in type 1 diabetes. Diabetes Care. 2014;37(7):1845–1853. doi.org
- Tuominen JA, Ebeling P, Vuorinen-Markkola H, et al. Post-marathon paradox in IDDM: unchanged insulin sensitivity in spite of glycogen depletion. Diabet Med. 1997;14(4):301–308. pubmed
- McGaugh SM, Zaharieva DP, Pooni R, et al. Carbohydrate requirements for prolonged, fasted exercise with and without basal rate reductions in adults with type 1 diabetes on continuous subcutaneous insulin infusion. Diabetes Care. 2021;44(2):610–613. doi.org
- Francescato MP, Stel G, Stenner E, Geat M. Prolonged exercise in type 1 diabetes: performance of a customizable algorithm to estimate the carbohydrate supplements to minimize glycemic imbalances. PLoS One. 2015;10(4):e0125220. doi.org
- Scott SN, Christiansen MP, Fontana FY, et al. Evaluation of factors related to glycemic management in professional cyclists with type 1 diabetes over a 7-day stage race. Diabetes Care. 2020;43(5):1142–1145. doi.org