How the macros calculator works
The calculations start from the energy you enter. The calculator allocates a set share of it to each nutrient and then converts that share into grams. It uses 4 kcal per gram of protein, 9 kcal per gram of fat and 4 kcal per gram of carbohydrates. These are also the factors used in the Procentownik app.
The formulas, in the app’s order of operations:
Protein [g] = energy [kcal] × protein share [%] ÷ 400.
Fat [g] = energy [kcal] × fat share [%] ÷ 900.
Carbohydrates [g] = energy [kcal] × carbohydrate share [%] ÷ 400.
The percentages describe the share of total energy. They are not a percentage of the weight of food or the share of foods on a plate. That is why the same amount of energy from fat and from protein means a different number of grams.
Four energy split profiles
| Profile | Protein | Fat | Carbohydrates |
|---|---|---|---|
| Balanced | 20% | 30% | 50% |
| Keto | 25% | 70% | 5% |
| High-Protein | 30% | 30% | 40% |
| Low-Carb | 25% | 45% | 30% |
In each profile, the shares add up to 100%. Changing the profile keeps the calories you entered and changes how they are split. The names match the app; they do not confirm that the chosen split is suitable for a particular person. Choosing the Keto profile does not by itself confirm a state of ketosis. The calculator does not let you enter your own proportions.
Step-by-step example — 2,000 kcal
For 2,000 kcal and the Balanced profile, protein gets 20% of the energy, i.e. 400 kcal. Dividing 400 by 4 gives 100.0 g of protein a day.
Fat gets 30%, i.e. 600 kcal. Divided by 9, the result is about 66.7 g. The remaining 50% of the energy, i.e. 1,000 kcal, goes to carbohydrates: 1,000 divided by 4 gives 250.0 g.
The calculations use full values, and we show grams to one decimal place, as in the app. Converting the rounded grams back may give a small difference: in this example, 2,000.3 instead of 2,000 kcal. This is a result of how the result is presented, not extra calories in the calculation. The energy you enter is not rounded before it is used in the formulas.
Sources and how up to date the data is
The formulas and proportions were compared with the Procentownik 1.10.24 code. Date of check: 30 October 2026. The profiles come from the app; we do not present them as profiles approved by health organisations.
FDA, Food Labeling Guide — the document describes, among other things, the 4/9/4 energy conversion factors used in food labelling: Open the source
NHS, Eating a balanced diet — information on a varied diet and the need for individual support with special dietary requirements: Open the source
The factors do not require downloading current rates. The sources listed explain the nutritional context; they do not replace an assessment of your needs.
Questions and answers
Does the calculator work out how many calories I need?
No. You enter your own energy target, and the tool converts it into macronutrients. It does not take into account age, body weight, activity or a weight-change goal.
Do the percentages refer to grams?
No. They refer to energy. In this model, a gram of fat has a different conversion factor from a gram of protein or carbohydrates, so the shares in grams will differ from the percentages given.
Which profile should I choose?
The calculator does not choose a profile. It shows the effects of choosing one of four ready-made splits. If you have a medical condition, are pregnant or have other special needs, discuss your diet with a doctor or dietitian.
Why don’t the calories from the grams shown add up exactly to the figure entered?
The grams are rounded to one decimal place. The formulas work on unrounded values. We do not change one nutrient just so that the total recalculated from the displayed figures is perfect.
Can I enter my own proportions?
Four profiles matching Procentownik are currently available. The calculator does not let you edit the percentages or calculate based on grams per kilogram of body weight.
Are the calories I enter sent to a server?
Your browser does the calculations. The calculator form does not send the values you enter to a server and does not require an account. You start copying the result yourself.

