Decide how many calories you need each day, then divide that amount in half. The recommended number of calories from carbohydrates is that amount. Carbohydrates contain four calories per gram. The result is the number of carbohydrates you require daily, expressed in grams.