Skip to main content

Smith Chart

What is a Smith chart?​

A Smith chart is a circular chart for radio-frequency (RF) work that plots the impedance of a load, such as an antenna, as a point inside a unit circle. It overlays circles of constant resistance and arcs of constant reactance on the plane of the reflection coefficient, so one point gives impedance, reflection and VSWR together.

An interactive Smith chart in a dark navy theme: the impedance grid of resistance circles and reactance arcs, a load at 25 + j50 ohms marked in red, its dashed yellow VSWR circle, and a green L-network matching path from the load to the centre

A load of 25 + j50 Ω on a 50 Ω line, its VSWR circle (yellow, dashed) and a two-capacitor match that moves it to the centre (green). Try the interactive version.

Key takeaways
  • The chart is the reflection coefficient Γ=(z−1)/(z+1)\Gamma = (z-1)/(z+1) drawn in the complex plane, with z=Z/Z0z = Z/Z_0 the impedance divided by the line's characteristic impedance.
  • The centre is a perfect match, the far left a short circuit, the far right an open circuit. The upper half is inductive, the lower half capacitive.
  • Distance from the centre is ∣Γ∣|\Gamma|. A circle about the centre is a VSWR circle: same VSWR and return loss all round it.
  • A length of lossless line rotates the point about the centre, one full turn per half wavelength, clockwise toward the generator.
  • Matching means moving the point to the centre: a series element moves it along a resistance circle, a shunt element along a conductance circle.

The chart was published by Phillip H. Smith, an engineer at Bell Telephone Laboratories, in the magazine Electronics in January 1939, as a "transmission line calculator". It was a graphical way to solve line problems that otherwise needed complex arithmetic by hand. Network analysers still show measurements on it today.

The maths behind the Smith chart​

Two quantities describe what happens where a line meets a load.

  • The normalised impedance z=Z/Z0=r+jxz = Z/Z_0 = r + jx divides the load impedance ZZ by the line's characteristic impedance Z0Z_0 (usually 50 Ω in RF and test equipment, 75 Ω in video and TV cable). Its real part rr is the normalised resistance and its imaginary part xx the normalised reactance.
  • The reflection coefficient Γ\Gamma is the reflected wave at the load divided by the wave arriving there, a complex number with a size and a phase:
Γ=Z−Z0Z+Z0=z−1z+1,z=1+Γ1−Γ\Gamma = \frac{Z - Z_0}{Z + Z_0} = \frac{z - 1}{z + 1}, \qquad z = \frac{1 + \Gamma}{1 - \Gamma}

Any passive load has r≥0r \ge 0, and for every such load ∣Γ∣≤1|\Gamma| \le 1. So the formula folds the whole right half of the impedance plane, which runs off to infinity, into a circle of radius 1. Lines of constant rr and constant xx become circles:

Grid lineIn the Γ\Gamma planeExample
Constant resistance rrCircle centred at (r1+r, 0)\left(\frac{r}{1+r},\ 0\right), radius 11+r\frac{1}{1+r}r=1r = 1: centre (0.5, 0), radius 0.5, through the centre of the chart
Constant reactance xxArc of a circle centred at (1, 1x)\left(1,\ \frac{1}{x}\right), radius 1∣x∣\frac{1}{\lvert x \rvert}, inside the unit circlex=+1x = +1: centre (1, 1), radius 1, ending at the top of the rim

Every resistance circle touches the right-hand edge at Γ=1\Gamma = 1 (the open circuit), and so does every reactance arc. The r=0r = 0 circle is the rim itself: pure reactance, with all the power reflected.

How to read a Smith chart​

To read a Smith chart, normalise the impedance, find where its resistance circle and reactance arc cross, then read that point's distance and direction from the centre.

Anatomy of a Smith chart: the rim, the short circuit at the left, the open circuit at the right and the matched point at the centre; the r = 0.5 and r = 1 resistance circles in blue and the x = +1 reactance arc in red; a load z = 0.5 + j1 where the r = 0.5 circle meets the x = +1 arc, with a dashed VSWR circle of radius 0.62 through it; and an arrow round the rim showing that moving toward the generator turns clockwise

To plot or read an impedance:

  1. Normalise it: divide by Z0Z_0. On a 50 Ω line, 25 + j50 Ω becomes z=0.5+j1z = 0.5 + j1.
  2. Find the resistance circle for rr (labelled along the horizontal line) and the reactance arc for xx (labelled round the rim, +j+j above and −j-j below).
  3. The point is where they cross. Multiply back by Z0Z_0 to turn a point you read off the chart into ohms.

Then read its position:

Where on the chartMeaning
Centre (z=1z = 1, Γ=0\Gamma = 0)Matched: the load equals Z0Z_0, nothing is reflected
Horizontal linePure resistance: left of centre below Z0Z_0, right of centre above it
Upper halfInductive: positive reactance
Lower halfCapacitive: negative reactance
Left end (z=0z = 0, Γ=−1\Gamma = -1)Short circuit
Right end (z=∞z = \infty, Γ=+1\Gamma = +1)Open circuit
Rim (∣Γ∣=1\lvert\Gamma\rvert = 1)Pure reactance (no resistance): everything is reflected
Outside the rim (∣Γ∣>1\lvert\Gamma\rvert > 1)Negative resistance: an active device, such as an oscillator, gives out more than it receives

A worked example: 25 + j50 Ω on a 50 Ω line​

The load in the diagram, Z=25+j50Z = 25 + j50 Ω, is a small resistance in series with an inductor.

  • z=0.5+j1z = 0.5 + j1.
  • Γ=(−0.5+j1)/(1.5+j1)=0.077+j0.615\Gamma = (-0.5 + j1)/(1.5 + j1) = 0.077 + j0.615, so ∣Γ∣=0.62|\Gamma| = 0.62 at an angle of 82.9°. The point sits 62% of the way from the centre to the rim, almost straight up.
  • VSWR = (1+0.62)/(1−0.62)=4.27(1 + 0.62)/(1 - 0.62) = 4.27.
  • Return loss = −20log⁡100.62=4.15-20 \log_{10} 0.62 = 4.15 dB.
  • ∣Γ∣2=0.385|\Gamma|^2 = 0.385, so 38.5% of the incident power is reflected. The power lost to the mismatch is −10log⁡10(1−∣Γ∣2)=2.1-10 \log_{10}(1 - |\Gamma|^2) = 2.1 dB.

VSWR circles and return loss on a Smith chart​

The size of Γ\Gamma sets three figures that datasheets quote:

VSWR=1+∣Γ∣1−∣Γ∣,return loss=−20log⁡10∣Γ∣ dB,mismatch loss=−10log⁡10(1−∣Γ∣2) dB\text{VSWR} = \frac{1 + |\Gamma|}{1 - |\Gamma|}, \qquad \text{return loss} = -20 \log_{10} |\Gamma| \ \text{dB}, \qquad \text{mismatch loss} = -10 \log_{10}\left(1 - |\Gamma|^2\right) \ \text{dB}

The voltage standing wave ratio (VSWR) is the ratio of the largest to the smallest voltage along the line, where the incident and reflected waves add and cancel. All three depend only on ∣Γ∣|\Gamma|, so they are the same everywhere on a circle centred on the chart: the VSWR circle. Its radius is ∣Γ∣|\Gamma|, and it cuts the horizontal line to the right of the centre at r=VSWRr = \text{VSWR}. That is how VSWR used to be read off a paper chart.

VSWR∣Γ∣\lvert\Gamma\rvertReturn lossPower reflectedMismatch loss
1.10.04826.4 dB0.2%0.01 dB
1.20.09120.8 dB0.8%0.04 dB
1.50.20014.0 dB4.0%0.18 dB
2.00.3339.5 dB11.1%0.51 dB
3.00.5006.0 dB25.0%1.25 dB

A 75 Ω load on a 50 Ω line and a 50 Ω load on a 75 Ω line both have ∣Γ∣=0.2|\Gamma| = 0.2 and a VSWR of 1.5, but sit on opposite sides of the centre: the first at r=1.5r = 1.5, the second at r=0.67r = 0.67.

Moving along a transmission line​

Between the load and the instrument there is usually a cable. On a lossless line of length dd, the reflected wave goes there and back, so the reflection coefficient seen at the input is

Γin=ΓL e−j4πd/λ\Gamma_{\text{in}} = \Gamma_L \, e^{-j 4 \pi d / \lambda}

where λ\lambda is the wavelength in the cable. The size stays the same and only the phase changes, so the point turns about the centre on its VSWR circle:

  • clockwise when you move away from the load, toward the generator (the source);
  • anticlockwise when you move toward the load;
  • one full turn every half wavelength (λ/2\lambda/2), so the impedance repeats every λ/2\lambda/2.

Printed charts carry two scales round the rim for this, "wavelengths toward generator" and "wavelengths toward load", both running from 0 to 0.5 and starting at the short-circuit end.

For the example load, z=0.5+j1z = 0.5 + j1:

Line lengthTurn (clockwise)Input impedance zinz_\text{in}In ohms (50 Ω line)
00°0.5 + j125 + j50 Ω
0.1 λ72°3.70 + j1.41185 + j70 Ω
0.125 λ90°4.0 − j1.0200 − j50 Ω
0.25 λ180°0.4 − j0.820 − j40 Ω

The VSWR is 4.27 at every length. The quarter-wave line sends the point to the opposite side of the centre, and its normalised impedance is then the load's normalised admittance, 1/z1/z. That is the principle of the quarter-wave transformer.

The wavelength in a cable is shorter than in free space: λ=vf c/f\lambda = v_f \, c / f, where vfv_f is the cable's velocity factor (about 0.66 for coax with a solid polyethylene dielectric). At 1 GHz, 0.125 λ of such cable is about 2.5 cm.

The admittance Smith chart​

Parallel (shunt) components add as admittances, Y=1/Z=G+jBY = 1/Z = G + jB, not as impedances. Normalised, y=Y/Y0=Z0/Z=g+jby = Y/Y_0 = Z_0/Z = g + jb.

Because y=1/zy = 1/z, its reflection coefficient is −Γ-\Gamma. So the admittance chart is the impedance chart turned through 180°: conductance circles touch the left-hand edge, and susceptance arcs bend the other way. On the example load, y=1/(0.5+j1)=0.4−j0.8y = 1/(0.5 + j1) = 0.4 - j0.8.

A ZY chart (also called an immittance chart) prints both grids, usually in two colours, so you can switch between series and shunt steps without converting. Tick Show admittance grid in the live demo to overlay it.

Impedance matching with a Smith chart​

Matching moves the load's point to the centre, so the source sees Z0Z_0 and nothing is reflected. Each lossless component moves the point along one family of grid lines:

ComponentMoves the pointDirection
Series inductorAlong its constant-rr circleClockwise (adds +jx+jx)
Series capacitorAlong its constant-rr circleAnticlockwise (adds −jx-jx)
Shunt capacitorAlong its constant-gg circleClockwise (adds +jb+jb)
Shunt inductorAlong its constant-gg circleAnticlockwise (adds −jb-jb)
Length of lineRound its VSWR circleClockwise toward the generator

L-network match: a worked example​

Match Z=25+j50Z = 25 + j50 Ω to 50 Ω at 1 GHz with two components, an L-network.

  1. The target is the g=1g = 1 circle on the admittance grid, because from there one shunt component reaches the centre.
  2. A series component keeps r=0.5r = 0.5. On that circle, the points with g=1g = 1 are z=0.5±j0.5z = 0.5 \pm j0.5. The nearer one is 0.5+j0.50.5 + j0.5, so the series component must change xx from 1 to 0.5: a series reactance of −j0.5-j0.5, which is −j25-j25 Ω, a capacitor.
  3. Now y=1/(0.5+j0.5)=1−j1y = 1/(0.5 + j0.5) = 1 - j1. A shunt susceptance of +j1+j1 cancels the −j1-j1, which is +j0.02+j0.02 S, another capacitor. The point is at the centre.
  4. At 1 GHz: series C=1/(2πf×25)=6.37C = 1/(2\pi f \times 25) = 6.37 pF, then shunt C=0.02/(2πf)=3.18C = 0.02/(2\pi f) = 3.18 pF, nearer the source.

The other solution, z=0.5−j0.5z = 0.5 - j0.5, needs −j75 Ω in series and an inductor in shunt. Both solutions match only at 1 GHz. At other frequencies the reactances change, and the point drifts away from the centre.

A single-stub match follows the same idea with lines instead of components. Turn the point clockwise along a length of line until it reaches the g=1g = 1 circle, then add a short- or open-circuited stub in parallel whose susceptance cancels the jbjb left over.

Where Smith charts are used​

Smith charts are used wherever RF parts have to be matched to the cable or circuit that feeds them.

  • Vector network analysers (VNAs). The reflection measurement (S11S_{11}) is shown on a Smith chart, as a trace across a frequency sweep.
  • Antennas. Tuning a feed or matching network; a well-matched antenna's trace loops close to the centre near its working frequency.
  • Amplifiers and oscillators. Input and output matching, and design circles for gain, noise and stability plotted on the same chart.
  • MRI and lab instruments. Tuning and matching RF coils and probes to the 50 Ω electronics.
  • Radio receivers and signals intelligence. Front ends and antennas that have to stay matched across wide bands.

The same charts appear in RF design, emulation and test software.

Smith chart vs polar plot vs rectangular plots​

Use a Smith chart when you need the impedance itself; a polar plot is enough for the size and phase of the reflection, and rectangular plots show how values change with frequency.

ChartShowsUse it when…
Smith chartΓ\Gamma in the complex plane with the impedance grid on topYou need the impedance itself: for matching, or to see whether a load is inductive or capacitive
Polar plot of Γ\GammaThe same points with plain magnitude and angle ringsYou only need the size and phase of the reflection, for example to compare two measurements
∣S11∣\lvert S_{11} \rvert in dB, or VSWR, against frequencyReflection size on a rectangular chartYou need bandwidth: over which frequencies the return loss beats, say, 10 dB
RR and XX against frequencyResistance and reactance on a rectangular chartYou are fitting a circuit model, or want exact values at each frequency

A polar area chart or radar chart uses the same circular layout for other data. For a filter's gain and phase against frequency, use a Bode plot.

Common Smith chart mistakes​

Most Smith chart mistakes come from reading the right point on the wrong grid, or turning it the wrong way.

  • Not normalising, or normalising to the wrong Z0Z_0. A chart read as 50 Ω gives wrong answers on a 75 Ω system. Check what the instrument or software normalised to.
  • Turning the wrong way. Toward the generator is clockwise; toward the load is anticlockwise. Mixing them up puts a stub on the wrong side of the load.
  • Adding a shunt part on the impedance grid. Series parts move along resistance circles; shunt parts move along conductance circles. Switch to the admittance grid before a shunt step.
  • Using free-space wavelength for cable length. The wavelength in coax is shorter, by the velocity factor.
  • Treating a single-frequency match as broadband. A match is exact at one frequency. Sweep the frequency and check how far the trace strays from the centre over the band you need.
  • Expecting circles on a lossy line. Loss reduces ∣Γ∣|\Gamma| as the wave travels, so the point spirals inward instead of following its VSWR circle, and a long lossy cable can make a bad load look well matched.

How to make a Smith chart in JavaScript, React or Angular​

Each time you move a control, the demo below works out the load's reflection coefficient, its VSWR circle and the L-network match again, and redraws them on a Smith chart built from standard SciChart.js line and scatter series on a square chart. Set the line impedance Z0Z_0, the load resistance R and load reactance X, and add a line length to watch the point turn round its VSWR circle. Show L-network match draws a two-component match from the line's input to the centre and lists the parts at the chosen design frequency. The panel gives Γ\Gamma, VSWR, return loss and mismatch loss, and reads the impedance under the mouse. Zoom with the mouse wheel to look closely at one region, drag to pan, and double-click to see the whole chart again.

Here is the code for this chart. The complex arithmetic, the grid and the matching maths are plain JavaScript; SciChart.js draws the result.

// An interactive Smith chart drawn with SciChart.js: the grid, a load, its VSWR circle, a length of line
// and an L-network that matches it
const {
SciChartSurface,
NumericAxis,
NumberRange,
FastLineRenderableSeries,
XyScatterRenderableSeries,
EllipsePointMarker,
XyDataSeries,
TextAnnotation,
EHorizontalAnchorPoint,
EVerticalAnchorPoint,
ELineDrawMode,
SciChartJsNavyTheme,
CustomChartModifier2D,
LegendModifier,
MouseWheelZoomModifier,
ZoomPanModifier,
ZoomExtentsModifier,
translateFromCanvasToSeriesViewRect
} = SciChart;
// or, for npm, import { SciChartSurface, ... } from "scichart"

// --- Complex numbers and the Smith chart mapping (plain JavaScript) ---
const cx = (re, im) => ({ re, im });
const add = (a, b) => cx(a.re + b.re, a.im + b.im);
const sub = (a, b) => cx(a.re - b.re, a.im - b.im);
const mul = (a, b) => cx(a.re * b.re - a.im * b.im, a.re * b.im + a.im * b.re);
const div = (a, b) => {
const d = b.re * b.re + b.im * b.im;
return cx((a.re * b.re + a.im * b.im) / d, (a.im * b.re - a.re * b.im) / d);
};
const ONE = cx(1, 0);
// Normalised impedance z = Z / Z0 to reflection coefficient: gamma = (z - 1) / (z + 1). The chart is the
// gamma plane, so every point is drawn at (gamma.re, gamma.im).
const toGamma = (z) => div(sub(z, ONE), add(z, ONE));
const toZ = (gamma) => div(add(ONE, gamma), sub(ONE, gamma));

// A list of z values becomes one polyline in the gamma plane; NaN between lines breaks the line
function appendPath(xs, ys, zs) {
for (const z of zs) {
const g = toGamma(z);
xs.push(g.re);
ys.push(g.im);
}
xs.push(NaN);
ys.push(NaN);
}

// The impedance grid: circles of constant resistance r, and arcs of constant reactance x.
// Each is the image of a straight line in the z plane; tan() spreads the points from 0 to infinity.
const R_CIRCLES = [0, 0.2, 0.5, 1, 2, 5];
const X_ARCS = [0.2, 0.5, 1, 2, 5];
function smithGrid() {
const xs = [];
const ys = [];
const steps = 400;
for (const r of R_CIRCLES) {
const zs = [];
for (let i = 1; i < steps; i++) zs.push(cx(r, Math.tan(Math.PI * (i / steps - 0.5))));
appendPath(xs, ys, zs);
}
for (const x of [...X_ARCS, ...X_ARCS.map((v) => -v)]) {
const zs = [];
for (let i = 0; i < steps; i++) zs.push(cx(Math.tan((Math.PI / 2) * (i / steps)), x));
appendPath(xs, ys, zs);
}
appendPath(xs, ys, [cx(0, 0), cx(1e9, 0)]); // the real axis, x = 0, from short to open
return { xs, ys };
}

// An L-network (one series and one shunt reactance) that turns zIn into Z0. The element next to the load
// is shunt when R > Z0 and series when R < Z0; of the two solutions, use the one with smaller elements.
function lMatch(zLoad, z0) {
const R = zLoad.re * z0;
const X = zLoad.im * z0;
const solutions = [];
for (const sign of [1, -1]) {
if (R > z0) {
const b = (X + sign * Math.sqrt(R / z0) * Math.sqrt(R * R + X * X - z0 * R)) / (R * R + X * X);
solutions.push({ shuntFirst: true, b, x: 1 / b + (X * z0) / R - z0 / (b * R) });
} else {
solutions.push({
shuntFirst: false,
x: sign * Math.sqrt(R * (z0 - R)) - X,
b: (sign * Math.sqrt((z0 - R) / R)) / z0
});
}
}
const size = (s) => Math.abs(s.x / z0) + Math.abs(s.b * z0);
return size(solutions[0]) <= size(solutions[1]) ? solutions[0] : solutions[1];
}

// The path a match takes on the chart: a series element moves z along its constant-r circle; a shunt
// element moves the admittance y = 1/z along its constant-g circle
function matchPath(zLoad, match, z0) {
const steps = 120;
const seriesStep = (z, dx) => Array.from({ length: steps + 1 }, (_, i) => cx(z.re, z.im + (dx * i) / steps));
const shuntStep = (z, db) => {
const y = div(ONE, z);
return Array.from({ length: steps + 1 }, (_, i) => div(ONE, cx(y.re, y.im + (db * i) / steps)));
};
if (match.shuntFirst) {
const first = shuntStep(zLoad, match.b * z0);
return [...first, ...seriesStep(first[steps], match.x / z0)];
}
const first = seriesStep(zLoad, match.x / z0);
return [...first, ...shuntStep(first[steps], match.b * z0)];
}

// A reactance (ohms) or susceptance (siemens) as a real capacitor or inductor at frequency f
const formatPart = (value, unit) => {
const scales = [1e-12, 1e-9, 1e-6];
const prefixes = ["p", "n", "µ"];
let i = 0;
while (i < scales.length - 1 && value >= scales[i + 1]) i++;
return `${(value / scales[i]).toPrecision(3)} ${prefixes[i]}${unit}`;
};
const seriesPart = (x, f) =>
x > 0 ? `series inductor ${formatPart(x / (2 * Math.PI * f), "H")}` : `series capacitor ${formatPart(-1 / (2 * Math.PI * f * x), "F")}`;
const shuntPart = (b, f) =>
b > 0 ? `shunt capacitor ${formatPart(b / (2 * Math.PI * f), "F")}` : `shunt inductor ${formatPart(-1 / (2 * Math.PI * f * b), "H")}`;

// --- The chart: a square gamma plane from -1.25 to 1.25, with hidden axes ---
const { sciChartSurface, wasmContext } = await SciChartSurface.create(ui.chartDiv, {
theme: new SciChartJsNavyTheme(),
padding: { top: 6, right: 6, bottom: 6, left: 6 }
});
const range = new NumberRange(-1.25, 1.25);
const axisOptions = {
visibleRange: range,
isVisible: false,
drawMajorGridLines: false,
drawMinorGridLines: false,
drawMajorBands: false
};
sciChartSurface.xAxes.add(new NumericAxis(wasmContext, { ...axisOptions }));
sciChartSurface.yAxes.add(new NumericAxis(wasmContext, { ...axisOptions }));

// Line series draw their points in order, so unsorted x and NaN gaps make any set of curves
const lineSeries = (name, stroke, strokeThickness, extra = {}) => {
const dataSeries = new XyDataSeries(wasmContext, { dataSeriesName: name, dataIsSortedInX: false });
const series = new FastLineRenderableSeries(wasmContext, {
dataSeries,
stroke,
strokeThickness,
drawNaNAs: ELineDrawMode.DiscontinuousLine,
...extra
});
sciChartSurface.renderableSeries.add(series);
return { dataSeries, series };
};

const grid = smithGrid();
const admittanceGrid = lineSeries("Admittance grid", "#F48420", 1, { opacity: 0.55, isVisible: false });
// The admittance grid is the impedance grid turned 180 degrees: y = 1/z, so its gamma is -gamma
admittanceGrid.dataSeries.appendRange(grid.xs.map((v) => -v), grid.ys.map((v) => -v));
const impedanceGrid = lineSeries("Impedance grid", "#8FA3C7", 1, { opacity: 0.8 });
impedanceGrid.dataSeries.appendRange(grid.xs, grid.ys);
const vswrCircle = lineSeries("VSWR circle", "#F5E663", 2, { strokeDashArray: [8, 5] });
const lineArc = lineSeries("Along the line", "#50C7E0", 3);
const matchLine = lineSeries("L-network match", "#67E08A", 3);

const pointSeries = new XyDataSeries(wasmContext, { dataSeriesName: "Load and input", dataIsSortedInX: false });
const points = new XyScatterRenderableSeries(wasmContext, {
dataSeries: pointSeries,
pointMarker: new EllipsePointMarker(wasmContext, { width: 14, height: 14, fill: "#FF6B6B", stroke: "#FFFFFF", strokeThickness: 2 })
});
sciChartSurface.renderableSeries.add(points);

// Grid labels: r on the real axis, x around the rim, and the three special points
const label = (x, y, text, color = "#C8D3E8", fontSize = 12) =>
sciChartSurface.annotations.add(
new TextAnnotation({
x1: x,
y1: y,
text,
textColor: color,
fontSize,
horizontalAnchorPoint: EHorizontalAnchorPoint.Center,
verticalAnchorPoint: EVerticalAnchorPoint.Bottom
})
);
for (const r of R_CIRCLES.slice(1)) label((r - 1) / (r + 1), 0.01, String(r));
for (const x of [...X_ARCS, ...X_ARCS.map((v) => -v)]) {
const g = toGamma(cx(0, x));
label(1.1 * g.re, 1.1 * g.im - 0.03, (x > 0 ? "+j" : "−j") + Math.abs(x));
}
label(-1.13, 0.04, "Short", "#FFFFFF", 13);
label(1.13, 0.04, "Open", "#FFFFFF", 13);
label(0, -0.09, "Matched", "#FFFFFF", 12);

const legend = new LegendModifier({ showCheckboxes: true });
sciChartSurface.chartModifiers.add(legend, new MouseWheelZoomModifier(), new ZoomPanModifier(), new ZoomExtentsModifier());
legend.includeSeries(impedanceGrid.series, false);
legend.includeSeries(admittanceGrid.series, false);

// A small modifier that reads the chart under the mouse: pixel -> gamma -> z, shown in the side panel
class SmithReadoutModifier extends CustomChartModifier2D {
modifierMouseMove(args) {
super.modifierMouseMove(args);
const surface = this.parentSurface;
const p = translateFromCanvasToSeriesViewRect(args.mousePoint, surface.seriesViewRect);
if (!p) return;
const g = cx(
surface.xAxes.get(0).getCurrentCoordinateCalculator().getDataValue(p.x),
surface.yAxes.get(0).getCurrentCoordinateCalculator().getDataValue(p.y)
);
const mag = Math.hypot(g.re, g.im);
if (mag >= 1) {
ui.hover.textContent = "Under the mouse: outside the chart (|Γ| > 1)";
return;
}
const z = toZ(g);
ui.hover.textContent =
`Under the mouse: z = ${z.re.toFixed(2)} ${z.im < -0.005 ? "−" : "+"} j${Math.abs(z.im).toFixed(2)}` +
`, |Γ| = ${mag.toFixed(2)}, VSWR = ${((1 + mag) / (1 - mag)).toFixed(2)}`;
}
modifierMouseLeave(args) {
super.modifierMouseLeave(args);
ui.hover.textContent = "";
}
}
sciChartSurface.chartModifiers.add(new SmithReadoutModifier());

// --- The controls ---
const formatZ = (re, im, unit = "", digits = 1) =>
`${re.toFixed(digits)} ${im < -0.5 * 10 ** -digits ? "−" : "+"} j${Math.abs(im).toFixed(digits)}${unit}`;

function update() {
const z0 = Number(ui.z0Select.value);
const R = Math.round(10 ** (Number(ui.rInput.value) / 100)); // 1 to 1,000 ohms on a log scale
const X = Number(ui.xInput.value);
const lengthWl = Number(ui.lenInput.value);
const f = Number(ui.freqSelect.value);
ui.rOutput.textContent = `${R} Ω`;
ui.xOutput.textContent = `${X > 0 ? "+" : ""}${X} Ω`;
ui.lenOutput.textContent = `${lengthWl.toFixed(3)} λ`;

// The load, its reflection coefficient, and the input after a length of lossless line:
// gamma_in = gamma_load * e^(-j 4 pi d / lambda), a clockwise turn of 720 degrees per wavelength
const zLoad = cx(R / z0, X / z0);
const gLoad = toGamma(zLoad);
const turn = -4 * Math.PI * lengthWl;
const gIn = mul(gLoad, cx(Math.cos(turn), Math.sin(turn)));
const zIn = toZ(gIn);
const mag = Math.hypot(gLoad.re, gLoad.im);
const vswr = (1 + mag) / (1 - mag);
const angleDeg = (Math.atan2(gIn.im, gIn.re) * 180) / Math.PI;

pointSeries.clear();
pointSeries.append(gLoad.re, gLoad.im);
if (lengthWl > 0) pointSeries.append(gIn.re, gIn.im);

vswrCircle.dataSeries.clear();
lineArc.dataSeries.clear();
for (let i = 0; i <= 360; i++) {
const a = (2 * Math.PI * i) / 360;
vswrCircle.dataSeries.append(mag * Math.cos(a), mag * Math.sin(a));
const t = (turn * i) / 360;
const g = mul(gLoad, cx(Math.cos(t), Math.sin(t)));
if (lengthWl > 0) lineArc.dataSeries.append(g.re, g.im);
}

// Match the impedance seen at the input of the line
matchLine.dataSeries.clear();
let matchText = "Already matched: no network needed";
if (mag > 0.005) {
const match = lMatch(zIn, z0);
const path = matchPath(zIn, match, z0).map(toGamma);
matchLine.dataSeries.appendRange(path.map((g) => g.re), path.map((g) => g.im));
// An element of (almost) zero size isn't needed, e.g. no shunt part when R = Z0
const series = Math.abs(match.x / z0) > 1e-6 ? seriesPart(match.x, f) : "none";
const shunt = Math.abs(match.b * z0) > 1e-6 ? shuntPart(match.b, f) : "none";
const [atLoad, toward] = match.shuntFirst ? [shunt, series] : [series, shunt];
matchText = `Match at ${f / 1e9} GHz:\n load side: ${atLoad}\n source side: ${toward}`;
}
matchLine.series.isVisible = ui.matchCheckbox.checked;
admittanceGrid.series.isVisible = ui.admCheckbox.checked;

const returnLoss = -20 * Math.log10(mag);
const mismatchLoss = -10 * Math.log10(1 - mag * mag);
ui.readout.textContent =
`Load Z = ${formatZ(R, X, " Ω", 0)}\n` +
`z = Z/Z₀ = ${formatZ(zLoad.re, zLoad.im, "", 2)}\n` +
(lengthWl > 0 ? `At the line input: z = ${formatZ(zIn.re, zIn.im, "", 2)}\n` : "") +
`Γ = ${mag.toFixed(3)} ∠ ${angleDeg.toFixed(1)}°\n` +
`VSWR = ${mag < 0.999 ? vswr.toFixed(2) : "∞"}\n` +
`Return loss = ${mag > 1e-6 ? returnLoss.toFixed(2) + " dB" : "∞"}\n` +
`Mismatch loss = ${mag < 0.999 ? mismatchLoss.toFixed(2) + " dB" : "∞"} (${(100 * mag * mag).toFixed(1)}% of power reflected)\n` +
(ui.matchCheckbox.checked ? matchText : "");
}

for (const input of [ui.rInput, ui.xInput, ui.lenInput]) input.addEventListener("input", update);
for (const control of [ui.z0Select, ui.freqSelect, ui.matchCheckbox, ui.admCheckbox]) control.addEventListener("change", update);
update();

Key points:

  • The chart is an ordinary 2D surface whose x and y axes both run over the same range of Γ\Gamma, hidden, inside a square element. Equal ranges on a square plot area keep the circles round.
  • The whole grid is one FastLineRenderableSeries with dataIsSortedInX: false, so points are joined in the order given, and drawNaNAs: ELineDrawMode.DiscontinuousLine, so a NaN between two curves lifts the pen. Each curve is a straight line of the zz plane mapped through Γ=(z−1)/(z+1)\Gamma = (z-1)/(z+1).
  • Loads are an XyScatterRenderableSeries; the VSWR circle, the line-length arc and the matching path are more line series, and the labels are TextAnnotations placed in Γ\Gamma coordinates.
  • The live demo's mouse readout is a small custom chart modifier (a subclass of CustomChartModifier2D): it converts the mouse position to Γ\Gamma with the axes' coordinate calculators, then to zz.

See it in the demo app: JavaScript Smith chart · React Smith chart · Angular Smith chart, with impedance and admittance grids, markers, VSWR circles and matching chains.

Go deeper: SciChart.js polar line chart documentation for circular charts in general, the SciChart.js line series documentation, and the custom chart modifiers documentation. For the far-field side of antenna design, see antenna radiation patterns. SciChart.js is used in RF and signals work: see the signals intelligence (SIGINT) and design, emulation and test industry pages.

Frequently asked questions​

What is a Smith chart used for?​

A Smith chart is used to see and change how well a load, such as an antenna or an amplifier input, matches the transmission line feeding it. RF engineers use it to read impedance and reflection from a network analyser, to work out what a length of cable does to an impedance, and to design matching networks of capacitors, inductors or stubs that bring the load to the centre of the chart.

How do you read a Smith chart?​

Divide the impedance by the line's characteristic impedance (usually 50 ohms) to get z = r + jx. Find the circle labelled with r and the arc labelled with x: the point is where they cross. Points in the upper half are inductive, points in the lower half capacitive. The distance from the centre is the size of the reflection coefficient, and the angle is its phase.

What does the centre of a Smith chart mean?​

The centre is a perfect match: the load equals the line's characteristic impedance, so the reflection coefficient is zero, the VSWR is 1 and no power is reflected. The goal of impedance matching is to move a load's point to the centre. The far left of the chart is a short circuit and the far right an open circuit.

What is a VSWR circle on a Smith chart?​

A VSWR circle is a circle centred on the middle of the Smith chart and passing through the load's point. Every point on it has the same size of reflection coefficient, and so the same VSWR and return loss. Adding lossless line moves the point around this circle, which is why a length of cable changes the impedance but not the VSWR.

Why does a transmission line rotate the point on a Smith chart?​

The reflected wave travels to the load and back, so moving a distance d along a lossless line changes the reflection coefficient's phase by 4 pi d divided by the wavelength, without changing its size. On the chart that is a rotation about the centre: clockwise when moving toward the generator, anticlockwise toward the load, with one full turn every half wavelength.

How do I make a Smith chart in JavaScript?​

Convert each impedance to a reflection coefficient, gamma = (z - 1) / (z + 1), and plot gamma's real and imaginary parts on a square chart with equal x and y ranges from about -1.2 to 1.2. Draw the grid by mapping lines of constant resistance and constant reactance the same way. With SciChart.js, use line series with NaN gaps for the grid, a scatter series for points and text annotations for labels.

Sources​

  • Smith, P. H. (1939), "Transmission Line Calculator", Electronics, 12(1), pp. 29–31. The original Smith chart.
  • Smith, P. H. (1969), Electronic Applications of the Smith Chart, McGraw-Hill. The chart's construction, scales and uses, by its inventor.
  • Pozar, D. M. (2012), Microwave Engineering, 4th edition, Wiley. Section 2.4 (the Smith chart), chapter 5 (L-section and single-stub matching; the L-network formulas used in the demo) and chapter 12 (amplifier design with gain, noise and stability circles).
  • MIT OpenCourseWare, 6.013 Electromagnetics and Applications. Transmission lines, reflection and the Smith chart.
  • Orfanidis, S. J. (2016), Electromagnetic Waves and Antennas, Rutgers University. Free online textbook; chapters on transmission lines and impedance matching.