Rain from the galaxy
Earth is constantly bombarded by cosmic rays, mostly protons and atomic nuclei accelerated to enormous energies by exploding stars and other violent events, plus particles from the Sun. When they hit the upper atmosphere, they collide with nitrogen and oxygen nuclei and create cascades of secondary particles, including neutrons, that shower down. At sea level, a standard reference figure used by the chip industry is about 13 energetic neutrons crossing each square centimetre every hour. Most pass harmlessly through people and buildings. But inside a microchip, where a stored bit may be represented by a tiny amount of electrical charge, one unlucky strike can be enough to change data.
How a bit flips
Computer memory stores each bit as a state in a microscopic circuit: charge held in a capacitor in DRAM, or a pair of transistors locked in one of two states in SRAM. When a neutron collides with a silicon nucleus in a chip, the debris from that collision can free a burst of electrical charge along its path. If that charge reaches a sensitive node, the cell can switch from 0 to 1 or 1 to 0. Engineers call this a single-event upset, or soft error, because the hardware is not damaged; the next value written will be stored normally. Traces of radioactive elements in chip packaging can produce the same effect.
When it matters
A single flipped bit in a photo might change the colour of one pixel. In the wrong place, it can matter much more. In a 2003 election in Schaerbeek, Belgium, one candidate received exactly 4,096 extra votes on an electronic voting system, a number equal to 2 to the power of 12, consistent with one bit flipping in a stored count. The discrepancy was caught because the total exceeded what was possible. Bit flips have also been suspected in server crashes and unexplained software faults. Because data centres hold petabytes of memory, even rare events occur regularly across a large fleet, which is why reliability engineers treat them as a statistical certainty.
Error-correcting memory
The main defence is error-correcting code memory, or ECC. Alongside every 64 bits of data, it stores 8 extra check bits calculated from the data, a 12.5 per cent overhead. When data is read back, the memory controller recalculates the checks. If one bit has flipped, the pattern of mismatches pinpoints which bit and corrects it; if two have flipped, the error is detected and reported. Servers, workstations and network equipment routinely use ECC, while most phones and laptops have relied on cheaper memory without it, accepting a small risk. Processors also protect their internal caches with similar codes, and storage drives and network links use their own error-checking.
Altitude and orbit
The risk rises with height. The atmosphere absorbs most cosmic-ray energy, so the neutron rate at cruising altitude for airliners is roughly a few hundred times higher than at sea level. Aircraft electronics are therefore designed and tested for soft errors, often with redundant computers that compare their outputs. In space, where there is no atmosphere at all, spacecraft face direct cosmic rays and trapped radiation. Engineers use radiation-hardened chips built with larger, more robust cells, run three copies of critical circuits and let them vote on the answer, and periodically ‘scrub’ memory by reading and correcting it before errors accumulate. Missions to Jupiter, with its intense radiation belts, need extra shielding.
Smaller chips, new trade-offs
As transistors shrink, each memory cell holds less charge and is easier to upset, but it also presents a smaller target. Overall, error rates per bit have improved in some technologies while the sheer number of bits has exploded, so total errors per system can rise. Large artificial-intelligence training clusters, with thousands of processors running for weeks, have renewed attention to silent data corruption, where an error slips through undetected. Designers respond with stronger codes, checks on calculations and software that verifies its own results. The lesson is reassuring rather than alarming: cosmic rays do flip bits, but well-engineered systems expect it and quietly put things right.
Sources & further reading
- NASA Imagine the Universe · Cosmic rays ↗
- Britannica · Cosmic ray ↗
- European Space Agency · Space environment and effects ↗
Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.



