keepcalculator

06 Numbers and Powers

Raspberry Pi 5 Overclocking Guide

Card No. 06·87152 · Updated · Standard formula, shown below

This guide explains how to overclock a Raspberry Pi 5, what settings to change, and what results to expect. You’ll learn the risks, the tools, and step-by-step instructions for both CPU and GPU overclocking, plus how to test for stability.

Why Overclock a Raspberry Pi 5?

The Raspberry Pi 5 uses a quad-core Arm Cortex-A76 processor clocked at 2.4 GHz by default. Overclocking pushes that clock higher, which can improve performance in CPU-heavy tasks like compiling code, running a web server, or emulating older game consoles. The Pi 5 also has a VideoCore VII GPU that can be overclocked separately for better graphics performance in Kodi or lightweight games.

Most Pi 5 boards can reach 2.6–3.0 GHz on the CPU with adequate cooling, but results vary by individual chip. The official Raspberry Pi OS includes a built-in overclocking tool called raspi-config, which makes the process accessible even to beginners.

What You Need Before Overclocking

  • Active cooling: The Pi 5 runs hot at stock speeds; overclocking without a fan or heatsink will cause thermal throttling or shutdown. The official Active Cooler is a common choice, but any decent fan+heatsink combo works.
  • A good power supply: The Pi 5 needs a 5V/5A USB-C PSU (25W) for full performance. A weaker supply can cause voltage drops and instability when overclocked.
  • Latest firmware and OS: Update Raspberry Pi OS and the bootloader first: sudo apt update && sudo apt full-upgrade and sudo rpi-eeprom-update.
  • Backup: Overclocking rarely bricks a Pi, but a corrupted SD card is possible if the system crashes during a write. Back up important data.

How Overclocking Works on the Pi 5

The Pi 5 uses a Broadcom BCM2712 SoC. Unlike older Pi models, the CPU frequency is controlled by the firmware, not directly by the OS. You set a arm_freq value in config.txt, and the firmware adjusts the actual clock based on load and temperature. The GPU frequency is set with gpu_freq (or core_freq on some models).

Overclocking increases heat output and power draw. The Pi 5 has a temperature limit of 85°C; if it hits that, the firmware throttles the CPU down to protect the silicon. To overclock safely, you need to keep temperatures below about 80°C under load.

Voltage can be adjusted with over_voltage (range 0–6, where 0 is stock). Increasing voltage helps stability at higher clocks but generates more heat. The Pi 5’s firmware also has a force_turbo option that locks the CPU to maximum frequency, but that voids the warranty and is not recommended for daily use.

Step-by-Step Overclocking Guide

  1. Update your system: Run sudo apt update && sudo apt full-upgrade and reboot.
  2. Open config.txt: Edit with sudo nano /boot/firmware/config.txt (or /boot/config.txt on older OS versions).
  3. Add overclocking lines: At the end of the file, add:
    arm_freq=2600
    over_voltage=2
    gpu_freq=900
    

    Start with a modest CPU overclock (2.6 GHz) and leave GPU at stock (800 MHz) until you confirm stability.

  4. Save and reboot: Press Ctrl+X, then Y, then Enter. Reboot with sudo reboot.
  5. Test stability: Run a stress test like stress --cpu 4 for 10 minutes, or use sysbench cpu run. Watch temperatures with vcgencmd measure_temp.
  6. Increase gradually: If stable, bump arm_freq by 50–100 MHz and test again. Repeat until you hit instability or temperatures above 80°C.
  7. Overclock the GPU separately: Once the CPU is stable, add gpu_freq=850, test with a GPU benchmark like glmark2, and increase in small steps.

Common Problems and Fixes

  • Pi won’t boot after overclocking: Hold the Shift key during boot to disable overclocking, or remove the SD card and edit config.txt on another computer.
  • Random crashes or kernel panics: Usually means the CPU clock is too high. Lower arm_freq or increase over_voltage by one step.
  • USB or SSD disconnects: Overclocking the PCIe bus (via pciex1_freq) can cause this. Keep PCIe at stock (100 MHz) unless you know what you’re doing.
  • Thermal throttling: Check with vcgencmd measure_temp. If it’s above 80°C under load, improve cooling or reduce overclock.
  • Over_voltage ignored: The Pi 5 only allows over_voltage up to 6, and values above 0 may require force_turbo=1 to take effect, but that disables dynamic frequency scaling.

How to Choose Your Overclock Settings

Start with the most conservative overclock that gives a noticeable improvement. For most Pi 5 boards, 2.6 GHz CPU and 850 MHz GPU is a safe starting point. If you have excellent cooling (a large heatsink or a small fan), you can try 2.8–3.0 GHz CPU and 900–950 MHz GPU. The silicon lottery means some chips will hit 3.0 GHz at 1.0V, while others struggle at 2.7 GHz even with higher voltage.

Use the following table as a rough guide (not guaranteed):

  • Safe for all: 2.5 GHz CPU, 800 MHz GPU, no voltage change.
  • Good with active cooling: 2.6–2.7 GHz CPU, 850 MHz GPU, over_voltage=2.
  • Aggressive with premium cooling: 2.8–3.0 GHz CPU, 900 MHz GPU, over_voltage=4.

Remember that overclocking reduces the lifespan of the chip due to increased heat and voltage, but in practice most Pi 5s will last years even with a mild overclock.

Benchmarking and Measuring Performance

To see if your overclock actually helps, run benchmarks before and after. Use sysbench cpu run for CPU, glmark2 for GPU, and openssl speed for cryptographic performance. A 10% clock increase typically yields 5–10% real-world improvement, depending on the workload.

Monitor temperatures and frequencies in real-time with watch -n 1 vcgencmd measure_temp and vcgencmd measure_clock arm. If the frequency drops below your set value under load, that’s throttling – your cooling isn’t sufficient.

Alternatives to Overclocking

If you don’t want to risk instability, consider these alternatives:

  • Undervolting: Lower the voltage (over_voltage=-2) to reduce heat and power consumption, allowing the stock clock to sustain longer before throttling.
  • Improve cooling: A better heatsink or fan can reduce thermal throttling at stock speeds, giving a free performance boost.
  • Use a lighter OS: Raspberry Pi OS Lite (no desktop) uses fewer resources, making the system feel faster without any overclock.
  • Overclock the GPU only: If you mainly use the Pi for Kodi or retro gaming, overclocking the GPU may give more benefit than the CPU.

Frequently Asked Questions

Does overclocking void the Raspberry Pi warranty?

Officially, yes. The Raspberry Pi Foundation states that overclocking (especially with force_turbo) voids the warranty. However, a simple arm_freq change without voltage increase is generally tolerated, but it’s still a risk. If you damage the board, you won’t get a replacement.

What is the maximum safe overclock for a Pi 5?

There’s no single answer. Most chips can handle 2.8 GHz with good cooling and a small voltage bump, but some will crash at 2.7 GHz. The safe limit is the highest stable clock that stays below 80°C under load. Test incrementally and back off if you see crashes or temperatures above 85°C.

Can I overclock the Pi 5 without a fan?

It’s not recommended. The Pi 5’s stock cooler (if you have the official one) is barely enough for stock speeds. Without active cooling, even a mild overclock will cause immediate thermal throttling, negating any performance gain. Use at least a heatsink with a fan.

Why does my Pi 5 not boot after overclocking?

This usually happens when the CPU clock is too high for the voltage. The Pi fails to initialize memory or the kernel. To recover, hold the Shift key during boot to temporarily disable overclocking, then lower the settings. If that doesn’t work, edit config.txt from another computer.

Is overclocking worth it on the Pi 5?

For most users, yes, a modest overclock (2.6–2.7 GHz) provides a noticeable speedup in CPU-bound tasks with minimal risk, provided you have adequate cooling. The GPU overclock helps with graphics but is less impactful. If you’re just browsing or using the desktop, the difference may be imperceptible.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →