A Common Mix-Up
If you have ever looked at a phone or laptop specification, you have probably seen two numbers measured in gigabytes: one for RAM and one for storage. They sound similar, and both are described as memory, so it is easy to assume they are the same thing. They are not. The two work very differently, and a computer needs both to run.
RAM: A Desk to Work On
RAM stands for random-access memory. Think of it as the desk a computer works on. When you open an app, the computer pulls the parts it needs into RAM, where it can reach them almost instantly. RAM is extremely fast, which is what makes programs feel responsive. But it is also volatile, meaning it only holds onto information while the computer has power. The moment you turn the device off, anything left in RAM disappears.
Storage: A Filing Cabinet
Storage is the long-term memory of the computer. Hard drives and solid-state drives hold your photos, documents, apps, and the operating system itself. Storage is non-volatile, which means everything stays put even when the power is off. Storage is also usually much larger than RAM, but it is slower to read and write. It is the filing cabinet that quietly keeps everything safe between sessions.
Why You Need Both
When you launch an app, the computer fetches it from storage, where it lives, and copies the parts it needs into RAM, where it can be used quickly. The more RAM a device has, the more programs it can keep open and ready at once without slowing down or constantly reloading from the slower storage. A computer with plenty of storage but very little RAM can hold many files, but it will struggle to work with several of them at the same time.
Source
This article was written using information from Wikipedia.