The first thing that happens when you press the power button is that the computer's power supply starts delivering electricity to the motherboard, and the CPU begins executing firmware code stored in a ROM chip—this is the very first step of the boot process, before any operating system or even a bootloader is involved. That firmware, commonly called the BIOS or UEFI, runs a power-on self-test (POST) to check basic hardware, then locates and loads the next stage from a storage device.
What "Boot" Actually Means
The term "boot" comes from "bootstrap," based on the idea of pulling yourself up by your own bootstraps. It describes the process by which a computer goes from a powered-off state to a state where it can run user programs. The challenge is circular: the CPU needs instructions to do anything, but those instructions must come from somewhere. The solution is a small, non-volatile memory chip on the motherboard that contains just enough code to get the rest of the system going. This chip is the first link in a chain of increasingly capable programs, each loading the next.
Modern computers use a multi-stage boot process because no single program can know how to initialize every possible hardware configuration. Each stage hands off to the next, and the early stages are deliberately small and simple to minimize the chance of failure.
The First Step in Detail: Power-On and Firmware Execution
When you press the power button, the power supply performs a self-check and sends a "power good" signal to the motherboard. The CPU then resets and begins fetching instructions from a fixed physical address—typically the last 16 bytes of the 4 GB address space in x86 systems—which is mapped to the firmware ROM chip. This is the first instruction executed. From that moment, the firmware (BIOS or UEFI) takes control.
The very first actions inside the firmware are:
- Initialize the CPU and basic chipset registers.
- Perform the power-on self-test (POST), checking that essential hardware like memory and the graphics adapter is present and functional.
- Initialize memory (RAM) so that it can be used.
- Enumerate and initialize other hardware devices, such as storage controllers and USB controllers.
- Locate a bootable device according to the configured boot order.
- Load the first sector (or EFI partition) from that device into memory and transfer control to it.
Only after these steps does the operating system kernel begin to load. So the answer to "which step happens first" is unequivocally the execution of firmware code from the motherboard's ROM chip, triggered by the power supply stabilizing.
BIOS vs. UEFI: The Two Firmware Types
Older computers use BIOS (Basic Input/Output System), which has been standard since the early IBM PC in 1981. BIOS reads the first 512 bytes (the master boot record) from the boot device and executes it. This approach has limitations: it only supports drives up to 2 TB with MBR partitioning, and it runs in 16-bit real mode.
Modern computers use UEFI (Unified Extensible Firmware Interface), which replaces BIOS. UEFI can read files from a FAT32 partition called the EFI System Partition, supports drives larger than 2 TB with GPT partitioning, and runs in 32-bit or 64-bit protected mode. UEFI also includes a boot manager that can load multiple operating systems and provides a pre-boot environment with networking and graphical interfaces. Despite these differences, the first step is the same: the CPU executes UEFI firmware from a ROM chip.
The Full Boot Sequence, Step by Step
To put the first step in context, here is the complete chain from power-on to a usable desktop:
- Power supply self-check and stabilization. The PSU verifies its voltages are within tolerance and sends a Power Good signal to the motherboard.
- CPU reset and firmware fetch. The CPU starts executing code from the firmware ROM chip. This is the first step of the boot process.
- POST (Power-On Self-Test). The firmware checks critical hardware: CPU, memory, graphics, keyboard, and storage controllers. Errors are reported via beep codes or on-screen messages.
- Hardware initialization. The firmware configures memory, enumerates PCIe devices, and initializes the boot device.
- Boot device selection. The firmware follows the boot order (e.g., USB, SSD, network) to find a bootable device.
- Bootloader execution. The firmware loads the first stage of the bootloader (e.g., GRUB, Windows Boot Manager) from the boot device.
- Kernel loading. The bootloader loads the operating system kernel and initial ramdisk into memory and transfers control to it.
- Kernel initialization. The kernel initializes drivers, mounts the root filesystem, and starts the init process (or systemd).
- User-space initialization. System services and login managers start, eventually presenting a login prompt or desktop.
Each step depends on the previous one, and the first step—firmware execution—is the foundation without which nothing else can happen.
Common Misconceptions About the First Boot Step
Many people believe the operating system starts first, or that the bootloader is the initial program. In reality, the OS kernel is the last major component to load, and the bootloader is itself loaded by the firmware. Another misconception is that the BIOS/UEFI is part of the operating system; it is independent firmware stored on the motherboard, and it runs before any OS is involved.
It is also common to think that pressing the power button directly starts the CPU. In fact, the power supply must first stabilize its outputs, and only then does the motherboard release the CPU from reset. This delay is typically a fraction of a second but is a distinct step.
What Happens If the First Step Fails?
If the firmware cannot execute—due to a corrupted ROM chip, a failed power supply, or a dead CPU—the computer will not boot at all. Symptoms include no fans spinning, no lights, or a blank screen with no beep codes. If POST fails, the computer may emit beep codes or display an error message, but it will not proceed to load the operating system. Understanding that the first step is firmware execution helps troubleshoot: if you see nothing on screen and hear no fans, the problem is likely power delivery or the motherboard, not the hard drive or OS.
Frequently Asked Questions
Does the operating system load first during boot?
No. The operating system is loaded last, after the firmware and bootloader have run. The very first code executed is the firmware stored on the motherboard.
What is the difference between BIOS and UEFI?
BIOS is older firmware that uses MBR partitioning and runs in 16-bit mode. UEFI is modern firmware that supports GPT partitioning, larger drives, and faster boot times. Both execute first during boot.
Can I see the first step happening?
Usually not directly, but you may see the manufacturer logo or POST messages. The firmware execution itself is invisible unless you enable verbose boot logging.
Why does my computer beep during boot?
Beep codes are emitted by the firmware during POST to indicate hardware errors, such as missing memory or a failed graphics card. The pattern of beeps varies by manufacturer.
Is the bootloader part of the operating system?
The bootloader is a separate program that loads the operating system kernel. It is stored on the boot device and executed by the firmware.
What happens if the firmware is corrupted?
If the firmware ROM is corrupted, the computer may not boot at all. Some motherboards have a backup firmware chip or a recovery mode to reflash the firmware.