How Wi-Fi Actually Works
Electromagnetic radio waves, 2.4/5/6 GHz channels, CSMA/CA collision avoidance, and orthogonal frequency division multiplexing
“How does a Wi-Fi router transmit high-definition video, voice calls, and webpages through thin air without any physical cables?”
Wi-Fi does not broadcast continuous streams of light or mystical internet fog. It converts digital bits into microscopic phase and amplitude shifts across high-frequency electromagnetic radio waves (2.4 GHz, 5 GHz, and 6 GHz), negotiated over a strict half-duplex etiquette called CSMA/CA and focused in space using constructive wave interference (beamforming).
To understand the failure modes and edge cases detailed in this piece, we recommend familiarizing yourself with these foundational mechanisms first:
Quick Answer
Wi-Fi is not an invisible mist floating through a room, nor is it a miniature laser beam.
Wi-Fi is modulated electromagnetic radio radiation—identical in physical nature to FM radio, television broadcasts, and visible sunlight, but oscillating at billions of cycles per second (2.4 GHz, 5 GHz, and 6 GHz).
When you stream a video or send a message over Wi-Fi:
- Digital Bits Become Waves (Modulation): Your phone's Wi-Fi chip takes raw binary 1s and 0s and converts them into rapid microscopic shifts in the amplitude (height) and phase (timing) of an electromagnetic radio wave. Using 1024-QAM, a single radio pulse carries 10 bits of data simultaneously.
- Channel Division (OFDMA): The radio frequency is chopped into hundreds of independent, narrow sub-frequencies called subcarriers. Using Orthogonal Frequency-Division Multiplexing, these subcarriers overlap without interfering with one another because the peak of one wave aligns mathematically with the exact zero-point of its neighbor.
- Airspace Politeness (CSMA/CA): Air is a shared medium. If two phones and a router broadcast on the same frequency at the same instant, their radio waves collide and produce unintelligible static. To prevent this, Wi-Fi operates on a strict half-duplex etiquette: every device must listen to the air before speaking, rolling a randomized backoff dice timer if the channel is busy.
- Spatial Focusing (Beamforming): Modern routers use multi-antenna arrays. By emitting the radio wave from 4 or 8 separate antennas with calculated microsecond time offsets, the waves constructively combine in the direction of your phone and cancel each other out in empty corners of the room.
[ Binary Digital Data: 1101001011 ]
│
▼
[ Baseband Processor (1024-QAM) ] ──► Encodes bits into Amplitude & Phase shift
│
▼
[ CSMA/CA Contention Engine ] ──────► Listens to air; waits for silence
│
▼
[ RF Transceiver & Power Amp ] ─────► Generates 5 GHz / 6 GHz oscillating currents
│
▼
[ Antenna Array (Beamforming) ] ────► Radiates focused electromagnetic waves through air
│
▼ (Speed of Light in Air: ~300,000 km/s)
[ Client Smartphone Antenna ] ──────► Captures microvolt current & decodes binary bits
Phase 1: The Physics of Radio Waves
All wireless communication is governed by the laws of electromagnetism formulated by James Clerk Maxwell in 1865. All wireless communication is governed by the laws of electromagnetism formulated by James Clerk Maxwell in 1865. (To trace how humanity journeyed from electrostatic sparks and Volta's chemical battery to Faraday's electromagnetic induction and Maxwell's unified field equations, see How Humans Discovered Electricity.)
When an electric current moves back and forth along a metallic wire inside your router's antenna, the oscillating electrons generate an oscillating electric field. That electric field induces an oscillating magnetic field perpendicular to it. The two coupled fields detach from the wire and radiate outward through space at the speed of light ($c \approx 3 \times 10^8 \text{ m/s}$) as an electromagnetic wave.
Electric Field (Vertical)
▲ _ _
│ / \ / \
│ / \ / \
──────┼──/─────\─────────────────/─────\─────► Direction of Propagation
│ \ / \ /
│ \_/ \_/
▼ Magnetic Field (Horizontal)
Frequency, Wavelength, and Energy
Wi-Fi operates in three unlicensed Industrial, Scientific, and Medical (ISM) and UNII radio bands:
- 2.4 GHz ($2.4 \times 10^9$ cycles/second): Wavelength $\lambda = c / f \approx \mathbf{12.5\text{ cm}}$ (roughly the width of a coffee mug).
- 5 GHz ($5.0 \times 10^9$ cycles/second): Wavelength $\lambda \approx \mathbf{6.0\text{ cm}}$ (roughly the width of a credit card).
- 6 GHz ($6.0 \times 10^9$ cycles/second): Wavelength $\lambda \approx \mathbf{5.0\text{ cm}}$.
The physical trade-off is absolute:
- Lower frequencies (2.4 GHz) have longer wavelengths that bend around corners and penetrate solid materials more effectively, but offer narrower channels and slower data speeds.
- Higher frequencies (5 GHz and 6 GHz) have shorter wavelengths that attenuate rapidly through walls (as detailed in our companion explainer on Why Wi-Fi Gets Worse Through Walls), but offer massive, uncrowded bandwidth capable of multi-gigabit throughput.
Phase 2: From Binary Bits to Radio Waves (Modulation)
How do you transmit a high-definition video using an invisible sinusoidal radio wave?
You cannot simply turn the radio wave on and off like Morse code (Amplitude Shift Keying); doing so would only yield a few kilobits per second. Modern Wi-Fi uses Quadrature Amplitude Modulation (QAM).
Quadrature Amplitude Modulation (QAM)
A Wi-Fi transmitter generates two identical sinusoidal waves at the carrier frequency, but shifts one wave by 90 degrees out of phase:
- The In-Phase wave ($I$)
- The Quadrature wave ($Q$)
By independently varying the amplitude (voltage height) of both waves and summing them together, the transmitter creates a combined wave with a unique amplitude and phase angle.
Quadrature (Q)
▲
│ • (1101) • (1111)
│
│ • (1001) • (1011)
──────┼───────────────────────────────► In-Phase (I)
│ • (0001) • (0011)
│
│ • (0101) • (0111)
▼
16-QAM Constellation Grid (Each dot represents a distinct 4-bit symbol)
When plotted on a Cartesian coordinate plane, these unique wave combinations form a Constellation Diagram:
- BPSK (Binary Phase Shift Keying): 2 constellation points = 1 bit per symbol.
- 16-QAM: 16 constellation points = 4 bits per symbol.
- 256-QAM (Wi-Fi 5): 256 constellation points = 8 bits per symbol.
- 1024-QAM (Wi-Fi 6): 1,024 constellation points = 10 bits per symbol.
- 4096-QAM (Wi-Fi 7): 4,096 constellation points = 12 bits per symbol!
In 1024-QAM, every time the antenna emits a single radio cycle, it transmits a 10-bit chunk (e.g., 1011010011). If a router transmits 160 million symbols per second across wide channels, the data throughput reaches billions of bits per second.
However, as the constellation grid becomes denser, the points sit microscopic fractions of a volt apart. If slight electrical noise or a concrete wall distorts the signal, the receiver misinterprets the point, forcing the hardware to step down to simpler, robust modulations.
Phase 3: The Protocol Stack
The diagram below maps the layered architecture of modern Wi-Fi, from high-level application data down to radio radiation across the air:
Phase 4: Subdividing the Air — OFDM and OFDMA
If you transmit a single 80 MHz wide radio signal, atmospheric reflections and obstacles cause multipath fading—echoes of the signal bouncing off walls arrive fractions of a nanosecond late, creating destructive interference that mangles the signal.
Modern Wi-Fi eliminates this using Orthogonal Frequency-Division Multiplexing (OFDM).
Legacy Single Carrier:
[═══════════════════════════ 80 MHz Wide Band ═══════════════════════════]
(A single reflection or frequency dip destroys the entire data stream)
OFDM Multi-Carrier:
[ Sub 1 ][ Sub 2 ][ Sub 3 ] ... [ Sub 234 ][ Sub 235 ] ... [ Sub 1996 ]
(80 MHz divided into hundreds of narrow, resilient orthogonal subcarriers)
1. Mathematical Orthogonality
In traditional radio, if you place two radio stations too close together on the dial (e.g., 98.1 MHz and 98.2 MHz), they bleed into each other as static.
In OFDM, the subcarrier frequencies are spaced at exact mathematical intervals ($1 / T$, where $T$ is the symbol duration). At the exact frequency peak of subcarrier 1, the waveforms of all neighboring subcarriers cross zero amplitude. Because the adjacent signals have zero power at that exact sampling point, hundreds of subcarriers can overlap tightly without any guard bands, maximizing spectral efficiency.
2. Wi-Fi 6 OFDMA: Resource Units
In older Wi-Fi (Wi-Fi 4 and 5), when a router communicated over a channel, that entire channel was monopolized by a single device for the duration of the packet. If an IoT lightbulb wanted to send a 20-byte status update, it locked the entire 80 MHz channel, forcing 4K streaming laptops to wait.
Wi-Fi 6 (802.11ax) introduced Orthogonal Frequency-Division Multiple Access (OFDMA), borrowed from 4G/5G cellular technology.
The router subdivides the channel into Resource Units (RUs) (groups of 26, 52, 106, or 242 subcarriers). Within a single transmission frame, the router can assign 26 subcarriers to a smart thermostat, 106 subcarriers to a tablet, and 484 subcarriers to a gaming PC—transmitting to and receiving from multiple devices simultaneously.
Phase 5: Airspace Etiquette — CSMA/CA (Half-Duplex)
A wired Ethernet cable has dedicated physical copper pairs: one pair transmits electricity while an entirely separate pair receives electricity (full-duplex).
Wi-Fi is half-duplex. A Wi-Fi radio cannot transmit and receive on the same frequency at the exact same moment:
- When a router's power amplifier transmits, it pumps roughly 100 to 1,000 milliwatts ($+20\text{ dBm}$ to $+30\text{ dBm}$) of RF energy directly into its antenna.
- When it listens for a smartphone across the room, the arriving signal is a microscopic whisper: roughly 0.0000001 milliwatts ($-70\text{ dBm}$ to $-85\text{ dBm}$).
- If the router tried to listen while transmitting, its own transmitter would blast its receiver with an incoming signal one billion times louder than the client's signal, completely blinding its analog-to-digital converters.
Because all devices share the open air, Wi-Fi enforces a strict conversation protocol: Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA).
Device has data to transmit
│
▼
[ Clear Channel Assessment (CCA) ]
Does antenna detect energy > -82 dBm?
│
├──► YES: Air is BUSY!
│ Wait for transmission to finish.
│ Draw random Backoff Timer (e.g. 14 slots).
│ Pause countdown whenever someone speaks.
│
└──► NO: Air is IDLE!
Wait DIFS interval (Dcf Inter-Frame Space ~34 µs).
Countdown Backoff Timer to 0.
│
▼
[ Transmit 802.11 Data Frame ]
│
▼
[ Await Unicast ACK from Receiver ]
Received ACK?
│
├──► YES: Transmission Successful!
└──► NO: Collision detected! Double contention window & retry.
1. Clear Channel Assessment (CCA)
Before transmitting a single byte, the device executes Carrier Sense:
- It samples the RF energy in the band.
- If it detects a recognizable 802.11 preamble with signal strength above $-82\text{ dBm}$ (or any raw electromagnetic noise above $-62\text{ dBm}$), it declares the channel busy and defers.
2. Random Backoff & Contention
If five devices are waiting for a busy channel to clear, they must not all speak the instant the channel falls silent, or they will collide instantly.
Each device picks a random integer from a Contention Window (e.g., between 0 and 15 slots, where each slot is 9 microseconds).
- Device A picks 3.
- Device B picks 11.
- Device C picks 8.
All devices listen while counting down. After 3 slots, Device A reaches zero and begins transmitting. Devices B and C hear Device A's signal, freeze their timers at 8 and 5 respectively, wait for Device A to finish, and resume counting down from where they left off.
If two devices coincidentally pick the same slot number, their signals collide. The receiving router fails to decode the frame and emits no Acknowledgment (ACK). Sensing the missing ACK, both senders double their random contention window (0 to 31, then 0 to 63) and retry—a mechanism known as Exponential Backoff.
Phase 6: Antennas, MIMO, and Beamforming
Early Wi-Fi routers featured a single antenna that broadcast radio waves equally in all spherical directions like a lightbulb. Over 95% of the radiated energy was wasted hitting walls, ceilings, and empty corners.
Modern Wi-Fi 6 and 7 routers utilize MIMO (Multiple-Input Multiple-Output) and Explicit Beamforming.
Without Beamforming (Omnidirectional):
( ( ( Router ) ) )
5% energy to phone, 95% wasted into walls
With Beamforming (Phased Array Superposition):
Antenna 1: ──~~~~\
Antenna 2: ───~~~~──► Waves align constructively ──► [ Smartphone ]
Antenna 3: ──~~~~/ (Peak matches Peak = +6 to +9 dB boost)
Antenna 4: ──~/
1. The Physics of Wave Interference
When two water ripples meet in a pond:
- If two wave crests meet, they add together to form a crest twice as tall (constructive interference).
- If a wave crest meets a wave trough, they cancel each other out into flat water (destructive interference).
2. Phased Array Beamforming
A modern router with 4 or 8 antennas does not broadcast the identical signal simultaneously.
The router's digital signal processor (DSP) introduces microsecond phase delays to each individual antenna:
- The wave from Antenna 1 is emitted at time $t = 0$.
- The wave from Antenna 2 is emitted at $t = +12\text{ picoseconds}$.
- The wave from Antenna 3 is emitted at $t = +24\text{ picoseconds}$.
Because the radio waves travel at different angles, the wavefronts constructively reinforce each other in the exact 3D spatial coordinate where your smartphone is sitting, delivering a signal that is 4 to 8 times stronger ($+6\text{ dB}$ to $+9\text{ dB}$), while canceling each other out in directions where no devices exist.
3. Spatial Multiplexing (MIMO)
If your router has 4 antennas and your laptop has 2 antennas, the system does not just send the same data stronger—it can send two completely independent streams of data at the same time on the exact same frequency.
Because the two laptop antennas are separated by a few centimeters, each antenna receives a slightly different mixture of direct and reflected radio waves. Using complex linear algebra (matrix inversion), the laptop's baseband processor solves the simultaneous equations:
$$\begin{bmatrix} Y_1 \ Y_2 \end{bmatrix} = \mathbf{H} \begin{bmatrix} X_1 \ X_2 \end{bmatrix} + \mathbf{N}$$
Where $\mathbf{H}$ is the channel state matrix and $X_1, X_2$ are the independent data streams. The laptop cleanly separates the two streams, effectively doubling wireless throughput without consuming extra radio spectrum.
Wi-Fi Generations Compared
Over twenty-five years, the IEEE 802.11 working group has systematically conquered physical bottlenecks:
| Generation | IEEE Standard | Year | Frequencies | Max QAM | Channel Width | Peak PHY Rate |
|---|---|---|---|---|---|---|
| Wi-Fi 4 | 802.11n | 2009 | 2.4 GHz, 5 GHz | 64-QAM (6 bits) | Up to 40 MHz | 600 Mbps |
| Wi-Fi 5 | 802.11ac | 2013 | 5 GHz only | 256-QAM (8 bits) | Up to 160 MHz | 6.9 Gbps |
| Wi-Fi 6 / 6E | 802.11ax | 2021 | 2.4, 5, 6 GHz | 1024-QAM (10 bits) | Up to 160 MHz | 9.6 Gbps |
| Wi-Fi 7 | 802.11be | 2024 | 2.4, 5, 6 GHz | 4096-QAM (12 bits) | Up to 320 MHz | 46 Gbps |
Why This Architecture Matters
Wi-Fi is a masterclass in electrical engineering: it achieves high-speed data transmission through an unguided, uncontrolled, and hostile physical medium.
Unlike fiber-optic cables that channel laser photons through pure silica glass, Wi-Fi must survive microwave ovens leaking 2.4 GHz radiation, neighboring apartments broadcasting on overlapping channels, moving humans absorbing RF energy, and multi-path echoes bouncing off concrete walls.
By orchestrating dense QAM constellations, orthogonal subcarrier mathematics, CSMA/CA airtime politeness, and constructive antenna wave superposition, Wi-Fi creates the illusion of a wire—allowing gigabits of human knowledge, video, and commerce to fly through the air at the speed of light.
To understand why Wi-Fi signals collapse in signal strength and speed when passing through concrete walls and human bodies, read our companion explainer on Why Wi-Fi Gets Worse Through Walls. To explore how packets travel from your local home router across subsea ocean cables, read How the Internet Actually Works or trace how those packets resolve into web pages in What Happens When You Type a Website Address.
Where to Go From Here
Explore companion architectures or dive deeper into downstream mechanisms.
Verified Specifications & Architectural References
This explainer is grounded in primary-source engineering specifications, regulatory circulars, and standard documentation.
IEEE Std 802.11-2020: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications
Foundational international engineering standard governing wireless local area networks, frame architectures, CSMA/CA contention, and OFDM modulations.
IEEE Std 802.11ax-2021: Enhancements for High Efficiency WLAN
Wi-Fi 6 specification introducing Orthogonal Frequency-Division Multiple Access (OFDMA), 1024-QAM, target wake time, and multi-user MIMO.
Wireless Communications (Andrea Goldsmith)
Authoritative academic textbook detailing RF propagation, multi-path fading, QAM constellation geometry, and Shannon channel capacity.
Recommendation ITU-R M.1450: Characteristics of broadband radio local area networks
Global radio communications treaty recommendations specifying unlicensed frequency bands, maximum equivalent isotropically radiated power (EIRP), and spectral emission masks.