Carbohydrates and proteins provide 17 kJ approximately (4 kcal) of energy per gram, while fats provide 37 kJ (9 kcal) per gram.though the net energy from either depends on such factors as absorption and digestive effort, which vary substantially from instance to instance.