For efficient application of solar energy, a pebble bed energy storage heating system in a solar attic is optimally designed and operated. To study the characteristics of the heating system, a numerical model for the system is presented and is validated with the experiment data in the literature. Based on the model, the influence of the envelopes of the solar house and the meteorological condition on the system performance is investigated. The results show that the envelopes, except those on the north face, with more glazed exterior surfaces can be beneficial to raise the temperature of the solar house. It is also found that outdoor temperature may have less impact on the energy storage in the system compared with solar radiation. Furthermore, through optimizing the system design and operation, solar energy can account for 56% of the energy requirement in the heating season in Xi'an (about 34 degrees N, 108 degrees E), which has an average altitude of 397.5 m and moderate solar irradiation. Also, the suitability of the system in northwest China is investigated, and the outcome demonstrates that the external comprehensive temperature should be more than 269 K if a 50% energy saving rate is expected.