When Does a Fetus Have Brain Waves and Feel Pain?

The earliest electrical activity in a fetal brain appears around 5 to 6 weeks after conception (roughly 7 to 8 weeks of gestational age). These first signals are extremely rudimentary, forming in the spinal cord as the very first synapses connect. From there, brain electrical activity develops gradually over the entire pregnancy, with each stage looking fundamentally different from the one before it. There is no single moment when brain waves simply “switch on.”

The First Electrical Signals

Around five weeks after conception, the fetus forms its first synapses in the spinal cord. These early connections produce detectable electrical activity, but calling them “brain waves” in any meaningful sense would be misleading. At this stage, the brain is little more than a tube of rapidly dividing cells. There is no cortex, no organized tissue capable of thought or sensation. The electrical signals are spontaneous flickers between newly connected neurons, serving as construction signals that help guide further brain development.

Between 8 and 12 weeks post-conception, synapses begin forming in the outermost layers of what will become the cerebral cortex, specifically in a temporary structure called the subplate and in the marginal zone above it. The dense core of the developing cortical plate itself remains synapse-free during this period. These “pioneering” synapses play a structural role: they help organize the basic architecture of brain circuitry rather than processing any kind of information.

Cortical Activity Begins Around 20 Weeks

By about 20 to 21 weeks of gestation, neurons in the subplate layer produce spontaneous electrical patterns that resemble, in a very primitive way, the slow oscillations seen in an adult brain during deep sleep. Researchers studying human fetal cortex tissue at this age found sustained bursts of electrical firing that look like a rudimentary version of the “UP and DOWN states” characteristic of mature cortical activity. These signals are unsynchronized and occur without any sensory input, essentially the brain rehearsing its electrical vocabulary before it has anything to say.

This subplate layer is unique to fetal development. It forms the brain’s first functional network during the first and second trimesters, then gradually disappears after birth as mature cortical circuits take over. Its role in fetal experience is one of the most debated questions in neuroscience.

When Brain Waves Become Organized

The period between 24 and 31 weeks of gestation marks a critical transformation. This is when the thalamus, the brain’s sensory relay station, begins forming functional connections to the cortex. These thalamocortical connections are the wiring that allows sensory information from the body to reach the brain’s processing centers. The peak increase in this connectivity occurs between weeks 29 and 31, right as nerve fibers begin establishing synapses with cortical neurons.

EEG recordings from premature infants born during this window show a distinctive pattern: short bursts of higher electrical activity alternating with quiet periods of near-silence, with the quiet gaps lasting 6 to 12 seconds. This “discontinuous” pattern is the hallmark of a very immature brain. Between 30 and 34 weeks, the periods of continuous activity grow longer, and the brain starts showing some reactivity to outside stimulation for the first time.

By around 30 weeks, fragments of adult-like brain network patterns become detectable. Synapse formation also expands dramatically during this phase. Between 22 and 26 weeks, synapses finally penetrate into the cortical plate itself, occupying roughly the deeper two-thirds of it by 26 weeks. This creates three distinct synapse-rich layers working together for the first time.

Sleep-Wake Cycles and Mature Patterns

Between 35 and 37 weeks of gestation, fetal brain activity begins resembling that of a full-term newborn. Researchers using fetal magnetoencephalography (the only non-invasive method for recording brain activity in utero) found that 35 weeks is a meaningful threshold: brain wave patterns shift noticeably around this age, with the odds of immature discontinuous patterns dropping about 6% each week.

By 37 to 40 weeks, the EEG becomes continuous during both waking and active sleep, meaning the brain maintains steady electrical activity rather than flickering on and off. The frequency of brain waves also increases substantially. Fetuses in the earlier group (before 35 weeks) showed average frequencies around 11 to 12 Hz, while those in the later group averaged 18 to 19 Hz. True continuous activity across all states, including quiet sleep, is typically reached by about 44 to 46 weeks (a few weeks after a typical full-term birth).

What This Means for Pain and Awareness

The question of when brain waves appear is closely tied to questions about fetal pain and consciousness, and the answer depends heavily on which brain structures you consider sufficient. Two competing frameworks dominate the scientific discussion.

The more established view holds that conscious pain perception requires functional thalamocortical connections, the pathways linking the thalamus to the cortex that don’t form until after 24 to 28 weeks of gestation. The American College of Obstetricians and Gynecologists states that a fetus does not have the capacity to experience pain until at least 24 to 25 weeks, because the brain structures and connections needed to process pain signals are not yet in place. The neural circuitry required to distinguish touch from painful touch develops even later, in the final weeks of the third trimester.

A second, more contested hypothesis suggests that the subplate and subcortical structures could potentially support some form of pain perception earlier, possibly before 24 weeks. Proponents point to the subplate’s role as the brain’s first functional network and its connections to deeper brain structures. This remains a minority position, and the distinction between a reflexive withdrawal response (which occurs much earlier) and the conscious experience of pain is central to the disagreement.

How Fetal Brain Activity Is Measured

Measuring brain waves before birth is extraordinarily difficult. The magnetic fields generated by a fetal brain are roughly a trillion times weaker than Earth’s magnetic field. Fetal magnetoencephalography uses superconducting sensors so sensitive they must operate in magnetically shielded rooms to filter out environmental interference. The mother leans forward with her abdomen resting against an array of 151 sensors, and the system detects the tiny magnetic fields that pass through her body tissue and bones without distortion.

This technology offers excellent timing precision (it can capture rapid changes in brain activity) but limited ability to pinpoint exactly where in the brain the signals originate. Fetal MRI can also detect brain activation, but with different trade-offs. Most of what we know about fetal brain wave patterns at very early gestational ages comes not from in-utero recordings but from EEG studies of premature infants born at various stages, combined with tissue studies of fetal brain samples. Each method reveals a different piece of the developmental puzzle, and none of them can fully capture what is happening inside the brain of a fetus still in the womb.