The best laptops for programming in 2024

Quick menu

Best laptops for programming - Apple/Razer/LG on red background

(Image credit: Apple/Razer/LG)

Jump to the quick list↴
1. Best overall: MacBook Pro 16 M3
2. Best for games: Razer Blade 18
3. Best compact: Dell Precision
4. Best speed: Zenbook Pro 14 Duo
5. Best Microsoft: Surface Laptop 5
6. Best portable: MacBook Air
7. Best tablet: Asus ROG Flow Z13
8. Best value: MacBook Pro 14 M3
9. Best Chromebook: HP Elite Dragonfly
FAQs

The best laptops for programming will offer portability, flexibility, and power in a thin and light package, meaning they're easy to stash for digital nomads but still powerful enough to code.

With so many laptops on offer these days, we've helped to whittle the selection down to only the best of the best, accounting for a variety of needs. To do so, we've personally tested every single laptop on this page, whether it's testing the speed, performance, power, display, or battery life, we've made sure every machine we've listed meets the standards needed for heavy coding work (see how we test laptops for more). 

If it's time to fully revamp your setup, why not check out our guides to the best keyboard and best mouse. Plus, if you're a more stationary, at-home programmer, it's worth looking into the best monitors for programming to keep your eyes nicely catered for. 

Quick list

We've lined up our top 3 picks ready for your perusal, with a quick insight into why they made the cut. Simply click on 'read more below' to get even more information, including links to our reviews.

Best laptop for programming overall

A Space Black Apple MacBook Pro 16-inch M3 sitting on a grey/blue tableCB

(Image credit: Future)
The best laptop for programming.

Specifications

CPU: M3 Pro/M2 Max, 12-core/16-core CPU
Graphics: M3 Pro, 18-core GPU / M3 Max, 40-core GPU
RAM: M2 Pro, 18-128GB / M2 Max, 36-128GB
Screen: 16.2-inch Liquid Retina XDR display
Storage: 512GB-8TB
Ports: SDXC card slot, HDMI, headphone jack, MagSafe 3, 3 x Thunderbolt 4 (USB-C)

Reasons to buy

+
Extremely long battery life
+
Plenty of ports
+
Beautiful big screen
+
Super powerful

Reasons to avoid

-
You pay for the M3 magic

The release of the M3 MacBook Pro 16-inch was a blessing for programmers as it combines the incredible power of the new Apple chip with a brilliantly large and bright screen (1,600 nits, if you're asking). This means no squinting at a small screen with zero compromise on power and speed; hurrah! 

The MacBook Pro's super-tight pixel density combined with MacOS also makes for the best font rendering of any laptop, which is perfect for long coding sessions.

You'll have more than enough battery to get you through the most intense coding session – this delivers an impressive 22 hours. In our review, we appreciated that there are a bunch of ports including HDMI and a memory card slot, so you can plug a second screen in directly and up your memory, too. There's also ProMotion and HDR (High Dynamic range).

And, of course, all MacBooks have the advantage of being able to compile iOS apps and have a Unix-style terminal, though it's also true that for some coding workflows, Windows is essential. Read our full MacBook Pro 16-inch (M2, 2023) review to find out more about why we rate this laptop.

Best laptop for game development

Razer Blade 18CB endorsed

(Image credit: Razer)

02. Razer Blade 18 (2023)

The best laptop for game development

Specifications

CPU: 13th-generation Intel Core i7-i9
Graphics: Up to Nvidia GeForce RTX 4090
RAM: 16-64GB DDR5
Screen: 18-inch QHD+, 240Hz, G-Sync
Storage: 1-2TB M.2 PCIe NVMe SSD

Reasons to buy

+
Incredibly powerful
+
Fantastic new 18-inch screen
+
Modern design with great keyboard

Reasons to avoid

-
Very expensive
-
Short battery life

The Razer Blade 18 is the latest version of Razer's top-spec laptop, and it's better than ever with a larger screen, smaller bezels, and the latest Intel and Nvidia chips. It's a fantastic laptop for coding, but especially if you're working on games.

That's in no small part down to the hot new Nvidia GeForce RTX 4090, the fastest laptop GPU on the planet. This allows you to work with complex 3D games that use cutting-edge tech, like ray tracing, and you'll be able to play your game afterward to test how it runs.

It's not just a gaming laptop, however, as it's built for creative professionals, and this means if you're a programmer working on heavy-duty projects, this is a laptop well worth considering. It's very expensive, but for your money, you're getting some of the best mobile tech available right now. Combined with a great build quality, that stunning 18-inch screen, and the latest Intel 13th Gen CPUs, this is a brilliant creative workstation for people who need a lot of power. 

Best compact laptop for programming

Dell Inspiron 5470 laptop open on wooden desk

(Image credit: Kerrie Hughes)
The best compact laptop for programming

Specifications

CPU: Intel Core i7-12900H
Graphics: Nvidia RTX 1000 Ada
RAM: 32GB
Screen: 14-inch QHD+ (2560 x 1600) or FHD+ (1920 x 1200)
Storage: 256GB-1TB
Ports: 4x Thunderbolt 4 (USB-C), MicroSD card reader, 3.5mm headphone jack

Reasons to buy

+
Very portable
+
Brilliant battery
+
Can handle complex tasks

Reasons to avoid

-
No USB-A or HDMI

The Dell Precision 5470 laptop may be smaller than some others on the list, but it comes loaded with a huge amount of power for its compact frame. In fact, our testing put its performance close to that of a 14-inch MacBook Pro with Apple’s M2 Pro chip, and if you want the even newer 5480 model, it's physically the same but runs an even faster 13th Gen Intel chip. 

It's brilliant for programming because of the excellent battery life (we got 12 hours in tests), and the well proportioned display. Sure, it isn't the biggest at 14-inches but it's the price you pay for portability. Plus, our reviewer compared it to her MacBook Air and felt that the extra half inch really made a big difference. All of this is perfect for programmers as it ensures your eyes don't strain on a small screen. The colours are also highly accurate.

Best powerful laptop for programming

Asus Zenbook Pro 14 Duo OLED on a table in a home office

(Image credit: Future)
A powerful dual-screen laptop for programming

Specifications

CPU: Intel Core i9-13900H (14-core)
Graphics: Up to Nvidia RTX 4060 (8GB)
RAM: Up to 32GB DDR5
Screen: 14.5-inch 2880 x 1800 120Hz OLED, 12.7-inch 2880 x 864 IPS
Storage: Up to 2TB SSD
Ports: 2x USB Type-C with Thunderbolt 4, 1 x USB-A 3.2, SD card, HDMI 2.1, 3.5mm audio jack, SD card reader

Reasons to buy

+
Fabulous screen tech
+
Excellent connectivity
+
Gorgeous build quality

Reasons to avoid

-
Unusual ergonomics
-
Mediocre battery life
-
Slightly limited performance

The Asus Zenbook Pro 14 Duo OLED (2022) has brilliant components, and it can easily handle your programming projects – even the most complex. Programming tasks also require a lot of power and the 14-core processor and 32GB of RAM will enable multitasking. So the specs match up to the needs of the task.

But the most unique feature of the Asus Zenbook Pro 14 Duo OLED (2022) is its dual-screen setup – there’s a 14.5-inch 120Hz OLED main screen, which is nice and big (helping to prevent eye strain) and a 12.7-inch IPS display above the keyboard.

The second screen is a huge positive for programmers as it frees up vital screen space. Think of it as a super-charged Touch Bar, allowing you to move apps and tools to the bottom screen, giving you more space to work with on the main one. Plus, you can draw on the second screen with a stylus if you want to sketch out ideas or create visual content for your project.

Read more in our Asus Zenbook Pro 14 Duo OLED review.

Best Microsoft laptop for programming

Surface Laptop 5 on a wooden table in an office

(Image credit: Future)
Windows programming on Microsoft’s own hardware

Specifications

CPU: 12th-generation Intel Core i5 – i7U
Graphics: Intel Iris Xe
RAM: 8GB – 16GB
Screen: 13.5-inch PixelSense (2,256 x 1,504) touch
Storage: 256GB – 1TB SSD

Reasons to buy

+
Comfortable keyboard
+
Beautiful screen

Reasons to avoid

-
Not enough ports
-
Slightly dated by large bezels

If you're a programmer working on Windows 10 apps in particular, then the Surface Laptop 5 could be a good choice for you. As it's made by Microsoft, this is a brilliant showcase for Windows 11, so you can be sure your Windows apps run perfectly on the operating system.

This latest Surface Laptop comes with 12th generation Intel Core processors. They're not the absolute latest technology, but the newer 13th Gen chips are only slightly faster.  The 13.5-inch model is limited to 16GB, but if you need 32GB, the 15-inch version gives you that option.

You also get a speedy SSD, which makes this an excellent laptop for even the most intense of programming tasks. The PixelSense touchscreens also offer excellent pixel density of 201DPI, matching Apple's Retina displays and ensuring gorgeous text rendering for long coding sessions, but adding touch input into the mix. 

Best of all, our testing of the previous gen model found that it has one of the longest battery lives we've seen in a laptop, which allows you to work out and about without worrying about being plugged into a wall socket.

Best portable laptop for programming

MacBook Air laptop in an office on a black deskcb badge

(Image credit: Future)
The best laptop for programming on the move.

Specifications

CPU: Apple M2
Graphics: Integrated 8-core /10-core GPU
RAM: 8GB – 24GB
Screen: 13.6-inch (diagonal) 2,560 x 1,664 LED-backlit display with IPS technology
Storage: 256GB – 2TB SSD
Dimensions: 11.97 x 8.46 x 0.44 inches (30.41 x 21.5 x 1.13cm; W x D x H)

Reasons to buy

+
Great new design
+
Excellent battery life

Reasons to avoid

-
More expensive than previous model
-
Gets hot when under pressure

The Apple MacBook Air (M2, 2022) is a fantastic ultra-portable laptop for programming on. In fact, the MacBook Air M2 now comes in a 15-inch size, giving you even more space for programming.

The M2 chip from Apple is a powerful bit of silicon that makes coding on the MacBook Air a real joy. It's powerful enough to compile code in seconds, and you can run simultaneous emulations and tests at the same time. Sure, it isn't as powerful as the M3, but it's more than enough whack for most.

Best of all, the MacBook Air (M2, 2022)'s battery life is amazing, lasting over 16 hours in our tests. So, you can work on this throughout the day without worrying about being plugged into a power source.

It's not all good news, though, as it is quite a bit more expensive than the previous model, which means it's not quite as good value for money. The 2020 model with an M1 chip is still a fine laptop for programming on and is still on sale, so that's worth checking out if the M2 model is too pricey for your budget. Find out more in our full MacBook Air (M2, 2022) review.

Best tablet laptop for programming

ASUS ROG Flow Z13 on a desk

(Image credit: Future)
A powerful thin and light laptop for programming on

Specifications

CPU: Intel Core i9-12900H (14-core)
Graphics: Intel Iris Xe, Nvidia RTX 3050 Ti
RAM: 16GB
Screen: 13.4-inch, UHD+, IPS LCD
Storage: 1TB SSD

Reasons to buy

+
Staggering performance for a tablet PC
+
Very portable

Reasons to avoid

-
Not that comfortable

This unique laptop brings incredible power to a supremely thin and light form factor. In fact, it might be the most powerful tablet PC we've ever tried. It features a powerful 12th-generation 14-core Intel processor, which will handle all your coding needs with ease.

It also comes with an RTX 3050 Ti graphics card, which is handy for anyone who wants to code - and test - games. The 16GB of DDR5 memory also means this is supremely fast, and is ideal for people who want an easily portable laptop to code on.

It has a thin keyboard, but some people may not find it that comfortable to code on for long periods of time, so a larger keyboard may be necessary - which is easy enough to plug in.

This is pricey, but it's a completely unique laptop that could transform how you code. For more insight, make sure to read our full Asus ROG Flow Z13 review.

Best value laptop for programming

MacBook Pro 14 M3

(Image credit: Apple)

08. MacBook Pro 14-inch M3 (2023)

The best value laptop for programming with a smaller screen

Specifications

CPU: Apple M3
Graphics: Integrated 10-core
RAM: Up to 24GB
Screen: 14-inch Liquid Retina XDR display
Storage: Up to 2TB

Reasons to buy

+
Brilliant performance
+
Best screen on a laptop

Reasons to avoid

-
Screen may be a bit small for some

While some coders may find having a larger 16-inch or 17-inch screen on their laptop makes programming more comfortable, other people may find those laptops too big and bulky to easily carry around. So, the 14-inch MacBook Pro is a great choice for anyone who wants a powerful laptop for programming that's also more easily portable.

The good news if you're looking for this class of machine on a slightly tighter budget is that Apple has updated the 14th MacBook Pro with the M3 family of Apple silicon. This time, the 14-inch Pro gets the entry-level M3 chip and not just the M3 Pro and M3 Max. That's created a new entry-level model that's cheaper than before while offering nearly all of the upsides of the existing 14-inch Pro.

The new M3 chip is still very powerful, while you get the same fabulous build quality, stunning Liquid Retina XDR display capable of up to 1,600 nits of brightness, and truly stupendous battery life. In fact, this new entry-level model with its 3nm M3 chip might just offer the best battery life of any MacBook, ever.

You do miss out on a single Thunderbolt port with this cheaper model. But that still leaves you with two Thunderbolt 4 ports, along with HDMI, an SDXC card reader, and MagSafe 3.

To find out more about why we rate this laptop so highly, read our review of the original MacBook Pro 14-inch M1 review (or if you want more screen real estate check out its bigger sibling in our MacBook Pro 16-inch review).

Best Chromebook

Profile shot of the HP Elite Dragonfly G2 laptop

(Image credit: HP)

9. HP Elite Dragonfly Chromebook

An enterprise-level Chromebook

Specifications

CPU: Intel Core i5-1245U with vPro
Graphics: Intel Iris Xe
RAM: 8GB LPDDR4x-4266
Screen: 13.5-inch QHD+ display
Storage: 128–512GB

Reasons to buy

+
Powerful processor
+
Beautiful display
+
Stylish and lightweight

Reasons to avoid

-
Very expensive for a Chromebook

With its gorgeous touchscreen QHD+ display made of Corning Gorilla Glass 5, this beautifully thin and light laptop boasts some excellent specs and features. It hosts 12th-gen Intel processors parried with 32GB RAM, allowing it to reach blistering speeds - plus there's 128GB storage for all of your projects.

It also comes with some excellent additional security measures, so if you're of the paranoid ilk or are working for a particularly nervy client, you can rest assured that your files will be safer on this Chromebook than some other devices. It even has optional 5G/LTE connectivity, making it even better for programmers on-the-go.

However, at its cheapest configuration it's still a whopping $1,000 / £1,000, which climbs to the astonishingly high $3,000 / £3,000 at its highest specs. 

FAQs

How to choose a laptop for programming

Why you can trust Creative Bloq Our expert reviewers spend hours testing and comparing products and services so you can choose the best for you. Find out more about how we test.

Programming can be done on many different types of machines but many programmers want something more than just a basic laptop. While you don't necessarily need a powerhouse of a laptop to code on, if you need to compile your code, and test out the games you're working on, for example, then you'll want a laptop with plenty of RAM and a modern multi-core processor. They are able to compile code much more quickly. And, the less time you have to spend waiting for your laptop to complete complex tasks, the more time you have to do other things – such as take on more projects.

Screen size is really important when selecting one of the best laptops for programming. You'll get more on a 15-inch screen than a smaller one, for example, so it's easier to read through code and make GUI adjustments. Of course, with a bigger display you sacrifice portability. 

Also consider getting an Intel Core i5 processor as a minimum – that level of power isn't exceptional but it will guarantee you enough performance, especially if you're doing things like working with complex website layouts that have a lot of background code. Large, complex programs compile faster with a faster processor.

Graphics can also be key depending on the development work you're doing. If you're working with game development in an environment such as Unreal Engine or Unity then you need to consider the graphical requirements of those apps. Don't miss our round up of the best graphics cards if this is something you might need. 

And remember it's a good idea to use an operating system that's aligned with your goals. Want to develop in Xcode for the iPhone, iPad and Mac? Then you're going to need a Mac.

Plus, the faster your laptop can compile code, the less time you'll be spending waiting around, and that can mean you're more productive, and are able to take on more projects.

The best laptops for programming are essential tools for any developer that wants a powerful machine to work on, while also being portable enough that they can take it out and about with them, and work almost anywhere.

Meanwhile, you may also want to see our guide to the best laptops for Photoshop and best laptops for graphic design.

How much RAM do I need for coding?

If you're looking for a laptop for coding on, then you'll want to make sure it comes with plenty of RAM. The more RAM a laptop has, the better it is at multitasking, so you can have multiple apps running at once.

It'll also help you compile your code quickly, while also letting you test and run your apps and games. The faster you can do this, the more productive you'll be.

So, we recommend at least 8GB of RAM for coding on a laptop, but ideally you should go for 16GB, or if your budget can stretch to it, 32GB. That's only necessary for seriously heavy workloads, however.

How do we test?

Coding presents a quite specific remit for any laptop. High on the list of priorities is a decent screen that redenders nice, crisp text. It's so important for long coding sessions. In particular we consider pixel density and contrast, though support for touch is less of a priority.

Performance wise, you'll want a modern Intel or AMD CPU with at least 16GB of RAM. We test to ensure any laptop we recommend has sufficient performance for serious coding. On the graphics side of the equation, it will depend on the type of applications you're coding. Some are more graphically demanding than others. But in all cases we assess GPU performance to provide that important context.

Plenty of fast storage is also important, so we test both sequential throughput and random access. Keyboard quality is another super vital element for any serious coding session. So, we're looking for feel, comfort and responsiveness.

We also assess ergonomics, build and usability, chassis rigidity, trackpad response and more to build up a practical picture of how well a laptop performs in the real world rather than merely benchmarks.

Finally, battery life is surely critical, especially if you're coding on the move. Battery life is also an area where laptops can diverge dramatically. So, we careful evaluate just how long each model can survive away from mains power.

A veteran from the days of the 8-bit ZX Spectrum, Orestis is always interested in the fastest, slickest way to make computers do new and exciting things.
With contributions from