In this guide we build the Y bus and the Z bus for a small network step by step, with simple animated diagrams, and use them to find a real fault current.
Quick answer: The Y bus (bus admittance matrix) is a table of admittances between the buses of a network. We can write it down by simple rules, and it is mostly zeros. The Z bus (bus impedance matrix) is its inverse. It is full of non-zero numbers, and each diagonal entry Zii is the Thevenin impedance at bus i. So the Y bus is the natural tool for load flow, and the Z bus gives the three-phase fault current at a bus in one step: If = Vf ÷ Zii.
Why we need a table for the network
A real grid has hundreds or thousands of connection points. Each one links to a few lines, transformers and generators. Engineers must answer two kinds of question about it every day.
- Normal running. What is the voltage at each point, and how much power flows in each line? This is a load flow study.
- Faults. If a short circuit happens at one point, how large is the current? This is a fault study, also called a short-circuit study.
A drawing is fine for a person. But a computer needs numbers in a fixed format. So how can we describe a whole network in a form a computer can solve in a second? The answer is two square tables, or matrices: the Y bus and the Z bus. The animation at the top of this page shows the whole path, from drawing to tables.
This is step 5 in our power system basics path. It uses the per-unit method from step 4, so all values here are in per unit (pu).
Buses, branches and admittance
First we need three words.
- A bus is a node, a point where two or more parts of the network join. In a substation it is a real thick copper bar, the busbar. In the model it is one point with one voltage.
- A branch is anything that joins two buses, such as a line or a transformer. It can also join a bus to ground, like a generator or a shunt capacitor.
- The reference is the ground, or neutral. We call it bus 0. All bus voltages are measured from it.
The figure below shows a bus in both forms. At every bus the current that flows in equals the current that flows out. This is Kirchhoff’s current law, and it is the rule behind the Y bus.
Next we need admittance. Impedance, z, tells us how much a branch opposes current. Admittance, y, tells us how easily the branch lets current through. It is simply the inverse:
y = 1 ÷ z
Transmission lines are mostly reactance, the opposition from the magnetic field of the line. So a line of z = j0.1 pu has y = 1 ÷ j0.1 = −j10 pu. The j means a 90° phase shift, and dividing by j flips its sign. So line admittances usually carry a minus sign. The figure below compares the three lines we use later.
Think of water pipes. Impedance is like how narrow a pipe is. Admittance is like how wide it is. A short, fat pipe has low impedance and high admittance, so water flows through it easily. The two numbers describe the same pipe from opposite sides.
Why use admittance at all? Because at a bus, branch currents add. And each branch current is its admittance times a voltage difference. So admittances add up neatly, and this gives a very simple table.
Building the Y bus by inspection
The Y bus links the current injected at each bus to the bus voltages: I = Ybus V. For a network with n buses, it is an n × n table. Row i and column i belong to bus i.
For networks of simple lines and generators, we can fill it in just by looking at the diagram. This is called building it by inspection. The four cards below show the rules.
1Turn each z into y
Take every branch impedance in per unit. Divide 1 by it. This gives the branch admittance.
2Diagonal: add them up
Yii is the sum of every admittance connected to bus i. Include branches to ground, such as generators.
3Off-diagonal: change the sign
Yij is minus the admittance of the branch between bus i and bus j.
4Check zeros and symmetry
If two buses have no direct branch, the entry is zero. The table is a mirror image across its diagonal.
In short:
- Diagonal entry Yii (the self-admittance) = the sum of all admittances connected to bus i. This includes branches to ground, such as generators and line charging.
- Off-diagonal entry Yij (the mutual admittance) = minus the admittance of the branch between bus i and bus j. If there is no branch, it is zero.
Two errors are very common. The first is forgetting the branches to ground, such as generator reactances or shunt capacitors, in the diagonal sum. The second is forgetting the minus sign on the off-diagonal entries. A quick check helps: without any branch to ground, each row of the Y bus adds up to zero.
The Y bus has two useful properties.
- Symmetry. Yij = Yji, because a line carries current the same way in both directions. This is true for lines, normal transformers and generators. One exception is a phase-shifting transformer, which makes the table unsymmetric.
- Sparsity. Most entries are zero. Each bus connects to only a few neighbours, typically two to four. So each row has only a few non-zero entries, however large the network is.
The figure below shows this for the IEEE 14-bus test system, a standard small study network. Only 54 of 196 entries are non-zero. For a large grid model the effect is huge. In a model with about 18,000 buses, only about 0.03% of the entries are non-zero. So the computer stores and works with only the non-zero numbers. This is why the Y bus suits large networks so well.
The Z bus: the same network, inverted
The Z bus is the inverse of the Y bus: Zbus = Ybus−1. So it works the other way round: V = Zbus I. If we inject a current at one bus, the Z bus tells us how much every bus voltage changes.
The inverse only exists if the network has a path to the reference. Generators, shunt branches or line charging give this path. Without any branch to ground, every row of the Y bus adds up to zero, and the table cannot be inverted. In practice the generator reactances give the path, as in our example.
The entries have a clear physical meaning.
- A diagonal entry Zii is the driving-point impedance of bus i. It is the Thevenin impedance seen at that bus: the whole network squeezed into one impedance between bus i and the reference.
- An off-diagonal entry Zij is the transfer impedance. It tells us how much the voltage at bus i changes when current is injected at bus j.
This makes the Z bus perfect for faults. For a bolted (zero-impedance) three-phase fault at bus k, the fault current is:
If = Vf ÷ Zkk
Here Vf is the voltage at the bus just before the fault, often taken as 1.0 pu. Standards such as IEC 60909 multiply it by a voltage factor c, up to 1.10 for maximum fault current above 1 kV. During the fault, the voltage at any other bus i drops to Vi = Vf − Zik If. The figure below shows this idea for bus 2 of our example.
Think of the Zii value as how “soft” a bus is. Push a current into a stiff bus and its voltage hardly moves. That bus has a small Zii, and it gives a large fault current. A soft bus far from the generators has a large Zii, and a smaller fault current.
Unlike the Y bus, the Z bus is dense. In a connected network, every entry is non-zero. A current injected at one bus changes the voltage at every other bus a little, even far away. So the inverse of a sparse table fills in completely, as the right side of the sparsity figure shows. The Z bus is the same size as the Y bus, but it has far more numbers to store.
Worked example: a 3-bus system
Now we put the rules to work. The network in the figure below uses a 100 MVA base and 132 kV lines. We ignore line resistance and loads, which is a common simplification for a first fault study.
Step 1. Turn each impedance into an admittance.
- Line 1–2: y = 1 ÷ j0.10 = −j10
- Line 2–3: y = 1 ÷ j0.20 = −j5
- Line 1–3: y = 1 ÷ j0.25 = −j4
- G1 at bus 1: y = 1 ÷ j0.20 = −j5, to ground
- G2 at bus 3: y = 1 ÷ j0.30 = −j3.333, to ground
Step 2. Fill the diagonal. Add every admittance at each bus.
- Y11 = −j10 − j4 − j5 = −j19
- Y22 = −j10 − j5 = −j15
- Y33 = −j5 − j4 − j3.333 = −j12.333
Step 3. Fill the off-diagonal entries. Change the sign of each branch admittance.
- Y12 = Y21 = +j10
- Y23 = Y32 = +j5
- Y13 = Y31 = +j4
The finished Y bus, in per unit:
| Y | bus 1 | bus 2 | bus 3 |
|---|---|---|---|
| bus 1 | −j19 | j10 | j4 |
| bus 2 | j10 | −j15 | j5 |
| bus 3 | j4 | j5 | −j12.33 |
Every pair of buses is linked here, so there are no zeros. That is normal for a tiny network. Check the symmetry: the table is a mirror image across its blue diagonal.
Step 4. Invert to get the Z bus. Inverting a 3 × 3 table by hand is slow, so we let Python do it:
import numpy as np
Y = np.array([[-19j, 10j, 4j],
[ 10j, -15j, 5j],
[ 4j, 5j, -12.333j]])
Z = np.linalg.inv(Y)
print(np.round(Z, 3)) # diagonal of Z: 0.137j, 0.187j, 0.159jThe result, rounded to 3 decimals, in per unit:
| Z | bus 1 | bus 2 | bus 3 |
|---|---|---|---|
| bus 1 | j0.137 | j0.123 | j0.094 |
| bus 2 | j0.123 | j0.187 | j0.116 |
| bus 3 | j0.094 | j0.116 | j0.159 |
Every entry is non-zero now, as expected. The diagonal tells us something useful already. Bus 2 has the largest value, j0.187. It has no generator of its own, so it is the “softest” bus.
Step 5. Find the fault current at bus 2. We take Vf = 1.0 pu.
- If = 1.0 ÷ j0.187 = −j5.34 pu. So the size of the current is 5.34 pu.
- Base current at 132 kV = 100 MVA ÷ (√3 × 132 kV) ≈ 437 A.
- Fault current ≈ 5.34 × 437 A ≈ 2.34 kA. The fault level is about 534 MVA.
The transfer impedances give the other voltages during the fault. V1 = 1 − (0.123 ÷ 0.187) ≈ 0.34 pu, and V3 = 1 − (0.116 ÷ 0.187) ≈ 0.38 pu. So a fault at bus 2 pulls the whole network down to about a third of its normal voltage.
For comparison, the same method gives 7.29 pu at bus 1 and 6.31 pu at bus 3. These buses have generators close by, so their Zii is smaller.
Other values as in the example. Pre-fault voltage 1.0 pu, 100 MVA base, 132 kV (base current 437 A). The script inverts the 3 × 3 table each time.
A lower line reactance gives a larger fault current at bus 2, because the generators are now “closer” to it. For larger networks, our interactive Y bus and Z bus calculator builds both tables from any branch list you type in.
Building the Z bus without a full inversion
Inverting a table works well for small networks. But it takes much more work as the network grows, and the result is dense. So there is a second way: the Z bus building algorithm. We start with one branch to the reference. Then we add the other branches one at a time and update the table after each one.
Each new branch, with impedance Zb, is one of four types. The figure below shows them.
- Type 1, new bus to reference. Add a new row and column. The new diagonal entry is Zb, and the new off-diagonal entries are zero.
- Type 2, existing bus k to a new bus. Add a new row and column by copying those of bus k. The new diagonal entry is Zkk + Zb.
- Type 3, existing bus k to reference. Add a temporary row and column, then remove it with Kron reduction, a short elimination step. The size stays the same.
- Type 4, between two existing buses. The same idea as type 3, with a temporary row and column, and then Kron reduction.
The big advantage is updating. When one line is added or switched out, we change only that branch. We do not need to start again from scratch.
Modern fault software usually goes one step further. It keeps the sparse Y bus and factorises it, which means splitting it into two triangle-shaped tables that are quick to solve. Then it works out only the Z bus columns it needs. This gives the same fault currents without ever storing the full dense Z bus.
Where each matrix is used
The Y bus is used for load flow. A load flow finds the voltage and angle at every bus for a given set of loads and generation. The power equations are not linear, so the computer solves them by repeated guesses. The two classic methods, Gauss-Seidel and Newton-Raphson, are both written in terms of the Y bus. Its sparsity keeps each step fast, even for very large grids.
The Z bus is used for fault studies. The diagonal gives the fault current at each bus in one division. The off-diagonal entries give the voltages at all the other buses during that fault. These numbers set breaker ratings and protection settings.
The table below sums up the differences.
| Y bus | Z bus |
|---|---|
| What each entry is | |
| An admittance, y = 1/z | An impedance |
| How we get it | |
| By inspection, from the branch list | Invert the Y bus, or build it branch by branch |
| Zeros | |
| Mostly zeros (sparse) | No zeros in a connected network (dense) |
| Diagonal entry | |
| Sum of admittances at the bus | Thevenin impedance at the bus |
| Main use | |
| Load flow | Fault (short-circuit) studies |
| Network change | |
| Easy: edit 4 entries | Harder: many entries change |
Some articles say the Z bus is “more accurate” or “more stable” than the Y bus. It is not. Both describe exactly the same network. They are just two views of it, and one is the inverse of the other. We choose the one that makes a study easier: the Y bus for load flow, and the Z bus for faults.
Key takeaways
- A bus is a node with one voltage. Branches join buses to each other or to the reference (ground).
- Admittance is the inverse of impedance, y = 1 ÷ z. A line of j0.1 pu has an admittance of −j10 pu.
- Y bus by inspection: each diagonal entry is the sum of admittances at the bus, including branches to ground. Each off-diagonal entry is minus the branch admittance.
- The Y bus is symmetric and sparse, so it suits load flow with Gauss-Seidel or Newton-Raphson.
- The Z bus is the inverse of the Y bus. It exists when the network has a path to ground, and it is dense.
- Each diagonal Zkk is the Thevenin impedance at bus k, so the three-phase fault current is If = Vf ÷ Zkk. In our example, that is 5.34 pu, or about 2.34 kA.
Next in the path, we look at how a single transmission line is described by four numbers. Try our calculator to build the Y bus and Z bus for your own network.
Standards named in this guide: IEC 60909-0 (IEC Webstore).
Related guides on Electrical Blog:
Interactive Y bus and Z bus matrix calculator
