Speed of Light Calculator
Convert between the wavelength and frequency of light using the speed of light. Enter one and the calculator works out the other.
This calculator converts between the wavelength and frequency of an electromagnetic wave using the exact vacuum speed of light, 299,792,458 m/s. At the default 1 GHz it returns 0.2998 m, about 30 cm, which is a UHF radio wave. Enter a wavelength instead and it returns the frequency, so the relationship works in both directions.
The formula
Frequency is in hertz and wavelength in metres. Rearranged, λ = c ÷ f and f = c ÷ λ. Because c is a defined constant rather than a measured one since 1983, the conversion is exact to the metre definition: the metre is the distance light travels in 1 ÷ 299,792,458 of a second.
The relationship spans 20 orders of magnitude. Long-wave radio at 30 kHz has a 10 km wavelength, while a 1 GeV gamma ray has a wavelength near 1.2 × 10⁻¹⁵ m. The same division handles both, and the only care needed is keeping the powers of ten straight.
Why 3 × 10⁸ is a rounding
The familiar 3 × 10⁸ m/s is 0.07% high, which is fine for estimating a 3 m FM wavelength but not for timing a satellite link. At 1 GHz the exact figure gives 0.2998 m while the rounded one gives 0.3000 m, a difference of 0.2 mm. Over a 36,000 km geostationary path, 0.07% is 25 km of range error.
Worked example at the defaults
Take f = 1 × 10⁹ Hz. Divide c by f: 299,792,458 ÷ 1,000,000,000 = 0.2998 m. Reverse it with the same numbers: 299,792,458 ÷ 0.2998 = 1.0 × 10⁹ Hz, so the conversion round-trips cleanly.
Apply it to a microwave oven at 2.45 GHz: 299,792,458 ÷ 2.45 × 10⁹ = 0.1224 m, about 12.2 cm. The perforated mesh on the door has holes around 3 mm, which is 1 ÷ 40 of the wavelength, far too small to let the wave through. That ratio, not the thickness of the metal, is what keeps the oven sealed.
- At 100 MHz an FM wave is 2.998 m long, so a quarter-wave antenna is 0.75 m
- At 5 GHz a Wi-Fi wave is 5.996 cm, which is why the antennas fit on a laptop lid
- At 500 nm visible light the frequency is 599.6 THz
Wavelength by band
| Band | Frequency | Wavelength | Typical use |
|---|---|---|---|
| Long wave radio | 100 kHz | 3.00 km | Navigation beacons |
| AM broadcast | 1 MHz | 300 m | AM radio |
| FM broadcast | 100 MHz | 2.998 m | FM radio |
| Wi-Fi 2.4 GHz | 2.4 GHz | 12.5 cm | Wireless LAN |
| 5G millimetre wave | 28 GHz | 10.7 mm | High-band 5G |
| Visible light | 600 THz | 499.7 nm | Human vision |
The table runs from kilometres to nanometres, yet every row obeys the same division. Antenna design uses the ratio directly: a half-wave dipole at 100 MHz is 1.50 m long, and at 2.4 GHz it is 6.2 cm. Scaling an antenna to a new band is therefore a matter of scaling its length by the ratio of frequencies.
What moves the number
- Frequency and wavelength are inversely related, so ten times the frequency is one-tenth the wavelength
- The medium changes speed, not frequency: glass at n = 1.5 slows light to 2.0 × 10⁸ m/s
- The vacuum value is exact, so any error in a result comes from rounding the input
- Atmospheric refraction changes direction slightly but not the vacuum conversion
- For radio in a coaxial cable, the velocity factor of 0.66–0.85 shortens the physical wavelength
Light in glass and fibre
Inside a medium, light slows to c ÷ n, where n is the refractive index. Glass at n = 1.5 gives 199,861,639 m/s, two-thirds of the vacuum value, and the wavelength shortens by the same factor while the frequency stays fixed. A 1,550 nm fibre signal therefore has a 1,033 nm wavelength inside the core, which matters for grating design but not for the photon energy.
Latency in networks
Light in vacuum covers 299.8 km in a millisecond. In fibre at a velocity factor near 0.68 it covers about 204 km per millisecond, so a 10,000 km route adds at least 49 ms each way. That floor, not router processing, is why intercontinental round trips cannot fall below about 100 ms.
Frequency, wavelength and energy together
Wavelength and frequency carry the same information, but energy depends on frequency alone: E = hf. A 500 nm photon at 599.6 THz carries 2.48 eV, and a 250 nm photon at 1.199 PHz carries 4.96 eV. Doubling the frequency doubles the energy while halving the wavelength, so the two descriptions stay consistent.
This is why astronomers quote spectral lines by wavelength in nanometres while radio engineers quote frequency in gigahertz. Both describe the same wave, and the conversion here is the bridge between the two conventions.
Mistakes with the conversion
- Entering frequency in megahertz or gigahertz without multiplying by 10⁶ or 10⁹
- Entering wavelength in nanometres and reporting metres, a factor of 10⁹ error
- Using 3 × 10⁸ where the exact constant is needed for timing or ranging
- Applying the vacuum speed inside glass or cable without the refractive index or velocity factor
A check that catches most slips: 1 GHz must give about 30 cm and 100 MHz must give about 3 m. If your 1 GHz answer is 30 km or 3 mm, the frequency was off by a factor of a thousand in one direction or the other.
Frequently asked questions
What is the formula for the speed of light?
c = λ × f, with c = 299,792,458 m/s in vacuum. A 1 GHz wave has a wavelength of 0.2998 m.
How do I convert frequency to wavelength?
Divide the speed of light by the frequency. At 100 MHz, 299,792,458 ÷ 10⁸ = 2.998 m.
Why is wavelength shorter at higher frequency?
The speed is fixed, so a wave that oscillates more often must fit each cycle into less distance. Doubling 500 MHz to 1 GHz halves the wavelength from 0.5996 to 0.2998 m.
What is the wavelength of 2.4 GHz Wi-Fi?
299,792,458 ÷ 2.4 × 10⁹ = 0.1249 m, or 12.5 cm. A half-wave antenna for that band is 6.2 cm long.
How long is a 500 nm light wave in frequency?
299,792,458 ÷ 500 × 10⁻⁷ = 5.996 × 10¹⁴ Hz, or 599.6 THz.
Is 3 × 10⁸ m/s accurate enough?
It is 0.07% high. That is fine for estimating a 3 m FM wavelength, but over a 36,000 km satellite path it becomes a 25 km error, so use 299,792,458 for timing work.
Does light slow down in glass?
Yes, to c ÷ n. At n = 1.5 the speed is 199,861,639 m/s and the wavelength shortens by a third, while the frequency stays unchanged.
How far does light travel in a millisecond?
299.8 km in vacuum, and about 204 km in fibre with a 0.68 velocity factor. A 10,000 km fibre link therefore takes at least 49 ms each way.
What is the wavelength of 28 GHz 5G?
299,792,458 ÷ 28 × 10⁹ = 10.7 mm, which is why that band is called millimetre wave and why its antennas are small but easily blocked.
Method and sources
- The speed of light in vacuum is c = 299,792,458 m/s. Wavelength λ and frequency f are related by c = λ f.