Vacuum is barely beatable
Air slows light by only ~0.027% versus vacuum. Glass can chop speed to about 2/3 of c, shrinking wavelengths inside it.
Constants used: \( c = 299\,792\,458 \,\text{m·s}^{-1} \), \( h = 6.62607015\times 10^{-34}\,\text{J·s} \), \( 1\,\text{eV} = 1.602176634\times10^{-19}\,\text{J} \).
Wavelength \( (\lambda) \) and frequency \( (f) \) describe the same wave in different ways. They are tied together by the wave speed \(v\): \( \lambda = v/f \). For electromagnetic waves (light, radio, microwaves), the speed in a material is \( v = \dfrac{c}{n} \), where \(c\) is the speed of light in vacuum and \(n\) is the material’s refractive index. That means when light enters a denser medium (larger \(n\)), the wavelength gets shorter while the frequency stays the same.
$$ \lambda = \frac{c}{n f} \quad\text{and}\quad f = \frac{c}{n \lambda} $$
In this calculator we also report the period \(T = 1/f\), the wavenumber \(k = 2\pi/\lambda\) (in rad·m\(^{-1}\)), and—for photons—the energy \(E = h f = \dfrac{h c}{\lambda}\) (shown in joules and eV). These are convenient if you work in optics, RF, or photonics.
Because \( v = c/n \), choosing a medium (air, water, glass) or entering a custom \(n\) simply scales the wavelength: \( \lambda_{\text{medium}} = \lambda_0 / n \). Frequency does not change at an interface, which is why color (set by \(f\)) is preserved when light passes from air into glass—only the spacing between wave crests changes inside the material.
Common wavelength units are nm, μm, mm, cm, and m; frequency is typically Hz, kHz, MHz, GHz, or THz. Visible light spans roughly \(400\text{–}700\,\text{nm}\) (\(\approx 430\text{–}750\,\text{THz}\)); infrared is longer wavelengths (lower \(f\)), ultraviolet is shorter (higher \(f\)). Radio covers kHz to tens of GHz with wavelengths from kilometers to millimeters. The calculator auto-scales results to readable units, and it uses exact CODATA constants: \( c = 299{,}792{,}458\,\text{m·s}^{-1} \) and \( h = 6.62607015\times10^{-34}\,\text{J·s} \).
Real materials are dispersive: \(n\) depends on wavelength and temperature. Our presets (air \(\approx 1.00027\), water \(\approx 1.333\), typical crown glass \(\approx 1.517\)) are great for estimates; for lab-grade work, enter your own \(n\) at the operating wavelength. Finally, note that the formulas here apply to electromagnetic waves. For sound or water waves you would use the appropriate wave speed \(v\) for that medium, not \(c/n\).
Air slows light by only ~0.027% versus vacuum. Glass can chop speed to about 2/3 of c, shrinking wavelengths inside it.
Higher-frequency (blue) light sees a slightly higher refractive index, so it refracts more. That dispersion spreads white light into rainbows.
At 2.4 GHz the wavelength is ~12.5 cm—long enough to diffract through door gaps and around corners, unlike short-wavelength visible light.
Typical X-rays are ~0.1 nm long—on the order of atomic lattice spacing—letting them reveal crystal structures via diffraction.
Low-frequency radio waves can be kilometers long, bouncing off the ionosphere to travel far beyond line-of-sight horizons.
Yes. Frequency stays the same when entering a medium, but wavelength becomes shorter by a factor of \(n\): \( \lambda_{\text{medium}} = \lambda_0 / n \).
Wavelength: nm, μm, mm, cm, m. Frequency: Hz, kHz, MHz, GHz, THz. The tool auto-scales output for readability.
Wavenumber \(k\) measures how rapidly a wave oscillates in space: \(k=2\pi/\lambda\) (in rad/m).
In reality, \(n\) depends on wavelength and temperature. For quick estimates, these presets are fine; for precision work, enter your own \(n\).
Yes—everything runs locally in your browser; nothing is uploaded.