ROM (read-only memory) is nonvolatile. This means it retains its stored data even when power is completely removed. It’s the opposite of RAM, which loses everything the moment you shut down or unplug your computer.
What Makes ROM Nonvolatile
The distinction between volatile and nonvolatile memory comes down to one question: does the data survive a power loss? RAM stores information using tiny electrical charges that need constant power to stay intact. Turn off the electricity, and those charges disappear along with the data. ROM takes a fundamentally different approach.
In traditional mask ROM, the data is literally built into the chip during manufacturing. Physical structures on the silicon represent 1s and 0s, and because the data depends on the physical layout of the chip rather than an electrical charge, no amount of power loss can erase it. Even attempts to electronically alter the data will fail, since you’d need to change the chip’s physical structure to do so.
More modern types of ROM (like the flash memory in your phone or USB drive) store data by trapping electrons behind a layer of insulation on tiny transistor gates. The insulation holds those electrons in place without any power. This approach is slightly less permanent than physical structures, but still extremely durable. Manufacturers typically guarantee a minimum data retention of 10 to 20 years, and in practice, many nonvolatile memory technologies can retain data for over 100 years at room temperature.
All Types of ROM Are Nonvolatile
ROM comes in several varieties, and every one of them is nonvolatile:
- Mask ROM: Data is permanently written during manufacturing. It can never be changed.
- PROM (Programmable ROM): Can be written once after manufacturing, then becomes permanent.
- EPROM (Erasable Programmable ROM): Can be erased using ultraviolet light and reprogrammed.
- EEPROM (Electrically Erasable Programmable ROM): Can be erased and rewritten electrically, one byte at a time.
- Flash memory: A faster, more practical descendant of EEPROM that erases data in large blocks rather than one byte at a time.
The key distinction between these types is how easily they can be rewritten, not whether they hold data without power. They all do. Mask ROM and PROM rely on physical permanence, while EPROM, EEPROM, and flash rely on trapped electrical charges. The trapped-charge types can technically lose data over very long timescales as charge slowly leaks through the insulation, but this process takes decades under normal conditions.
How ROM Compares to RAM
The simplest way to remember the difference: RAM is your computer’s short-term workspace, and ROM is its permanent instruction manual. RAM is fast, freely rewritable, and volatile. ROM is slower to write (or completely unwritable), but nonvolatile. Your computer needs both. RAM handles whatever you’re actively doing, like running apps or editing documents. ROM holds the instructions the computer needs before it can even load an operating system.
When you press the power button, your computer has a chicken-and-egg problem. It needs software to start up, but all its software lives on a hard drive it doesn’t yet know how to read. ROM solves this. The startup firmware (historically called BIOS) lives on a ROM chip on the motherboard. Because that chip is nonvolatile, the startup instructions are available the instant power flows, every single time. The firmware runs a self-test on the hardware, initializes your display and storage devices, and then hands control over to your operating system.
Where You Encounter ROM in Practice
Beyond computer startup firmware, ROM and its descendants show up everywhere. The firmware in your router, microwave, car’s engine control unit, and smart TV all sit on nonvolatile memory chips. Game cartridges for older consoles were literally ROM chips. Modern smartphones use flash memory (a type of ROM) for all long-term storage, from the operating system to your photos.
Originally, updating firmware meant physically swapping out a ROM chip. Today, most devices store firmware on flash memory, which keeps the nonvolatile benefit while allowing occasional updates. Your motherboard’s BIOS, for example, was once on a true read-only chip but is now stored on flash so manufacturers can push updates for security patches or new hardware support. The data still persists without power, but it’s no longer locked in permanently.
This evolution is why the term “ROM” can feel a little misleading in modern usage. Flash memory isn’t truly read-only since you can rewrite it. But it inherited the ROM label because it serves the same core purpose: storing data that must survive without power.

