HOW-TO GUIDE

How to Measure Mains Frequency With an Oscilloscope

To measure mains frequency with an oscilloscope, never probe the socket directly. Plug in a low-voltage AC adaptor or step-down transformer, connect the probe to its output, set the timebase to 5 ms/div and read the period: a UK 50 Hz supply repeats every 20 ms, or four divisions. This guide covers the safe hookup, the settings, how to turn the trace into a frequency figure, and what a real mains waveform looks like.

By the OhmSavvy Research Team ·

Rigol DS1054Z four-channel digital oscilloscope, front view
A bench scope such as the 50MHz, 4-channel Rigol DS1054Z has far more bandwidth than a 50 Hz signal needs; the hookup is what matters. See our DS1054Z review.

Mains can kill: read this before you connect anything

  • Do not connect a standard oscilloscope probe to a mains socket, plug or wiring. The probe's ground clip is bonded to earth through the scope's power lead, so touching it to live (or even neutral) can short the supply, destroy the probe and scope, and cause burns.
  • Never defeat the scope's earth to "float" it. That puts mains voltage on the metal parts you touch.
  • Use one of the safe methods below. If you are not sure a piece of equipment is rated for the voltage, do not use it.

Why you can't probe the socket directly

A multimeter is floating: neither lead is tied to earth. A mains-powered bench oscilloscope is different. Every channel's ground shares the chassis, and the chassis is earthed for your safety. In UK wiring the neutral is also tied to earth back at the supply, so a ground clip on live shorts live to earth, and even a clip on neutral can carry fault current. Standard 10x probes are also not designed or rated for direct mains work.

NeverSafe method230 V socketScopeEarthed ground clip on live orneutral = short circuit230 V socketAC adaptorScopeProbe on the low-voltageAC output, isolated from mainsThe adaptor's output follows mains frequency exactly, at a safe voltage
Left: the mistake that destroys probes. Right: an AC adaptor gives you an isolated, low-voltage copy of the mains waveform.

1Get a safe copy of the mains

There are three sensible ways to see mains frequency on a scope:

MethodHow it worksBest for
AC-output adaptor or step-down transformerIsolated secondary gives roughly 9 to 12 V AC at mains frequencyHobby benches: cheap and safe
Differential probe rated for mainsMeasures between two points without using the scope groundSeeing the real waveform shape at full voltage
AC line triggerScope triggers internally from its own supplySyncing to 50 Hz without measuring mains at all

The adaptor method is the one to use for a frequency check. Look for an adaptor whose label says AC output (often marked "AC 12V" with a sine symbol), not DC. Plug it in, then attach the probe tip to one output wire and the ground clip to the other.

2Set the probe and scope

Switch the probe to 10x and set the channel attenuation to match. A 12 V AC adaptor can reach about 17 V peak, or higher with no load, so start at 5 V/div. Choose DC coupling, trigger on a rising edge of the same channel with the level near 0 V, and set the timebase to 5 ms/div.

2 ms/div
1 cycle
5 ms/div
2.5 cycles
10 ms/div
5 cycles
20 ms/div
10 cycles
How many 50 Hz cycles fit on a ten-division screen at each timebase setting. 5 ms/div is the comfortable middle.

3How to measure a 50 Hz waveform on an oscilloscope

With a stable trace, pick two matching points one cycle apart, such as two rising zero crossings or two positive peaks, and count the horizontal divisions between them. At 5 ms/div a 50 Hz waveform spans four divisions per cycle.

TT = 4 div = 20 msCH1 5 V/div5 ms/div
A 50 Hz sine at 5 ms/div: one period spans 4 divisions, so T = 4 × 5 ms = 20 ms and f = 1 ÷ 0.020 s = 50 Hz.
  1. 01

    Count

    4 divisions per cycle

  2. 02

    × time/div

    4 × 5 ms = 20 ms

  3. 03

    f = 1 / T

    1 ÷ 0.020 = 50 Hz

For a finer reading, measure across several cycles at 10 ms/div and divide: five cycles spanning the full 100 ms screen still gives 20 ms each, but a small counting error is shared across all five.

4Check with the scope's counter or cursors

Open the measure menu and add frequency and period for the channel. Most digital scopes calculate these from the captured trace and update them live, and some also have a separate hardware frequency counter with more digits. Vertical time cursors are the third check: place one on each rising zero crossing and read Δt and 1/Δt. If the three methods agree within a fraction of a hertz, you can trust the result. If the auto value jumps around, the trigger is probably unstable; our triggering guide covers the fix.

What reading is normal?

SupplyNominal frequencyPeriodDivisions per cycle at 5 ms/div
UK and most of Europe50 Hz20 ms4
North America60 Hz16.7 ms3.3
Japan50 Hz east, 60 Hz west20 or 16.7 ms4 or 3.3

The GB grid moves, a little

The GB grid is normally held within ±1% of 50 Hz, so anything from 49.5 Hz to 50.5 Hz is within normal operating limits, and day-to-day readings usually sit much closer than that. A hobby scope's timebase is accurate enough to see that the frequency is right, but not to track those small movements precisely.

Why mains isn't a perfect sine

Do not be surprised if the peaks look slightly flattened. Many appliances and chargers use a rectifier and capacitor, which draw current only near the top of each cycle. Across millions of such loads that trims the crests and adds harmonics at 150 Hz, 250 Hz and above. The frequency is unaffected, so the period reading stays the same; only the shape changes.

ideal sine (faint) · typical flat-topped mains (yellow)
Flat-topping is common on real supplies and is passed through an adaptor too. It does not change the 20 ms period.

Which scope to use

Any working digital scope can resolve 50 Hz: bandwidth and sample rate are not the limit here. What helps is a measure menu with a frequency readout and, for interference hunting, an AC line trigger source. The general method for other signals is in how to measure frequency with an oscilloscope, and the full roundup is in best beginner oscilloscopes.

Scopes in our reviews

Rigol DS1054Z four-channel 50MHz digital bench oscilloscope
Rigol DS1054Z

50MHz, 4 channels: plenty of headroom for mains and audio work.

Siglent SDS1104X-E four-channel 100MHz digital bench oscilloscope
Siglent SDS1104X-E

100MHz, 4 channels, with a well-regarded interface.

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

100MHz, 2 channels and a built-in waveform generator.

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

Frequently asked questions

Can I measure mains frequency with a normal oscilloscope probe?

Not directly on the mains. A bench scope's probe ground clip is connected to mains earth through the power cord, so clipping it to live or neutral creates a short circuit through the scope. Measure the low-voltage side of an isolating adaptor or transformer instead, or use a differential probe rated for mains voltage and the correct measurement category.

Does a step-down transformer change the frequency?

No. A transformer changes voltage, not frequency, so the AC on its secondary repeats at exactly the same rate as the mains feeding it. That is why a plain AC-output adaptor is such a convenient, safe way to watch mains frequency. A DC adaptor will not work, because it rectifies and smooths the output.

What time per division should I use for 50 Hz?

5 ms/div is a good starting point: the screen spans 50 ms, which shows two and a half cycles of a 20 ms period. Use 2 ms/div to make one cycle fill most of the screen for a closer period reading, or 10 ms/div to see five cycles for an averaged measurement.

Why does my scope show 49.98 Hz instead of exactly 50 Hz?

Because the grid really does drift. Supply frequency rises slightly when generation exceeds demand and falls when demand exceeds generation, and system operators continuously correct it. A reading a few hundredths of a hertz either side of 50 is normal, within the resolution and timebase accuracy of a hobby scope.

What is the line trigger on an oscilloscope?

Many bench scopes offer AC line as a trigger source, taken internally from the scope's own power input. It locks the display to mains frequency without any probe on the mains, which is useful for spotting hum or interference that is synchronised to 50 Hz in the circuit you are actually measuring.

Where to go next

More oscilloscope guides and reviews

Product reviews

View all 4 reviews →