To reduce carbon dioxide emissions and improve energy security in Japan, buildings are required to utilize renewable energy sources and energy storage devices. Buildings are also required to flexibly control the constantly fluctuating energy balance within them. This paper aims to propose the formulation methodology of a model predictive control (MPC) for minimizing the electricity costs of a real building under the conventional fixed electricity billing system. An energy simulation is developed for a research facility (Table 1) with a total floor area of approximately 11,610 m2, and the formulation of MPC and its effectiveness are demonstrated through the developed energy simulation (Figure 3). The variables for the MPC are the output from the storage battery and the output rate of PV during the predicted period. The annual simulation results showed that approximately 30% reduction in electricity cost is possible under certain conditions.