Sub topic 2
The 2.4, 5 and 6 GHz bands
This chapter assumes you know what a frequency and a channel are in general terms, and that you can tell a router from an access point. It also assumes you can read short Python and shell snippets. Here you will see what each Wi-Fi band offers, what it costs, and how to read a channel number as a frequency.
What a band is
A band is a contiguous slice of radio spectrum set aside for a use. Wi-Fi uses three: 2.4 GHz, 5 GHz and 6 GHz. Each band is later divided into channels, which the next chapter covers. Regulators decide how much of each band you may use, so the usable range varies by country.
| Band | Approximate range | Typical amount of spectrum | Introduced with |
|---|---|---|---|
| 2.4 GHz | 2400 to 2483.5 MHz | About 83 MHz | 802.11b |
| 5 GHz | 5150 to 5895 MHz, in sub-ranges | Several hundred MHz, varies by region | 802.11a |
| 6 GHz | 5925 to 7125 MHz | Up to 1200 MHz, varies by region | 802.11ax (Wi-Fi 6E) |
Trade-offs between the bands
Lower frequencies travel farther and pass through walls better. Higher frequencies carry more spectrum, so they allow wider channels and more capacity, but their signal fades faster.
- 2.4 GHz: the best range and wall penetration, but very little spectrum. It is also shared with Bluetooth, microwave ovens and many other devices, so it is usually the most crowded.
- 5 GHz: much more spectrum and less congestion. Range is shorter. Some sub-ranges require Dynamic Frequency Selection, which is covered in a later chapter.
- 6 GHz: the most spectrum and no legacy devices, because only Wi-Fi 6E and newer radios can use it. Range is similar to or a little shorter than 5 GHz.
From channel number to frequency
Each band numbers its channels so that the number maps to a center frequency in 5 MHz steps from a base value. The function below encodes the rules, including two special cases: 2.4 GHz channel 14 (2484 MHz, allowed only in some places) and 6 GHz channel 2 (5935 MHz).
def channel_center_mhz(band, channel):
"""Return the center frequency in MHz for a Wi-Fi channel number."""
if band == "2.4":
if channel == 14:
return 2484
if 1 <= channel <= 13:
return 2407 + 5 * channel
elif band == "5":
if 1 <= channel <= 196:
return 5000 + 5 * channel
elif band == "6":
if channel == 2:
return 5935
if 1 <= channel <= 233:
return 5950 + 5 * channel
raise ValueError(f"unknown channel {channel} in band {band}")
print(channel_center_mhz("2.4", 1)) # 2412
print(channel_center_mhz("2.4", 6)) # 2437
print(channel_center_mhz("5", 36)) # 5180
print(channel_center_mhz("6", 1)) # 5955Channel numbers repeat across bands. Channel 1 in 2.4 GHz and channel 1 in 6 GHz are different frequencies, so always pair a channel number with its band.
Checking your own band
On Linux, iw reports the frequency of your current link. The frequency tells you the band at once: values near 2400 are 2.4 GHz, near 5000 to 5900 are 5 GHz, and above 5925 are 6 GHz.
# Show the current connection (interface name may differ, for example wlp2s0)
iw dev wlan0 link
# List nearby networks with their frequency, signal level and SSID
sudo iw dev wlan0 scan | grep -E 'freq:|signal:|SSID:'Exercise
A scan shows a network at freq: 5180. Which band is it in, and which channel number does that correspond to?
Show answer
It is in the 5 GHz band. Using frequency = 5000 + 5 × channel, channel = (5180 − 5000) / 5 = 36.
Exercise
Why might a 2.4 GHz network reach a distant room when a 6 GHz network does not?
Show answer
Lower frequencies lose less signal over distance and through walls, so 2.4 GHz usually has longer range. 6 GHz trades that range for more spectrum.