The 2.4 GHz Wi-Fi band has channels numbered 1 through 14 (depending on country). Channels are spaced 5 MHz apart, but each Wi-Fi signal is 22 MHz wide. Do the math: a channel 1 signal actually spreads from roughly channel -1 to channel 4. A channel 3 signal stretches from 1 to 6.
So when two routers pick "different but adjacent" channels, their radio waves still overlap, and the radios have to take turns talking. Throughput drops on both.
On 2.4 GHz, channels 1, 6, and 11 are exactly 22 MHz apart. They are the only three channels that do not overlap. In a typical apartment block, you should see most routers using these three. If yours is on channel 4 because it was set to "Auto", you are colliding with neighbours on both sides.
That is the whole rule. Pick 1, 6, or 11 - whichever shows the least competition in a Wi-Fi scan.
On 5 GHz, channels are spaced 20 MHz apart and most non-overlapping pairs are actually non-overlapping. There are far more channels available (around 25 in the US, fewer in the UK and EU), and many of them are unused even in dense buildings.
The catch on 5 GHz is DFS channels. Some channels are shared with weather radar and military systems. Routers have to listen for radar signals and stop transmitting if they detect one. In areas near an airport or weather station, devices on DFS channels can get kicked off the air for minutes at a time. If your "5 GHz seems flaky", DFS is the likely cause.
One small note: iOS apps cannot see the list of nearby networks the way Android can. Apple restricts that API for privacy. You can still see your own network's channel, signal strength, and a few other details, plus the LAN devices connected. For a full neighbourhood scan, a laptop is more useful.
Routers can use 20, 40, 80, or 160 MHz channel widths. Wider channels carry more data per second but take up more of the band, increasing overlap. In a crowded environment, 20 MHz is sometimes faster than 80 MHz because it is fighting fewer collisions. If 5 GHz feels slow despite a clear channel, try narrowing the channel width in your router.
See your Wi-Fi channel, signal strength, and run speed tests. Scan devices on your home network. · iPhone & iPad