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.

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.
- The chart is the reflection coefficient drawn in the complex plane, with 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 . 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 divides the load impedance by the line's characteristic impedance (usually 50 Ω in RF and test equipment, 75 Ω in video and TV cable). Its real part is the normalised resistance and its imaginary part the normalised reactance.
- The reflection coefficient is the reflected wave at the load divided by the wave arriving there, a complex number with a size and a phase:
Any passive load has , and for every such load . 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 and constant become circles:
| Grid line | In the plane | Example |
|---|---|---|
| Constant resistance | Circle centred at , radius | : centre (0.5, 0), radius 0.5, through the centre of the chart |
| Constant reactance | Arc of a circle centred at , radius , inside the unit circle | : centre (1, 1), radius 1, ending at the top of the rim |
Every resistance circle touches the right-hand edge at (the open circuit), and so does every reactance arc. The 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.
To plot or read an impedance:
- Normalise it: divide by . On a 50 Ω line, 25 + j50 Ω becomes .
- Find the resistance circle for (labelled along the horizontal line) and the reactance arc for (labelled round the rim, above and below).
- The point is where they cross. Multiply back by to turn a point you read off the chart into ohms.
Then read its position:
| Where on the chart | Meaning |
|---|---|
| Centre (, ) | Matched: the load equals , nothing is reflected |
| Horizontal line | Pure resistance: left of centre below , right of centre above it |
| Upper half | Inductive: positive reactance |
| Lower half | Capacitive: negative reactance |
| Left end (, ) | Short circuit |
| Right end (, ) | Open circuit |
| Rim () | Pure reactance (no resistance): everything is reflected |
| Outside the rim () | 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, Ω, is a small resistance in series with an inductor.
- .
- , so at an angle of 82.9°. The point sits 62% of the way from the centre to the rim, almost straight up.
- VSWR = .
- Return loss = dB.
- , so 38.5% of the incident power is reflected. The power lost to the mismatch is dB.
VSWR circles and return loss on a Smith chart
The size of sets three figures that datasheets quote:
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 , so they are the same everywhere on a circle centred on the chart: the VSWR circle. Its radius is , and it cuts the horizontal line to the right of the centre at . That is how VSWR used to be read off a paper chart.
| VSWR | Return loss | Power reflected | Mismatch loss | |
|---|---|---|---|---|
| 1.1 | 0.048 | 26.4 dB | 0.2% | 0.01 dB |
| 1.2 | 0.091 | 20.8 dB | 0.8% | 0.04 dB |
| 1.5 | 0.200 | 14.0 dB | 4.0% | 0.18 dB |
| 2.0 | 0.333 | 9.5 dB | 11.1% | 0.51 dB |
| 3.0 | 0.500 | 6.0 dB | 25.0% | 1.25 dB |
A 75 Ω load on a 50 Ω line and a 50 Ω load on a 75 Ω line both have and a VSWR of 1.5, but sit on opposite sides of the centre: the first at , the second at .
Moving along a transmission line
Between the load and the instrument there is usually a cable. On a lossless line of length , the reflected wave goes there and back, so the reflection coefficient seen at the input is
where 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 (), so the impedance repeats every .
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, :
| Line length | Turn (clockwise) | Input impedance | In ohms (50 Ω line) |
|---|---|---|---|
| 0 | 0° | 0.5 + j1 | 25 + j50 Ω |
| 0.1 λ | 72° | 3.70 + j1.41 | 185 + j70 Ω |
| 0.125 λ | 90° | 4.0 − j1.0 | 200 − j50 Ω |
| 0.25 λ | 180° | 0.4 − j0.8 | 20 − 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, . That is the principle of the quarter-wave transformer.
The wavelength in a cable is shorter than in free space: , where 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, , not as impedances. Normalised, .
Because , its reflection coefficient is . 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, .
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 and nothing is reflected. Each lossless component moves the point along one family of grid lines:
| Component | Moves the point | Direction |
|---|---|---|
| Series inductor | Along its constant- circle | Clockwise (adds ) |
| Series capacitor | Along its constant- circle | Anticlockwise (adds ) |
| Shunt capacitor | Along its constant- circle | Clockwise (adds ) |
| Shunt inductor | Along its constant- circle | Anticlockwise (adds ) |
| Length of line | Round its VSWR circle | Clockwise toward the generator |
L-network match: a worked example
Match Ω to 50 Ω at 1 GHz with two components, an L-network.
- The target is the circle on the admittance grid, because from there one shunt component reaches the centre.
- A series component keeps . On that circle, the points with are . The nearer one is , so the series component must change from 1 to 0.5: a series reactance of , which is Ω, a capacitor.
- Now . A shunt susceptance of cancels the , which is S, another capacitor. The point is at the centre.
- At 1 GHz: series pF, then shunt pF, nearer the source.
The other solution, , 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 circle, then add a short- or open-circuited stub in parallel whose susceptance cancels the 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 () 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.
| Chart | Shows | Use it when… |
|---|---|---|
| Smith chart | in the complex plane with the impedance grid on top | You need the impedance itself: for matching, or to see whether a load is inductive or capacitive |
| Polar plot of | The same points with plain magnitude and angle rings | You only need the size and phase of the reflection, for example to compare two measurements |
| in dB, or VSWR, against frequency | Reflection size on a rectangular chart | You need bandwidth: over which frequencies the return loss beats, say, 10 dB |
| and against frequency | Resistance and reactance on a rectangular chart | You 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 . 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 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 , 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 , 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.
- JavaScript
- React
- Angular
// 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();
import { SciChartReact } from "scichart-react";
import {
SciChartSurface,
NumericAxis,
NumberRange,
FastLineRenderableSeries,
XyScatterRenderableSeries,
EllipsePointMarker,
XyDataSeries,
ELineDrawMode,
SciChartJsNavyTheme,
MouseWheelZoomModifier,
ZoomPanModifier,
ZoomExtentsModifier
} from "scichart";
// Normalised impedance z = r + jx to reflection coefficient: gamma = (z - 1) / (z + 1)
const toGamma = (r: number, x: number) => {
const d = (r + 1) ** 2 + x * x;
return [(r * r + x * x - 1) / d, (2 * x) / d];
};
// Resistance circles and reactance arcs as one polyline, with NaN between the curves
const smithGrid = () => {
const xs: number[] = [];
const ys: number[] = [];
const curve = (points: number[][]) => {
points.forEach(([gx, gy]) => (xs.push(gx), ys.push(gy)));
xs.push(NaN);
ys.push(NaN);
};
const t = Array.from({ length: 399 }, (_, i) => Math.tan(Math.PI * ((i + 1) / 400 - 0.5)));
const u = Array.from({ length: 400 }, (_, i) => Math.tan((Math.PI / 2) * (i / 400)));
for (const r of [0, 0.2, 0.5, 1, 2, 5]) curve(t.map((x) => toGamma(r, x)));
for (const x of [0.2, 0.5, 1, 2, 5, -0.2, -0.5, -1, -2, -5]) curve(u.map((r) => toGamma(r, x)));
curve([[-1, 0], [1, 0]]);
return { xs, ys };
};
// initChart builds the chart; SciChartReact creates it, sizes it and cleans it up
const initChart = async (rootElement: string | HTMLDivElement) => {
const { wasmContext, sciChartSurface } = await SciChartSurface.create(rootElement, {
theme: new SciChartJsNavyTheme()
});
// Equal ranges on hidden axes; keep the chart's div square so the circles stay round
const axis = () =>
new NumericAxis(wasmContext, {
visibleRange: new NumberRange(-1.2, 1.2),
isVisible: false,
drawMajorGridLines: false,
drawMinorGridLines: false,
drawMajorBands: false
});
sciChartSurface.xAxes.add(axis());
sciChartSurface.yAxes.add(axis());
const grid = smithGrid();
sciChartSurface.renderableSeries.add(
new FastLineRenderableSeries(wasmContext, {
dataSeries: new XyDataSeries(wasmContext, { xValues: grid.xs, yValues: grid.ys, dataIsSortedInX: false }),
stroke: "#8FA3C7",
drawNaNAs: ELineDrawMode.DiscontinuousLine
})
);
// Your measured impedances, in ohms, e.g. one per frequency from a network analyser
const { impedances, z0 } = getYourImpedanceData(); // [{ re, im }, ...] and 50 or 75
const points = impedances.map((z) => toGamma(z.re / z0, z.im / z0));
sciChartSurface.renderableSeries.add(
new XyScatterRenderableSeries(wasmContext, {
dataSeries: new XyDataSeries(wasmContext, {
xValues: points.map((p) => p[0]),
yValues: points.map((p) => p[1]),
dataIsSortedInX: false
}),
pointMarker: new EllipsePointMarker(wasmContext, { width: 10, height: 10, fill: "#FF6B6B" })
})
);
sciChartSurface.chartModifiers.add(new MouseWheelZoomModifier(), new ZoomPanModifier(), new ZoomExtentsModifier());
return { sciChartSurface };
};
export const SmithChart = () => <SciChartReact initChart={initChart} style={{ width: 500, height: 500 }} />;
import { Component } from "@angular/core";
import { ScichartAngularComponent } from "scichart-angular";
import {
SciChartSurface,
NumericAxis,
NumberRange,
FastLineRenderableSeries,
XyScatterRenderableSeries,
EllipsePointMarker,
XyDataSeries,
ELineDrawMode,
SciChartJsNavyTheme,
MouseWheelZoomModifier,
ZoomPanModifier,
ZoomExtentsModifier
} from "scichart";
// Normalised impedance z = r + jx to reflection coefficient: gamma = (z - 1) / (z + 1)
const toGamma = (r: number, x: number) => {
const d = (r + 1) ** 2 + x * x;
return [(r * r + x * x - 1) / d, (2 * x) / d];
};
// Resistance circles and reactance arcs as one polyline, with NaN between the curves
const smithGrid = () => {
const xs: number[] = [];
const ys: number[] = [];
const curve = (points: number[][]) => {
points.forEach(([gx, gy]) => (xs.push(gx), ys.push(gy)));
xs.push(NaN);
ys.push(NaN);
};
const t = Array.from({ length: 399 }, (_, i) => Math.tan(Math.PI * ((i + 1) / 400 - 0.5)));
const u = Array.from({ length: 400 }, (_, i) => Math.tan((Math.PI / 2) * (i / 400)));
for (const r of [0, 0.2, 0.5, 1, 2, 5]) curve(t.map((x) => toGamma(r, x)));
for (const x of [0.2, 0.5, 1, 2, 5, -0.2, -0.5, -1, -2, -5]) curve(u.map((r) => toGamma(r, x)));
curve([[-1, 0], [1, 0]]);
return { xs, ys };
};
@Component({
selector: "app-smith-chart",
standalone: true,
imports: [ScichartAngularComponent],
template: `<scichart-angular [initChart]="initChart" style="display: block; width: 500px; height: 500px"></scichart-angular>`
})
export class SmithChartComponent {
// initChart builds the chart; scichart-angular creates it, sizes it and cleans it up
initChart = async (rootElement: string | HTMLDivElement) => {
const { wasmContext, sciChartSurface } = await SciChartSurface.create(rootElement, {
theme: new SciChartJsNavyTheme()
});
// Equal ranges on hidden axes; keep the chart's element square so the circles stay round
const axis = () =>
new NumericAxis(wasmContext, {
visibleRange: new NumberRange(-1.2, 1.2),
isVisible: false,
drawMajorGridLines: false,
drawMinorGridLines: false,
drawMajorBands: false
});
sciChartSurface.xAxes.add(axis());
sciChartSurface.yAxes.add(axis());
const grid = smithGrid();
sciChartSurface.renderableSeries.add(
new FastLineRenderableSeries(wasmContext, {
dataSeries: new XyDataSeries(wasmContext, { xValues: grid.xs, yValues: grid.ys, dataIsSortedInX: false }),
stroke: "#8FA3C7",
drawNaNAs: ELineDrawMode.DiscontinuousLine
})
);
// Your measured impedances, in ohms, e.g. one per frequency from a network analyser
const { impedances, z0 } = getYourImpedanceData(); // [{ re, im }, ...] and 50 or 75
const points = impedances.map((z) => toGamma(z.re / z0, z.im / z0));
sciChartSurface.renderableSeries.add(
new XyScatterRenderableSeries(wasmContext, {
dataSeries: new XyDataSeries(wasmContext, {
xValues: points.map((p) => p[0]),
yValues: points.map((p) => p[1]),
dataIsSortedInX: false
}),
pointMarker: new EllipsePointMarker(wasmContext, { width: 10, height: 10, fill: "#FF6B6B" })
})
);
sciChartSurface.chartModifiers.add(new MouseWheelZoomModifier(), new ZoomPanModifier(), new ZoomExtentsModifier());
return { sciChartSurface };
};
}
Key points:
- The chart is an ordinary 2D surface whose x and y axes both run over the same range of , hidden, inside a square element. Equal ranges on a square plot area keep the circles round.
- The whole grid is one
FastLineRenderableSerieswithdataIsSortedInX: false, so points are joined in the order given, anddrawNaNAs: ELineDrawMode.DiscontinuousLine, so a NaN between two curves lifts the pen. Each curve is a straight line of the plane mapped through . - Loads are an
XyScatterRenderableSeries; the VSWR circle, the line-length arc and the matching path are more line series, and the labels areTextAnnotations placed in coordinates. - The live demo's mouse readout is a small custom chart modifier (a subclass of
CustomChartModifier2D): it converts the mouse position to with the axes' coordinate calculators, then to .
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.