How does the processor find one byte out of four billion?
Lesson 9.2 · Every Byte Has an Address
Sarah · Rob
Four billion doors, every one numbered.
Grandma Ruth’s laptop has about four billion bytes of RAM.
Sarah asks how the processor finds the right one without searching.
Rob says it’s like a giant apartment building: every byte has a number on its door. The processor doesn’t look around.
It just walks to the number.
The short answer
Every byte has an address, and the processor asks for it by number. Inside the chip, the address picks a row and a column. Grandma Ruth’s four billion bytes are four billion numbered lockers, and all of them are nearly full.
Try it yourself
Think like a processor finding things in memory.
The program says “load the byte at address 1,000.” How does memory find it?
What you just did has a name
A memory address
A memory address is the number that identifies one byte in memory, the way a house number identifies one house.
The processor sends an address to memory and gets back whatever is stored there, in the same time no matter which address it is.
Inside the chip, parts of the address select a row and a column in a grid of bits. That’s what makes RAM “random access.”
A few more things
Why 64-bit matters
With 32-bit addresses, a computer can number about 4 GB. With 64-bit, about 18 billion GB. That’s why “64-bit Windows” was a big deal: it let computers use more than 4 GB of RAM.
Instructions have addresses too
The program counter in Module 6 was an address: the door number of the next instruction.
The address bus
The processor sends addresses to memory over a set of wires on the motherboard, one wire per bit. More wires, more addresses.
Go deeper
The longer version, if you want it.
Every program thinks it owns the building
If every program used real addresses directly, two programs could stomp on each other’s bytes. So the operating system gives each program its own pretend set of addresses and translates them to real ones behind the scenes.
That translation is also how swapping from Module 8 works: a pretend address might point at real memory today and at a spot on the drive tomorrow, and the program never knows. Module 16 is about the operating system that pulls this off.
Quick check
Why is RAM called “random access”?
Let’s take it slower
Think of lockers at school. You don’t open every locker in the hallway to find yours. You walk straight to number 247, because the number tells you exactly where it is. Memory addresses are locker numbers for bytes. The processor calls out a number, and that one locker pops open, no matter how many billions of lockers there are.
More examples
A spreadsheet cell
Cell C7 is an address: column C, row 7. Memory chips find bits the same way, row and column.
A hotel room key
Your key card says room 418, so you take the elevator to the fourth floor and walk to the door. You don’t knock on every room in the building. Memory addresses work the same way: the number tells the processor exactly where to go.
Back to the question
So how does the processor find one byte out of billions?
Show the answer
Every byte has an address, and the processor asks for it by number. Inside the chip, the address picks a row and a column. Grandma Ruth’s four billion bytes are four billion numbered lockers, and all of them are nearly full.
More on this: What is RAM, and how much do you need?
One last question
Which of these would you trust?
“Every byte of RAM has its own address.”
“The processor searches through memory to find what it needs.”
“A computer with 32-bit addresses can’t use more than about 4 GB.”
“Bytes near address 0 are faster to reach than bytes near the end.”
Talk Card
Talk Card · 9.2
Every byte of RAM has an address, like a locker number. The processor asks for a number and gets that byte, equally fast anywhere. That’s random access.
How Computers Work · pettigrewlab.com/learn

