To form the Y-Bus matrix for power flow studies in power systems.
Introduction
The Y-Bus matrix, also known as nodal admittance matrix, is a key component in power flow analysis, providing a mathematical representation of the power systems. It is a sparse and symmetric matrix that characterizes the admittance between all pairs of connected buses in a power system. This matrix is used in solving power flow equations to determine the steady-state operating conditions of the power systems, making it a backbone for their analysis and design.
Y-Bus Matrix Formation -
To obtain Y-Bus matrix for the interconnected power system, consider a simple network shown in Figure 1.

To obtain Y-Bus matrix for the power system, shown in Figure 1. For the Y-Bus matrix formation, all the transmission lines are represented by the π-model (please follow any of power system textbook for more details). For the current injection at each node (bus), the node-voltage equations need to be considered which are based on Kirchoff’s current law (KCL). The impedances of the transmission lines are converted to admittances as per the equation (1) given below.
The admittance diagram for the 5-bus power system is shown in Figure 2, where series line admittance (yij) and half line charging susceptance (bij) are shown. The admittance of the transformers 1 and 2 is represented by yT1 and yT2, respectively. As the transformer connected between buses 1 and 2 has a tap ratio of 1:1, its series admittance is equal to the admittance of the transformer, i.e., yT1 and the line charging susceptances equal to zero. Whereas the transformer connected between the buses 3 and 5 having a tap ratio of 1:t, the series admittance is equal to ' t ' times of the admittance of the transformer, i.e., tyT2, and line charging susceptances are equal to t(1-t)yT2 and (1-t)yT2 connected at buses 3 and 5, respectively. Now, applying KCL to the all buses, the node-voltage equations are given below.
Bus 1: I1 = yT1(V1 - V2)
Bus 2: I2 = yT1(V2 - V1) + y23(V2 - V3) + y24(V2 - V4) + b23V2 + b24V2
Bus 3: I3 = y23(V3 - V2) + y34(V3 - V4) + tyT2(V3 - V5) + b23V3 + t(t-1)yT2V3 + b34V3
Bus 4: I4 = y24(V4 - V2) + y34(V4 - V3) + (b24 + b34)V4
Bus 5: I5 = tyT2(V5 - V3) + (1-t)yT2V5
Rearranging the terms, we get
Bus 1: I1 = yT1V1 - yT1V2
Bus 2: I2 = -yT1V1 + (yT1 + b23 + y23 + b24 + y24)V2 - y23V3 - y24V4
Bus 3: I3 = -y23V2 + (y23 + b23 + tyT2 + t(t-1)yT2 + y34 + b34) V3 - y34V4 - tyT2V5
Bus 4: I4 = -y24V2 - y34V3 - (y24 + b24 + y34 + b34)V4
Bus 5: I5 = -tyT2V3 + (tyT2 + (1-t)yT2)V5

Writing them in the matrix form as –
| I1 |
| I2 |
| I3 |
| I4 |
| I5 |
| Y11 | Y12 | Y13 | Y14 | Y15 |
| Y21 | Y22 | Y23 | Y24 | Y25 |
| Y31 | Y32 | Y33 | Y34 | Y35 |
| Y41 | Y42 | Y43 | Y44 | Y45 |
| Y51 | Y52 | Y53 | Y54 | Y55 |
| V1 |
| V2 |
| V3 |
| V4 |
| V5 |
Where-
Y11=yT1; Y12=Y21=-yT1; Y13=Y14=Y15=0
Y22=yT1+b23+y23+b24+y24; Y23=-y23; Y24=-y24; Y25=0;
Y33=y23+b23+tyT2+t(t-1)yT2+y34+b34; Y32=-y32; Y34=-y34;
Y35=Y53=-tyT2; Y41=0; Y42=-y24; Y43=-y34;
Y44=y24+b24+y34+b34; Y45=Y54=0; Y55=tyT2+(1-t)yT2;
Similar to this, we can generalize the Y-Bus matrix for the n-bus power system as given below.
| I1 |
| I2 |
| ... |
| Ii |
| ... |
| In |
| Y11 | Y12 | ... | Y1i | ... | Y1n |
| Y21 | Y22 | ... | Y2i | ... | Y2n |
| ... | ... | ... | ... | ... | ... |
| Yi1 | Yi2 | ... | Yii | ... | Yin |
| ... | ... | ... | ... | ... | ... |
| Yn1 | Yn2 | ... | Yni | ... | Ynn |
| V1 |
| V2 |
| ... |
| Vi |
| ... |
| Vn |
Or,
Where, Ibus is the vector of the injected bus currents and Vbus is the vector of bus voltages measured from the reference node. Ybus is known as the bus admittance matrix or or nodal admittance matrix.
With the above explanation, the Ybus matrix for the power system can be formulated based on the following two conditions.
1. For the lines, without transformer:
• The diagonal element of each node is the sum of admittances connected to it. It can be calculated as:
Yii = n ∑ j=1 yij + bij
• The non-diagonal elements for each node are the negative of the series admittance of the connected line. It can be calculated as:
Yij = Yji = -yij , ∀ j ≠ i
2. For the lines, with transformer:
• The diagonal element of each node is the sum of admittances connected to it. The diagonal elements for primary and secondary side of the transformer are calculated as:
For primary side bus,
Yii = n ∑ j=1 yij + tyT + t(t-1)yT + bij
For secondary side bus,
Yjj = n ∑ j=1 yij + tyT + (1-t)yT + bij
• The non-diagonal elements are calculated by multiplying transformer turn ratio with the negative of the series admittance of the connected line. It can be calculated as –
Yij = Yji = -tyij , ∀ j ≠ i
The Y-Bus matrix is symmetric along the leading diagonal, due to this only upper triangular nodal admittance matrix is required improving the computational performance. Also, the Y-Bus matrix is a sparse matrix due to the interconnection of each bus with only a few nearby buses.