Article — Wavelength to Frequency Calculator
Wavelength to Frequency: How Waves Convert
Frequency equals wave speed divided by wavelength: f = v/λ. For light and radio in vacuum, the speed is c = 299,792,458 m/s, so f = c/λ. For sound in air at 20°C, the speed drops to 343 m/s. The relationship is inverse: shorter wavelengths give higher frequencies, longer wavelengths give lower frequencies, and the product is always the wave speed.
This single equation covers light, radio, microwaves, X-rays, sound, water waves, and seismic waves. The mathematical relationship is identical; only the propagation speed changes. Knowing the medium is half the work — getting the units right is the other half.
What is wavelength?
Wavelength (λ, Greek lambda) is the distance between two consecutive crests or two consecutive troughs of a wave. It is a length, measured in meters. Wavelengths span 25 orders of magnitude in nature: from the size of an atomic nucleus (10⁻¹⁵ m for high-energy gamma rays) to thousands of kilometers (for VLF radio used to communicate with submarines).
Different fields use different sub-units for convenience. Visible light is reported in nanometers (1 nm = 10⁻⁹ m). Infrared is often in micrometers (1 μm = 10⁻⁶ m). Radio waves use meters, centimeters, or millimeters depending on the band. Sound waves in air range from a few centimeters (high frequencies, near the size of a fingernail) to several meters (bass frequencies, the height of a person).
The 21-centimeter line — radio waves emitted by neutral hydrogen at 1420 MHz — is the most-watched frequency in radio astronomy. It maps the distribution of cold hydrogen across galaxies and was the suggested communication frequency in Carl Sagan's Contact.
What is frequency?
Frequency (f) is the number of complete wave cycles passing a fixed point per second. The SI unit is the hertz (Hz), named for Heinrich Hertz, who first generated and detected radio waves in 1887. One hertz equals one cycle per second.
Frequencies span an even wider range than wavelengths. Audible sound runs 20 Hz to 20 kHz. AM radio is hundreds of kilohertz; FM is around 100 MHz. Visible light is hundreds of terahertz. Gamma rays exceed 10²⁰ Hz. The Planck frequency at the edge of physics is 10⁴³ Hz — a number with no practical meaning except as a limit.
- Hz = cycles per second
- kHz = 10³ Hz (AM radio, audio)
- MHz = 10⁶ Hz (FM, TV, CPU clocks)
- GHz = 10⁹ Hz (WiFi, 4G, radar)
- THz = 10¹² Hz (infrared, terahertz imaging)
- PHz = 10¹⁵ Hz (visible light, UV)
The wavelength to frequency formula
The relationship between wavelength and frequency is fixed by the wave equation:
f = v / λ λ = v / fv = c (light, vacuum) v = 343 m/s (sound, air)c = 299,792,458 m/s ≈ 3 × 10⁸ m/sFor practical work, the trick is knowing what speed to use. Light and all EM radiation travel at c in vacuum. In matter, light slows down: water at n = 1.33 brings light to about 75% of c. Sound depends entirely on the medium — 343 m/s in air, 1480 m/s in water, 5000 m/s in steel.
The frequency of a wave is set by the source and does not change when the wave enters a new medium. The wavelength is what adjusts. This is why a guitar string vibrating at 440 Hz produces a 440 Hz wave in air (with wavelength 0.78 m) and a 440 Hz wave in water (with wavelength 3.36 m) — same source, same frequency, very different wavelengths.
Wavelength across the EM spectrum
The electromagnetic spectrum is one continuous range of frequencies and wavelengths, all traveling at the speed of light. Humans see only a thin slice (400–700 nm) as visible light, but the rest is everywhere: radio waves carry information, microwaves heat food, infrared transports heat, ultraviolet sterilizes, X-rays penetrate tissue, gamma rays come from nuclear processes.
Each region of the spectrum is named by its photon energy and the technology used to produce or detect it. Radio waves and microwaves are made by electrical oscillators; infrared comes from thermal emission and molecular vibrations; visible light from electronic transitions; ultraviolet from higher-energy transitions; X-rays from atomic inner-shell transitions or bremsstrahlung; gamma rays from nuclear processes.
Wavelength in radio and wireless
Radio engineering lives in the wavelength-frequency relationship. Antennas must be sized in fractions of a wavelength: a half-wave dipole at 100 MHz needs 1.5 m of wire. At 2.4 GHz it needs only 6.25 cm. Modern wireless devices keep getting smaller as their operating frequencies climb.
To find an antenna's natural resonant length in meters, divide 150 by the frequency in MHz. That gives a half-wave dipole. Quarter-wave whip antennas use 75/MHz. A 433 MHz remote control transmitter (common in garage doors) needs 17 cm — and indeed that is roughly the antenna length you see inside.
Wavelength also dictates propagation behavior. Long wavelengths (low frequencies) bend around obstacles and travel along the ground; that is why AM radio carries hundreds of kilometers and submarines use VLF (3–30 kHz, wavelengths 10–100 km) to communicate underwater. Short wavelengths (high frequencies) require line of sight: WiFi at 2.4 GHz cannot easily pass through more than a few walls; 5G mmWave at 28 GHz needs nearly direct visibility to a tower.
Wavelength for sound waves
Sound waves obey the same equation but with vastly slower propagation speeds. The audible spectrum covers six decades — 20 Hz (a 17 m wavelength in air) to 20 kHz (17 mm wavelength). Musical pitch is just frequency: A4 = 440 Hz, an octave up doubles to 880 Hz, an octave down halves to 220 Hz.
- Air at 20°C = 343 m/s
- Air at 0°C = 331 m/s
- Water = 1480 m/s
- Seawater = 1530 m/s
- Ice = 3500 m/s
- Steel = 5000–6000 m/s
The dramatic speed differences explain a lot. Whales communicate with low-frequency calls (10–30 Hz) that travel hundreds of kilometers through deep ocean waveguides. A medical ultrasound at 5 MHz has a 0.3 mm wavelength in tissue — fine enough to image individual blood vessels. Bats use echolocation at 50–100 kHz, with wavelengths small enough to detect a moth wing.
Photon energy from wavelength
For electromagnetic waves, frequency also determines the energy carried by each photon: E = hf, where h is the Planck constant (6.626 × 10⁻³⁴ J·s). Combined with f = c/λ, the photon energy in electronvolts is approximately 1240 / λ(nm). Visible light photons carry 1.6–3.1 eV; UV photons carry 3–124 eV; X-ray photons carry 124 eV to 124 keV.
This is why UV light can damage skin (3–10 eV per photon — enough to break some chemical bonds), while infrared cannot (under 1 eV — insufficient to ionize). It is also why microwave ovens are safe at 2.45 GHz (about 10⁻⁵ eV per photon — millions of times below the ionization threshold), but X-ray scanners are not.
Common wavelength-frequency mistakes
The speed of light c is only valid for electromagnetic waves. Sound travels nearly a million times slower in air. Plugging c into f = v/λ for sound gives nonsense — typically frequencies far above the audible range, suggesting an obvious error.
Other frequent errors:
- Confusing nanometers and meters. A 500 nm wavelength is 5 × 10⁻⁷ m, not 5 × 10⁻⁴ m. Three orders of magnitude swing the answer wildly.
- Forgetting medium changes wavelength. A 500 nm wavelength in vacuum is only 375 nm in water (because light slows to 0.75c) — frequency stays the same.
- Using rounded c. 3 × 10⁸ m/s is good to 0.07%; the exact value 299,792,458 m/s matters for GPS, atomic clocks, and high-precision spectroscopy.
- Confusing Hz with cycles or rev/min. Hz means cycles per second. 60 Hz line frequency = 60 cycles/s = 3600 rpm for a synchronous motor — both right, but unit-mixing trips people up.