Difference Between RAM and ROM

Difference between RAM and ROM

Topics we are going to discuss here are

What is RAM:

RAM photo

RAM ( random access memory ) is a volatile memory used to store the data and information being used in real-time by CPU. the files you are working on are stored inside RAM. Data stored in RAM is both readable and editable. The data is stored temporarily on RAM.

It does not matter where your data is physically inside the RAM you can read or write data at almost the same time. Once your computer gets shut down all data stored in RAM will be erased as it is volatile memory.

Types of RAM

the types of most used RAM in today’s world are

  • Static Random Access Memory (SRAM)
  • Dynamic Random Access Memory (DRAM)

Static RAM:

the type of RAM which uses flip-flop circuits to store a bit. SRAM is volatile so when power will remove data will be automatically erased.

A flip-flop or latch is a type of circuit that has two stable states.

Dynamic RAM:

A bit in DRAM is stored using a pair of transistors and capacitors. Both the capacitor and transistor are typically based on metal-oxide-semiconductor.

What is ROM:

Vector Graphic image of ROM

ROM (read-only memory) is a type of computer memory that is non-volatile. It is fixed on the motherboard and the data or instructions are stored permanently on these memory chips. Even the computer is shut down the data will remain in ROM.

ROM usually refers to those memory chips that after manufacturing cannot be changed.

Mask ROM:

in these types of ROM data is written at the time of manufacturing rather than by the user.

Following are the types of ROM:

  • PROM (Programmable Read-Only Memory)
  • EPROM (Erasable Programable ROM)
  • EEPROM (Electrically Erasable Programmable ROM)


Once the PROM is programmed by the manufacturer it cannot be changed or erased. it is a non-volatile memory.


EPROM is the type of ROM which are erasable and can be rewritten. the ultraviolet light is used to erase the data from EPROM. it is a non-volatile memory.


This ROM can be electrically erased and can be electrically changed.
it is a non-volatile memory.


| Difference | RAM | ROM |
| storage capacity | RAM has a high storage capacity | ROM has a lower storage capacity |
| Retentiveness | it’s volatile so data remains until the power remains | its non-volatile so data remains even if a computer is off |
| uses | stores the data or information being used by the CPU in real-time | stores the firmware software or instructions for the bootstrap of the computer |
| cost | expensive | a lot cheaper than RAM |
| Speed | Speed of RAM is fast | Slow |
| Size | Larger than ROM | Smaller than RAM |
| User interaction | Users can read and write data and information | Users can only read data |


RAM is volatile while ROM is non-volatile. RAM is faster than ROM. ROM is smaller than RAM. both have their own importance and use in computers.

To know the basics about programming languages read this article

Programming Language and Its Types

I hope you have learned something from here.

Do you like our article?




I write Technology, Writing, and Crypto stuff to remain updated subscribe us & join medium. visit my blog https://techniness.blogspot.com/

Love podcasts or audiobooks? Learn on the go with our new app.

AEM FullText Lucene Search Implementation -Part 1

OpenSource Fest — A New Beginning

Nightly builds with GoReleaser and GitHub Actions

Hubstract Art — Rare NFT Art on Binance Smart Chain

Nine Best Practices for Managing Software Releases and Upgrades

This robot can call you customers if they miss important notifications.

Designing VCO

How To Stay Healthy as a Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Learn Tech

Learn Tech

I write Technology, Writing, and Crypto stuff to remain updated subscribe us & join medium. visit my blog https://techniness.blogspot.com/

More from Medium

Mobile Workforce & Agile Workplace with Microsoft 365 Premium

Memory Management in windows

Using IoT solutions to overcome one of the main urban challenges; Parking Management!

Getting Started with FreeRTOS on I.MX8M Mini through UBoot with Linux