Convert kJ to grams using the energy density of carbohydrate, protein, fat or alcohol, or your own kJ/g value, and convert grams back to kJ.

Standard nutrient energy factors. Choose Custom for a fuel, material or a specific food label.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
kJ to gramsConverts an amount of energy to the mass of food or fuel that holds itRequires the energy and an energy density, from a nutrient preset or a custom value
Grams to kJConverts a mass to the energy it holdsRequires the mass and an energy density, from a nutrient preset or a custom value
Energy density (kJ/g)Finds the energy density of a sampleRequires the energy and the mass

Energy is accepted in kJ, kcal or J and mass in g, kg or mg. The energy density presets are carbohydrate or sugar and protein at 16.7 kJ/g, fat at 37.7 kJ/g and alcohol at 29.3 kJ/g. A custom density can be entered in kJ/g, kJ/100 g, kcal/g or kcal/100 g, which covers a food label or a fuel. Every result lists the mass, energy, energy density, kJ per 100 g and kcal per gram, with a short table of masses for 100, 500 and 1,000 kJ.

kJ to Grams Formulas

g = kJ ÷ E
gMass (grams)
kJEnergy (kilojoules)
EEnergy density of the food or material (kJ/g)

Kilojoules measure energy and grams measure mass, so there is no fixed number of grams in a kilojoule. The answer depends on what the energy is stored in. For food, the general factors are 4 kcal per gram for protein and carbohydrate, 9 for fat and 7 for alcohol [1]. The calculator multiplies these by 4.184 kJ per kcal [1], which gives 16.736, 37.656 and 29.288 kJ/g. Labels that work directly in kilojoules use the rounded factors 17, 37 and 29 kJ/g [1], so their figures differ by up to 2%.

kJ to grams

500 kJ of carbohydrate is 500 ÷ 16.736 = 29.9 g. The same 500 kJ is only 500 ÷ 37.656 = 13.3 g of fat, because fat holds more than twice the energy per gram. For a packaged food, the label gives the density: a food labeled 1,700 kJ per 100 g is 17 kJ/g, so 1,000 kJ of it weighs 1,000 ÷ 17 = 58.8 g.

Energy (kJ)Carbohydrate or protein (g)Fat (g)Alcohol (g)
1006.02.73.4
20012.05.36.8
45026.912.015.4
50029.913.317.1
60035.915.920.5
1,00059.826.634.1
1,37081.936.446.8
2,000119.553.168.3
5,000298.8132.8170.7
8,700519.8231.0297.0
10,000597.5265.6341.4

Grams to kJ

kJ = g × E

50 g of sugar holds 50 × 16.736 = 836.8 kJ, which is 200 kcal. 50 g of fat holds 50 × 37.656 = 1,882.8 kJ.

Energy density (kJ/g)

E = kJ ÷ g

kJ/g is the energy in each gram of a food or fuel. A 200 g portion that supplies 500 kJ has an energy density of 500 ÷ 200 = 2.5 kJ/g, or 250 kJ per 100 g, the form printed on nutrition labels. Dividing by 4.184 converts it to kcal per gram, here 0.6 kcal/g.

Limits of This Estimate

  • The nutrient factors are averages applied to every food, not physical constants. Measured values for a specific food can differ, for example between 35 and 37.7 kJ/g for fats [1].
  • The presets describe a pure nutrient. A whole food is a mix of carbohydrate, protein, fat, water and fiber, so its own label value gives a closer answer than any single preset.
  • For fuels and chemicals, the energy density must match the process, such as heat of combustion. This is not the mass-energy equivalence of physics.

Sources

  1. Food and Agriculture Organization of the United Nations, Food energy: methods of analysis and conversion factors (Food and Nutrition Paper 77), Chapter 3: the general energy factors for protein, fat, carbohydrate and alcohol, the kcal to kJ conversion and the range of specific factors