KyoMel / Yogyakarta, Indonesia

Term 187187 / 344

Bit Flips

Month
March 2026
Day
6
Source
2026/mar-term.md

Definition:

A Bit Flip is when a single binary digit (bit) unexpectedly changes its value — from 0 to 1, or from 1 to 0 — due to hardware faults, radiation, or other external forces, causing silent data corruption without the program knowing.

A bit flip is a single letter typo in your computer’s memory — one character changes, and the meaning of the entire word shifts.

Simple Analogy 🎲 Imagine writing the number 6 on a whiteboard in binary: 0110. A cosmic ray hits the board and the first digit changes to 1, making it 1110 — which is 14. Nobody erased the board intentionally, but the number is now completely wrong and you’d never know unless you double-checked.

Binary Basics (Quick Refresher)

Decimal Binary
6 0110
14 1110

A single bit flip in position 4: 0110 → 1110 = 6 becomes 14 instantly.

$$ \begin{align*} 0110_2 &= 6_{10} \ \text{bit flip} \ 1110_2 &= 14_{10} \end{align*} $$

​

What Causes Bit Flips?

Cause Description
☄️ Cosmic rays High-energy particles from space hit memory cells and flip bits
⚡ Voltage glitches Power supply instability causes incorrect bit states
🌡️ Overheating Heat degrades electronic components, causing unreliable behavior
🏭 Manufacturing defects Impurities in memory chips lead to unstable bits
🔧 Aging hardware Components degrade over time and become unreliable
🦠 Software bugs Code accidentally overwrites a wrong memory location
🔐 Malicious attacks Hackers intentionally flip bits to exploit system vulnerabilities

Visual — What a Bit Flip Looks Like

Original data in memory:
┌───┬───┬───┬───┬───┬───┬───┬───┐
│ 0 │ 1 │ 1 │ 0 │ 1 │ 1 │ 0 │ 1 │ = 109 decimal = ASCII letter 'm'
└───┴───┴───┴───┴───┴───┴───┴───┘

         ☄️ cosmic ray hits bit 5
                   ↓

┌───┬───┬───┬───┬───┬───┬───┬───┐
│ 0 │ 1 │ 1 │ 0 │ 1 │ 0 │ 0 │ 1 │ = 105 decimal = ASCII letter 'i'
└───┴───┴───┴───┴───┴───┴───┴───┘

‘m’ silently became ‘i’ — with no error thrown ❌

Example:

In 2003, a voting machine in Belgium recorded 4,096 extra votes for one candidate out of nowhere. Investigators traced it back to a single bit flip in memory — caused by cosmic radiation.

Correct vote count:    13,000  =  ...0011001011010000
After bit flip:        17,096  =  ...0100001011010000
                            ↑
                     this bit flipped → 4,096 extra votes added
A single cosmic ray decided an election. 🗳️

Keep reading