How calories become grams
Each macronutrient gives a fixed amount of energy per gram. The general factors described in the Food and Agriculture Organization report on food energy, known as the Atwater system, are 4 kcal (17 kJ) per gram of protein, 4 kcal per gram of carbohydrate and 9 kcal (37 kJ) per gram of fat. The calculator multiplies your calories by each percentage and divides by 4 or 9. A 2,000 kcal day with 30% from fat is 600 kcal of fat, or about 67 g. Alcohol also has energy, about 7 kcal per gram in the same system, but it is not a nutrient you need, so it is not part of the split.
What WHO says about carbohydrate and fat
The WHO healthy diet fact sheet, last updated in January 2026, says carbohydrate should provide roughly 45 to 75% of daily energy, mainly from whole grains, vegetables, fruit and pulses. Adults should get at least 15% and up to 30% of their energy from fat, with saturated fat under 10% and trans fat under 1%. Free sugars, the sugars added to food and drink plus those in honey, syrups and fruit juice, should stay under 10% of energy, which is 50 g on a 2,000 kcal day. Adults should also eat at least 25 g of naturally occurring fibre a day. The three ready-made splits all sit inside these ranges. If your own split falls outside one, the calculator says which; it still shows the numbers.
How much protein
The joint FAO/WHO/UNU expert report on protein requirements (WHO Technical Report Series 935) sets the safe level of intake for adults at 0.83 g of good-quality protein per kilogram of body weight a day, the same for men and women and at all adult ages. It found no safe upper limit. It says twice the safe level is unlikely to carry risk, while three to four times approaches the tolerable upper limit and cannot be assumed to be risk-free, and it suggests people at risk of kidney stones stay under 1.4 g per kg. Enter your weight and the calculator shows grams per kilogram, with a note when the figure is below 0.83, above twice that, or three times or more. If you train hard or have a health condition, ask a registered dietitian what suits you.
Reading the result
The per-meal line divides the day evenly by the number of meals you choose, which is a simple starting point; the daily totals are what the ranges refer to. The calculator cannot know which foods you eat. 275 g of carbohydrate from whole grains, beans and fruit is very different from the same amount from sweets and white bread, and that is why the WHO limits for free sugars and saturated fat appear next to the totals. If you log food in an app, enter these grams as targets and compare averages over a week rather than single days, since daily intake naturally goes up and down.
Who should not rely on this
The ranges here are for healthy adults. They do not apply to children and teenagers, during pregnancy or breastfeeding, or to people with diabetes, kidney or liver disease or an eating disorder, or anyone on a diet set by a doctor; ask your doctor or a registered dietitian. WHO notes that low and very low carbohydrate diets are used to treat certain conditions, which is a reason to plan them with a professional. To estimate your daily calories first, use the calorie calculator. For weight, see the BMI calculator, and for fluids the water intake calculator.
- WHO fact sheet: Healthy diet (updated January 2026)
- WHO Technical Report Series 935: Protein and amino acid requirements in human nutrition (FAO/WHO/UNU, 2007)
- FAO: Food energy, methods of analysis and conversion factors (2003), chapter 3
- Calorie calculator
- BMI calculator
- Water intake calculator
- Ideal weight calculator