Frequency Wavelength Calculator
Link frequency and wavelength for light in vacuum, air, water or fiber, using each medium's own wave speed.
What it does
Frequency and wavelength are two ways of describing the same repeating wave. Frequency counts cycles per second in hertz, while wavelength measures the distance from one crest to the next. Their product is the speed of the wave, so knowing any two of the three values gives the third.
For light in vacuum the speed is fixed by definition. NIST lists the speed of light in vacuum as exactly 299,792,458 metres per second, a value built into the SI definition of the metre. Divide that number by a frequency and you get the vacuum wavelength.
Inside matter light travels more slowly. The index of refraction n is the ratio of the vacuum speed to the speed in the material, so the wave speed is c / n. OpenStax lists n = 1.000293 for air, 1.333 for fresh water and 1.458 for fused quartz, which is the basis for the medium choices here.
An important detail is that the frequency does not change when light enters a new medium. What changes is the speed, and therefore the wavelength. A green wave that is about 545 nm in vacuum is compressed to roughly 409 nm in water, while its frequency stays the same.
This calculator takes either a frequency or a wavelength, picks the wave speed for the chosen medium, and returns the other quantity along with the period and wavenumber. It is meant for ordinary wave calculations, not for dispersive materials where the refractive index varies strongly with wavelength.
How to use
- Pick the medium. Vacuum uses the exact speed of light; air, water and fiber use the speeds listed in the dropdown.
- Choose Frequency, find wavelength for the usual direction, or switch to the reverse mode.
- Type the frequency in hertz. The default is 500,000,000,000,000 Hz, which is 500 THz.
- Read the wavelength in the large result, scaled to nanometres or another convenient unit.
- Check the wave speed line to see which value was used for the chosen medium.
- In reverse mode, enter a wavelength in metres and read the frequency, period and wavenumber.
Formula
- λ
- Wavelength in metres, reported in a scaled unit when small.
- f
- Frequency in hertz, counted as cycles per second.
- v
- Speed of light in the chosen medium, in metres per second.
- c
- Speed of light in vacuum, exactly 299,792,458 m/s.
- n
- Index of refraction of the medium, so v = c / n.
The medium dropdown stores the wave speed directly: vacuum 299,792,458 m/s, air 299,704,645 m/s from n = 1.000293, water 224,900,569 m/s from n = 1.333, and fiber 205,618,970 m/s from n = 1.458 for fused quartz. Frequency is unchanged at a boundary, so only the wavelength scales with the speed. Period is 1 / f and wavenumber is 1 / λ.
Worked example
Example: 500 THz light in vacuum
Defaults: vacuum medium, frequency mode, f = 500,000,000,000,000 Hz.
- The vacuum speed is c = 299,792,458 m/s.
- Divide by the frequency: λ = 299,792,458 / 500,000,000,000,000 = 5.99584916 x 10^-7 m.
- Convert to nanometres: 5.99584916 x 10^-7 m = 599.585 nm.
- The frequency displays as 500.000 THz.
- The period is 1 / 500,000,000,000,000 = 2e-15 s.
- The wavenumber is f / c = 1.6678e6 m^-1.
- The tool shows 599.585 nm, 500.000 THz, 299,792,458 m/s, 2e-15 s and 1.6678e6 m^-1.
Reference table
| Frequency | Source or use | Vacuum wavelength | Water wavelength |
|---|---|---|---|
| 1 kHz | Audio tone | 299.792 km | 224.901 km |
| 100 MHz | FM radio | 2.9979 m | 2.2490 m |
| 2.4 GHz | Wi-Fi | 124.914 mm | 93.709 mm |
| 5.5e14 Hz | Green light | 545.08 nm | 408.91 nm |
Limits
- Uses a single refractive index per medium, so it ignores dispersion and the slight variation of n with wavelength.
- Assumes light travels in a uniform medium. Graded-index fiber and layered materials need a more detailed model.
- The speeds listed for air, water and fiber are representative values at standard conditions, not exact constants.
- Does not model absorption, scattering or group velocity, which matter for short pulses.
Common mistakes
- Keeping the vacuum wavelength when changing the medium. The wavelength shrinks because the speed drops.
- Mixing hertz with megahertz or terahertz before entering the frequency.
- Dividing frequency by wavelength when you meant to divide wavelength by frequency.
- Using the index of refraction as a speed, rather than computing c / n.
- Forgetting that the frequency stays the same across a boundary between two media.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is the vacuum wavelength of a 100 MHz radio wave?
299,792,458 / 100,000,000 = 2.9979 m, so the tool reports 2.9979 m in vacuum.
A 600 nm vacuum light wave enters water. What is its new wavelength?
The frequency is 499.654 THz, and it does not change. In water the wavelength is 224,900,569 / 4.99654e14 = 4.5011e-7 m, about 450.113 nm.
What wavelength does a 2.4 GHz signal have in fiber?
The frequency stays 2.400 GHz. The wavelength is 205,618,970 / 2.4e9 = 0.0856746 m, which the tool reports as 85.675 mm.
Questions
What is the speed of light in vacuum?
It is exactly 299,792,458 metres per second. The value is fixed by the SI definition of the metre and is listed by NIST as an exact constant.
Why does the wavelength change in water?
Light slows down in water to about c / 1.333. The frequency stays fixed, so a lower speed means a shorter wavelength.
Does frequency change when light enters a new medium?
No. The number of wave crests passing a point each second is set by the source. Only the speed and the wavelength change at a boundary.
Which refractive indexes does this page use?
Air uses 1.000293, water uses 1.333 and fiber uses 1.458 for fused quartz. These values come from the index table in OpenStax College Physics.
Can I use this for sound waves?
Not with the current medium list, which stores light speeds. The same relation λ = v / f works for sound, but you would need the speed of sound in your material.
How do I enter very large frequencies?
Type the full number of hertz, for example 500,000,000,000,000 for 500 THz. The result is displayed in a scaled unit such as THz or nm.
Sources
- NIST CODATA: speed of light in vacuum
- OpenStax College Physics 2e: 25.3 The Law of Refraction
- IUPAC Analytical Compendium: 1.3.6 Electromagnetic radiation