How does a computer remember when the power is gone?
Did this make sense?
Your thumbs help us make it clearer.
Thanks! That helps us make it clearer. 💜
See it another way
How computer memory works - Kanawat Senanan
Follow bits through fast working memory and longer-term storage, then see why RAM needs power while disks and flash keep their patterns.
Requires internet. You’re leaving Clickory in a new tab; YouTube may show ads or recommendations.
Keep going
What else makes you wonder?
How often does working memory have to refresh its tiny charges?
The cells leak, so the chip revisits rows many times each second — while still serving everything the computer asks for.
Why can rewriting storage wear its cells out?
Moving charge through an insulating barrier stresses it a little each time, so controllers spread writes around.
Why does a computer need even more memory places than these two?
Tiny caches near the processor are faster than RAM, while distant storage is larger — a ladder of speed, size, and cost.
After you watchHow does a computer remember when the power is gone?
The short answer
A computer remembers with physical states that can stay put without flowing electricity. Its fast working memory holds the patterns being used right now and needs continual electrical refreshes. Its storage holds patterns in longer-lasting states, such as trapped charge or magnetized regions. Save copies a working pattern into storage, and startup copies stored patterns into working memory so the processor can use them quickly.
Try this next
- What if a computer copied its working pattern into storage every second? Predict how that would change speed, battery use, storage wear, and how much recent work could be reconstructed.
- What if working memory used physical latches that needed no refresh? Compare what the computer might gain in power use with what it could lose in speed, size, or cost.
Now you — bend it
- What if What if DRAM cells leaked charge twice as fast — what would the memory controller have to change?It would need to refresh them more often, spending more time and energy just keeping the same pattern alive.
- What if What if flash storage were as fast to rewrite as working memory but wore out after only one hundred changes?Separate speed from endurance. A device could write quickly yet still need a plan that spreads writes across many cells.
- What if Could one physical memory design ever be fast, dense, cheap, low-power, and permanent all at once?Engineers call these competing goals a memory hierarchy: registers, caches, RAM, and storage each trade one strength for another.
Can you prove it?Save is a copy operation between two memory systems with different jobs. — Use the story lab to choose three different words. Change only the thinking-desk selector and observe that the drawer does not change. Then press Save and verify that the two exact bit grids match. Repeat in another order.
Design your own test:Before testing a pretend autosave schedule, predict how shorter and longer copy intervals would trade storage work, energy, and the amount of recent change represented in storage.
Explain it to a 6-year-old: A computer has a speedy desk for what it is doing and a slower drawer that can keep a copied pattern while the power rests.
The whole story
How it works
Everything in a computer becomes a pattern of two-state cells. Working memory and storage both hold such patterns, but their cells work differently. DRAM stores bits as tiny electric charges, which are quick to read and change but must be refreshed repeatedly because they leak away. Flash storage traps charge behind an insulating barrier, while a hard disk uses magnetic orientations, so those states can remain when current stops. The computer moves patterns between the fast workspace and the lasting store as their jobs require.
What people get wrong
A computer does not have one single kind of memory. It uses a fast, electrically refreshed workspace and a slower store whose physical states persist without flowing power. The word memory can name both, but their speed, construction, and job are different.
The catch
Working memory is extremely fast and easy for the processor to change, but keeping its cells charged costs power. Storage keeps far more data without continual refresh, but reading and rewriting it is slower, and flash cells can wear after many rewrites. Computers use both because neither one is best at every job.
Questions kids ask
How can a bit stay when no electricity is flowing?
The bit is held as a physical state rather than as a stream of current. Flash memory can trap electric charge behind an insulating barrier, and a hard disk can point a tiny magnetic region one way or the other. Those states can stay in place without continual power.
Why does a computer need fast working memory?
The processor changes and checks data constantly, so it needs a workspace that responds very quickly. Working memory is much faster to use than storage, even though its cells need continual electrical refreshes.
Do phones and game consoles use the same two-memory idea?
Yes. Phones, tablets, consoles, and laptops all combine fast working memory with longer-lasting storage. The sizes and chip designs differ, but the two jobs are the same.
What does pressing Save actually do?
It asks the computer to copy the current working pattern into storage. That is a real transfer between two physical kinds of memory, not merely a label placed on the file.
Talk about it
- What two jobs does a computer give to its fast workspace and its lasting store?
- Why might the fastest kind of memory not be the best place to keep everything?
- When you tap Save, what physical journey do you think the bit pattern takes?
For grown-ups
Working memory is volatile DRAM: each bit is usually represented by charge in a tiny capacitor that must be refreshed because it leaks. Storage is non-volatile: NAND flash shifts a transistor's threshold voltage by trapping charge in an insulated layer, and magnetic disks orient tiny magnetic domains. Saving writes a snapshot from RAM into non-volatile storage; loading and startup read stored data back into RAM for fast access.