Photocurrent and voltage losses are the fundamental limitations for improving the efficiency of photovoltaic devices. It is indeed that a comprehensive and quantitative differentiation of the performance degradation in solar cells will promote the understanding of photovoltaic physics as well as provide a useful guidance to design highly-efficient and cost-effective solar cells. Based on optoelectronic simulation that addresses electromagnetic and carrier-transport responses in a coupled finite-element method, we report a detailed quantitative analysis of photocurrent and voltage losses in solar cells. We not only concentrate on the wavelength-dependent photocurrent loss, but also quantify the variations of photocurrent and operating voltage under different forward electrical biases. Further, the device output power and power losses due to carrier recombination, thermalization, Joule heat, and Peltier heat are studied through the optoelectronic simulation. The deep insight into the gains and losses of the photocurrent, voltage, and energy will contribute to the accurate clarifications of the performance degradation of photovoltaic devices, enabling a better control of the photovoltaic behaviors for high performance.