Computer

Computer Basics: Hardware, Software and Memory

2 min read · Updated 2 Dec 2026

The parts of a computer, the difference between hardware and software, and how bits, bytes and memory sizes work, in plain English.

Hardware and software

A computer system has two sides:

  • Hardware is every part you can touch: the keyboard, screen, processor, memory chips and cables.
  • Software is the set of programs that tell the hardware what to do. You cannot touch it.

Software itself comes in two kinds:

  • System software runs the computer. The most important example is the operating system (OS), such as Windows, macOS, Linux, Android or iOS. It manages files, memory and devices and lets other programs run.
  • Application software helps you do a task: web browsers, word processors, spreadsheets, games and photo editors.

Input, processing, output, storage

Every computer follows the same basic cycle:

  1. Input devices send data in: keyboard, mouse, touchscreen, scanner, microphone, camera.
  2. The CPU (Central Processing Unit) processes the data. Inside it, the ALU (Arithmetic Logic Unit) does calculations and comparisons, and the control unit directs the work. The CPU's speed is measured in gigahertz (GHz).
  3. Output devices show the results: monitor, printer, speakers.
  4. Storage keeps data for later.

All these parts plug into the motherboard, the main circuit board.

Memory: RAM and ROM

  • RAM (Random Access Memory) is fast working memory used while programs run. It is volatile: everything in it is lost when the power goes off.
  • ROM (Read Only Memory) holds permanent instructions, such as the start-up program. It is non-volatile.
  • Cache is a very small, very fast memory inside or near the CPU.

Storage devices

  • Hard Disk Drive (HDD): stores data magnetically on spinning disks. Cheap and large, but slower.
  • Solid State Drive (SSD): uses flash memory with no moving parts, so it is faster and quieter.
  • USB flash drives, memory cards and optical discs (CD, DVD, Blu-ray) are portable storage.
  • Cloud storage keeps files on internet servers.

Bits and bytes

Computers use binary, a number system with only 0 and 1.

  • 1 bit = a single 0 or 1
  • 1 byte = 8 bits (enough for one letter)
  • 1 kilobyte (KB) = 1,024 bytes
  • 1 megabyte (MB) = 1,024 KB
  • 1 gigabyte (GB) = 1,024 MB
  • 1 terabyte (TB) = 1,024 GB

(In some modern standards and on storage packaging, 1 KB is counted as 1,000 bytes.)

A little history

Charles Babbage designed the Analytical Engine in the 1830s and is called the father of the computer. Ada Lovelace wrote what is seen as the first computer program for it. Early electronic computers such as ENIAC (1945) filled whole rooms; today a phone is far more powerful.

Test what you just read

2.What does CPU stand for?

3.What is the full form of 'PDF'?

Take a 10-question quiz All Computer MCQs