Skip to content
GEEKnodes

Computing · Updated on

How Does a Computer Work? Components and Process Explained

How a computer works inside: CPU, RAM, storage, motherboard, GPU, UEFI firmware and operating system, and what happens from the moment you turn it on.

A computer is a machine that does one thing very quickly: it reads instructions, runs them on data and stores the result. Everything else (browsing, editing photos, gaming) is millions of those operations per second. Understanding which part does what helps you choose a computer, know what to upgrade and figure out why it’s slow.

Inside of a PC with RAM modules and the processor's liquid cooling block

The basic idea: process, remember and store

Almost every modern computer follows the same pattern:

  1. Input: you receive data from the keyboard, mouse, network or a file.
  2. Processing: the CPU runs the programs’ instructions.
  3. Memory: RAM holds whatever is being used right now.
  4. Storage: the SSD or hard drive stores data permanently.
  5. Output: the result appears on the screen, plays through the speakers or is sent over the network.
Flow of a computer from keyboard and mouse to CPU, RAM, SSD and screen or speakers.
Data comes in, gets processed and is displayed; RAM does the working and the SSD keeps the information.

The main components

Generic motherboard with the CPU, RAM, SSD, GPU slot, USB ports and power connector labeled.
The motherboard connects the components and provides their slots and ports.

Processor (CPU)

This is the part that runs the instructions. It does so in a continuous cycle: it fetches the next instruction from memory, decodes it and executes it. Modern processors have several cores that work in parallel, and many combine performance cores with efficiency cores to use less power. They also include cache memory, a small, extremely fast memory for the data they use most.

RAM

This is working memory: it’s where open programs and the data you’re using are loaded. It’s far faster than any storage, but it’s volatile: when you turn the computer off, it’s erased. If you’re short on RAM, the system has to keep moving data to the SSD and everything slows down. Today the norm is DDR5 memory in desktops and LPDDR5 or similar soldered onto laptops. For general use, 16 GB is a comfortable amount.

Storage (SSD or hard drive)

It stores the operating system, programs and your files even when you turn the computer off. Modern computers use NVMe SSDs, which are much faster than mechanical hard drives. Hard drives still make sense for storing lots of data cheaply. You’ll find all the options in what types of storage are there for a computer.

Motherboard

This is the board that connects everything: processor, RAM, storage, graphics card and ports. Its chipset and design determine which components it supports, how many USB ports or M.2 slots it has and whether it can be upgraded.

Graphics card (GPU)

It calculates what you see on screen. It can be integrated into the processor (enough for office work, video and light gaming) or a dedicated card with its own memory, needed for demanding games, 3D editing or local AI.

NPU

Many recent processors include an NPU (neural processing unit), specialized in AI tasks such as background blur in video calls, transcription or image recognition, using less power than the CPU or GPU.

Power supply and cooling

The power supply converts wall current into the voltages the components need. Fans and heatsinks (or liquid cooling) keep them from overheating: if the temperature gets too high, the processor lowers its speed to protect itself.

Input and output devices

Keyboard, mouse, screen, speakers, camera, printer… and the network connections, which are also input and output. CD/DVD drives and dedicated sound cards, which used to be essential, have almost disappeared: sound is built into the motherboard and software is downloaded.

Everything on one chip: the SoC

In phones, tablets and more and more computers (Macs with Apple silicon or laptops with Arm processors), the CPU, GPU, NPU and controllers sit on a single SoC (System on a Chip), often with the RAM in the same package and shared by all of them (unified memory). It’s more efficient and faster, at the cost of RAM, and sometimes storage, not being upgradable later. We explain it in the differences between Mac and PC.

What happens when you turn on the computer

Boot sequence from UEFI and secure boot through loading the operating system and showing the user session.
The firmware checks and initializes the computer; then it loads the operating system into RAM.
  1. Firmware: the motherboard runs its firmware. On modern PCs it’s UEFI, which replaced the old BIOS (many people still call it BIOS). It checks that the hardware responds and initializes the components.
  2. Secure boot: the firmware verifies that the operating system’s boot loader is signed and hasn’t been modified.
  3. Boot loader: it finds the operating system on the drive and loads it into RAM.
  4. Operating system: the kernel starts and loads the drivers for each component and the services.
  5. User session: the sign-in screen appears and, after that, your desktop.

Why it needs an operating system

The operating system (Windows, macOS, Linux, Android…) is the intermediary between the hardware and the programs. It takes care of:

  • Sharing the CPU among all open programs, so they seem to run at the same time.
  • Managing memory, giving each program its own space and keeping one from invading another’s.
  • Organizing files in storage.
  • Controlling devices through drivers, so a program can print without knowing which printer you have.
  • Protecting the system: users, permissions and isolation between apps.
  • Providing the interface you interact with: windows, menus, notifications.

Without it, every program would have to know how to drive each piece of hardware directly.

Check which components your computer has

  • Windows 11: Settings > System > About shows the processor and RAM. Task Manager (Ctrl + Shift + Esc), Performance tab, shows CPU, memory, disks, GPU and network in real time.
  • macOS: Apple menu > About This Mac shows the chip and memory; More Info or System Information gives the full details.
  • Linux: lscpu, free -h and lsblk in Terminal.

Common problems

The computer is slow with lots of tabs or programs open. It’s usually a lack of RAM. Check memory usage in Task Manager or Activity Monitor.

It takes a long time to boot and open programs. If it still has a mechanical hard drive, replacing it with an SSD is the most noticeable upgrade you can make.

It gets hot, noisy and performance drops. Dust in the fans and heatsinks or dried-out thermal paste. A cleaning usually fixes it.

It won’t boot and shows nothing on screen. Check the power, that the RAM is seated properly and the motherboard’s diagnostic beeps or LEDs, which tell you which component is failing.

Accessibility preferences

Quick profiles

Text and reading

Text size
Default
Line height
Default
Letter spacing
Default
Word spacing
Default

Colour

Motion and orientation

Cursor