If \({}_{\text{in}}I_1, \dotsc, {}_{\text{in}}I_p\) are all currents whose chosen reference arrows point into \(N\) and \({}_{\text{out}}I_1, \dotsc, {}_{\text{out}}I_q\) are all currents whose chosen reference arrows point away from \(N\), then:
This can be stated alternatively if we label all currents as \(I_1, \cdots, I_n\) and then write the equation as
\[\sum_{k = 1}^n s_k \cdot I_k = 0,\]
where we define \(s_k\) according to either one of the following conventions:
\[\begin{aligned}s_k &\overset{\text{def}}{=} \begin{cases}-1 \qquad \text{if the chosen reference arrow of } I_k \text{ points towards the node} \\ 1 \qquad \text{if the chosen reference arrow of } I_k \text{ points away from the node} \end{cases} \\ &\text{or} \\ s_k &\overset{\text{def}}{=} \begin{cases}-1 \qquad \text{if the chosen reference arrow of } I_k \text{ points away from the node} \\ 1 \qquad \text{if the chosen reference arrow of } I_k \text{ points towards the node} \end{cases} \end{aligned}\]
Consider any number of points (any points, not necessarily nodes) in a lumped circuit. Draw a closed loop passing through them andcChoose an orientation (either clockwise or counterclockwise) for it. Now consider all voltages between adjacent points.
If \({}_{\text{along}} V_1, \dotsc, {}_{\text{along}} V_p\) are the voltages whose chosen reference arrows point along the orientation of the loop and if \({}_{\text{against}} V_1, \dotsc, {}_{\text{against}} V_q\) are the voltages whose chosen reference arrows point opposite the orientation of the loop, then:
This can be stated alternatively if we label the voltages as \(V_1, \dotsc, V_n\) and then write the equation as
\[\sum_{k = 1}^n s_k \cdot V_k = 0,\]
where we define \(s_k\) according to one of the following conventions:
\[\begin{aligned} s_k &= \begin{cases}-1 & \text{if the reference arrow of } U_k \text{ points against the chosen loop direction} \\ 1 & \text{if the reference arrow of } U_k \text{ points along the chosen loop direction}\end{cases} \\ &\text{or} \\ s_k &= \begin{cases}1 & \text{if the reference arrow of } U_k \text{ points against the chosen loop direction} \\ -1 & \text{if the reference arrow of } U_k \text{ points along the chosen loop direction}\end{cases} \end{aligned}\]
Kirchhoff's voltage law also applies when only some or none of the points are physically connected by wires because you can always draw a closed loop between any finite number of points (the orange line):