---
title: Single-stub tuning
heading: Matching with a length of line and a shunt stub, the closed-form design, short and open stubs, and choosing between solutions
eyebrow: S6 · Lesson 9 · Single-stub tuning
xp: 50
---

::: hook
At microwave frequencies, lumped inductors and capacitors are small, lossy and full of parasitics, but lengths of transmission line are easy to make precisely on a circuit board. A single stub tuner matches a load using only line: a run of line moves along the Smith chart's constant-|Γ| circle until the admittance's real part equals $Y_0$, and a short- or open-circuited stub in parallel there cancels the leftover susceptance. C10 did it graphically; this lesson does it in closed form, gets the exact lengths, and shows why, of the two solutions every load has, the shorter one usually wins on bandwidth.
:::

::: play
- Reflection against frequency (in units of the design frequency $f_0$) for Pozar's example: a 60 − j80 Ω load (held fixed) on a 50 Ω line, matched with a short-circuited shunt stub.
- Solution 1 (solid) puts the stub 0.110λ from the load with a 0.095λ stub; solution 2 (dashed) uses 0.259λ and 0.405λ.
- Both match perfectly at $f_0$, but the shorter lines of solution 1 change less with frequency, so its match is broader.
:::
:::

```sim plot
view: graph
x: f = 0.5..1.5
y: G = -40..0 dB
plot: 20*log(abs((1 - 50*(1/(50*((60 - 80*j) + 50*j*tan(2*pi*0.1104*f))/(50 + j*(60 - 80*j)*tan(2*pi*0.1104*f))) - j/(50*tan(2*pi*0.0950*f))))/(1 + 50*(1/(50*((60 - 80*j) + 50*j*tan(2*pi*0.1104*f))/(50 + j*(60 - 80*j)*tan(2*pi*0.1104*f))) - j/(50*tan(2*pi*0.0950*f))))) + 1e-9) | samples: 800 | label: solution 1 (d = 0.110λ, ℓ = 0.095λ)
plot: 20*log(abs((1 - 50*(1/(50*((60 - 80*j) + 50*j*tan(2*pi*0.2594*f))/(50 + j*(60 - 80*j)*tan(2*pi*0.2594*f))) - j/(50*tan(2*pi*0.4050*f))))/(1 + 50*(1/(50*((60 - 80*j) + 50*j*tan(2*pi*0.2594*f))/(50 + j*(60 - 80*j)*tan(2*pi*0.2594*f))) - j/(50*tan(2*pi*0.4050*f))))) + 1e-9) | samples: 800 | dashed | color: ch2 | label: solution 2 (d = 0.259λ, ℓ = 0.405λ)
plot: -10 | dashed | color: ch3 | label: 10 dB return loss
```

::: predict
## A load is matched by a stub at either 0.110λ or 0.259λ from it. Which solution usually has the wider bandwidth?

- [x] The one closer to the load with the shorter stub
- [ ] The one farther from the load
- [ ] They're identical
- [ ] Whichever uses an open stub

::: reveal
The closer one. A line's electrical length scales with frequency, so the longer the lines in the match, the faster the transformed admittance drifts away from the design point as the frequency changes. With 0.110λ and 0.095λ of line, the first solution keeps a usable match over a noticeably wider band than the second, with 0.259λ and 0.405λ.
:::
:::

::: nameit
## The design (Pozar)

For a load $Z_L = R_L + jX_L$ on a line $Z_0$ (with $R_L \ne Z_0$), let $t = \tan\beta d$:

$$t = \frac{X_L \pm \sqrt{R_L\left[(Z_0 - R_L)^2 + X_L^2\right]/Z_0}}{R_L - Z_0}$$

- **Distance** from the load: $\frac{d}{\lambda} = \frac{1}{2\pi}\arctan t$ if t ≥ 0, else $\frac{1}{2\pi}(\pi + \arctan t)$.
- There the admittance is $Y_0 + jB$ with

$$B = \frac{R_L^2t - (Z_0 - X_Lt)(X_L + Z_0t)}{Z_0\left[R_L^2 + (X_L + Z_0t)^2\right]}$$

- The stub must supply −B. A **short-circuited** stub has susceptance $-Y_0\cot\beta\ell$, so $\frac{\ell}{\lambda} = \frac{1}{2\pi}\arctan\frac{Y_0}{B}$; an **open-circuited** stub has $Y_0\tan\beta\ell$, so $\frac{\ell}{\lambda} = -\frac{1}{2\pi}\arctan\frac{B}{Y_0}$. Add λ/2 to any negative length.

Physical lengths follow from the guide wavelength, $\lambda = \frac{c}{f\sqrt{\varepsilon_\text{eff}}}$ on microstrip.

## Choosing

- Shorter lines give broader bandwidth.
- Open stubs are easier in microstrip (no via to ground); short stubs avoid fringing and radiation and are easier in coax and waveguide.
- Series stubs work the same way with impedances, for circuits where a series element is easier.
:::

::: example
## Match 60 − j80 Ω to 50 Ω with a short-circuited shunt stub.

::: solution
1. **The + sign.** It gives t = 0.832, d = 0.110λ and B = 29.4 mS, so the short stub is
   $$\begin{aligned} \ell &= \frac{1}{2\pi}\arctan\frac{20}{29.4} \\ &= 0.095\lambda \end{aligned}$$
2. **The − sign.** It gives t = −16.83, d = 0.259λ, B = −29.4 mS and a stub of 0.405λ.
3. **Compare with Pozar.** These are Pozar's two solutions (his Example 5.2).
4. **Open stubs.** With open stubs instead, the stub lengths would be 0.345λ and 0.155λ.

**Answer:** either d = 0.110λ with a 0.095λ short stub, or d = 0.259λ with a 0.405λ short stub.
:::
:::

::: example
## On microstrip with $\varepsilon_\text{eff}$ = 1.9 at 2 GHz, how long are solution 1's line and stub?

::: solution
1. **Guided wavelength.**
   $$\begin{aligned} \lambda &= \frac{300}{2 \times \sqrt{1.9}} \\ &= 108.8\ \text{mm} \end{aligned}$$
2. **Line.**
   $$\begin{aligned} d &= 0.1104 \times 108.8 \\ &= 12.0\ \text{mm} \end{aligned}$$
3. **Stub.** It also needs a grounding via at its end:
   $$\begin{aligned} \ell &= 0.0950 \times 108.8 \\ &= 10.3\ \text{mm} \end{aligned}$$

**Answer:** the line is 12.0 mm long and the stub 10.3 mm (plus a grounding via at the stub's end).
:::
:::

::: example
## Match a 25 Ω resistor to 50 Ω with an open-circuited shunt stub. Which solution uses the least line?

::: solution
1. **Find t.** With $X_L = 0$,
   $$\begin{aligned} t &= \frac{\pm\sqrt{25 \times 625/50}}{25 - 50} \\ &= \mp0.707 \end{aligned}$$
2. **The + sign.** It gives t = −0.707, d = 0.402λ, B = +14.1 mS and an open stub of 0.402λ.
3. **The − sign.** It gives t = 0.707, d = 0.098λ, B = −14.1 mS and an open stub of only 0.098λ.
4. **Compare.** The second uses about a fifth of a wavelength in all, against 0.8λ for the first, so it is also the broader-band choice.
5. **Short stubs.** With short stubs the lengths would be 0.152λ and 0.348λ.

**Answer:** the − sign solution (d = 0.098λ and a 0.098λ open stub) uses the least line, about a fifth of a wavelength in all.
:::
:::

::: check
given: B = 5 | 12 | 40; Z = 50
answer: atan(1/(Z*B*1e-3))/(2*pi)
unit: λ
tolerance: 0.5%

## A short-circuited stub on a {Z} Ω line must cancel a susceptance of +{B} mS. How long must it be, in wavelengths?

::: right
Right. $\frac{1}{2\pi}\arctan\frac{Y_0}{B}$ = {answer}λ.
:::

::: misses
- [atan(Z*B*1e-3)/(2*pi)] A short stub's susceptance is $-Y_0\cot\beta\ell$: it's $Y_0/B$ inside the arctangent.
- [any] Not yet. Set $-Y_0\cot\beta\ell = -B$.
:::
:::

::: check
given: B = 5 | 20 | 40; Z = 50
answer: 0.5 - atan(Z*B*1e-3)/(2*pi)
unit: λ
tolerance: 0.5%

## An open-circuited stub must cancel a susceptance of +{B} mS on a {Z} Ω line. How long must it be?

::: right
Right. $-\frac{1}{2\pi}\arctan(B/Y_0)$, plus λ/2: {answer}λ.
:::

::: misses
- [atan(Z*B*1e-3)/(2*pi)] The stub must supply −B; an open stub's susceptance is $+Y_0\tan\beta\ell$, so the angle is negative before adding λ/2.
- [any] Not yet. Set $Y_0\tan\beta\ell = -B$.
:::
:::

::: check
given: R = 20 | 60 | 100; X = -80 | 40; Z = 50
answer: (X + sqrt(R*((Z - R)^2 + X^2)/Z))/(R - Z)
tolerance: 0.5%

## A load of {R} + j({X}) Ω sits on a {Z} Ω line. For the + root, what's t = tan βd at the stub position?

::: right
Right. {answer}.
:::

::: misses
- [any] Not yet. $t = \frac{X_L + \sqrt{R_L[(Z_0 - R_L)^2 + X_L^2]/Z_0}}{R_L - Z_0}$.
:::
:::

::: check
given: t = -0.5 | -1.5 | -4 | -16
answer: (pi + atan(t))/(2*pi)
unit: λ
tolerance: 0.5%

## The stub position satisfies tan βd = {t}. What's the shortest distance from the load, in wavelengths?

::: right
Right. {answer}λ.
:::

::: misses
- [atan(t)/(2*pi)] A negative arctangent needs π added to give a positive distance.
- [any] Not yet. $\frac{1}{2\pi}\arctan t$, adding π first if t < 0.
:::
:::

::: check
given: x = 0.05 | 0.1 | 0.2; Z = 50
answer: -1/(Z*tan(2*pi*x))*1000
unit: mS
tolerance: 0.5%

## What susceptance does a short-circuited {Z} Ω stub {x}λ long present?

::: right
Right. $-Y_0\cot\beta\ell$ = {answer} mS.
:::

::: misses
- [tan(2*pi*x)/Z*1000] That's an open stub, $+Y_0\tan\beta\ell$.
- [any] Not yet. A short stub is inductive when it's shorter than λ/4.
:::
:::

::: check
given: x = 0.095 | 0.11 | 0.405; f = 2 | 5.8; e = 1.9 | 3.2
answer: x*299.792458/(f*sqrt(e))
unit: mm
tolerance: 0.5%

## A stub {x}λ long is built in microstrip with $\varepsilon_\text{eff}$ = {e} at {f} GHz. How long is it physically?

::: right
Right. $x\,c/(f\sqrt{\varepsilon_\text{eff}})$ = {answer} mm.
:::

::: misses
- [x*299.792458/f] Use the guide wavelength, shortened by $\sqrt{\varepsilon_\text{eff}}$.
- [any] Not yet. Multiply by the wavelength on the line.
:::
:::

::: check
kind: parts
given: R = 10 | 25 | 100 | 200; let t = sqrt(R/50)*abs(50 - R)/(R - 50)

## A {R} Ω resistive load sits on a 50 Ω line, matched by a shunt stub at the solution with t = tan βd = {t}.

::: part
answer: t*(R^2 - 2500)/(50*(R^2 + 2500*t^2))*1000
unit: mS
tolerance: 0.5%

### What susceptance B does the line show there?

::: misses
- [any] Pozar's B with $X_L = 0$: $t(R_L^2 - Z_0^2)/(Z_0(R_L^2 + Z_0^2t^2))$.
:::
:::

::: part
answer: -atan(t*(R^2 - 2500)/(R^2 + 2500*t^2))/(2*pi) + 0.5*step(atan(t*(R^2 - 2500)/(R^2 + 2500*t^2)))
unit: λ
tolerance: 0.5%

### How long an open-circuited stub cancels it?

::: misses
- [any] $-\frac{1}{2\pi}\arctan(B/Y_0)$, plus λ/2 if negative.
:::
:::
:::

::: check
kind: derivation
vars: R = 1..200, X = -100..100, Z = 25..100

## A load R + jX sits on a line of impedance Z (R ≠ Z).

::: step
answer: (X + sqrt(R*((Z - R)^2 + X^2)/Z))/(R - Z)

### What is t = tan βd for the + root?
:::

::: step
answer: (X - sqrt(R*((Z - R)^2 + X^2)/Z))/(R - Z)

### And for the − root?
:::

::: right
Right. The two roots are the two places along the line where the conductance equals $Y_0$; the stub then cancels what susceptance is left.
:::
:::

::: explain
## Why does every load that isn't on the unit-conductance circle have two single-stub solutions?

::: model
Moving away from the load along a lossless line keeps the reflection coefficient's magnitude fixed and rotates its phase, so on the Smith chart the admittance travels around a circle centered on the match point. The stub, being a pure susceptance in parallel, can only move the admittance along a circle of constant conductance, so the match must be made where the line's circle crosses the circle of conductance $Y_0$, the one passing through the center. Those two circles generally cross at two points, one with positive leftover susceptance and one with negative, giving two positions and two stub lengths. Both match perfectly at the design frequency; they differ in how much line they use and so in bandwidth.
:::
:::

::: practice

::: check
given: B = 5 | 10 | 15 | 20 | 30 | 40; Z = 50
answer: atan(1/(Z*B*1e-3))/(2*pi)
unit: λ
tolerance: 0.5%

## Short stub to cancel +{B} mS on {Z} Ω?

::: misses
- [any] $\frac{1}{2\pi}\arctan(Y_0/B)$.
:::
:::

::: check
given: x = 0.08 | 0.15; Z = 50 | 75
answer: -1/(Z*tan(2*pi*x))*1000
unit: mS
tolerance: 0.5%

## Susceptance of a short {Z} Ω stub {x}λ long?

::: misses
- [any] $-Y_0\cot\beta\ell$.
:::
:::

::: check
given: x = 0.12 | 0.3; f = 2.4 | 10; e = 1.8 | 6.5
answer: x*299.792458/(f*sqrt(e))
unit: mm
tolerance: 0.5%

## Physical length of {x}λ at {f} GHz, εeff {e}?

::: misses
- [any] $x\lambda_g$.
:::
:::
:::
