Sub topic 4
Channels and how they are numbered
This chapter assumes you know what a frequency and a band are, and that Wi-Fi uses the 2.4, 5 and 6 GHz bands from the previous chapter. It explains how a channel number maps to a radio frequency. It also covers the special cases that cause most mistakes and shows how to read channel data from a real scan.
What a channel is
A channel is a named slice of a band. The access point and its clients tune their radios to the slice's center frequency and exchange data within a fixed range around it. Channels give people a short way to say "which part of the band" without quoting megahertz values.
Three terms are easy to confuse:
- Channel number: a small integer such as 1, 6 or 36. It is a label, not a measurement.
- Center frequency: the middle of the slice, in MHz. For example, channel 6 on 2.4 GHz is centered at 2437 MHz.
- Channel width: how much spectrum the transmission occupies around the center, such as 20 MHz. The next chapter covers width in detail.
The number and the center frequency are related by a formula, but the number alone does not tell you the band. Channel 1 exists in all three bands, and each one is at a different frequency. When you read a channel number, you also need the band.
The numbering rule
Channel numbers count in steps of 5 MHz from a base frequency that depends on the band. The general rule is:
center frequency (MHz) = base + 5 × channel number
| Band | Channel numbers | Base (MHz) | Example |
|---|---|---|---|
| 2.4 GHz | 1 to 13 | 2407 | Channel 1 is 2412 MHz |
| 2.4 GHz | 14 | special case | 2484 MHz |
| 5 GHz | 1 to 196 (in practice 36 to 177) | 5000 | Channel 36 is 5180 MHz |
| 6 GHz | 1 to 233 | 5950 | Channel 1 is 5955 MHz |
| 6 GHz | 2 | special case | 5935 MHz |
The 5 MHz step is a unit of numbering. It is not the width of a channel. A 20 MHz channel is four numbering steps wide, which is why neighboring 2.4 GHz channels overlap.
Special cases
Two exceptions break the formula:
- 2.4 GHz channel 14 is at 2484 MHz, not 2477 MHz. The formula would give 2407 + 70 = 2477, but channel 14 sits 12 MHz above channel 13. It is allowed only in Japan, and only for 802.11b.
- 6 GHz channel 2 is at 5935 MHz. The formula would give 5960 MHz. Channel 2 is a separate 20 MHz channel below the regular 6 GHz grid, and it is rarely used.
Most other numbers in the 5 GHz and 6 GHz tables are never used by a given access point. Regulators allow only some of them in each country, and wider channels use only certain numbers. For example, 20 MHz channels in the 6 GHz band are numbered 1, 5, 9, 13 and so on, in steps of 4 numbers (20 MHz). The numbers in between exist for the formula's sake and are used for center frequencies of wider channels.
Converting numbers to frequencies
The function below implements the table. It is the same rule written as code, including both special cases.
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)) # 5955The function takes the band as an argument because the same number maps to different frequencies. It raises ValueError for anything outside the known ranges. That is better than returning a wrong frequency silently.
Why the 2.4 GHz numbers are so close together
On 2.4 GHz, channel 1 is at 2412 MHz and channel 2 is at 2417 MHz. A 20 MHz transmission centered on channel 1 therefore covers about 2402 to 2422 MHz, which includes the center of channels 2, 3 and 4. Two access points on channels 1 and 4 are 15 MHz apart and overlap heavily. Channels 1 and 6 are 25 MHz apart and do not overlap.
The following code checks this by comparing center spacing with channel width.
def channel_center_mhz_24(channel):
return 2407 + 5 * channel # channels 1-13 only
def overlaps_24(ch_a, ch_b, width_mhz=20):
"""Treat two same-width channels as overlapping if their centers are closer than the width."""
spacing = abs(channel_center_mhz_24(ch_a) - channel_center_mhz_24(ch_b))
return spacing < width_mhz
print(overlaps_24(1, 6)) # False: centers are 25 MHz apart
print(overlaps_24(1, 4)) # True: centers are 15 MHz apart
print(overlaps_24(6, 11)) # False: centers are 25 MHz apartThis is a simplified model. Real transmissions have a spectral mask, which means they leak some energy outside the nominal width, so channels 1 and 5 may still disturb each other slightly. The rule "closer than the width means overlap" is a good first approximation, and the later chapter on interference refines it.
How channel numbers are spread across a band
The three bands differ in how many non-overlapping 20 MHz channels they offer.
The values are approximate. The 2.4 GHz count assumes the 1, 6 and 11 plan. The 5 GHz count depends on the country and on whether DFS channels are allowed. The 6 GHz count (59) applies where the full 5925 to 7125 MHz range is open, as in the United States. Many countries open only part of it.
Regulatory limits on numbers
Which channel numbers you may use depends on the regulatory domain, meaning the country or region whose rules apply to the device.
- In the United States, 2.4 GHz channels 1 to 11 are allowed. Most of the rest of the world allows 1 to 13.
- Some 5 GHz channels require DFS (radar detection), which a later chapter covers.
- Some 6 GHz channels or sub-ranges are unavailable in some countries.
A device set to the wrong country code may not see an access point that is on a channel its own region forbids. If a client cannot find a network that other devices see, a regulatory mismatch is one possible cause.
Reading channels from a real scan
On Linux, the iw tool reports the frequency of your current link and of nearby access points.
# 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:'The tool reports frequencies in MHz, not channel numbers. To get the channel, invert the formula. For example, freq: 2437 gives (2437 − 2407) / 5 = 6, so it is 2.4 GHz channel 6. A frequency of 5180 gives (5180 − 5000) / 5 = 36. The frequency also identifies the band, which resolves the ambiguity of reusing numbers.
Collecting the frequencies from a scan and counting them shows which channels are crowded. If most networks sit on channel 6, moving to 1 or 11 may help, a topic the planning chapter covers.
Common mistakes
- Treating the channel number as a frequency. Channel 36 is not 36 MHz.
- Forgetting the band. "Channel 1" is meaningless without 2.4, 5 or 6 GHz.
- Applying the 2.4 GHz formula to channel 14, or the 6 GHz formula to channel 2.
- Assuming that adjacent numbers are separate. On 2.4 GHz, adjacent numbers overlap almost completely.
- Assuming a 5 GHz channel number is usable. Regulation and channel width restrict which numbers an access point can pick.
Exercise
A scan shows an access point at freq 5955 MHz and another at freq 2462 MHz. What are their bands and channel numbers?
Show answer
5955 MHz is in the 6 GHz band, so the channel is (5955 − 5950) / 5 = 1. 2462 MHz is in the 2.4 GHz band, so the channel is (2462 − 2407) / 5 = 11.
Exercise
Explain why 2.4 GHz channels 3 and 6 overlap even though their numbers differ by 3.
Show answer
Channel numbers are 5 MHz apart, so channels 3 and 6 have centers 15 MHz apart (2422 and 2437 MHz). A standard 20 MHz channel is wider than that spacing, so the two transmissions share part of the spectrum.