How to Overclock Any Raspberry Pi

Overclocking Raspberry Pi
A selection of active and passive cooling products for the Raspberry Pi 4. (Image credit: Tom's Hardware)

There’s free, extra performance buried inside your Raspberry Pi. Just as you can overclock a PC, increasing its CPU speed above stock, you can overclock any model of Raspberry Pi .  In fact, on newer models, you can not only turn up the Raspberry PI’s CPU speed, but also its GPU speed. You can, for example, get a Raspberry Pi 4, which defaults to 1.5 GHz CPU / 500 MHz GPU all the way  up to 2.1 GHz / 750 MHz or perhaps even higher.

We’ve written in the past about the benefits of overclocking a Raspberry Pi 4 specifically, but the methods below will work on any Pi model. We also have a table of recommended Raspberry Pi overclock settings for everything from the Raspberry Pi 1 to the Zero / Zero W  at the bottom. We have updated the table to include the latest Raspberry Pi models. The Raspberry Pi 400 operates at 1.8 GHz out of the box, and the new Compute Module 4 can be overclocked to 2.3 GHz!

How to Overclock a Raspberry Pi 

1. Attach a fan or heatsink to the Raspberry Pi before powering on.

A Raspberry Pi 4 with Pimoroni’s Fan Shim providing active cooling.  (Image credit: Tom's Hardware)

2. Update the available repositories and then upgrade your Raspberry Pi. This will ensure we have the latest software available. 

sudo apt update && sudo apt dist-upgrade

3. Open config.txt for editing. It’s found in the /boot directory. 

sudo nano /boot/config.txt

 4. At the bottom of the file make a new line and add the corresponding data from the table below for your model of Raspberry Pi. If you choose to use this card in a different model of Raspberry Pi later, you should change or remove this first.

5. Save the file by pressing CTRL + X, Y then ENTER.

6. Reboot the Raspberry Pi. If the Raspberry Pi fails to boot, power off the Raspberry Pi, remove the micro SD card and insert it into another computer. In the BOOT partition edit config.txt and check your settings. You may need to reduce the overclock by 100MHz in order to boot.

7. With the Raspberry Pi booted to the desktop open a new terminal. To see the current CPU speed of the Pi updated every second use this command.

watch -n 1 vcgencmd measure_clock arm

When idle the CPU will run at around 600MHz, if we were to open a web browser or another heavy application such as Wolfram, then the CPU speed would increase to match the demand. 

Running the Chromium browser on a content heavy website will force the CPU to work. (Image credit: Tom's Hardware)

Overclocking values for all models of Pi 

All of these values have been tested with our Raspberry Pis but you may need to tweak the settings as per step 6. Please note that for the Raspberry Pi 4 we have increased the maximum speed to 2.2 GHz and used force_turbo=1 to push the Raspberry Pi even further, but this comes at the risk of invalidating the warranty.

Swipe to scroll horizontally
Modelconfig.txt settings
Raspberry Pi 1 Model A & Barm_freq=1000
Row 1 - Cell 0 core_freq=450
Row 2 - Cell 0 over_voltage=6
Raspberry Pi A+ / B+ / Compute Module Cooling Requiredarm_freq=1100
Row 4 - Cell 0 core_freq=450
Row 5 - Cell 0 sdram_freq=450
Row 6 - Cell 0 over_voltage=6
Raspberry Pi 2 v1.1arm_freq=1000
Row 8 - Cell 0 core_freq=500
Row 9 - Cell 0 over_voltage=2
Raspberry Pi 2 V1.2 (Shares the same CPU as a Raspberry Pi 3)arm_freq=1300
Row 11 - Cell 0 core_freq=500
Row 12 - Cell 0 over_voltage=4
Raspberry Pi 3 & Compute Module 3arm_freq=1300
Row 14 - Cell 0 core_freq=500
Row 15 - Cell 0 over_voltage=4
Raspberry Pi 3 A+ / B+ / Compute Module 3+arm_freq=1500
Row 17 - Cell 0 over_voltage=4
Raspberry Pi 4 / 400 / Compute Module 4arm_freq=2200
Row 19 - Cell 0 gpu_freq=750
Row 20 - Cell 0 over_voltage=6
Row 21 - Cell 0 force_turbo=1
Raspberry Pi Zero / Zero Warm_freq=1100
Row 23 - Cell 0 core_freq=450
Row 24 - Cell 0 over_voltage=6
Les Pounder

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".