Wavelength to Frequency Calculator

Convert between wavelength and frequency for electromagnetic waves (light, radio) or sound waves (air, water).

Science Three media f=c/λ
Rate this calculator · 4.0 (1)

Wavelength ↔ Frequency

f = c/λ · EM or sound medium

Instructions — Wavelength to Frequency Calculator

1

Pick a medium

Choose Vacuum/EM for light, radio, and microwaves (c = 299,792,458 m/s). Choose Air or Water for sound (343 m/s or 1480 m/s at 20°C).

2

Enter wavelength or frequency

Type a wavelength in meters on the left, or a frequency in hertz on the right. The conversion is instant and bidirectional.

3

Adjust precision

For radio and audio frequencies, 4 decimals is plenty. For optical work (THz, PHz), bump precision up to 8–12 to capture the small fractional shifts that matter in spectroscopy.

Visible light: 400–700 nm wavelength → 430–750 THz. Red is longer, violet is shorter.
FM radio: 88–108 MHz → 2.78–3.41 m wavelength. WiFi 2.4 GHz → 12.5 cm.

Formulas

Every wave obeys the same relationship: speed equals frequency times wavelength. The speed depends on the medium — light is constant in vacuum, sound depends on what it travels through.

Universal Wave Equation
$$ v = f \lambda $$
Wave speed v (m/s), frequency f (Hz), wavelength λ (m). True for every wave: light, sound, water, seismic.
Frequency from Wavelength
$$ f = \frac{v}{\lambda} $$
Divide wave speed by wavelength. For light: f = c/λ. For sound in air: f = 343/λ.
Wavelength from Frequency
$$ \lambda = \frac{v}{f} $$
Divide wave speed by frequency. A 1 Hz signal at light speed has a 300,000 km wavelength.
Speed of Light (vacuum)
$$ c = 299{,}792{,}458\,\text{m/s} $$
Exact by definition since 1983, when the meter itself was redefined in terms of c. Same speed for all EM waves: light, radio, X-rays.
Photon Energy
$$ E = hf = \frac{hc}{\lambda} $$
Planck constant h = 6.626 × 10⁻³⁴ J·s. Photon energy rises with frequency: UV photons carry more energy than IR photons.
Speed in a Medium
$$ v_{medium} = \frac{c}{n} $$
Light slows in matter: water (n = 1.33) → 0.75c, glass (n = 1.5) → 0.67c, diamond (n = 2.42) → 0.41c. Frequency stays constant, wavelength shrinks.

Reference

Visible Light Spectrum
ColorWavelength (nm)Frequency (THz)Photon Energy (eV)
Red7004281.77
Orange6204842.00
Yellow5805172.14
Green5305662.34
Blue4706382.64
Violet4207142.95
UV-A3209373.87

Radio frequency bands (IEEE)

Different radio bands serve very different purposes. Long wavelengths penetrate further; short wavelengths carry more data.

Radio & broadcasting
UseFrequency
AM radio0.5–1.7 MHz
Shortwave3–30 MHz
FM radio88–108 MHz
TV (UHF)470–700 MHz
4G LTE700 MHz–2.6 GHz
Wireless & microwave
UseFrequency
WiFi 2.4 GHz2.4 GHz
WiFi 5 GHz5 GHz
WiFi 6E6 GHz
Microwave oven2.45 GHz
5G mmWave24–73 GHz
Radar (X-band)8–12 GHz

Note: WiFi 2.4 GHz corresponds to λ = 12.5 cm, almost exactly resonant with water — which is why microwave ovens use the same frequency to heat food.

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).

Did you know

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:

Wavelength ↔ frequency cheat sheet
f = v / λ λ = v / f
v = c (light, vacuum) v = 343 m/s (sound, air)
c = 299,792,458 m/s ≈ 3 × 10⁸ m/s

For 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.

Red (700 nm)
428 THz
lower energy
Violet (400 nm)
750 THz
higher energy

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.

Tip

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

Don't use c for sound

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:

  1. Confusing nanometers and meters. A 500 nm wavelength is 5 × 10⁻⁷ m, not 5 × 10⁻⁴ m. Three orders of magnitude swing the answer wildly.
  2. 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.
  3. 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.
  4. 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.

FAQ

f = v/λ, where v is wave speed, λ is wavelength, and f is frequency. For electromagnetic waves (light, radio) in vacuum, v = c = 299,792,458 m/s, so f = c/λ. For sound in air at 20°C, v = 343 m/s.
Divide the wave speed by the wavelength. For visible light at 500 nm (5 × 10⁻⁷ m): f = (3 × 10⁸ m/s) / (5 × 10⁻⁷ m) = 6 × 10¹⁴ Hz = 600 THz, which is green-blue. For a 1-meter sound wave in air: f = 343 / 1 = 343 Hz, about an F4 musical note.
λ = c/f = (3 × 10⁸) / (2.4 × 10⁹) ≈ 0.125 m = 12.5 cm. Microwave ovens use the same frequency — water molecules resonate strongly there, which is why both heat (in microwaves) and absorb signal (around water-rich human bodies, which is why WiFi gets weaker through walls full of pipes).
400–700 nm (4 × 10⁻⁷ to 7 × 10⁻⁷ m). Violet is shortest (~400 nm, ~750 THz), red is longest (~700 nm, ~430 THz). The eye covers about one octave of the EM spectrum — out of more than 70 octaves of total EM range.
Frequency is set by the source; it cannot change unless the source changes. When light enters glass, it slows down, and to maintain v = fλ with the same f, the wavelength must shrink. That is how lenses bend light: differently colored wavelengths shrink by different amounts (dispersion).
Sound speed depends on the medium: air at 20°C: 343 m/s, water: 1480 m/s, steel: 5000–6000 m/s, diamond: 12,000 m/s. The denser and stiffer the medium, the faster sound travels. Sound cannot propagate at all in vacuum — no medium means no oscillation to transmit.
Not as a physical wave property. Frequency counts cycles per second, which is always positive. Negative frequencies appear in signal processing math (Fourier analysis) as a useful abstraction, but they map back to positive real frequencies once you assemble the time-domain waveform.
Gamma rays from nuclear decay reach 10²⁴ Hz and beyond. The theoretical Planck frequency (1.855 × 10⁴³ Hz) marks where quantum gravity is thought to dominate, but it is far beyond any experiment. Particle accelerators routinely produce gamma photons at 10²⁰–10²¹ Hz.