HOW-TO GUIDE

How to Use Oscilloscope Math Functions to Subtract Two Signals

Most digital oscilloscopes have a MATH function that can subtract one channel from another and draw the result as an extra trace. Set it to CH1 − CH2, probe the two ends of a component, and the math trace shows the voltage across that component, even when neither end is at ground. This guide covers the setup, the channel settings that must match, how to read and scale the result, the everyday uses, and where subtraction stops being good enough.

By the OhmSavvy Research Team ·

Siglent SDS1104X-E four-channel benchtop digital oscilloscope, front view
Channel subtraction needs at least two channels. The Siglent SDS1104X-E (100MHz, 4 channels, 1 GSa/s) is one of the bench scopes in our reviews. See our SDS1104X-E review.

Safety first: subtraction does not isolate anything

  • On a mains-powered bench scope, every probe's ground clip is connected to mains earth through the power cord. For CH1 − CH2, clip both grounds to the same circuit ground. Clipping either one anywhere else shorts that point to earth, which can damage the circuit, probes or scope, or injure you.
  • Channel subtraction is not a substitute for a differential probe on mains or high-voltage circuits. Each probe still sees its point's full voltage to earth, so each probe and input must be rated for it, and a non-isolated mains circuit cannot be ground-clipped at all. Use a rated differential probe, an isolation transformer on the device under test, or an isolated scope. Never float the scope by defeating its earth.

How channel subtraction works

A digital scope samples CH1 and CH2 at the same instants. The math function takes each pair of samples, subtracts one from the other, and plots the answer as a third trace. If CH1 is at 5 V and CH2 at 3 V at a given moment, the math trace shows 2 V at that moment, which is the voltage between the two probe tips.

Pseudo-differential, in one paragraph

Any voltage the two points share (the common-mode part) cancels in the subtraction, leaving only the difference. That only works as well as the two channels match: a small gain or timing mismatch between them leaves part of the shared voltage in the result. That is why this method is called pseudo-differential, and why it suits differences that are a reasonable fraction of the shared voltage. Probe matching, deskew and common-mode limits are covered in how to measure a differential signal with a two-channel oscilloscope.

1Connect both probes to the same ground

Put the CH1 probe tip on one end of the component (or the signal you want to subtract from) and the CH2 tip on the other end. Clip both ground leads to the same circuit ground, close to the area you are measuring. Don't clip a ground lead to either end of the component itself unless that end really is ground; that is the whole point of using two channels. Use the same probe model on both channels, set both to 10x, and compensate each one first using our guide to compensating an oscilloscope probe.

2Match V/div, probe ratio and coupling

The scope converts each channel to volts before subtracting, so the settings have to be right on both. These are the ones that matter:

SettingWhat to doWhy
Probe ratioSet each channel to match its probe (10x and 10x)One wrong ratio scales that channel by 10 and ruins the difference
V/divUse the same V/div on both channelsEqual resolution on both; the difference isn't limited by the coarser channel
Keep on screenNeither trace may run off the top or bottomOn many scopes off-screen data is clipped, so the math result is wrong
CouplingDC on bothAC coupling removes each channel's DC part, so DC differences disappear
Bandwidth limitSame setting on bothA filter on one channel only changes its timing and amplitude
InvertOff on bothAn inverted channel turns subtraction into addition

Vertical position doesn't matter: on most scopes the math uses the measured voltages, not where the traces sit on screen, so you can stack CH1 and CH2 wherever they are easiest to see. Check your manual to confirm.

3Open the MATH menu and choose CH1 − CH2

Press the MATH button (some scopes put it inside a menu), choose subtraction as the operator (shown as A − B or a minus sign), set source A to CH1 and source B to CH2. The math trace appears in its own color. Swapping the sources flips the sign of the result, which is useful when you want a positive answer. Trigger on whichever channel carries the cleaner edge, as described in how to trigger an oscilloscope. Menu names and the operators on offer vary by model, so check your manual. If you only want to see how an output differs from its input at a glance, start with how to compare input and output signals on an oscilloscope.

4Scale and read the math trace

The math trace has its own vertical scale and position. Subtracting volts from volts gives volts, so its scale is in V/div, but it is set separately from CH1 and CH2. A small difference between two large signals often needs a finer scale than the channels themselves. Read it the same way you would read any channel, as in how to measure voltage with an oscilloscope.

Worked example: a resistor divider has R1 on top and R2 below it, with R2 twice R1. The input node swings 0 to 6 V and the junction swings 0 to 4 V. Neither end of R1 is at ground, so probe the input with CH1 and the junction with CH2.

CH2CH1, CH2: 2 V/div DC1 ms/div2 div = 2 V p-pMATH CH1 − CH2: 1 V/div1 ms/div
Left, at 2 V/div: CH1 (green) swings 0 to 6 V (3 divisions) and CH2 (blue) 0 to 4 V (2 divisions), both above the center ground line. Right, the math trace CH1 − CH2 at 1 V/div: 2 divisions, so 0 to 2 V, which is 6 − 4 = 2 V peak-to-peak across R1.

The numbers check out: R1 carries one third of the input swing and R2 two thirds, so R1 sees 2 V of the 6 V. Many scopes can also run automatic measurements (peak-to-peak, RMS, mean) on the math trace; check your manual.

Check the setup before you trust it

A quick test catches most mistakes: touch both probe tips to the same point. The math trace should be a flat line at 0 V. If a scaled copy of the signal remains, the channels don't match: check probe ratios, compensation and V/div.

MATH CH1 − CH2: 0.2 V/div1 ms/div
Both tips on the same point, MATH at 0.2 V/div: a flat line on the center ground line, 0 V difference. This is what a matched setup looks like.
5.6 V p-p (wrong)MATH CH1 − CH2: 2 V/div1 ms/div
The divider example with CH2 left on 1x while its probe is on 10x: CH2 reads 0 to 0.4 V, so the math shows 2.8 divisions at 2 V/div, 5.6 V peak-to-peak instead of 2 V.

Common uses for CH1 − CH2

UseCH1CH2Math trace shows
Voltage across a component with both ends above groundOne endOther endVoltage across the component
Remove a shared offsetSignal riding on a reference (e.g. a mid-rail)The referenceThe signal relative to its reference
Compare input with outputBuffer inputBuffer outputThe error between them (near 0 V when they match)
Low-voltage gate driveMOSFET gateMOSFET sourceGate-to-source voltage

Comparing input with output only gives a near-zero result if the two have the same gain and timing; any delay through the circuit shows up as spikes at each edge. If what you want is the time or phase between two signals rather than their difference, use the phase difference method instead. For a steady DC voltage across a resistor, a multimeter is simpler: see how to measure voltage across a resistor.

Limits of subtraction

Subtraction struggles when the difference is tiny compared with the voltage both points share. Take a current-sense resistor at the top of a 12 V rail, with 0.1 V across it. Both channels sit near 12 V, so at 2 V/div each 0.1 V is only 0.05 of a division.

Voltage across shunt
0.1 V
1% gain mismatch at 12 V
0.12 V
One 8-bit step, 16 V span
≈ 0.0625 V
The 0.1 V signal compared with two error sources: a 1% gain difference between channels on 12 V is 0.12 V, and one step of an 8-bit converter spanning 8 divisions at 2 V/div is 16 V ÷ 256 ≈ 0.0625 V. Both are similar in size to the signal.

The 1% and 8-bit figures are illustrations: channel gain accuracy and ADC resolution are on your scope's datasheet, and many entry-level scopes use 8-bit converters. In cases like this, a differential probe or a current probe does a better job. Fast edges cause a similar problem: on switching nodes, tiny timing differences between channels leave spikes in the result, which is one reason switching power supply measurements often call for a differential probe. Noise on either channel also adds up in the math trace; our guide on why a waveform is noisy helps there.

Which scope you need for channel math

You need at least two channels, so a single-channel unit like the FNIRSI DSO152 (1 channel) can't do it. Math functions are common on two- and four-channel digital scopes, but the operators on offer vary, so check the manual of any model you are considering. Four channels let you watch CH1, CH2 and the result while keeping spare inputs for other signals. Compare models in our best beginner oscilloscopes roundup.

Two-channel-and-up scopes in our reviews

Rigol DS1054Z four-channel benchtop digital oscilloscope
Rigol DS1054Z

50MHz, 4 channels, 1 GSa/s. The default beginner oscilloscope recommendation for years.

Siglent SDS1104X-E four-channel benchtop digital oscilloscope
Siglent SDS1104X-E

100MHz, 4 channels, 1 GSa/s, with more bandwidth and a better UI than the Rigol.

Hantek DSO2D10 two-channel digital oscilloscope with built-in waveform generator
Hantek DSO2D10

100MHz, 2 channels, 1 GSa/s, plus a built-in waveform generator.

As an Amazon Associate I earn from qualifying purchases. Prices and availability are shown on Amazon.

Frequently asked questions

Is CH1 minus CH2 the same as using a differential probe?

No. The math result shows the same difference, but each probe still measures its point relative to the scope's earthed ground, so each channel must handle the full voltage at its point. A differential probe measures between its two tips directly and rejects the shared voltage far better. Subtraction is fine for low-voltage circuits; mains and high-voltage work need a rated differential probe.

Can you subtract channels on a two-channel oscilloscope?

Usually yes. CH1 minus CH2 only needs two inputs, and math subtraction is a common feature on two-channel digital scopes. The exact menu, the available operators and whether you can choose the source order vary by model, so check the manual. Single-channel pocket scopes cannot do it because there is no second channel to subtract.

Why is my oscilloscope math trace off the screen?

The math trace has its own vertical scale and position, separate from CH1 and CH2. After you turn it on, adjust its V/div and position until it fits. If the result looks far larger than expected, check that both channels have the correct probe ratio set, because one channel left on 1x with a 10x probe makes the difference wildly wrong.

Can an oscilloscope measure the voltage across a resistor?

Yes. If one end of the resistor is at circuit ground, probe the other end directly. If both ends are above ground, probe each end with its own channel, ground both clips to circuit ground, and display CH1 minus CH2. For a steady DC value, a multimeter across the resistor is simpler and usually more accurate.

What does A minus B mean on an oscilloscope?

It is the math operation that subtracts source B from source A, sample by sample. On most scopes you pick which channel is A and which is B in the math menu, so CH1 minus CH2 and CH2 minus CH1 give the same shape with opposite sign. The result is a voltage, shown as its own trace.

Where to go next

More oscilloscope guides and reviews

Product reviews

View all 4 reviews →