Nutrition Calculator

Basic Parameters

Your body inputs. Calculated privately in your browser.

Activity and Goals

Daily movement and target pace.

Activity Level

Leave at 0.1 if unsure

15–20% is steady and sustainable

Enter your values to see the result.

About this tool

This nutrition calculator estimates how much energy you use in a day and turns it into grams of protein, fat and carbohydrates. It starts from lean body mass rather than total weight, estimated both from your body-fat percentage and from your height and weight, and it uses the lower of the two estimates. You get two plans side by side: maintenance, and a deficit for gradual fat loss that you can set anywhere from 0% to 30%.

Alongside the macros, the calculator suggests daily amounts of fiber, water and salt. If your weight is above the healthy BMI range for your height, it also draws a week-by-week projection toward the top of that range. Treat the numbers as a starting point for meal planning or a food diary, then adjust them based on how your weight and energy respond over a few weeks.

How does the macro calculator work?

The calculator estimates calorie and macronutrient needs from body composition, activity level, and goals.

Basic calculation principles

  • Basal metabolic rate (BMR) - calculated with the Katch-McArdle formula based on lean body mass
  • Daily calorie target - BMR multiplied by the activity factor, accounting for the thermic effect of food
  • Protein - 2.2g per kg of lean mass to preserve muscle
  • Fat - at least 25% of total calories for hormonal function
  • Carbohydrates - fill the remaining calories

Basic data

  • Sex - affects lean body mass estimation
  • Weight and height - used to determine overall body proportions
  • Body fat percentage - one of two lean mass estimates; the lower one is used
  • Age - recorded, but not used by the Katch-McArdle formula

Activity level

  • Sedentary (1.2) - office work, minimal movement
  • Light activity (1.375) - light exercise 1-3 times a week
  • Moderate activity (1.55) - moderate workouts 3-5 times a week
  • High activity (1.725) - intense training 6-7 times a week
  • Extreme activity (1.9) - very hard training, physical labor

Additional recommendations

The calculator also provides guidance on:

  • Fiber - 14g per 1000 calories for digestive health
  • Water - 35ml per kg of body weight plus an extra 0.5L
  • Salt - 50mg per kg of body weight to maintain electrolyte balance

Important notes

  • Results are estimates and may require individual adjustments
  • If you have any medical conditions, consult your doctor first
  • Body fat percentage is best measured with professional methods
  • Adapt the results to your own body response

Example

Take a man who weighs 75 kg, is 175 cm tall, has 15% body fat, trains 3–5 days a week (1.55) and keeps the default 20% deficit. Lean mass from his body-fat figure would be 63.75 kg, but the Boer height-and-weight estimate gives 58.05 kg, and the calculator uses the smaller value. His BMR is 370 + 21.6 × 58.05 ≈ 1,624 kcal, and multiplying by 1.55 and adding 10% for the thermic effect of food gives a maintenance level of 2,769 kcal.

The deficit target is 2,769 × 0.8 ≈ 2,215 kcal. Protein is 2.2 × 58.05 ≈ 128 g (512 kcal), fat is 25% of calories, about 62 g, and carbohydrates fill the remaining 1,149 kcal, about 287 g. The extras come to roughly 31 g of fiber, 3.1 L of water and 3.8 g of salt a day. On the maintenance plan protein stays at 128 g, while fat rises to 77 g and carbohydrates to 391 g.

Assumptions and limits

Lean body mass is estimated in two ways, from your body-fat percentage and from the Boer formula based on sex, height and weight, and the lower result is used. That keeps targets conservative when a body-fat reading is too optimistic, but it also means a more accurate body-fat measurement may not change the result when the Boer estimate is lower. Age is collected but does not enter the Katch-McArdle equation.

The weight projection assumes about 7,700 kcal per kilogram of body fat and a constant daily deficit, and it stops at 52 weeks. Real weight loss tends to slow as you get lighter and is masked by changes in water weight, so compare your progress over several weeks rather than day to day. If you are pregnant or breastfeeding, or you manage a medical condition, ask a qualified professional for individual targets.

Frequently asked questions

Why does the calculator need my body-fat percentage?

The Katch-McArdle formula estimates basal metabolic rate from lean body mass, the part of your weight that is not fat. Your body-fat percentage gives one estimate of lean mass. The calculator compares it with the Boer estimate from sex, height and weight and uses the lower value, so a body-fat reading changes the result only when it gives the lower figure. A smart scale, skinfold calipers or a DEXA scan can give you a figure, though every method has a margin of error.

How is this different from a standard calorie calculator?

Many calorie calculators use formulas such as Mifflin-St Jeor, which estimate BMR from weight, height, age and sex. This one uses lean body mass instead, which can suit people whose body composition is far from average, such as very lean athletes. Both approaches are estimates, so your real maintenance level may differ from either result.

Why is protein based on lean mass instead of body weight?

Protein is set at 2.2 g per kilogram of lean mass, so it scales with the tissue you want to keep rather than with total weight. That keeps the target from climbing very high for people who carry more body fat. The protein amount is the same in the deficit and maintenance plans, while fat and carbohydrates change with calories.

How fast will I lose weight with a 20% deficit?

That depends on your maintenance calories. In the example above, a 20% deficit is about 554 kcal a day, which works out to roughly 0.5 kg a week using the 7,700 kcal per kilogram estimate. When your weight is above the healthy BMI range, the projection chart applies the same calculation to your own numbers.

Which activity level should I choose?

The levels are multipliers applied to BMR, from 1.2 for mostly seated days to 1.9 for very hard training or physical work. Pick the one that matches a typical week rather than your most active week, since overestimating activity is a common reason calorie targets come out too high. If your weight stays stable on fewer calories than the maintenance figure, move one level down.

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.

ParameterValueIf omitted
sexSexone of: male, femaledefault male
weight_kgweight_st + weight_lbweight_lb + weight_ozWeight (kg)number; any unit in the name: _mg, _g, _kg, _oz, _lb, _st, _ug, _t; allowed 30–300 kgrequired
height_cmheight_ft + height_inHeight (cm)number; any unit in the name: _mm, _cm, _m, _km, _in, _ft, _yd, _mi, _nmi; allowed 120–250 cmrequired
body_fat_pctBody Fat (%)percent: 6.5 means 6.5%; allowed 3–60required
age_yearsAge (years)whole number; allowed 10–100default 30
activityActivity Levelone of: sedentary, light, moderate, high, extremedefault moderate
tef_pctFood digestion effect (TEF)percent: 6.5 means 6.5%; allowed 0–100default 10
deficit_pctWeight-loss deficit (%)percent: 6.5 means 6.5%; allowed 0–30default 20

Examples

  • ?sex=male&weight_kg=90&body_fat_pct=25&height_cm=182&activity=moderate&deficit_pct=20
  • ?sex=female&weight_lb=165&body_fat_pct=30&height_ft=5&height_in=5&activity=light&tef_pct=10

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="nutrition"]