cooked.
The science and the maths

No magic numbers. Working shown.

Every number COOKED gives you comes from published sports-science ranges, applied to your body and your session. Here's the actual maths, with worked examples. In the app, tap "How we got this number" on any target to see the same working for you.

01 · During the session

Carbs per hour: a ceiling you earn.

How many carbs you can use in an hour is limited by how much your gut can absorb, not by willpower. So COOKED starts from the length of the session, adjusts for how hard it is and how trained your gut is, and never goes past a ceiling.

carbs/hr = min( ceiling, sport cap, round₅( (length ± intensity + gut level) × sport factor ) )
Session lengthStarting point
Under 1 hour0 g (water is enough)
1 to 2 hours45 g / hr
2 to 3 hours65 g / hr
3 hours or more90 g / hr

Intensity adds 10 g/hr for a hard session and takes 10 g off an easy one. Gut level is −15 for a beginner, 0 intermediate, +5 advanced, +10 elite. Sport factor reflects how easily you can eat on the move: cycling 1.0, triathlon 0.95, running 0.8, swimming 0.7.

Gut levelCeiling
Beginner50 g / hr
Intermediate65 g / hr
Advanced90 g / hr
Elite120 g / hr

Sports have their own practical caps too: 120 g/hr cycling, 100 triathlon, 90 running, 60 swimming. Easy sessions under 90 minutes, and anything under an hour, get no carbs during. Your pre-session meal has it covered.

Worked example

A 2-hour hard run, advanced athlete: (65 + 10 + 5) × 0.8 = 64 → rounded to 65 g/hr. That's under the 90 g ceiling and the 90 g running cap, so 65 g it is.

02 · Getting better at it

Your gut is trainable.

The ceiling isn't fixed. COOKED learns from how your sessions actually went. After three clean sessions where you hit at least 85% of your ceiling, it moves up 5 g/hr. After two sessions with gut trouble, it steps back down 5 g. It never drops below 30 g/hr and never passes your sport's cap.

The gut-training plan does the same on purpose: 5 g/hr more each step, two comfortable sessions before the next. Above 60 g/hr it calls for a glucose-and-fructose mix of about 1 : 0.8, because the two sugars are absorbed through different routes and together you can take in more.

03 · Fluid

Measured, scaled, capped.

The in-app sweat test gives your real sweat rate: weigh in before, train, weigh in after, and note what you drank.

sweat rate (ml/hr) = ( (pre kg − post kg) × 1000 + ml drunk − ml urine ) ÷ minutes × 60
Worked example

72.4 kg before, 71.6 kg after, 500 ml drunk, 60 minutes: (0.8 × 1000 + 500) ÷ 60 × 60 = 1,300 ml/hr.

That rate is then scaled for the day: cold ×0.85, mild ×1, hot ×1.2, very hot ×1.35, and easy ×0.9, hard ×1.12. A rate you measured on a hot day isn't inflated again for heat it already included. No test yet? COOKED estimates about 10 ml per kg of body weight an hour, adjusted for sport.

You don't drink back everything you sweat. COOKED aims to replace 60% of losses, rising to 70% from 1.5 hours and 80% from 3 hours, with a little more in the heat. Then a hard cap: 1,200 ml/hr on the bike, 1,000 running, 800 swimming. Drinking far more than you lose dilutes the sodium in your blood, which is more dangerous than mild dehydration, so the cap is a safety feature, not a target.

Worked example

1,300 ml/hr sweat on a 2-hour ride: 1,300 × 0.7 = 910 → 900 ml/hr, under the 1,200 cap.

04 · Sodium

Your sweat, not a stock answer.

sodium (mg/hr) = sweat rate (L/hr) × sweat sodium (mg/L) × 0.8

Sweat saltiness varies a lot between people. A measured value wins; otherwise you pick how salty you are and COOKED uses the matching band: not salty 500, average 800, salty 1,200, very salty 1,500 mg/L.

Worked example

1.3 L/hr sweat, salty sweater: 1.3 × 1,200 × 0.8 = 1,248 → 1,250 mg/hr.

Sodium only shows up when it matters: sessions over 90 minutes, or over an hour when it's hot. It's never below 300 mg/hr when it is given, never above 2,500, and capped at 1,500 until you've done a sweat test.

05 · Heat

The forecast at your start line.

26° and dry is a different day from 26° and humid. COOKED works out the apparent temperature (how hot it feels) at the time and place you start, using the Steadman formula:

AT = T + 0.33 × e − 4,  where e = (humidity/100) × 6.105 × exp(17.27 × T ÷ (237.7 + T))
Feels likeTier
Under 10°Cold
10° to 20°Mild
20° to 28°Hot
Over 28°Very hot
Worked example

26° at 78% humidity: e ≈ 26.1, so AT = 26 + 8.6 − 4 ≈ 30.6°, very hot. Sweat rate is scaled ×1.35 and the share you replace goes up.

Heat raises fluid and sodium and changes how you take carbs (more, smaller feeds in a weaker mix), but it never lowers your carb target. Forecasts only ever push the plan up; a cool day changes nothing.

06 · Every day

Fuel for the work required.

A rest day and a five-hour ride shouldn't get the same plate. Daily carbs follow how much you train, then scale with how hard (easy ×0.85, hard ×1.15), because hard sessions burn stored carbohydrate much faster. This is the "fuel for the work required" approach (Impey et al. 2018).

Training that dayDaily carbs
Rest day3.5 g per kg
Under 60 min5 g per kg
1 to 2 hours6.5 g per kg
2 to 4 hours8 g per kg
4 hours or more10 g per kg

Protein starts at 1.6 g per kg, in the middle of the 1.2–2.0 range for endurance athletes (Thomas, Erdman & Burke 2016). It goes up to 1.8 if you're 50 or older or training 150 minutes or more that day, and 2.0 if you're trying to lose weight. The highest rule that applies wins, and the app tells you which.

Calories start from Mifflin-St Jeor, the standard clinical formula, plus what your training burned. Then COOKED adjusts gently (within ±20%) as it learns from your weight trend.

BMR = 10 × kg + 6.25 × cm − 5 × age + 5 (men) / − 161 (women)
07 · Around the session

Before and after.

BeforeCarbsWhen
Most sessions1 g per kg1–2 h before
1.5 h+ or hard1.5 g per kg1–2 h before
3 h or more2.5 g per kgabout 3 h before
AfterCarbsProtein
2 h+ or hard1.2 g per kg0.3 g per kg
1 h or more1.0 g per kg0.3 g per kg
45 min or more0.6 g per kg0.3 g per kg

Eat within an hour. Training hard again in under 8 hours? COOKED switches to rapid recovery: about 1 g of carbs per kg every hour for 4 hours.

08 · Race week

A ramp, not one giant pasta night.

Carb-loading tops up the carbohydrate stored in your muscles before a long race. COOKED ramps it over the final six days, scaled to how long your race is:

Race length6 → 1 days out (g per kg)
3 hours or more6 · 6 · 7 · 8 · 10 · 10
1.5 to 3 hours6 · 6 · 6 · 7 · 10 · 10
60 to 90 minutes6 · 6 · 6 · 6 · 7 · 7
Under 60 minutesNo load needed

Race morning: about 2 g of carbs per kg, roughly 3 hours before the start, low in fibre and fat so it sits well.

09 · The fuel tank

Why the chart never runs low.

The minute-by-minute chart is a model of the carbohydrate you have on board. You start with a full-ish tank, burn it at a rate set by how hard you're going, and each feed tops it up about 15 minutes after you eat it (that's how long it takes to absorb).

burn (g/hr) = kg × kcal per kg per hr × carb share ÷ 4
easy 7 kcal × 45%  ·  moderate 10 kcal × 62%  ·  hard 13 kcal × 78%

Your starting tank is about 7 g per kg of body weight (350 to 650 g), a little less if you start the day tired. Feeds are spaced so each one (25 g by default) lands before the line drops into the empty zone, with 150 ml sips every 12 to 20 minutes. With a power meter and FTP, the burn rate is worked out from your own power.

Worked example

70 kg, moderate effort: 70 × 10 × 0.62 ÷ 4 ≈ 109 g/hr burned. That's more than anyone can absorb, which is exactly why you start fuelled and feed early.

10 · When the race goes sideways

Missed a feed? The maths holds.

Once you're 20 g behind, COOKED spreads the deficit over the time you have left instead of telling you to cram. It adds at most 25 g/hr on top of the plan, and never pushes you past your gut ceiling (or 1.35× your plan if your ceiling isn't known yet), so the catch-up never becomes the thing that ends your race.

11 · How we check it

Pinned by thousands of tests.

About 2,700 automated tests check the maths every time the app changes. Some test specific numbers against textbook values. Others prove the model can't contradict itself:

It is impossible for…
A longer session to get fewer carbs per hour
Hotter weather to lower your fluid or carb target
Hotter weather to raise your carb ceiling
Harder effort to burn less fuel
Triathlon legs to not add up to the whole race

COOKED gives general sports-nutrition guidance, not medical advice. If you have a medical condition, check with your doctor or a registered dietitian.

Let the app do the maths.

All of this, worked out for you, for every session on your calendar.

Download on the App Store
QR code to download COOKEDOr scan it
with your iPhone
COOKEDFree on the App Store
Get it