Lagging power factor is defined to be when the inverter sinks reactive power from the grid; that is, when the inverter acts as the inductive load from the perspective of the grid. Leading power factor is defined to be when the inverter sources reactive power to the grid; that is, when the inverter acts as a capacitive load from the perspective of the grid.