The Photovoltaic (PV) inverters operating with ancillary service capability have been discussed as a solution to improve the power quality of the electrical grid. In this context, the PV inverters can be used to provide services such as Harmonic Current Compensation (HCC). However, the analysis of how much this extra functionality can affect the reliability of the PV inverter is necessary. Thus, this work analyzes the lifetime of a threephase PV inverter taking into account the degradation of the semiconductor devices (IGBTs and diodes) and the dc-link capacitors. The compensation of the 5 th and 7 th harmonic current components (and their combination) are considered. The lifetime evaluation is performed based on an mission profiles of solar irradiance, ambient temperature, harmonic current amplitude and phaseangle. Based on the results of the adopted case study, the HCC operation increases the lifetime consumption of the IGBTs, diodes and dc-link capacitors. Compared to traditional PV inverter operation, The results reveals a reduction in the predicted B 10 lifetime of 3.4 and 4.1 years, when the PV inverter compensates 5th and 7th harmonic, respectively. The reduction is even more significant (5.6 years) when the 5 th and 7 th harmonic component are simultaneously compensated.