Step 1: your calories
The calculator uses our calorie calculator's estimate: your resting energy from the Mifflin-St Jeor equation (for women, 10 × weight in kg + 6.25 × height in cm - 5 × age - 161; for men, the same + 5), times one of EFSA's four physical activity levels, 1.4, 1.6, 1.8 or 2.0. It keeps that page's rules. To lose weight: 600 kcal a day less, never below 1,200, offered only from a body mass index (BMI) of 25, or 23 for the backgrounds the National Institute for Health and Care Excellence (NICE) lists. To gain weight: 300 kcal more, the lower end of the NHS's 300 to 500 (our choice), offered at a BMI under 18.5. When breastfeeding: about 330 kcal more, the calorie calculator's figure, and no weight-loss split.
If you know your calories, from the calorie calculator's other equations or from a dietitian, type them in: 1,200 to 5,000 kcal a day (our choice of range). Below 1,200 the calculator doesn't split them, because NICE keeps diets of 800 to 1,200 kcal a day for specialist services with support. Calories are shown to the nearest 10 kcal, with kilojoules (kJ; 1 kcal is 4.184 kJ).
Sources 16, 5, 17, 11, 18, 19
Step 2: your protein
Protein comes from our protein calculator's ranges, in grams per kg of body weight a day: 0.8 for general health; 1.6 to 2.2 if you do strength training or choose a training level; 1.2 to 1.6 when losing weight; and from 65, 1.0 to 1.2, or 1.2 to 1.6 with strength training or weight loss, and 1.2 to 1.5 if you're unwell. The split starts at the lower end of your range and you can raise it within the range, never above 2.2 g per kg.
Each lower end anchors its range (our reading): 0.8 g is the US recommended dietary allowance, 1.6 g is about where extra protein stopped adding muscle in 49 trials, and 1.0 g is the older-adult experts' "at least". For sport, the 2016 sports nutrition position gives 1.2 to 2.0 g per kg; the calculator keeps the protein calculator's muscle range, which overlaps it (our choice).
At a BMI of 30 or more (27.5 for NICE's listed backgrounds), protein is worked from the weight at a BMI of 25 for your height, the protein calculator's lower figure, and the result also gives the figure on your current weight. With chronic kidney disease (stages 3 to 5), protein is 0.8 g per kg, the suggestion of the international kidney guideline group Kidney Disease: Improving Global Outcomes (KDIGO); when breastfeeding it's 1.3 g per kg, the protein calculator's US value.
Sources 6, 20, 21, 22, 8
Step 3: the split
Fat is 30% of your calories unless you choose 20, 25 or 35%, and carbohydrate gets what's left. 20, 25 and 30% all sit inside WHO's 30% or less, EFSA's and the US 20 to 35% and the UK's less than 35% of food energy; 30% is the highest of them, close to the 70 g of fat that food labels use as the reference intake for 2,000 kcal (31.5%; our arithmetic) and the International Society of Sports Nutrition's (ISSN's) "approximately 30%" for athletes, and it leaves room for carbohydrate near the UK's 50% (our choice).
- Protein (g) = protein in g per kg × weight
- Fat (g) = calories × fat share ÷ 9
- Carbohydrate (g) = (calories - 4 × protein - 9 × fat) ÷ 4
Sources 1, 7, 5, 6, 4, 24, 23
With a training level
Choose a sport or endurance training level and carbohydrate is set per kg instead, starting at the lower end of the 2016 position's band for that level, which you can raise in steps of 0.5 g. Fat gets the rest, and the result warns if it falls below 20% of your calories. It also shows the most carbohydrate that leaves 20% for fat: (0.8 × calories - 4 × protein) ÷ (4 × weight) g per kg (our algebra).
- Carbohydrate (g) = carbohydrate in g per kg × weight
- Fat (g) = (calories - 4 × protein - 4 × carbohydrate) ÷ 9
Source 8
The energy factors
UK labelling law sets 4 kcal (17 kJ) per gram for carbohydrate and protein, 9 kcal (37 kJ) for fat, 7 kcal (29 kJ) for alcohol and 2 kcal (8 kJ) for fibre. These are the Food and Agriculture Organization's (FAO's) Atwater general factors. Label carbohydrate doesn't include fibre, which is declared on its own, so the split leaves out fibre and alcohol (our choice).
Public Health England's (PHE's) tables work out carbohydrate grams at 3.75 kcal per gram, so their gram figures run about 7% higher for the same share: 50% of 2,500 kcal is 333 g in PHE's table and 312.5 g at 4 kcal per gram (our arithmetic).
Sources 1, 25, 2, 4
Rounding and checks
Grams are shown to the nearest 5 g, shares to the nearest whole per cent and g per kg to one decimal, all from unrounded sums, so the grams can add up to slightly more or less than your calories, by up to about 40 kcal (our arithmetic). The calculator says whether your carbohydrate share is within, below or above EFSA's and the US ranges, checks fat against 20 to 35% and protein against the US 10 to 35%, and warns below 130 g of carbohydrate a day or below 20% fat. A table shows where your carbohydrate sits on the scale of the Scientific Advisory Committee on Nutrition (SACN).
Sources 5, 6, 8, 39
Shown with every split
Fibre: 30 g a day in the UK (EFSA says 25 g). Saturated fat: no more than about 10% of calories, which the result works out in grams, with the NHS's no more than 30 g a day for men and 20 g for women. Free sugars: no more than 30 g a day.
Sources 3, 26, 27, 28, 5
Worked examples (our arithmetic)
Rounded as the calculator rounds them.
- A man of 40, 178 cm and 80 kg, lightly active (1.6), keeping his weight steady, the calculator's starting values: 2,748 kcal, shown as 2,750 kcal (11,500 kJ). Protein 0.8 × 80 = 64 g, shown as 65 g (9%); fat 30%, 91.6 g, shown as 90 g; carbohydrate 416.9 g, shown as 415 g (61%, 5.2 g per kg), above EFSA's 60% and within the US 45 to 65%. Saturated fat: up to about 31 g.
- A woman of 35, 165 cm and 75 kg (BMI 27.5), mostly sitting (1.4), losing weight: 2,020 kcal keeps her weight steady, so 1,420 kcal. Protein 1.2 × 75 = 90 g (25%); fat 47.4 g, shown as 45 g; carbohydrate 159.1 g, shown as 160 g (45%). At 1.6 g per kg, protein is 120 g and carbohydrate 129.1 g, shown as 130 g (36%), below EFSA's and the US ranges.
- A woman of 30, 165 cm and 60 kg, active (1.8), training about an hour a day with strength training: 2,380 kcal. Protein 1.6 × 60 = 96 g, shown as 95 g (16%); carbohydrate 5 × 60 = 300 g (50%); fat the rest, 88.1 g, shown as 90 g (33%). At 7 g per kg, fat would drop to 34.7 g, 13% of calories, and the calculator warns; the most carbohydrate that leaves 20% for fat is 6.3 g per kg.
- A woman of 60, 150 cm and 60 kg (BMI 26.7), mostly sitting, losing weight: 1,510 kcal keeps her weight steady, and a 600 kcal cut would be 907 kcal, so the calculator stops at 1,200. Protein 72 g, shown as 70 g (24%); fat 40 g; carbohydrate 138 g, shown as 140 g (46%).
- A man of 70, 175 cm and 75 kg, lightly active, with strength training: 2,400 kcal. Protein from the over-65 range, 1.2 × 75 = 90 g (15%); fat 79.9 g, shown as 80 g; carbohydrate 329.7 g, shown as 330 g (55%).
- A woman of 45, 165 cm and 100 kg (BMI 36.7), mostly sitting, losing weight: 2,300 kcal keeps her weight steady, so 1,700 kcal. Protein on the weight at a BMI of 25 for her height, about 68 kg: 1.2 × 68.06 = 81.7 g, shown as 80 g (19%); fat 56.8 g, shown as 55 g; carbohydrate 216.4 g, shown as 215 g (51%). On her current weight, protein would be 120 g.
Sources 16, 5, 8, 11