In this paper, hybrid energy utilization was studied for the base station in a 5G network. To minimize AC power usage from the hybrid energy system and minimize solar energy waste, a Markov decision process (MDP) model was proposed for packet transmission in two practical scenarios. In this model, one buffer is transmitted with a given number of data packets over finite transmission time intervals. In the two scenarios of packet transmission, solar energy harvesting (SEH) is stored in the first scene, while the other scene uses the energy immediately. The MDP model determines the best actions and decisions for both scenarios. When considering a finite battery size and finite packet buffer, the MDP model defines the actions, states, state transition probabilities, and cost value for each action. In the first scenario, the received solar energy harvester will not be used if it is not enough to transmit the packets in the buffer. In the second scenario, the received solar energy harvester will be used immediately. In both scenarios, the cost value is the weighted sum of AC power and SEH wastage. The simulation results showed the optimum buffer sizes could be determined for the balance between AC power consumption and SEH wastage based on the cost value of the proposed model. Finally, the numerical results indicated that the proposed MDP model could reduce AC power usage by up to 50%.