Skip to content
HEALTH · PROCENTOWNIK

Macros calculator — grams from the calories you enter

The macros calculator converts the energy target you enter into grams of protein, fat and carbohydrates per day. Choose one of four profiles to see how the energy is split and how each value is calculated.

You enter your own number of calories. The tool does not work out your energy needs or the right diet for you.

Convert energy into grams

The starting values are an example. The calculations run in your browser.

Calories and energy split profile

Enter from 1 to 20,000 kcal. This is a technical range, not a recommended intake range. You can use a comma or a full stop.

Protein 20% · Fat 30% · Carbohydrates 50% of energy.

Sample energy:

The quick values are examples for the calculations, not recommendations.

—

Enter your own energy target or choose an example.

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

Energy shares in Procentownik’s profiles
ProfileProteinFatCarbohydrates
Balanced20%30%50%
Keto25%70%5%
High-Protein30%30%40%
Low-Carb25%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.

Related calculators

More than a calculator.

Macros in Procentownik too

In Procentownik, you will find 33 modules in 6 categories, a calculation history and favourites. You can calculate macros locally, without creating an account. Explore the app or the other calculators.

The result is a mathematical split of the energy entered, not a meal plan or medical advice. It does not determine whether the calories or proportions entered are right for you.

Macros in the Procentownik app
Macros in the Procentownik app