Stewdent.eu
▾

Inside a Computer

A guided tour of a computer's main hardware components, explaining what each part does and how they work together.

Last updated: 17 January 2026

★☆☆☆☆ Level 1computingSystemshardwareCPUmemoryLesson6 min read

Report an error

What Is Hardware?

Every computer is made up of physical components you can see and touch. These are called hardware. Software (programs, operating systems) runs on top of hardware, but it is the hardware that does the actual work of processing data, storing information, and communicating with the world.

Understanding hardware helps you make sense of why computers behave the way they do — why a laptop slows down when too many programs are open, why a gaming PC needs a powerful graphics card, and why saving your work matters.

The CPU: The Brain

The Central Processing Unit (CPU) is the main processor of a computer. It carries out the instructions that make up every program — performing calculations, making decisions, and coordinating all other hardware components.

Key terms:

  • Clock speed — measured in gigahertz (GHz), this is how many instruction cycles the CPU performs per second. A 3 GHz CPU performs 3 billion cycles per second.
  • Cores — modern CPUs have multiple cores, each capable of working independently. A quad-core CPU can handle four streams of instructions simultaneously.
Note

A faster CPU clock speed does not always mean a faster computer overall. The CPU must constantly wait for data from memory or storage, so the speed of those components matters just as much.

RAM: Short-Term Memory

RAM (Random Access Memory) is where the computer holds data it is actively using. When you open a web browser, the browser program and all its data are loaded into RAM so the CPU can access them instantly.

RAM is volatile — it loses all its data the moment the power is switched off. This is why unsaved work disappears if the computer crashes.

More RAM means more programs can run simultaneously without the computer slowing down. A typical modern computer has between 8 GB and 32 GB of RAM.

Tip

Think of RAM as your desk. The larger the desk, the more books and papers you can have open at once. The CPU is you — you can only work with what is on the desk in front of you, not what is in the filing cabinet.

Storage: Long-Term Memory

Storage (the hard drive or solid-state drive) holds data permanently, even when the computer is off. This is where the operating system, applications, and your files live.

There are two main types of storage:

TypeHow it worksSpeedDurability
HDD (Hard Disk Drive)Spinning magnetic platters with a read/write headSlowerMoving parts can fail
SSD (Solid State Drive)Flash memory chips, no moving partsMuch fasterMore durable

SSDs are now standard in most laptops and desktops because they dramatically reduce boot times and make programs open much faster.

The Motherboard: The Backbone

The motherboard is the main circuit board that connects all the other components. Every other piece of hardware — CPU, RAM, storage, GPU, and expansion cards — plugs into or communicates through the motherboard.

The motherboard contains:

  • CPU socket — where the processor sits
  • RAM slots — where memory modules plug in
  • Storage connectors (SATA, M.2) — for HDDs and SSDs
  • Expansion slots (PCIe) — for graphics cards and other add-on hardware
  • Chipset — a set of chips that controls data flow between components
Note

When buying a new CPU or RAM, you must check that it is compatible with your motherboard. Not every CPU fits every socket, and RAM comes in different generations (DDR4, DDR5) that are not interchangeable.

The GPU: Graphics Processing

The Graphics Processing Unit (GPU) is a specialised processor designed to render images, video, and 3D graphics extremely quickly. While a CPU has a small number of powerful cores (typically 4–16), a GPU has thousands of simpler cores designed to do many small calculations in parallel.

Integrated graphics (built into the CPU) handle everyday tasks like displaying the desktop and watching video. Dedicated GPUs are needed for gaming, video editing, machine learning, and scientific simulations.

Input and Output Devices

A computer is only useful if it can communicate with the outside world. This happens through input and output devices.

Input devices send data into the computer:

  • Keyboard
  • Mouse / trackpad
  • Microphone
  • Camera / webcam
  • Touchscreen

Output devices send data from the computer to the user:

  • Monitor / display
  • Speakers / headphones
  • Printer

Some devices are both: a touchscreen tablet accepts touch input and displays output on the same surface.

How They Work Together to Run a Program

When you double-click an icon to open a program, a remarkable sequence of events unfolds:

  1. The CPU reads the instruction from storage (HDD/SSD) — the program's files.
  2. The program code and data are loaded into RAM for fast access.
  3. The CPU fetches instructions from RAM one by one, executes them, and stores results back in RAM.
  4. When the program needs to display something, the CPU sends drawing commands to the GPU.
  5. The GPU renders the image and sends it to the monitor.
  6. Input devices (keyboard, mouse) send signals back to the CPU when you interact with the program.

All of this is coordinated by the motherboard and managed by the operating system — typically thousands of times per second.

Tip

The path of data goes: Storage → RAM → CPU → GPU → Monitor. The bottleneck at any one stage limits the whole system. This is why a powerful CPU paired with slow storage still feels sluggish — the CPU is constantly waiting for data to arrive from disk.

Practice Problems

What does CPU stand for and what is its role?

Show answer
CPU stands for Central Processing Unit. It carries out program instructions — performing calculations, making decisions, and coordinating all other hardware.

What is the difference between RAM and storage?

Show answer
RAM is fast, temporary memory used while the computer is running (lost when power off). Storage (HDD/SSD) holds data permanently even when the computer is off.

Why is an SSD faster than an HDD?

Show answer
An SSD uses flash memory chips with no moving parts. An HDD uses spinning magnetic platters with a read/write head that must physically move to the right position, which takes time.

Name two input devices and two output devices.

Show answer
Input: keyboard, mouse (also: microphone, camera). Output: monitor, speakers (also: printer).