Why make your own gels
On long runs, half marathons, marathons or long rides, taking carbohydrate during exercise helps you hold the intensity when glycogen starts to run low. Commercial gels work, but a homemade gel has two clear advantages: you know exactly what is in it (grams of carbohydrate, sugar ratio, sodium, no additives you do not want) and it usually costs less, because maltodextrin and fructose can be bought in bulk.
A mix of maltodextrin (a glucose source) and fructose is the base of almost every gel because each sugar is absorbed in the gut by a different transporter. Combining them allows more carbohydrate per hour to be absorbed and oxidised than glucose alone when intake is high (Jeukendrup, 2010; Rowlands et al., 2015).

Homemade energy gel calculator
Choose the ratio, grams per hour, duration and how much carbohydrate you want in each gel. The recipe updates instantly and you can copy, share or print it. It is free and you do not need to sign up.
Preparing for a half marathon or marathon?
TrainingForever helps coaches plan and manage their athletes' training on a single platform.
How the recipe is calculated
The calculator multiplies your hourly target by the duration (in minutes, to avoid rounding errors) and splits that total according to the chosen ratio. If the total does not give a whole number of gels, it rounds the number of containers up, but not the carbohydrate: with "Same amount in each" it splits the total evenly, and with "Full gels, smaller last one" it fills each container with your amount and leaves the rest in the last one. It never prepares more carbohydrate than you asked for, and it tells you how much would be left over if you filled every container.
- Total carbohydrate = g/h × duration in hours.
- Maltodextrin = total ÷ (1 + R) and fructose = total × R ÷ (1 + R), with R = 0.5 for 2:1, 0.8 for 1:0.8 and 1 for 1:1.
- Containers = total ÷ grams per gel, rounded up.
- Table salt (g) ≈ sodium (mg) ÷ 393, because sodium is roughly 39.3% of the weight of sodium chloride.

Ingredients you need
| Ingredient | What it does | Notes |
|---|---|---|
| Maltodextrin | Glucose source, not very sweet | Dissolves well in lukewarm water; it is the base of the gel. |
| Fructose | Second sugar, with a different gut transporter | Very sweet; too much, or without adaptation, can cause gut discomfort. |
| Water | Gives the texture | The less water, the thicker the gel and the more you will need to drink afterwards. |
| Table salt (optional) | Provides sodium | Mostly useful in long sessions or with heavy sweating; needs are individual. |
| Lemon juice, coffee or cocoa (optional) | Flavour | Test it first: it changes the taste and, with coffee, the caffeine you take. |
If you have no maltodextrin or fructose, table sugar (sucrose) is already glucose and fructose in equal parts once digested, and honey provides both sugars in similar proportions. They are fine to start with, although you control the ratio less precisely.
Equipment
- Digital kitchen scale with 1 g precision. Spoons are not accurate enough for powders.
- Bowl or jug and a whisk to mix without lumps.
- Funnel to fill the containers without spilling.
- Reusable containers (silicone flasks or resealable pouches), clean and dry, with their capacity noted.
How to make a homemade energy gel step by step
- Weigh the maltodextrin shown by the calculator.
- Weigh the fructose and mix it dry with the maltodextrin.
- Add the water gradually, lukewarm, while stirring. A thick mixture is easier to correct than one that is too runny.
- Mix until smooth, with no lumps or powder at the bottom.
- Add the salt, if you use it, and mix again.
- Divide into the containers with the funnel. If you use the scale, weigh each container so they all hold the same.
- Close, label and refrigerate with the date and the grams of carbohydrate in each container.
Maltodextrin and fructose: 2:1 vs 1:0.8
The ratio refers to grams of each carbohydrate, by weight. It is not the absorption rate, not the amount you should take and not the total weight of the gel.
- 2:1 means 2 g of maltodextrin for every 1 g of fructose (two thirds maltodextrin, one third fructose).
- 1:0.8 means 1 g of maltodextrin for every 0.8 g of fructose (about 56% and 44%).
- 1:1 means the same amount of each, like table sugar.
| Ratio | Maltodextrin | Fructose |
|---|---|---|
| 2:1 | 26.7 g | 13.3 g |
| 1:0.8 | 22.2 g | 17.8 g |
| 1:1 | 20.0 g | 20.0 g |
The 2:1 ratio is the most studied: intestinal glucose absorption saturates at around 60 g/h, and adding fructose allows that figure to be exceeded (Jeukendrup, 2010). Two studies by the same group, using drinks in cyclists, found more oxidation of ingested carbohydrate, better performance and less discomfort with a fructose:maltodextrin ratio of 0.8:1 than with 0.5:1 (O'Brien et al., 2013). They are small studies with drinks rather than gels, so treat it as a reasonable option to test, not as a rule. The review by Rowlands et al. (2015) concludes that glucose and fructose blends improve performance compared with glucose alone when large amounts are taken.
How many grams of carbohydrate per hour
There is no single figure for everyone. It depends on duration, intensity, your training status and, above all, what your gut tolerates. These are the general reference values from the guidelines:
| Session duration | General guidance |
|---|---|
| Under 45 min | Carbohydrate is usually not needed. |
| 45–75 min | Small amounts or a mouth rinse. |
| 1–2.5 h | 30–60 g/h. |
| Over 2.5 h | Up to 90 g/h, with glucose and fructose blends. |
Sources: Jeukendrup (2014); position stand of the ACSM, the Academy of Nutrition and Dietetics and Dietitians of Canada (Thomas et al., 2016); Burke et al. (2011).
Above 90 g/h the evidence is more recent and less conclusive. A study in trained athletes compared 120 g/h as a drink, gel, jelly chews or a combination and found similar oxidation of ingested carbohydrate with every format (Hearris et al., 2022). Recent reviews regard it as a promising line of research, but individual and not applicable to everyone (Podlogar and Wallis, 2022). If you want to go above 60 g/h, do it gradually and in training: the gut adapts with practice (Jeukendrup, 2017). We explain it in how to train your gut and, for the days before a race, in carbohydrate loading before competing.
How many gels you need for a half marathon or marathon
Examples worked out with the calculator, with gels of up to 40 g and the same amount in every container. They are calculation examples, not recommendations: your hourly target is the one you have tested in training.
| Race | Target | Total | Containers | Per container |
|---|---|---|---|---|
| Half marathon in 1 h 45 min | 45 g/h | 79 g | 2 | 39.4 g |
| Half marathon in 2 h 10 min | 50 g/h | 108 g | 3 | 36.1 g |
| Marathon in 3 h 30 min | 70 g/h | 245 g | 7 | 35.0 g |
| Marathon in 4 h 15 min | 60 g/h | 255 g | 7 | 36.4 g |
If you will also drink sports drink from the aid stations during the race, subtract its carbohydrate from the total. If you are preparing for the race, these can help: intervals for the half marathon, mistakes when preparing a marathon and, on trails, nutrition for a trail half marathon.
How to adjust the water and texture
The calculator suggests three starting points based on the grams of carbohydrate. They are not validated recipes: the texture changes with the brand of maltodextrin, the temperature of the water and the weather, and how much you mix.
| Texture | Water per gram of carbohydrate | 40 g gel |
|---|---|---|
| Concentrated | 0.5 ml | 20 ml |
| Standard | 0.75 ml | 30 ml |
| More liquid | 1 ml | 40 ml |
A very concentrated gel takes up less space, but it is worth washing it down with water so your stomach tolerates it better. In the cold the gel thickens; in the heat it becomes runnier. If you want a specific figure, choose "Manual (ml)" in the calculator. For how much to drink, see hydration in cold weather.
Should you add salt or sodium?
It depends on you. Sweat rate and sweat sodium concentration vary enormously between people, and even within the same person depending on heat and intensity (Baker, 2017). That is why guidelines recommend individualising fluid and electrolyte replacement (Sawka et al., 2007). In long, hot sessions, heavy or very salty sweaters may need more sodium; in short, cool sessions it is often not necessary to add it to the gel.
To convert sodium to table salt, the calculator uses salt (g) ≈ sodium (mg) ÷ 393. It is an approximation: sea salt, iodised salt and potassium-based salts have different compositions.
| Sodium | Approximate table salt |
|---|---|
| 200 mg | 0.51 g |
| 300 mg | 0.76 g |
| 500 mg | 1.27 g |
More details in sodium and sweat in endurance sports.
Storage, hygiene and carrying homemade gels
- Hygiene: wash your hands and use clean, dry utensils and containers.
- Fridge: homemade gel has no preservatives. Keep it in the fridge in well-closed containers and only make what you will use within a few days.
- Label: write down the date and the grams of carbohydrate in each container.
- If the smell or colour changes, or mould appears, throw it away. There is no universal expiry date for a homemade recipe.
- Carrying: check that the caps do not leak before you set off and carry the containers where you can reach them without stopping.
Common mistakes when making gels
- Measuring by eye. A spoonful of maltodextrin can weigh very different amounts depending on how you fill it. Use the scale.
- Confusing the ratio with the amount. 2:1 or 1:0.8 describe how the carbohydrate is split, not how much to take.
- Jumping straight to 90 g/h or more. Without adaptation it is a common cause of gut discomfort.
- Trying the gel for the first time on race day. Test it on several long runs, at race pace.
- Filling every container to the top when the total is not a whole number: you prepare more than you planned. The calculator only splits what you need.
- Forgetting the water. The more concentrated the gel, the more important it is to drink.
"The stomach does not care about pretty recipes. I first test a simple mix with the athlete in training, and only when they tolerate it well do we start adjusting flavour and quantity." — Marc Bañuls, coach with more than 15 years of experience
Worked example for a 1:45 half marathon
If your strategy is 60 g of carbohydrate per hour at a 2:1 ratio (maltodextrin:fructose), the numbers for a 1 h 45 min race (1.75 h) are:
| g CHO/hour | Maltodextrin (g/h) | Fructose (g/h) | Race total (g) |
|---|---|---|---|
| 60 | 40 | 20 | 105 |
| 90 | 60 | 30 | 158 |
With 30 g gels, 105 g means 3–4 gels. Always test the amount in long training sessions before race day.
Frequently asked questions
How many gels should I take in a half marathon?
It depends on your finishing time and your hourly target. As an example, 1 h 45 min at 45 g/h is about 79 g: two gels of about 40 g. Work out your own case with the calculator and test it first.
Can I make a homemade gel for 90 g of carbohydrate per hour?
Yes: enter 90 g/h in the calculator and choose a ratio that includes fructose (2:1 or 1:0.8). But 90 g/h is a reference for sessions longer than 2.5 hours and trained guts, not a starting point.
How long does a homemade gel keep?
As it has no preservatives, keep it in the fridge, make small batches and use it within a few days. If you notice any change in smell or appearance, throw it away.
Can I use other sugars?
Yes. Table sugar and honey provide glucose and fructose; dextrose is pure glucose. With them you control the ratio less precisely, so weigh carefully and write down what you use.
How does temperature affect the gel?
In the cold it thickens and is harder to take; in the heat it becomes runnier. Adjust the water to the season and always keep the gel in the fridge until you leave.
How much maltodextrin and fructose is in a 30 g gel at a 2:1 ratio?
20 g of maltodextrin and 10 g of fructose, plus whatever water you need for texture.
Read also
- How to train your gut
- Sodium and sweat in endurance sports
- Ultra trail nutrition
- Recovery after a half marathon
Scientific sources
Educational content. It does not replace advice from a registered dietitian or a doctor, especially if you have digestive problems, diabetes or another health condition.
- Jeukendrup AE. Carbohydrate and exercise performance: the role of multiple transportable carbohydrates. Curr Opin Clin Nutr Metab Care. 2010;13(4):452-7.
- Jeukendrup A. A step towards personalized sports nutrition: carbohydrate intake during exercise. Sports Med. 2014;44(Suppl 1):S25-33.
- Jeukendrup AE. Training the gut for athletes. Sports Med. 2017;47(Suppl 1):101-10.
- Thomas DT, Erdman KA, Burke LM. Nutrition and athletic performance (ACSM/AND/DC position stand). Med Sci Sports Exerc. 2016;48(3):543-68.
- Burke LM, Hawley JA, Wong SH, Jeukendrup AE. Carbohydrates for training and competition. J Sports Sci. 2011;29(Suppl 1):S17-27.
- O'Brien WJ, Stannard SR, Clarke JA, Rowlands DS. Fructose-maltodextrin ratio governs exogenous and other CHO oxidation and performance. Med Sci Sports Exerc. 2013;45(9):1814-24.
- Rowlands DS, Houltham S, Musa-Veloso K, Brown F, Paulionis L, Bailey D. Fructose-glucose composite carbohydrates and endurance performance: critical review and future perspectives. Sports Med. 2015;45(11):1561-76.
- Hearris MA, Pugh JN, Langan-Evans C, et al. 13C-glucose-fructose labeling reveals comparable exogenous CHO oxidation during exercise when consuming 120 g/h in fluid, gel, jelly chew, or coingestion. J Appl Physiol. 2022;132(6):1394-406.
- Podlogar T, Wallis GA. New horizons in carbohydrate research and application for endurance athletes. Sports Med. 2022;52(Suppl 1):5-23.
- Baker LB. Sweating rate and sweat sodium concentration in athletes: a review of methodology and intra/interindividual variability. Sports Med. 2017;47(Suppl 1):111-28.
- Sawka MN, Burke LM, Eichner ER, et al. American College of Sports Medicine position stand. Exercise and fluid replacement. Med Sci Sports Exerc. 2007;39(2):377-90.





