---
title: The bus admittance and impedance matrices
heading: Nodal equations for a power network, building the bus admittance matrix by inspection, line charging and off-nominal taps in it, its sparsity, and the bus impedance matrix whose diagonal gives each bus's Thevenin impedance
eyebrow: S10 · Lesson 10 · The bus admittance and impedance matrices
xp: 50
---

::: hook
A real grid model has tens of thousands of buses, and every power-flow and fault program starts the same way: write the nodal equations I = YV for the whole network. The bus admittance matrix can be written down by inspection, one line at a time, and it's almost all zeros because each bus connects to only a few others. Its inverse, the bus impedance matrix, is full, but its diagonal holds something every protection engineer wants: the Thevenin impedance seen at each bus, and so its fault current.
:::

::: play
- A three-bus network: a generator behind j0.2 pu at bus 1, lines of j0.1 (1–2) and j0.2 (1–3), and a line of reactance $x_{23}$ between buses 2 and 3.
- The plot shows the Thevenin reactance at bus 3, $Z_{33}$, against $x_{23}$, and the three-phase fault current there (1/$Z_{33}$).
- With no 2–3 line (large $x_{23}$) bus 3 is fed through 0.4 pu. Adding the parallel path lowers the impedance and raises the fault current: meshing a network makes it stiffer.
:::

```sim plot
view: graph
x: x = 0.02..2 pu log
y: v = 0..5 pu
plot: 0.2 + 0.2*(x + 0.1)/(0.3 + x) | samples: 400 | label: Z₃₃
plot: 1/(0.2 + 0.2*(x + 0.1)/(0.3 + x)) | samples: 400 | color: ch3 | label: fault current at bus 3
```

::: predict
## In a network's bus admittance matrix, what's the off-diagonal entry $Y_{ij}$ for two buses joined by a line of series impedance $z_{ij}$?

- [ ] $z_{ij}$
- [ ] $1/z_{ij}$
- [x] $-1/z_{ij}$
- [ ] 0, since off-diagonals are always zero

::: reveal
In the nodal equation for bus i, the line contributes $(V_i - V_j)/z_{ij}$, so the coefficient of $V_j$ is $-1/z_{ij}$, and $+1/z_{ij}$ adds to the diagonal $Y_{ii}$. Buses not directly connected have $Y_{ij}$ = 0, which is why the matrix is sparse.
:::
:::

::: nameit
## Nodal equations

With bus voltages V (to ground) and currents I injected into the buses, I = YV.

## Building $Y_\text{bus}$ by inspection

For each branch between buses i and j with series admittance $y_{ij} = 1/z_{ij}$:

- add $y_{ij}$ to $Y_{ii}$ and $Y_{jj}$;
- subtract $y_{ij}$ from $Y_{ij}$ and $Y_{ji}$.

Shunt elements (half of each line's charging susceptance at each end in the π model, capacitor banks, reactors, loads modeled as admittances, generator reactances to an internal source node) add only to their bus's diagonal. Without any connection to ground, Y is singular.

## Off-nominal transformers

A transformer with series admittance y and a tap ratio a:1 on bus i's side contributes $y/a^2$ to $Y_{ii}$, y to $Y_{jj}$, and $-y/a$ to $Y_{ij}$ and $Y_{ji}$. Phase-shifting transformers make Y unsymmetric.

## Sparsity

A bus typically connects to two to four others, so a 10,000-bus Y has about 99.97% zeros. Programs store only the nonzeros and factor with orderings that keep the factors sparse (lesson 43 of A13).

## $Z_\text{bus}$

$Z_\text{bus} = Y_\text{bus}^{-1}$, full rather than sparse. $Z_{kk}$ is the Thevenin impedance at bus k with all sources shorted, so a bolted three-phase fault there draws $V_\text{pre}/Z_{kk}$, and $Z_{ik}$ gives how much the fault depresses bus i: $\Delta V_i = -Z_{ik}I_f$ (lesson 36).
:::

::: example
## Build $Y_\text{bus}$ and $Z_\text{bus}$ for the three-bus network with $x_{23}$ = 0.25.

::: solution
1. **Branch admittances.** They are −j10 (1–2), −j5 (1–3), −j4 (2–3) and −j5 (generator at bus 1).
2. **Build $Y_\text{bus}$.**
   $$Y_\text{bus} = -j\begin{pmatrix} 20 & -10 & -5 \\ -10 & 14 & -4 \\ -5 & -4 & 9 \end{pmatrix}$$
3. **Invert it.**
   $$Z_\text{bus} = j\begin{pmatrix} 0.200 & 0.200 & 0.200 \\ 0.200 & 0.282 & 0.236 \\ 0.200 & 0.236 & 0.327 \end{pmatrix}$$
4. **Read bus 1.** $Z_{11}$ is just the generator's 0.2, since bus 1 connects straight to it.
5. **Check bus 3.** $Z_{33}$ = 0.327 matches the series–parallel reduction
   $$0.2 + 0.2 \parallel 0.35$$
   and a fault at bus 3 draws 3.06 pu.

**Answer:** $Y_\text{bus}$ and $Z_\text{bus}$ are the matrices above; $Z_{33}$ = j0.327, so a fault at bus 3 draws 3.06 pu.
:::
:::

::: example
## A line has series impedance j0.1 pu and total charging susceptance 0.2 pu. What does it add to its end buses' diagonal entries?

::: solution
1. **Series branch.**
   $$1/(j0.1) = -j10$$
2. **Charging.** Half the charging, j0.1, goes at each end.
3. **Add them up.** Each diagonal gets
   $$\begin{aligned} \Delta Y_{ii} &= -j10 + j0.1 \\ &= -j9.9 \end{aligned}$$
   and each off-diagonal gets +j10.
4. **When charging matters.** For short lines the charging term is small; for long EHV lines it can be a third of the series term.

**Answer:** −j9.9 added to each end bus's diagonal entry, and +j10 to each off-diagonal.
:::
:::

::: example
## Two buses are joined by a line of j0.2 pu, and each has a generator of j0.4 pu to ground. Find $Z_\text{bus}$, the fault current for a bolted fault at bus 1, and bus 2's voltage during it.

::: solution
1. **Admittance matrix.** From the susceptances:
   $$Y = j\begin{pmatrix} -7.5 & 5 \\ 5 & -7.5 \end{pmatrix}$$
2. **Invert it.**
   $$Z_\text{bus} = j\begin{pmatrix} 0.24 & 0.16 \\ 0.16 & 0.24 \end{pmatrix}$$
3. **Fault current.**
   $$\begin{aligned} I_f &= 1/Z_{11} \\ &= 4.17\ \text{pu} \end{aligned}$$
4. **Bus 2's voltage.**
   $$\begin{aligned} V_2 &= 1 - Z_{21}I_f \\ &= 1 - 0.16 \times 4.17 \\ &= 0.33\ \text{pu} \end{aligned}$$
5. **Why fault studies use it.** $Z_\text{bus}$ gives the whole network's response to an injection at any bus.

**Answer:** $Z_\text{bus}$ has j0.24 on the diagonal and j0.16 off it; the fault draws 4.17 pu, and bus 2 falls to 0.33 pu.
:::
:::

::: check
given: a = 0.05 | 0.1 | 0.2; b = 0.08 | 0.25; g = 0.15 | 0.3
answer: 1/a + 1/b + 1/g
tolerance: 0.5%

## Bus 1 has lines of reactance j\given{a} and j\given{b} pu and a generator of j\given{g} pu to its source. What's the magnitude of the susceptance in $Y_{11}$?

::: right
Right. $1/x_a + 1/x_b + 1/x_g$ = {answer}, so $Y_{11}$ = −j{answer}.
:::

::: misses
- [a + b + g] Admittances add, not impedances.
- [1/a + 1/b] Include the generator's branch to ground.
- [any] Not yet. Sum the admittances at the bus.
:::
:::

::: check
given: x = 0.02 | 0.08 | 0.3; B = 0.04 | 0.4
answer: 1/x - B/2
tolerance: 0.5%

## A line has series reactance j\given{x} pu and total charging susceptance {B} pu. What net susceptance magnitude does it add to each end's diagonal?

::: right
Right. The series part gives −j(1/x) and half the charging gives +jB/2: net magnitude {answer}.
:::

::: misses
- [any] Not yet. π model: B/2 at each end.
:::
:::

::: check
given: x = 0.05 | 0.12; a = 0.95 | 1.05
answer: 1/(a*x)
tolerance: 0.5%

## A transformer of reactance j\given{x} pu has an off-nominal tap a = {a} on bus i's side. What's the magnitude of $Y_{ij}$?

::: right
Right. $|y/a|$ = {answer}.
:::

::: misses
- [1/(a^2*x)] $y/a^2$ goes on the tap side's diagonal; the off-diagonal is $y/a$.
- [1/x] Include the tap.
- [any] Not yet. $Y_{ij} = -y/a$.
:::
:::

::: check
given: g = 0.1 | 0.25; p = 0.1 | 0.2; q = 0.15 | 0.3; x = 0.1 | 0.4
answer: g + p*(q + x)/(p + q + x)
tolerance: 0.5%

## A generator (j\given{g}) at bus 1 feeds bus 3 directly through j\given{p} and through bus 2 by j\given{q} then j\given{x}. What's $Z_{33}$?

::: right
Right. $x_g + x_p\,\|\,(x_q + x_x)$ = {answer} pu.
:::

::: misses
- [g + p] That ignores the parallel path through bus 2.
- [any] Not yet. Short the source; reduce the network seen from bus 3.
:::
:::

::: check
given: Z = 0.08 | 0.15 | 0.4; V = 0.95 | 1 | 1.05
answer: V/Z
tolerance: 0.5%

## A bus has $Z_{kk}$ = j{Z} pu and prefault voltage {V} pu. What's its bolted three-phase fault current?

::: right
Right. $V_\text{pre}/Z_{kk}$ = {answer} pu.
:::

::: misses
- [V*Z] Divide by the impedance.
- [any] Not yet. Thevenin: $I_f = V/Z_{kk}$.
:::
:::

::: check
given: n = 1000 | 10000 | 60000; k = 3 | 4
answer: n*(1 + k)
tolerance: 0.5%

## In a {n}-bus network each bus connects to {k} others on average. About how many nonzero entries does $Y_\text{bus}$ have?

::: right
Right. Each row has its diagonal plus {k} off-diagonals: {answer} nonzeros out of $n^2$.
:::

::: misses
- [n*k] Count the diagonal entries too.
- [n^2] Only connected pairs give nonzero entries.
- [any] Not yet. Count nonzeros per row.
:::
:::

::: check
kind: parts
given: g = 0.2 | 0.4; x = 0.1 | 0.3

## Two buses are joined by j{x} pu, and each has a generator of j{g} pu to ground.

::: part
answer: (1/g + 1/x)/((1/g + 1/x)^2 - 1/x^2)
tolerance: 0.5%

### What is $|Z_{11}|$?

::: misses
- [g] The other generator also feeds the fault, through the line.
- [any] Invert the 2 × 2 susceptance matrix.
:::
:::

::: part
answer: ((1/g + 1/x)^2 - 1/x^2)/(1/g + 1/x)
tolerance: 0.5%

### What is the bolted-fault current at bus 1, from 1 pu?

::: misses
- [any] $1/|Z_{11}|$.
:::
:::

::: part
answer: 1 - (1/x)/(1/g + 1/x)
tolerance: 0.5%

### What voltage does bus 2 hold during that fault?

::: misses
- [any] $1 - Z_{21}/Z_{11}$.
:::
:::
:::

::: check
kind: derivation
vars: g = 0.05..1, x = 0.02..1

## Two buses joined by jx, each with a generator jg to ground.

::: step
answer: 1/g + 1/x

### What is $|B_{11}|$?
:::

::: step
answer: (1/g + 1/x)/((1/g + 1/x)^2 - 1/x^2)

### What is $|Z_{11}|$?
:::

::: step
answer: (1/x)/((1/g + 1/x)^2 - 1/x^2)

### What is $|Z_{12}|$?
:::

::: right
Right. The transfer impedance $Z_{12}$ says how much bus 2 moves per unit current injected at bus 1.
:::
:::

::: explain
## Why is $Z_{kk}$, a diagonal entry of the inverse of $Y_\text{bus}$, the Thevenin impedance at bus k?

::: model
Since V = ZI, the k-th column of Z gives the bus voltages when one unit of current is injected at bus k and none anywhere else. With every source replaced by its internal impedance (shorted voltage sources), that's exactly the experiment that measures a Thevenin impedance: inject a current at the port and see what voltage it produces there. $Z_{kk}$ is that voltage per unit of current. The other entries in the column, $Z_{ik}$, say how much each other bus's voltage moves, which is how a fault program finds the voltages all over the network during a fault at bus k.
:::
:::

::: practice

::: check
given: a = 0.04 | 0.15; b = 0.1 | 0.3; g = 0.2 | 0.35
answer: 1/a + 1/b + 1/g
tolerance: 0.5%

## $|B_{11}|$ for branches j\given{a}, j\given{b} and a generator j\given{g}?

::: misses
- [any] Sum of $1/x$.
:::
:::

::: check
given: x = 0.03 | 0.2; B = 0.1 | 0.6
answer: 1/x - B/2
tolerance: 0.5%

## Net diagonal susceptance from a line j\given{x} with charging {B}?

::: misses
- [any] $1/x - B/2$.
:::
:::

::: check
given: Z = 0.05 | 0.3; V = 0.98 | 1.03
answer: V/Z
tolerance: 0.5%

## Fault current at a bus with $Z_{kk}$ = j{Z}, $V_\text{pre}$ = {V}?

::: misses
- [any] $V/Z_{kk}$.
:::
:::
:::
