HOW-TO GUIDE

How to Compare Two Frequencies Using an Oscilloscope

Is the output exactly half the input? Is this oscillator running at the same rate as the reference? To compare two frequencies using an oscilloscope, put one signal on each channel and either measure both periods and divide, or switch to XY mode and read the ratio from the Lissajous figure. When the two frequencies are nearly equal, the way one trace drifts against the other tells you how far apart they are. This guide covers all three methods and their limits.

By the OhmSavvy Research Team ·

Hantek DSO2D10 two-channel oscilloscope with built-in waveform generator, front view
The Hantek DSO2D10 (100MHz, 2 channels, 1 GSa/s) combines a scope and a waveform generator, which is handy for comparing a signal against a known reference. See our DSO2D10 review.

Safety: both ground clips go to the same ground

  • On a mains-powered bench scope, every channel's probe ground clip is connected to mains earth, and to each other. Clip both to the same circuit ground. A ground clip on any other point shorts it to earth.
  • Never probe mains directly with standard probes to compare a frequency against the supply. Use a rated differential probe or a low-voltage transformer, and see how to measure mains frequency for the safe setup.

Three ways to compare two frequencies

Each method answers a slightly different question. Period measurement gives you two numbers you can write down. A Lissajous figure shows at a glance whether the ratio is an exact whole-number ratio like 1:2 or 2:3. Watching drift tells you how far apart two nearly identical frequencies are, often more finely than either period reading.

The core formula

f = 1 ÷ T for each channel, then ratio = f2 ÷ f1. Because both readings use the same timebase, the ratio of the periods gives the same answer inverted: f2 ÷ f1 = T1 ÷ T2.

All three need the signals on screen at the same time, which means a scope with at least two channels. They also assume each signal is steady enough to have a frequency. A signal that changes speed, such as a motor ramping up or a sweeping oscillator, gives a different answer every sweep; capture it in Single mode and measure the part you care about. If one signal is buried in noise, clean up the probing first, because a noisy edge makes both the trigger and the period reading jump around.

1Connect both signals and set each channel

Put the reference signal on CH1 and the signal under test on CH2, both probes on 10x with the channel attenuation set to match. Use DC coupling unless one signal rides on a large DC level. Set V/div on each channel so the trace fills about a third of the screen, then use each channel's vertical position to stack them, CH1 in the top half and CH2 in the bottom, so neither hides the other. Trigger on CH1 with an edge trigger at the middle of its swing; if the trace will not settle, see how to trigger an oscilloscope.

2Measure each period and convert to frequency

Set the timebase so the slower signal shows at least two full cycles. Count the divisions in one period of each trace, or better, across several periods, then multiply by the time/div.

CH2T1 = 2.5 msT2 = 1.25 msCH1 / CH20.5 ms/div
Two signals at 0.5 ms/div. CH1 (green, top) completes one cycle in 5 divisions, T1 = 2.5 ms, so f1 = 400 Hz. CH2 (blue, bottom) completes one cycle in 2.5 divisions, T2 = 1.25 ms, so f2 = 800 Hz: exactly twice CH1.

Most digital scopes can also show the frequency of each channel automatically in the measure menu. Use it, but check one reading by hand: an auto measurement can lock onto noise or ringing and report a multiple of the real frequency. The frequency measurement guide covers that check in detail.

Time/divCH1 periodf1CH2 periodf2f2 ÷ f1
0.5 ms (figure)5 div = 2.5 ms400 Hz2.5 div = 1.25 ms800 Hz2
10 µs4 div = 40 µs25 kHz6 div = 60 µs16.67 kHz≈ 0.667 (2:3)
1 µs2 div = 2 µs500 kHz8 div = 8 µs125 kHz0.25 (1:4)
5 ms4 div = 20 ms50 Hz3.3 div = 16.5 ms≈ 60.6 Hz≈ 1.21

3Work out the ratio and what it means

Divide one frequency by the other. A clean whole-number result usually means one signal is derived from the other: a divide-by-two counter stage, a PLL multiplier, or a clock divided down for a peripheral. A ratio that is close to, but not exactly, a simple fraction usually means two independent sources that only happen to be similar, such as two crystal oscillators of the same nominal frequency.

A related check is whether the two signals stay locked. With CH1 triggered, a derived signal on CH2 stands perfectly still. An independent one slowly slides, even if its period reading looks identical. That movement is often a faster answer than any calculation.

4Read the ratio from a Lissajous figure

Most digital scopes offer an XY display mode, usually in the horizontal or display menu; check your manual for where yours keeps it. XY mode plots CH1 on the horizontal axis against CH2 on the vertical axis. Set both channels to similar V/div so the figure is roughly square and centred. With two sine waves in an exact ratio, the spot traces a closed, stationary figure whose shape gives the ratio.

The counting rule: count how many times the figure touches the top edge of its bounding box, and how many times it touches a side edge. Then f(CH2) ÷ f(CH1) = top touches ÷ side touches.

f(CH2) : f(CH1)Typical figureTop touchesSide touches
1 : 1Line, ellipse or circle, depending on phase11
2 : 1Figure eight lying on its side, like ∞ (a single arc at some phases)21
1 : 2Figure eight standing upright (a sideways arc at some phases)12
3 : 2Pretzel-like figure with three upper loops32

For a 1:1 ratio, the shape tells you the phase rather than the frequency; our phase difference guide shows those ellipses. Lissajous figures get hard to count above ratios of about 5:1, and they only stay still when the ratio is exact.

  1. 01

    Reference on CH1

    Known frequency, e.g. a generator

  2. 02

    Unknown on CH2

    Same ground, similar V/div

  3. 03

    XY mode

    CH1 horizontal, CH2 vertical

  4. 04

    Adjust

    Tune the reference until the figure stops

  5. 05

    Count

    Top ÷ side touches = ratio

The classic comparison against a known reference, such as a signal generator.

Worked example: checking a clock divider

Suppose a board has a 1 MHz oscillator feeding a counter chip, and the counter's output should be the input divided by 8. Put the oscillator on CH1 and the counter output on CH2, trigger on CH2 rising, and set 1 µs/div so a whole output cycle fits on screen.

  • CH1 shows one cycle per division: T1 = 1 µs, f1 = 1 MHz.
  • CH2 shows one cycle in 8 divisions: T2 = 8 µs, f2 = 125 kHz.
  • Ratio f1 ÷ f2 = 1 MHz ÷ 125 kHz = 8, so the divider is doing its job.

Now look at the timing as well as the count. In a working divider every CH2 edge sits a fixed, short delay after a CH1 edge, and both traces stand still together. If CH2 shows 7 or 9 input cycles in some periods, the counter is missing or gaining counts, often because of a noisy or slow input edge. If CH2 drifts against CH1 instead of standing still, it is not being clocked by that oscillator at all.

The same approach checks a PWM frequency against its timer clock, a UART baud clock against its crystal, or a microcontroller's clock output against the crystal driving it. For the edge-to-edge delay itself, see how to measure propagation delay.

When the two frequencies are nearly equal

Two frequencies a fraction of a percent apart give period readings that look the same. The difference shows up as drift instead. Trigger on CH1 and the CH2 trace slides along at the difference frequency: one full cycle of slip per 1 ÷ (f2 − f1) seconds. A 1000 Hz reference and a 1001 Hz signal slip one cycle per second; at 1000.1 Hz it takes ten seconds. Timing one complete slip with a stopwatch gives the difference directly.

CH2CH1 / CH21 ms/div
At 1 ms/div, CH1 (green) shows 5 cycles in 10 divisions, 500 Hz; CH2 (blue) shows 5.5 cycles, 550 Hz. They start in step on the left and are half a cycle apart by the right edge, because a 50 Hz difference slips one cycle every 20 ms. On a live screen, the untriggered CH2 trace would roll continuously.

The same idea works in XY mode: a nearly 1:1 pair makes an ellipse that slowly collapses to a line, opens into a circle and back, completing the sequence once per cycle of difference. If you add both signals with a math function, the sum swells and shrinks at the difference frequency too; that is the beat you hear when two notes are slightly out of tune.

How accurate is the comparison?

Reading divisions by eye is good to a few percent at best; cursors and auto measurements do better, and measuring across several cycles improves either. Because both channels share one timebase, a small timebase error affects both readings equally and largely cancels in the ratio, which is why a two-channel comparison is often more trustworthy than either absolute number. The scope's timebase accuracy is given on its datasheet, usually in parts per million.

For absolute accuracy, a dedicated frequency counter is the better tool. Signals also need to sit well inside the scope's bandwidth to keep a clean shape; see what oscilloscope bandwidth means. To compare timing and amplitude rather than frequency, see how to compare input and output signals, and for checking a clock source itself, see how to check a crystal oscillator.

Which scope you need to compare frequencies

You need at least two channels. A single-channel handheld can measure each frequency in turn but cannot show them together or use XY mode. Any two- or four-channel bench scope in our best beginner oscilloscopes roundup will do the job; confirm XY mode in its manual if you plan to use Lissajous figures.

Multi-channel scopes in our reviews

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

100MHz, 2 channels, 1 GSa/s; an oscilloscope and waveform generator in one unit.

Rigol DS1054Z four-channel benchtop digital oscilloscope
Rigol DS1054Z

50MHz, 4 channels, 1 GSa/s; the default beginner recommendation for years.

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

100MHz, 4 channels, 1 GSa/s; more bandwidth than the Rigol, for projects that will get more demanding.

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

Frequently asked questions

Can a single-channel oscilloscope compare two frequencies?

Only one at a time. You can measure the first signal, write down its frequency, then move the probe and measure the second. That works for steady signals, but you cannot see their timing relationship, use XY mode, or watch one drift against the other. For those you need at least two channels.

Why does my Lissajous figure keep rotating?

Because the two frequencies are not in an exact whole-number ratio. The figure cycles through its shapes once for every cycle of difference between them, so for a near 1:1 pair, a pattern that repeats once a second means the frequencies differ by about 1 Hz. A slower roll means they are closer to the exact ratio.

Which channel should I trigger on when comparing frequencies?

Trigger on the signal you treat as the reference, usually the input or the known-good source. That trace stands still and the other one shows any difference as movement. If you trigger on the wrong one, the reference appears to drift instead, which can confuse which signal is changing.

Can I compare a sine wave with a square wave?

Yes. Period measurement does not care about wave shape, so measure each with edge triggering and cursors or the automatic frequency reading. Lissajous figures still show the ratio by their repeat count, but the shapes have sharp corners and flat sides instead of smooth loops, which makes them harder to read.

Can I use the FFT function to compare two frequencies?

Yes, and it helps when signals are noisy or contain several tones. The FFT shows each frequency as a peak along a horizontal frequency axis, so two signals appear as two peaks whose positions you can read with cursors. Its resolution depends on the sample rate and record length, so close frequencies can merge into one peak. For a precise ratio, period measurement is usually better.

Where to go next

More oscilloscope guides and reviews

Product reviews

View all 4 reviews →