Is DRAM Volatile or Non-Volatile? The Answer

Yes, DRAM is volatile memory. It loses all stored data when power is removed. Every bit in DRAM is stored as an electrical charge on a tiny capacitor, and that charge begins leaking away immediately, requiring constant refreshing even while the computer is running.

How DRAM Stores Data

Each DRAM cell consists of one transistor and one capacitor. The transistor acts as a gate, and the capacitor holds a small electrical charge that represents either a 1 or a 0. When the transistor switches on, a voltage charges the capacitor. Once the transistor switches off, the capacitor is supposed to hold that charge, but it doesn’t hold it well. The charge leaks away naturally over just a few milliseconds.

To prevent data loss while the computer is on, DRAM chips run a continuous refresh cycle. Every few milliseconds, the system reads each cell’s charge and writes it back at full strength. This is where the “dynamic” in Dynamic RAM comes from. Without this constant refreshing, data would corrupt within milliseconds, even with power still connected.

What Happens When Power Is Cut

Once power is removed, the refresh cycle stops and the capacitors begin draining. At room temperature, most DRAM modules lose their data within a few seconds. Testing by researchers at Princeton found that the fastest-decaying modules lost all data in about 2.5 seconds, while the slowest took around 35 seconds. This brief window of survival is far too short for any practical data retention.

Temperature changes this picture dramatically. When researchers cooled DRAM chips to about -50°C using inverted cans of compressed air duster, fewer than 1% of bits decayed even after 10 minutes without power. Submerging modules in liquid nitrogen (around -196°C) preserved data with only 0.17% bit decay after a full hour. This is the basis of what’s known as a cold boot attack: an attacker who can physically access a machine and quickly cool the memory chips can potentially recover sensitive data, including encryption keys, after the computer is shut off.

DRAM vs. SRAM: Both Are Volatile

SRAM (Static RAM), the type of memory used in processor caches, is also volatile. It loses data when power is removed. The difference is in how each type holds onto data while powered. SRAM uses a circuit of multiple transistors to hold each bit in a stable loop, so it doesn’t need refreshing. DRAM’s capacitor-based design requires constant refresh cycles, which consumes more power and generates more heat.

SRAM is faster and more energy-efficient per bit, but each cell takes up significantly more physical space on a chip. That’s why SRAM is reserved for small, speed-critical caches close to the processor, while DRAM handles the much larger main memory your system needs.

Why Computers Use Volatile Memory

If volatile memory loses everything when power is cut, why not just use flash storage or SSDs for everything? The answer is speed. DRAM reads and writes data far faster than any non-volatile storage, and it sits physically close to the processor to minimize delays. Your operating system, running applications, and active files all load into DRAM because the processor can access it quickly enough to keep up with real-time work. Flash memory and SSDs handle long-term storage well, but they’re too slow for the constant, rapid-fire data access a CPU demands every nanosecond.

Intel did produce a non-volatile memory module called Optane that could plug into the same slots as DRAM. It retained data without power, which was a significant advantage for certain server workloads. But it came with roughly 3x higher latency and at least 60% lower bandwidth compared to standard DRAM. Intel discontinued the product line in 2022, and traditional volatile DRAM remains the standard for main system memory.

Low-Power Modes in Mobile DRAM

Phones and laptops use a variant called LPDDR (Low Power DDR), which includes special tricks to reduce power consumption while keeping data alive. One is temperature-compensated self-refresh, which slows down the refresh rate when the chip is cool (since capacitors leak less at lower temperatures). Another is partial-array self-refresh, which only refreshes the portions of memory that actually contain important data, letting the rest go unpowered.

Some LPDDR generations also support a deep power-down mode, which drops power consumption to near zero. But this mode explicitly does not retain data. It’s essentially turning the memory off. The chip is still volatile; the system just accepts that anything stored there will be gone when it wakes back up.