ThisCalculator

Everyday

Wavelength to Frequency Calculator & Formula

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Wavelength to Frequency Calculator & Formula

This calculator converts a wavelength value into its corresponding frequency (and vice versa) for electromagnetic waves. You enter the wavelength in meters (or another unit), and it returns the frequency in hertz (Hz), along with the speed of light used in the calculation. The relationship is simple: frequency equals the speed of light divided by wavelength.

Formula

The core formula is:

f = c / λ

  • f = frequency, in hertz (Hz) — cycles per second
  • c = speed of light in vacuum, 299,792,458 meters per second (m/s)
  • λ (lambda) = wavelength, in meters (m)

For sound waves, the same formula applies but with the speed of sound (about 343 m/s in air at 20°C) instead of the speed of light. That is a different calculator; this page focuses on electromagnetic radiation (radio, light, X-rays, etc.).

Worked Example

Using the default values from the calculator: wavelength = 500 nm (500 × 10⁻⁹ m).

  1. Convert wavelength to meters: 500 nm = 500 × 10⁻⁹ m = 5.00 × 10⁻⁷ m.
  2. Apply the formula: f = 299,792,458 / (5.00 × 10⁻⁷).
  3. Calculate: 299,792,458 / 0.0000005 = 5.99584916 × 10¹⁴ Hz.
  4. Round to 3 significant figures: 5.996 × 10¹⁴ Hz (about 599.6 THz).

That matches the calculator’s output for the default input.

Why the Speed of Light Matters

The speed of light (c) is a fundamental constant. In a vacuum, it is exactly 299,792,458 m/s. In a medium like air, glass, or water, light travels slower, so the frequency stays the same but the wavelength changes. For most everyday calculations, the vacuum value is used because the difference in air is tiny (less than 0.1%).

If you are working with light in glass or water, you need to use the speed in that medium: c / n, where n is the refractive index (about 1.5 for glass, 1.33 for water). That is rarely needed for basic frequency conversions, but it is a common source of confusion.

How to Choose the Right Wavelength Unit

Wavelengths come in many units depending on the part of the electromagnetic spectrum:

  • Radio waves: meters (m) or kilometers (km).
  • Microwaves: centimeters (cm) or millimeters (mm).
  • Infrared: micrometers (µm).
  • Visible light: nanometers (nm).
  • X-rays and gamma rays: picometers (pm) or angstroms (Å).

Before entering a value, convert it to meters. For example, 3 cm = 0.03 m, 500 nm = 5 × 10⁻⁷ m. The calculator does not do that conversion for you, so double-check your input.

Common Mistakes and Misconceptions

One frequent error is mixing up the units of wavelength. If you enter 500 (thinking of nanometers) but the calculator expects meters, you will get a frequency that is off by a factor of a billion. Always convert to meters first.

Another misconception is that frequency and wavelength are independent. They are inversely proportional — as wavelength increases, frequency decreases. This is why red light (longer wavelength) has a lower frequency than blue light (shorter wavelength).

Some people also confuse the period (the time for one full cycle) with frequency. The period is simply 1/f, and it is shown as a secondary output in the calculator. For a 500 nm wave, the period is about 1.67 × 10⁻¹⁵ seconds — an incredibly short time.

Limits of the Simple Formula

The formula f = c/λ is exact for waves in a vacuum. However, in a medium, the speed changes, so the wavelength changes too. The frequency remains constant when a wave passes from one medium to another, but the wavelength adjusts. If you measure the wavelength in air, you should use the speed in air (very close to c, but not exactly).

Also, for extremely high-energy photons (very short wavelengths, like gamma rays), the wave nature is still described by this formula, but quantum effects become important. That does not change the calculation, but it reminds us that the formula is a classical description.

Finally, the calculator assumes a vacuum. If you are working with sound or other mechanical waves, you must use the appropriate wave speed, not the speed of light.

Frequently Asked Questions

How do I convert wavelength to frequency if I have the wavelength in nanometers?

First convert nanometers to meters by multiplying by 10⁻⁹. Then divide the speed of light (299,792,458 m/s) by that value. For example, 650 nm = 650 × 10⁻⁹ m, so frequency = 299,792,458 / 6.5 × 10⁻⁷ ≈ 4.61 × 10¹⁴ Hz (461 THz).

What is the frequency of red light?

Red light has a wavelength of roughly 620–750 nm. Using 650 nm as a typical value, the frequency is about 4.61 × 10¹⁴ Hz. The exact frequency depends on the precise wavelength.

Does the frequency change when light enters water?

No, the frequency remains the same. The speed and wavelength change, but the number of cycles per second is fixed by the source. This is why light changes color slightly when it enters a medium, but the frequency is the fundamental property.

What is the relationship between wavelength and energy?

Energy of a photon is E = h × f, where h is Planck’s constant (6.626 × 10⁻³⁴ J·s). Since f = c/λ, energy is inversely proportional to wavelength. Shorter wavelength means higher energy. This is why X-rays are more energetic than visible light.

Can I use this calculator for sound waves?

No, this calculator uses the speed of light. For sound, you would replace c with the speed of sound (about 343 m/s in air at 20°C). The formula is the same, but the speed is different.

Why is the speed of light exactly 299,792,458 m/s?

The meter is now defined as the distance light travels in 1/299,792,458 of a second. So the speed of light is exact by definition. This was established in 1983 by the international community.

Related

Formula used
in wl | Wavelength | m | 500e-9 | 0
out freq | Frequency | Hz | 299792458 / wl | 3
out period | Period | s | wl / 299792458 | 9

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.