How to Calculate Frequency: Wave Physics Guide
Frequency is the reciprocal of period, and that one relationship underpins acoustics, optics, electronics and radio. This guide covers the wave equation, angular frequency, the Doppler effect, harmonics and octaves, and why frequency stays fixed when a wave changes medium.
How to Calculate Frequency
Frequency counts how often something repeats per second. Its unit, the hertz (Hz), literally means "per second" — 50 Hz is fifty cycles every second.
Almost everything else follows from one relationship.
Frequency and period are reciprocals
f = (1)/(T) \qquad T = (1)/(f)
Where f is frequency in hertz and T is the period — the time for one complete cycle — in seconds.
If a pendulum takes 2 seconds per swing, its frequency is 0.5 Hz. If a processor completes a cycle every 0.3 nanoseconds, its frequency is 1/(0.3 × 10^-9) = 3.33 GHz.
That is the whole of it. Everything below is this relationship applied in different settings.
Counting cycles over time
When you can count events directly:
f = \frac\textnumber of cycles\texttime
Example. A wheel completes 240 revolutions in 30 seconds:
f = (240)/(30) = 8 \text Hz
Rotational speed is often quoted in RPM instead:
f \text (Hz) = \frac\textRPM60
So 3,000 RPM is 50 Hz. An engine at 6,000 RPM turns at 100 Hz.
The wave equation
For any travelling wave:
v = f\lambda
Where v is wave speed, f is frequency and \lambda (lambda) is wavelength. Rearranged:
f = (v)/(\lambda) \qquad \lambda = (v)/(f)
Example — sound. Sound travels at roughly 343 m/s in air at 20 °C. A 440 Hz tone (concert A) has wavelength:
\lambda = (343)/(440) = 0.78 \text m
Example — radio. An FM station at 100 MHz, with radio waves travelling at 3 × 10^8 m/s:
\lambda = (3 × 10^8)/(100 × 10^6) = 3 \text m
This is why FM aerials are around a metre or so — antenna length is typically a half or quarter of the wavelength.
Frequency does not change when a wave changes medium
This catches people out, and it matters.
When a wave passes from one medium into another — sound from air into water, light from air into glass — its speed changes and its wavelength changes, but its frequency stays the same.
The reason is conservation at the boundary: wave crests cannot pile up or disappear there. However many crests arrive per second must leave per second. Frequency is set by the source, not the medium.
Example. A 440 Hz sound moves from air (343 m/s) into water (1,480 m/s):
- In air: \lambda = 343/440 = 0.78 m
- In water: \lambda = 1480/440 = 3.36 m
Same frequency, wavelength more than four times longer. This is also why an object underwater looks displaced — light slows and its wavelength shortens in water, bending the ray, while its frequency (and therefore its colour) is unchanged.
Angular frequency
In oscillation and AC circuit analysis, angular frequency is often more convenient:
\omega = 2π f = (2π)/(T)
Measured in radians per second. The factor of 2π appears because one full cycle is 2π radians.
A 50 Hz mains supply has \omega = 2π(50) = 314.16 rad/s. That number appears constantly in electrical engineering because inductive and capacitive reactance depend on \omega, not f:
X_L = \omega L \qquad X_C = (1)/(\omega C)
Frequency in oscillating systems
Simple pendulum (small swings):
f = (1)/(2π)√(\fracg)L
Note what is absent: mass. A pendulum's frequency depends only on its length and local gravity. A 1 m pendulum on Earth:
f = (1)/(2π)√(\frac9.81)1 = (3.132)/(6.283) = 0.4985 \text Hz
A period of just over 2 seconds — which is why grandfather clocks are about a metre tall.
Mass on a spring:
f = (1)/(2π)√(\frack)m
Here mass does matter. Stiffer springs oscillate faster; heavier masses oscillate slower.
LC circuit resonance:
f = (1)/(2π√(LC))
The basis of radio tuning — adjusting C shifts the resonant frequency to select a station.
The Doppler effect
When source and observer move relative to one another, the observed frequency shifts:
f' = f((v ± v_o)/(v \mp v_s))
Where v is wave speed, v_o observer speed, v_s source speed. Signs are chosen so that approaching raises the frequency.
Example. An ambulance siren at 700 Hz approaches you at 25 m/s, with sound at 343 m/s and you stationary:
f' = 700((343)/(343 - 25)) = 700 × (343)/(318) = 755.0 \text Hz
As it passes and recedes:
f' = 700((343)/(343 + 25)) = 700 × (343)/(368) = 652.4 \text Hz
A drop of about 103 Hz — roughly a musical minor third, which is why the shift is so audible.
Harmonics and octaves
A vibrating string or air column produces a fundamental frequency plus integer multiples of it:
f_n = n × f_1
If the fundamental is 220 Hz, the harmonics are 440, 660, 880 Hz and so on. The relative strength of these harmonics is what makes a violin and a flute playing the same note sound different — that is timbre.
Octaves are doublings. Each octave up multiplies frequency by 2:
f_n = f_0 × 2^n
A4 is 440 Hz, so A5 is 880 Hz and A3 is 220 Hz.
In twelve-tone equal temperament, each semitone multiplies frequency by 2^1/12 ≈ 1.0595:
f = 440 × 2^n/12
Where n is the number of semitones from A4. Five semitones above A4 (the note D5):
f = 440 × 2^5/12 = 440 × 1.3348 = 587.3 \text Hz
Beat frequency
Play two tones of slightly different frequency together and you hear a slow pulsing — the volume rising and falling. That pulsing is the beat frequency:
f_beat = |f_1 - f_2|
Two notes at 440 Hz and 443 Hz produce 3 beats per second. As you tune one toward the other, the beating slows; when the beats stop entirely, the frequencies match exactly.
This is how piano tuners work, and it is far more precise than judging pitch by ear. Humans struggle to hear a 0.5% pitch difference directly, but a 2 Hz beat against a 440 Hz reference is unmistakable — an effective precision better than 0.5%.
The same principle underlies the heterodyne receiver in radio: mixing an incoming signal with a local oscillator produces a difference frequency low enough to process easily.
Standing waves and resonant modes
A wave confined between two boundaries reflects back on itself. At certain frequencies the reflections reinforce, producing a standing wave that appears stationary.
String fixed at both ends (guitar, piano, violin):
f_n = (n)/(2L)√(\fracT)\mu
Where L is length, T tension, \mu mass per unit length, and n = 1, 2, 3\ldots
Three practical consequences follow directly:
- Shorter string, higher pitch — which is what fretting a guitar does.
- Higher tension, higher pitch — which is what tuning pegs do.
- Heavier string, lower pitch — which is why bass strings are thick and wound.
Pipe open at both ends (flute, organ flue pipe):
f_n = (nv)/(2L)
Pipe closed at one end (clarinet, stopped organ pipe):
f_n = (nv)/(4L) \qquad n = 1, 3, 5\ldots
Note that a closed pipe supports only odd harmonics, and its fundamental is an octave lower than an open pipe of the same length. This is why a clarinet sounds an octave below a flute of similar size, and why its timbre — built from odd harmonics only — is distinctly hollow.
Example. An organ pipe open at both ends, 0.5 m long, with sound at 343 m/s:
f_1 = (343)/(2 × 0.5) = 343 \text Hz
Closed at one end, the same pipe gives 343/(4 × 0.5) = 171.5 Hz — exactly an octave lower.
Sampling and the Nyquist limit
To digitise a signal you must sample it fast enough. The Nyquist–Shannon theorem sets the bound:
f_sample > 2 f_max
Sample at less than twice the highest frequency present and you get aliasing — high frequencies masquerading as low ones, permanently and irreversibly.
This is why CD audio uses 44.1 kHz: human hearing tops out near 20 kHz, and 44.1 kHz leaves margin above the 40 kHz minimum for the anti-aliasing filter to roll off.
Aliasing is visible as well as audible. Wagon wheels appearing to spin backwards in film is aliasing — the frame rate is below twice the wheel's rotational frequency.
Example. To digitise a signal containing components up to 15 kHz, sample above 30 kHz. Sampling at 25 kHz would fold a 15 kHz component down to |25 - 15| = 10 kHz, where it is indistinguishable from a genuine 10 kHz signal and cannot be removed afterwards.
Frequency ranges worth knowing
Upper hearing limit declines with age — most adults over 50 cannot hear above about 12 kHz, which is the basis of the "mosquito" deterrents audible mainly to teenagers.
Measuring frequency in practice
Counting over a long interval. The simplest method and often the best. Count N cycles over time t and divide. Timing 50 pendulum swings rather than one reduces the effect of your reaction time fifty-fold — if your timing is good to ±0.2 s, that becomes ±0.004 s per swing.
Oscilloscope. Measure the period directly from the horizontal axis and invert. Accuracy depends on the timebase, and reading a period is usually easier than reading a frequency.
Frequency counter. Gates the signal for a precise interval and counts edges. Laboratory instruments reach parts in 10^12 when locked to a rubidium or caesium reference.
FFT / spectrum analyser. Decomposes a complex signal into its component frequencies. This is what shows you that a "440 Hz" violin note actually contains 440, 880, 1320 Hz and beyond, with the relative amplitudes that give the instrument its character.
The FFT has a resolution limit worth knowing:
Δ f = (1)/(T)
Where T is the length of the sampled window. To resolve two tones 1 Hz apart you must observe for at least one second. There is no way around this — it is a mathematical consequence of the transform, not a limitation of the instrument. Short observation means coarse frequency resolution, which is the time-frequency trade-off at the heart of signal processing.
Frequency in electrical systems
AC waveforms. Mains alternates at 50 or 60 Hz. The instantaneous voltage is v(t) = V_peak\sin(\omega t) with \omega = 2π f. At 50 Hz the voltage completes a full cycle every 20 ms and crosses zero every 10 ms.
Reactance depends on frequency. This is why frequency matters in circuit design:
X_L = 2π f L \qquad X_C = (1)/(2π f C)
Inductive reactance rises with frequency; capacitive reactance falls. A capacitor blocks DC and passes high frequencies; an inductor does the reverse. Every filter ever built exploits this asymmetry.
Example. A 10 µF capacitor at 50 Hz:
X_C = (1)/(2π(50)(10 × 10^-6)) = (1)/(0.003142) = 318.3 \ \Omega
At 5 kHz the same capacitor presents just 3.18 Ω — a hundredfold drop for a hundredfold rise in frequency.
Resonance. When X_L = X_C the reactances cancel and the circuit resonates:
2π f L = (1)/(2π f C) \Rightarrow f = (1)/(2π√(LC))
Example. A 100 µH inductor with a 100 pF capacitor:
f = (1)/(2π√((100 × 10^-6))(100 × 10^-12)) = (1)/(2π√(10^-14)) = 1.592 \text MHz
Squarely in the AM broadcast band — which is exactly what such a circuit would be built to tune.
Frequency and energy
For electromagnetic radiation, frequency determines photon energy through the Planck relation:
E = hf
Where h = 6.626 × 10^-34 J·s.
This is why the electromagnetic spectrum is dangerous at one end and harmless at the other. Radio waves at 10^8 Hz carry photons of about 6.6 × 10^-26 J — far too little to disturb a molecule. X-rays at 10^18 Hz carry 6.6 × 10^-16 J per photon, ten orders of magnitude more, enough to strip electrons from atoms and break DNA.
The threshold for ionisation sits in the ultraviolet, which is precisely where sunburn and skin cancer risk begin. Intensity does not change this: a very bright red lamp will never ionise anything, because each individual photon is too weak regardless of how many arrive.
Common mistakes
Confusing frequency with angular frequency. \omega = 2π f. Substituting one for the other introduces a factor of 6.28.
Assuming frequency changes when a wave enters a new medium. Wavelength and speed change; frequency does not.
Mixing units. Convert MHz and GHz to Hz before using v = f\lambda, or convert consistently throughout.
Using RPM directly as Hz. Divide by 60 first.
Forgetting that pendulum frequency is independent of mass — but a spring's is not.
Getting Doppler signs backwards. Sanity-check: approaching must raise the pitch.
Frequency in medicine and industry
Diagnostic ultrasound runs at 2–18 MHz. The choice is a direct trade-off, and it comes straight from the wave equation.
Resolution improves with shorter wavelength, and \lambda = v/f, so higher frequency means finer detail. But higher frequencies attenuate faster in tissue, so they penetrate less deeply.
At 3 MHz in soft tissue, where sound travels at roughly 1,540 m/s:
\lambda = (1540)/(3 × 10^6) = 0.513 \text mm
At 12 MHz the wavelength falls to 0.128 mm — four times the detail, but usable only a few centimetres deep. This is why abdominal scans use low frequencies and why examining superficial structures such as thyroid or tendon uses high ones. The sonographer is choosing a point on that trade-off every time they change probe.
Non-destructive testing applies the same physics to metal. Ultrasonic flaw detection typically runs at 1–10 MHz, and the smallest detectable defect is roughly half a wavelength. In steel, where sound travels at about 5,900 m/s, a 5 MHz probe gives \lambda = 1.18 mm and can therefore resolve defects around 0.6 mm.
Vibration monitoring in rotating machinery identifies faults by their frequency signature. A bearing defect produces vibration at a characteristic multiple of shaft speed; imbalance shows at exactly 1× shaft frequency; misalignment typically at 2×. Because each fault has its own frequency, a spectrum reveals not just that something is wrong but what is wrong — before failure.
Example. A shaft turning at 1,800 RPM has a rotational frequency of 1800/60 = 30 Hz. Imbalance appears as a peak at 30 Hz, misalignment at 60 Hz, and blade-pass vibration on a 7-blade fan at 7 × 30 = 210 Hz.
Induction heating and RF exploit frequency-dependent penetration. Skin depth — how far alternating current penetrates a conductor — falls as frequency rises:
\delta = √(\frac2\rho)\omega\mu
Low frequencies heat deeply and are used for through-hardening; high frequencies heat only the surface and are used for case-hardening gear teeth while leaving the core tough.
Frequently asked questions
What is the difference between frequency and pitch? Frequency is the physical measurement; pitch is the perception of it. They correlate closely, but perceived pitch is also affected by loudness and timbre, and human pitch perception is logarithmic — which is why octaves sound equally spaced despite doubling each time.
Why is mains electricity 50 or 60 Hz? Historical engineering compromise. Lower frequencies suffer more visible lamp flicker and need bulkier transformers; higher frequencies increase transmission losses. The two standards emerged independently and both were entrenched before international standardisation was possible.
How do I measure frequency experimentally? Time many cycles and divide, rather than timing one. Counting 50 oscillations and dividing the total time by 50 reduces the effect of your reaction time by a factor of 50.
What is resonance? When a system is driven at its natural frequency, energy accumulates and amplitude grows dramatically. Useful in radio tuning and musical instruments; destructive in bridges and machinery, which is why marching troops break step crossing bridges.
Does frequency affect how far sound travels? Yes. High frequencies attenuate faster in air and diffract less around obstacles, which is why you hear the bass from a distant party but not the vocals, and why foghorns are low-pitched.
What is bandwidth? The width of a frequency range — the difference between the highest and lowest frequency a signal occupies or a system can carry. A channel from 100 to 108 MHz has 8 MHz of bandwidth. Bandwidth limits information rate: the Shannon–Hartley theorem gives channel capacity as C = B\log_2(1 + S/N), so doubling bandwidth doubles capacity while improving signal-to-noise only helps logarithmically. This is why faster connections mean wider spectrum allocations, not just stronger signals.
Why do two identical instruments sound different? Because pitch is only the fundamental. The relative amplitudes of the harmonics — the timbre — differ with the instrument's material, shape and how it is excited. A violin bowed and the same violin plucked produce the same fundamental with quite different harmonic content, which is why they are instantly distinguishable.
What is the difference between natural frequency and driving frequency? Natural frequency is what a system oscillates at when disturbed and left alone; driving frequency is what an external force imposes. When they coincide you get resonance, and the amplitude grows until damping or failure limits it. Engineers deliberately design structures so their natural frequencies avoid expected driving frequencies — a building's natural sway period is kept away from typical earthquake and wind-gust frequencies.
How does frequency relate to musical intervals? By simple ratios. An octave is 2:1, a perfect fifth approximately 3:2, a perfect fourth 4:3. Intervals built on small integer ratios sound consonant because their harmonics coincide; complex ratios sound dissonant because near-coinciding harmonics beat against each other. Equal temperament compromises these ratios slightly so that all twelve keys are equally usable — a perfect fifth in equal temperament is 2^7/12 = 1.4983 rather than exactly 1.5.
Can frequency be negative? Not physically, but negative frequencies appear routinely in the mathematics of Fourier analysis, where a real signal is represented as a sum of positive and negative frequency components that combine to cancel the imaginary parts. It is a bookkeeping convenience, not a physical claim.
Summary
Frequency is the reciprocal of period, f = 1/T, and connects to wavelength through v = f\lambda. Angular frequency \omega = 2π f is the form used in oscillation and AC analysis.
The point most worth retaining: frequency is set by the source. Change the medium and speed and wavelength adjust — the frequency does not.
Convert between frequency, period and wavelength with our Frequency Calculator.