What Is Computer Hardware and What Are Its Main Components?
Updated
Computer hardware is the set of physical parts you can touch inside and around a computer: the processor, motherboard, memory, storage, graphics card, power supply, case, and the peripherals connected to them. Software is the instructions; hardware is what executes them. This explainer covers the core components, how they connect and depend on each other, the line between internal parts and peripherals, and why compatibility matters when you build or upgrade. It applies to desktops and laptops running any operating system, though the Linux Hardware Database at linux-hardware.org is a useful reference when you want to check whether specific parts are known to work under Linux.
The core internal components
A computer is a set of parts that pass data and power between each other. Each has one main job:
| Component | Main job | Typical connection |
|---|---|---|
| CPU (processor) | Runs instructions and calculations | Socket on the motherboard |
| Motherboard | Connects and coordinates all parts | Backbone for everything else |
| RAM (memory) | Holds working data for active programs | Slots on the motherboard |
| Storage (SSD/HDD) | Keeps data when power is off | SATA or M.2/NVMe ports |
| GPU (graphics card) | Renders images and video output | PCIe slot (or integrated in CPU) |
| PSU (power supply) | Converts wall power to usable voltages | Cables to board and components |
| Case | Holds, cools, and protects the parts | Mounting points and airflow |
CPU and motherboard
The CPU sits in a socket on the motherboard, and the two must match: the socket type, chipset, and firmware support determine which processors a board accepts. The motherboard also carries the RAM slots, expansion slots, storage ports, and the connections for power and front-panel buttons. In practice, the motherboard is the part that decides what else you can install.
RAM and storage
RAM is volatile: it holds the data of programs currently running and is cleared when power is removed. Storage is non-volatile: it keeps the operating system, applications, and files. More RAM helps when many programs run at once; faster or larger storage mainly affects how quickly things load and save. RAM must match the motherboard's supported type and generation, while storage must match an available port (SATA or M.2/NVMe).
GPU, PSU, and case
The GPU handles graphics output and can be a separate card in a PCIe slot or integrated into the CPU. A discrete card adds its own power draw and physical size, which brings in the PSU and case. The PSU must supply enough power with the right connectors, and the case must fit the board size, card length, and cooler height while providing airflow. These three are where build mistakes most often show up: a card that does not fit, a PSU without the needed cable, or a case with poor ventilation.
How the parts depend on each other
No component works alone. The CPU needs the motherboard for its socket and power, the motherboard needs RAM and storage to be useful, the GPU needs a slot and power, and everything needs the PSU and a case to sit in. A single mismatch can stop a build: a CPU that does not fit the socket, RAM of the wrong generation, a card too long for the case, or a PSU too weak for the load. This interdependence is why compatibility checks matter more than any single part's specifications.
Internal parts vs. peripherals
Internal components live inside the case and are required for the computer to run. Peripherals are external devices connected through ports: keyboard, mouse, monitor, printer, webcam, and external drives. They are input/output devices — they let you send commands and receive results — but the computer can boot and run without most of them. The distinction is practical: when something fails, internal parts usually prevent startup or cause instability, while a peripheral problem usually affects only one function.
Why hardware compatibility matters
When building or upgrading, check compatibility before buying. The key questions are: does the CPU fit the motherboard socket and firmware, does the RAM match the board's supported type, does the storage match an available port, does the GPU fit the case and have PSU power, and does the PSU have enough capacity and the right connectors? For Linux users, one more check helps: whether the specific part is known to work with the kernel and drivers. The Linux Hardware Database (linux-hardware.org) records detailed hardware information and compatibility reports, so you can look up a laptop, desktop, or individual component before committing. Treat it as a reference point, not a guarantee — a part listed as working is evidence, not a promise for every configuration.
A quick way to reason about any PC
Ask three questions about any machine: what parts does it contain, how are they connected, and do they match? Identify the CPU socket and motherboard chipset, the RAM type and amount, the storage interface, the GPU and its power needs, and the PSU capacity. If those line up, the hardware is coherent. If you are upgrading, change one part at a time and verify the matching parts still fit — that habit prevents most build and upgrade problems.