How to Overclock a Raspberry Pi 5: Safe Settings and Real Gains
Out of the box, the Raspberry Pi 5 runs at 2.4 GHz. One line in config.txt gets you more – but how much depends heavily on what the Pi is actually doing. We ran a Pi 5 at 2,600, 2,800 and 3,000 MHz under full load for 15 minutes each, logging clock speed, temperature, voltage and power draw along the way. Here’s which settings to use, which ones to skip, and what overclocking actually delivered in our tests.
In short
All it takes to overclock is a single arm_freq line in config.txt. Our Pi 5 ran stable all the way up to 3,000 MHz without any extra voltage. Not every Pi 5 gets there, though – 2,600 to 2,800 MHz is a more realistic target.
- The gain depends on the workload: pure number crunching scales almost one-to-one with the clock, memory-heavy tasks gain far less. Either way, the Pi draws noticeably more power and runs hotter.
- Skip
gpu_freq: the line that shows up in so many guides actually slows down the Pi 5’s GPU. - Try new values with
trybootfirst: if the Pi won’t start, just cut the power and it boots with your old settings again.
Is overclocking worth it? Our test results
Before you change anything, take a look at the numbers. The table shows how much faster our Pi 5 got at each step and what it cost in heat and power. Percentages are relative to the stock 2,400 MHz.
| Clock | CPU performance (sysbench, 4 cores) | CPU performance (sysbench, 1 core) | 7-Zip compression | CPU core power draw | Peak temperature |
|---|---|---|---|---|---|
| 2,400 MHz (stock) | – | – | – | 3.9 W | 66 °C |
| 2,600 MHz | +9% | +8% | +6% | +16% | 69 °C |
| 2,800 MHz | +13% | +16% | +9% | +34% | 73 °C |
| 3,000 MHz | +25% | +24% | +14% | +52% | 76 °C |
For pure number crunching like sysbench, performance rises almost in step with the clock: 25% more clock speed at 3,000 MHz gave us roughly 25% more performance. 7-Zip leans heavily on RAM, which doesn’t get any faster when you overclock, so it only gained 14%. Jeff Geerling saw around 10% in Geekbench for about 20% more power – another benchmark with a lot of memory access.
That tells you when overclocking pays off:
- Worth it: jobs that keep the CPU maxed out for a long time, such as compiling software or crunching data.
- Not much to gain: desktop use, web servers, smart home hubs or Docker containers. There the Pi is mostly waiting on memory, network or storage – or simply not that busy.
What you need
- A Raspberry Pi 5* – any RAM size works.
- Active cooling: the official Active Cooler* or a case with a fan. Without a fan, the Pi throttles itself under sustained load and the overclock is wasted.
- The official 27 W power supply*. It’s what Raspberry Pi recommends for the Pi 5, and if the voltage drops, the Pi switches the overclock off.
- An up-to-date Raspberry Pi OS (64-bit) and access to a terminal, either directly or over SSH.
How overclocking works on the Pi 5
The Raspberry Pi 5 is built around the BCM2712 chip with four Cortex-A76 cores. The firmware sets the clock speeds at boot based on /boot/firmware/config.txt. On our Pi 5 with current firmware, the defaults looked like this:
| Block | Setting | Default clock |
|---|---|---|
| CPU | arm_freq | 2,400 MHz, dropping as low as 1,500 MHz at idle |
| 3D graphics (V3D) | v3d_freq | 1,150 MHz |
| GPU core, image signal processor (ISP), video (HEVC) | core_freq, isp_freq, hevc_freq | 910 MHz each |
To overclock the CPU, arm_freq is all you need. The Pi 5 takes care of the voltage itself: a mechanism called DVFS (Dynamic Voltage and Frequency Scaling) raises it as the clock goes up and lowers it again at idle. In our test, the core voltage climbed from 0.876 V at stock to 0.961 V at 3,000 MHz without us touching anything.
If that’s not enough and the Pi becomes unstable, over_voltage_delta adds an extra offset in microvolts (1,000 µV = 1 mV). Don’t use the older over_voltage setting from Pi 4 guides: it sets a fixed value and bypasses the automatic scaling. According to the Raspberry Pi engineers quoted by Jeff Geerling, over_voltage_delta only adds its offset after DVFS has done its calculation.
Why you should leave out gpu_freq
Lots of guides also set gpu_freq=1000. According to the documentation, that one line sets four clocks at once: GPU core, ISP, video and 3D graphics. In our test, gpu_freq=1000 dropped the 3D clock from 1,150 to 1,000 MHz, while the other three went up from 910 to 1,000 MHz. In other words, it makes the GPU slower. If you really want to overclock 3D graphics, use v3d_freq instead.
What about arm_boost?
Raspberry Pi OS already ships with arm_boost=1 in config.txt. On a Pi 4 from board revision 1.4 onwards, it raises the clock from 1.5 to 1.8 GHz. On the Pi 5 it does nothing: our Pi 5 ran at 2,400 MHz with both arm_boost=1 and arm_boost=0. You can leave the line where it is.
Getting the cooling right
The Pi 5 protects itself from overheating. According to the official documentation, it throttles the CPU between 80 and 85 °C and the GPU as well above 85 °C. At 85 °C it also resets clocks and voltages to their defaults, which cancels out your overclock. The chip won’t be damaged, but you lose exactly the performance you were overclocking for.
So a fan is a must. Our test rig with its large tower cooler peaked at 76 °C at 3,000 MHz and 66 °C at stock. Expect higher numbers with the smaller official Active Cooler, and keep an eye on the temperature during the stability test (step 4). Our Raspberry Pi cooler buying guide helps you pick the right one, and our fan control guide shows how to connect and configure a fan.
Step 1: Update the system and firmware, fit the cooler
Start by bringing the system up to date:
sudo apt update && sudo apt full-upgrade -y
The Pi 5 keeps its firmware on a separate memory chip (EEPROM) on the board. This command tells you whether it’s current:
sudo rpi-eeprom-update
If it says “up to date”, you’re fine. If a newer version is available, install it with sudo rpi-eeprom-update -a. It’s applied the next time the Pi starts.
If you haven’t fitted a cooler yet, shut the Pi down now and unplug the power supply:
sudo poweroff
The official Active Cooler clips in with two spring-loaded pins through the holes next to the chip, and the thermal pads come pre-applied. Don’t forget to plug the fan cable into the small connector labelled FAN – otherwise the fan won’t spin. For a case with a built-in fan, follow the manufacturer’s instructions. Then plug the power back in and the Pi starts up.
Step 2: Try new settings safely with tryboot
Push the clock too far and the Pi may not boot at all. To avoid having to fix the SD card on another computer, test new values with tryboot. For a single reboot, the Pi reads tryboot.txt instead of config.txt. According to the official documentation, that only applies to this one boot: if the Pi crashes or you cut the power, it comes back up with your untouched config.txt.
First, copy your current configuration to tryboot.txt and open it:
sudo cp /boot/firmware/config.txt /boot/firmware/tryboot.txt
sudo nano /boot/firmware/tryboot.txt
Add these two lines at the very end. Start at 2,600 MHz with no extra voltage. If there’s already an arm_freq line further up – from an earlier step, say – just change its value instead of adding a second one:
[all]
arm_freq=2600
Save with Ctrl+O and Enter, then exit nano with Ctrl+X. The [all] line makes sure the setting applies to every Pi model, even if there’s a model-specific section above it. Now reboot into the test configuration – the quotes are required:
sudo reboot '0 tryboot'
A plain sudo reboot would ignore tryboot.txt. If the Pi hasn’t come back after a few minutes, cut the power briefly: it will start with your untouched config.txt, and you can try again with a lower value.
Step 3: Check that the new clock is active
Once the Pi is back up, this command shows the highest clock the CPU is now allowed to reach, in kilohertz:
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
At 2,600 MHz you should see 2600000. vcgencmd measure_clock arm shows the current clock – don’t let it confuse you at idle. With nothing to do, the Pi drops its clock, in our case down to 1,500 MHz. You’ll only see the full speed under load in the next step.
Two more commands tell you whether everything is fine:
vcgencmd get_throttled
vcgencmd pmic_read_adc EXT5V_V
The second one shows the voltage coming in from the power supply. According to the documentation, it should stay above 4.8 V for reliable operation. Under full load, ours dipped to 4.76 V in a few readings without throttling. The first one reports whether the Pi has slowed down because of heat or undervoltage. The values are bit flags that add up:
| Value | Meaning |
|---|---|
0x0 | All good |
0x1 / 0x10000 | Undervoltage right now / has occurred since boot |
0x4 / 0x40000 | Throttled right now / has occurred since boot |
0x8 / 0x80000 | Temperature limit (soft limit) active right now / reached since boot |
0x50000 | Both undervoltage and throttling have occurred since boot (0x10000 + 0x40000) |
Step 4: Run a stability test
A higher clock can look fine for a few minutes and only start crashing or producing errors under sustained load. So test every step for at least 15 minutes at full load. Install stress-ng for that:
sudo apt install stress-ng -y
Open two terminals, for example two SSH sessions. In the first one, load all four cores for 15 minutes:
stress-ng --cpu 4 --timeout 15m --metrics-brief
In the second, watch clock speed, temperature and throttling every 10 seconds:
watch -n 10 'vcgencmd measure_clock arm; vcgencmd measure_temp; vcgencmd get_throttled'
Press Ctrl+C to stop watch. A step counts as stable if all four of these hold:
- The Pi doesn’t crash, and stress-ng reports
passed: 4at the end. - The clock stays at the value you set while under load.
get_throttledshows0x0.- The temperature stays below 80 °C.
If any of these fail, the step isn’t stable – step 5 explains what to do next.
Once a step is stable, make it permanent in config.txt:
sudo nano /boot/firmware/config.txt
Add the same lines at the end as in tryboot.txt – for 2,600 MHz that’s:
[all]
arm_freq=2600
If there’s already an arm_freq line from an earlier step, just change its value. Save, delete the test file and reboot:
sudo rm /boot/firmware/tryboot.txt
sudo reboot
Step 5: Work your way up
If 2,600 MHz is stable, try 2,800 and then 3,000 MHz. For each step, repeat steps 2 to 4. The freshly copied tryboot.txt will already contain your current arm_freq line – just change its value. Our Pi didn’t need any extra voltage at any step.
If a step isn’t stable, you have two options: drop back one step, or add a small over_voltage_delta to tryboot.txt. Start small – for example with the +10,000 µV Jeff Geerling used when testing 2.6 GHz – and only go higher if the step stays unstable. For 3 GHz, Geerling used +50,000 µV. With the small offset, the 3,000 MHz configuration looks like this:
[all]
arm_freq=3000
over_voltage_delta=10000
More voltage means more heat, so check the temperature in the stability test after every change.
Not every Pi 5 can do 3 GHz
Chips from the same production line vary slightly – overclockers call it the silicon lottery. Our Pi 5 handled 3,000 MHz, yours might not, and that’s not a defect. Jeff Geerling has tested lots of boards: in March 2024, only one in ten ran stable at 3.0 GHz, while the rest topped out at 2.8 to 2.9 GHz. By December 2024 he had overclocked around 20 boards: most managed 2.6 or 2.8 GHz, and about half reached 3.0 GHz. So plan on 2,600 to 2,800 MHz and treat anything above that as a bonus.
Very few boards go beyond 3,000 MHz. Geerling only hit 3.2 GHz with beta firmware and a hack that lifts the voltage limit – not something for everyday use.
Pi won’t boot? How to undo the overclock
If you tested with tryboot, just cut the power for a moment. The Pi will start again with your untouched config.txt. Then delete tryboot.txt or put a lower value in it.
If you wrote the value straight into config.txt, you’ll have to edit the file from another computer. Put the SD card into your PC: the boot partition with config.txt opens on Windows, macOS and Linux. For an NVMe SSD you’ll need a USB enclosure for M.2 drives. Remove the arm_freq and over_voltage_delta lines and start the Pi again. If it still stays dark, our guide “Raspberry Pi won’t boot” will help.
Conclusion
Overclocking the Raspberry Pi 5 takes a single line, and the Pi adjusts the voltage on its own. Whether it’s worth it depends on your workload: for pure number crunching, 3,000 MHz gave us about a quarter more performance, for memory-heavy tasks much less – and always at the cost of noticeably more power and heat. Work your way up step by step with tryboot, leave out gpu_freq, and settle for whatever your board runs stable at.
Raspberry Pi 5 overclocking FAQ
With an active cooler and the official power supply, yes – as long as you go step by step and test each step. If the Pi gets too hot, it throttles itself and resets clocks and voltages to their defaults at 85 °C. According to the official documentation, that doesn’t harm the chip. Unstable settings cause crashes, which you can safely undo with tryboot.
Active cooling with a fan – at minimum the official Active Cooler or a case with a fan. A passive heatsink isn’t enough under sustained load, and the Pi will throttle back down. In our test with a large tower cooler, the Pi 5 peaked at 76 °C at 3,000 MHz.
Add the line arm_freq=2600 to /boot/firmware/config.txt – to try it out, put it in a copy called tryboot.txt first and reboot with sudo reboot '0 tryboot'. After a stability test, move up to 2800 and 3000. You only need extra voltage via over_voltage_delta if the Pi becomes unstable.
The official documentation says settings beyond what raspi-config offers may set a permanent bit in the chip that shows the Pi has been overclocked. It’s explicitly set when force_turbo=1 is combined with any over_voltage setting above 0. This guide doesn’t use force_turbo.
It depends on the workload. In our test, 3,000 MHz gave about 25% more performance in pure number crunching (sysbench) but only 14% in 7-Zip compression. The CPU core drew a little over 50% more power to get there. For desktop use, web servers or smart home tasks, you’ll barely notice a difference.
No. gpu_freq sets four clocks at once. On our Pi 5, gpu_freq=1000 lowered the 3D graphics clock from 1,150 to 1,000 MHz. You don’t need it for a CPU overclock, and for 3D graphics there’s v3d_freq.
Nothing measurable. The line ships in Raspberry Pi OS’s config.txt and raises the clock to 1.8 GHz on a Pi 4 from revision 1.4 onwards. Our Pi 5 ran at 2,400 MHz with both arm_boost=1 and arm_boost=0. On the Pi 5, the only way to more clock speed is arm_freq.


