Size optimization of solar array and battery in a standalone photovoltaic (SPV) system is investigated. Based on the energy efficiency model, the loss of power supply probability (LPSP) of the SPV system is calculated for different size combinations of solar array and battery. For the desired LPSP at the given load demand, the optimal size combination is obtained at the minimum system cost. One case study is given to show the application of the method in Malaysian weather conditions.