About this tool
Macronutrients are the three nutrients that supply energy: protein, carbohydrate and fat. Tracking them, rather than calories alone, helps you keep enough protein while losing weight and lets you build a pattern such as low-carb or keto around a calorie budget.
This calculator links the steps: first your maintenance calories, then a deficit or surplus for your goal, then a split you can follow meal by meal. The balanced preset stays within the US Acceptable Macronutrient Distribution Ranges of 10–35% of calories from protein, 20–35% from fat and 45–65% from carbohydrate.
How it works
Enter your age, sex, weight and height and choose an activity level. The calculator estimates your total daily energy expenditure (TDEE) with the Mifflin–St Jeor equation. To lose or gain weight, set the calorie change as a percentage of TDEE or as a fixed number of kcal.
Then choose a macro split. Each preset divides the calorie target between protein, carbohydrate and fat by a share , and the grams follow from , the energy per gram: 4 kcal for protein and carbohydrate, 9 kcal for fat. You can instead set protein by body weight, for example 1.6 g per kg, and carbohydrate and fat then share the remaining calories in the preset's ratio. The table also divides each amount by the number of meals.
Example
A 35-year-old woman who weighs 68 kg, is 165 cm tall and is moderately active has a TDEE of about 2,131 kcal, because . A 20% deficit gives kcal a day.
With the balanced split, protein is g, carbohydrate g and fat g. Over three meals that is about 36 g of protein, 64 g of carbohydrate and 19 g of fat each. Setting protein to 1.6 g per kg instead gives g of protein, with 190 g of carbohydrate and 56 g of fat.
Assumptions and limits
The equations describe an average adult, and your real energy needs can differ by 10% or more. Treat the targets as a starting point and adjust them after two to four weeks based on your weight trend, hunger and training.
Loss targets never go below 1,200 kcal a day for women or 1,500 kcal for men, common minimums for dieting without medical supervision. Very low-carbohydrate and ketogenic diets are not suitable for everyone, including during pregnancy and for some medical conditions. This is general information, not medical or dietary advice; talk to a doctor or registered dietitian if you have a health condition.
Frequently asked questions
Which macro split should I choose?
The best split is the one you can keep to. Balanced suits most people; high-protein helps you stay full and keep muscle while losing weight; low-carb and keto suit people who prefer fewer starchy foods. Total calories decide whether you lose weight, while protein helps decide how much of the loss is fat rather than muscle.
How much protein do I need?
The recommended dietary allowance for adults is 0.8 g per kg of body weight. The International Society of Sports Nutrition suggests 1.4–2.0 g per kg for people who exercise regularly, and somewhat more during a calorie deficit to protect muscle. The body-weight option lets you set this directly.
Why don't the calories add up exactly?
Grams are rounded to whole numbers, so the calories from protein, carbohydrate and fat can differ from the target by a few kcal. That difference is much smaller than the normal day-to-day variation in what you eat.
Should I use a percentage or a fixed kcal deficit?
A percentage scales with your size: 20% is about 400 kcal for a TDEE of 2,000 kcal and 600 kcal for 3,000 kcal. A fixed deficit of 500 kcal is easy to remember and works out to roughly 0.5 kg (about 1 lb) a week. Both are reasonable starting points.
Where does alcohol fit in?
Alcohol provides about 7 kcal per gram but is not part of the protein, carbohydrate and fat split. Drinks therefore use up part of your calorie budget without counting toward any of the three targets.
Link with your values
Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.
| Parameter | Value | If omitted |
|---|---|---|
units | metric or imperial | set by the first measured value |
sexSex | one of: male, female | default female |
age_yearsAge (years) | whole number; allowed 15–80 | required |
weight_kgweight_lbweight_st + weight_lbweight_lb + weight_ozWeight (kg) | number; any unit in the name: _mg, _g, _kg, _oz, _lb, _st, _ug, _t; allowed 30–300 kg (metric), 66.1386786555–661.386786555 lb (imperial) | required |
height_cmheight_inheight_ft + height_inHeight (cm) | number; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed 120–250 cm (metric), 47.2440944882–98.4251968504 in (imperial) | required |
activityActivity level | one of: sedentary, light, moderate, high, extreme | default moderate |
goalGoal | one of: lose, maintain, gain | default lose |
adjustment_pctChange from TDEE | percent: 6.5 means 6.5%; allowed 1–40; used with goal = lose, gain | required |
adjustment_kcalChange from TDEE | number; allowed 50–1500; used with goal = lose, gain | required |
dietMacro split | one of: balanced, low_carb, high_protein, keto, custom | default balanced |
protein_pctProtein | percent: 6.5 means 6.5%; allowed 0–100; used with diet = custom | required |
carbs_pctCarbohydrate | percent: 6.5 means 6.5%; allowed 0–100; used with diet = custom | required |
fat_pctFat | percent: 6.5 means 6.5%; allowed 0–100; used with diet = custom | required |
protein_modeProtein | one of: split, body_weight | default split |
protein_per_kgprotein_per_lbProtein (g per kg of body weight) | number; a time per unit in the name: _per_mg, _per_g, _per_kg, _per_oz, _per_lb, _per_st, _per_ug, _per_t; allowed 0.8–3.3 /kg (metric), 0.362873896–1.496854821 /lb (imperial); used with protein_mode = body_weight | required |
mealsMeals per day | whole number; allowed 3–6 | default 3 |
Examples
?sex=female&age_years=35&weight_kg=72&height_cm=165&activity=moderate&goal=lose&adjustment_pct=20&diet=balanced?sex=male&age_years=30&weight_lb=180&height_ft=5&height_in=11&activity=high&goal=gain&adjustment_kcal=300&diet=high_protein&protein_per_lb=1?sex=female&age_years=42&weight_kg=60&height_cm=160&activity=light&goal=maintain&diet=low_carb&meals=4?sex=male&age_years=50&weight_kg=90&height_cm=180&goal=lose&adjustment_kcal=500&diet=keto?sex=female&age_years=28&weight_kg=58&height_cm=168&goal=maintain&protein_pct=35&carbs_pct=35&fat_pct=30
Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.
Result elements: [data-result-block="macros"]