Phase Angle and Power Factor
First we have to determine how high the active and reactive power at a consumer are. The voltages in the grid are always fixed. That is why the type of power is determined by the load impedance or the load current. The phase angle φ from AC power describes the relationship as follows:
The power factor cos(φ) indicates how high the share of active power in the apparent power is. The goal is active power = apparent power and reactive power = 0. For this:
If the phase angle φ between voltage and current is 0°, there is only active power in the system. Then voltage and current are in phase and the load behaves like an ohmic resistor. As soon as inductors or capacitors appear in the consumer, reactive power occurs at these components. So usually there is a mix of active and reactive power at a consumer. For voltage, current and phase angle:

The time waveforms in the example above are chosen arbitrarily; they are not generally valid. The calculation of the phase φ from the phases of voltage and current as described above is generally valid. For high-power machines and installations, the power factor must satisfy:
The general formula (including derivation) for calculating the phase between voltage and current in the grid with the load impedance Z is:
To calculate the load current, we divide the voltage by the load impedance. The phase angle of the current therefore corresponds to the phase angle of the load impedance multiplied by -1. The phase angle φ is calculated as the voltage angle minus the current angle. Overall, the phase angle φ between voltage and current equals the phase angle of the load impedance φz. As an example, let us consider the phase of the impedance of a series connection of R and L at the star voltage U1. The numerical values of the load impedance are chosen arbitrarily.

For now, only the angle is important here. The phase angle of the current corresponds to that of the impedance with the opposite sign. If R and ωL are equal – as in the example – the cos(φ) is far too small. That causes trouble with the grid operator.
The cosine function gives the same result for positive and negative angles. cos(φ) = cos(-φ) applies. That is annoying, because the sign of the angle disappears when cos(φ) is specified. With a predominantly inductive load, the phase angle is positive in the range φind = [0 .. π/2]. With a predominantly capacitive load, the phase angle is negative in the range φkap = [-π/2 .. 0].
That is why there are additional specifications for cos(φ):
Because electrical machines are inductive loads, we often need local compensation of inductive reactive power: reactive power compensation.