Frequency of Light Calculator

Enter a light wave's wavelength to find its frequency, period, speed, and photon energy using the wave equation c = λf and Planck's relation E = hf.

Quick Facts

Wave equation
c = λ × f
Speed of light equals wavelength times frequency, so wavelength and frequency are inversely proportional.
Speed of light (vacuum)
c = 299,792,458 m/s
An exact, defined value since 1983 — it underlies the modern definition of the meter.
Photon energy
E = h × f
Planck's constant h = 6.626 × 10⁻³⁴ J·s links a photon's energy directly to its frequency.

Your Results

Calculated
Frequency
-
f = v / λ (v = speed of light in the medium)
Period
-
T = 1 / f, the time for one wave cycle
Speed in Medium
-
v = c / n, where n is the refractive index
Photon Energy
-
E = h × f (Planck's relation)

Ready

Enter a wavelength, unit, and medium, then press Calculate.

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.

Frequently Asked Questions

What is the relationship between wavelength and frequency of light?
They are linked by the wave equation c = λf, where c is the speed of light, λ is wavelength, and f is frequency. Frequency equals speed divided by wavelength, so the two are inversely proportional: longer wavelengths mean lower frequencies, and shorter wavelengths mean higher frequencies.
Does the frequency of light change when it enters a different medium such as water or glass?
No. Frequency is set by the light source and stays constant as light passes between media. What changes is the speed (v = c/n) and the wavelength (λ = v/f), which both shrink by the medium's refractive index n compared to vacuum.
How do I find the photon energy from wavelength or frequency?
Use Planck's relation E = hf, or equivalently E = hc/λ, where h = 6.626×10⁻³⁴ J·s is Planck's constant. Divide the result in joules by 1.602×10⁻¹⁹ to convert to electronvolts (eV), the unit typically used for photon energies.
What speed of light does this calculator use?
It uses c = 299,792,458 m/s, the exact defined speed of light in vacuum. For a chosen medium, the calculator divides c by that medium's refractive index n to get the light's speed in that material.