How to Use the Frequency of Light Calculator
Light is an electromagnetic wave, and every electromagnetic wave obeys the same wave equation: speed equals wavelength times frequency, or c = λf. Because the speed of light in a vacuum is a fixed constant (c ≈ 2.998 × 10⁸ m/s), wavelength and frequency are locked together — if you know one, you can always solve for the other. This calculator takes the wavelength you enter, along with an optional medium, and derives the frequency, period, propagation speed, and photon energy of that light wave.
The wave equation and photon energy
Rearranging c = λf for frequency gives f = c / λ in vacuum, or more generally f = v / λ, where v = c / n is the speed of light inside a medium with refractive index n. The period of oscillation is simply the reciprocal of frequency, T = 1 / f. Because light also behaves as a stream of photons, each photon carries an energy given by Planck's relation E = hf, where h = 6.62607015 × 10⁻³⁴ J·s is Planck's constant. Substituting f = c/λ gives the equivalent form E = hc/λ, showing directly that shorter-wavelength light (like violet or ultraviolet) carries more energy per photon than longer-wavelength light (like red or infrared).
How the calculation works
The calculator first converts your wavelength into meters based on the unit you selected, then looks up the refractive index n for the chosen medium (n = 1 for a true vacuum, slightly above 1 for air, 1.33 for water, and so on). It computes the speed of light in that medium as v = c/n, then divides by the wavelength to get frequency, f = v/λ. Frequency itself does not change when light crosses into a new medium — only its speed and wavelength shrink together by the same factor n, which is exactly why f = v/λ and f = c/λ_vacuum give the same answer. From frequency, the tool derives the period (T = 1/f) and the photon energy (E = hf), converting the energy into electronvolts (eV) since that is the conventional unit for single-photon energies in optics and spectroscopy.
Common mistakes
- Confusing vacuum wavelength with medium wavelength: a wavelength quoted for light "in water" is shorter than the same light's wavelength in air, even though the frequency (and color, and photon energy) is unchanged.
- Assuming frequency changes with medium: it doesn't. Only speed and wavelength change; frequency is set by the source and stays fixed as light travels between materials.
- Mixing wavelength units: visible light wavelengths are usually quoted in nanometers (400-700 nm); entering a value in the wrong unit (say, micrometers instead of nanometers) shifts the computed frequency by orders of magnitude.
- Reporting too many digits: refractive index values for real materials vary with wavelength and temperature, so treat the speed/wavelength-in-medium results as good to 3-4 significant figures, not more.
Real-world applications
- Optical engineers use λ ↔ f conversions to specify laser sources, filters, and coatings that must target a precise frequency or wavelength band.
- Spectroscopy identifies chemical elements and compounds from the exact frequencies (and corresponding photon energies) of light they absorb or emit.
- Fiber-optic and free-space communication systems choose carrier wavelengths (commonly 1310 nm or 1550 nm) based on the frequency and attenuation properties of the transmission medium.
- Photography, display, and lighting design rely on the visible spectrum's frequency-to-color mapping to reproduce and control color accurately.