The Basic Equation. Begin by multiplying your total daily calories by 45 percent and then multiply the total daily calories by 65 percent. These two numbers provide the range of calories that should come from carbohydrates. Then, divide both of those numbers by 4, since each gram of carbohydrate contains 4 calories. The two numbers you get from this equation provide the range of carbohydrate grams you should eat per day.