Virtual Memory

All computers have physical memory, or RAM, which loads the operating system and active programs. In some cases, RAM is soldered to the motherboard, while in others, it is installed using removable memory modules. Either way, the system memory is limited to the total RAM installed. Modern PCs typically have between 4 GB and 32 GB of RAM.

When you open an application, your computer loads the app and related files into RAM. If you open enough programs at one time, your computer will eventually run out of memory. Instead of producing an "out of memory" error or forcing programs to quit, your computer can "swap" physical memory into virtual memory.

Virtual Memory Diagram

Virtual memory is space on a storage device, such as an SSD or HDD, that serves as temporary system memory, similar to RAM. This "secondary memory" can expand a computer's memory beyond the physical memory limit. However, since storage devices are much slower than the RAM, data stored in virtual memory is often swapped back to RAM when accessed.

Swapping data between the primary memory takes time. Therefore, the more your computer uses virtual memory, the more it will slow down. One of the best ways to improve your computer's performance is to install additional RAM. With more free memory, your computer won't need to use virtual memory as often, resulting in fewer slowdowns and faster overall speed.

Updated March 3, 2022 by Per C.

quizTest Your Knowledge

What does it mean for a component to be "hot swappable?"

A
Its clock speed can be raised or lowered through software.
0%
B
It can be connected or disconnected while the computer is turned on.
0%
C
It can wake a computer from standby mode.
0%
D
It is compatible with computers running Windows and macOS.
0%
Correct! Incorrect!     View the Hot Swappable definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Virtual Memory on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.