IT Pro is supported by its audience. When you purchase through links on our site, we may earn an affiliate commission. Learn more

Best laptops for programming and coding in 2022

There are so many factors to consider when choosing the best laptop for programming – here are our top picks

Programmers, coders, software developers, and engineers are professions that depend greatly on their laptops. From keyboard and port options, to processing power and the type of operating system, several factors come into play when choosing the best laptop for programming or coding.

However, the most important quality when searching for the best laptop for programming and coding is its ability to make work not feel like work. This means that the perfect device needs to combine all the most helpful features with being a pure pleasure to use – without constant lagging, heavy lifting, or bad design.

To help you navigate the market, we've collated some of the best machines available, based on the most common programming, coding, software development, and engineering needs.

What to look for in a programming laptop

Display size

The size of the display will make an enormous difference to certain developers. More specifically, it will matter more to those with smaller external displays, or no external displays at all.

If using a laptop, most programmers opt for at least one external monitor in addition to their laptop’s built-in screen for maximum productivity. However, some programmers own multiple external displays and don’t need to have their laptop open at all, having it simply act more like a mobile tower computer rather than an all-in-one workhorse.

Laptops typically come in sizes ranging from 13 inches to 16 inches, but the short answer is bigger is better in nearly all cases. Looking at multiple lines of code between project files can be tricky on smaller screens and running a simulator on the same window can make for an uncomfortable experience if coding just on the laptop itself.

If you go for a smaller display, make sure you have a good amount of screen estate in your overall set-up, such as one or two external 27-inch displays. They don’t need to be expensive, 4K panels – programming values space over resolution.

Type of keyboard

There are so many factors that differentiate one keyboard from the next, and what keyboard is considered best can be quite subjective. The type of key switch, size of the keyboard, and how much you can customise it also come into play so, above all else, it’s worth getting hands-on with a variety of keyboards before you buy to find your favourite type of configuration.

What’s more objective, though, is the need for a comfortably sized keyboard. Key switches come in myriad different styles but keyboard sizes typically have just the two: keyboards with number pads and those without them. You will often find the number pads on laptop keyboards go unused in programming and they can, in certain installations, offset the keyboard away from the centre of the display, which can be off-putting if using the laptop’s keyboard to type regularly, rather than an external board.

Key switches also vary significantly between laptops and keyboard manufacturers. Membrane keys are most commonly found on less expensive office keyboards while mechanical keys come in different sensitivities and levels of tactile and audible feedback. The latter are trendier but are found less commonly on laptops and need to be thoroughly tested before buying as they can be an acquired taste.

Processing power and storage

Software or web development isn’t typically the most compute-heavy workload when compared to job functions that involve things like video editing and running data analyses, for example. Regardless, the likelihood of having multiple applications running at the same time, as is the case in most office environments, will demand high-performance hardware such as CPUs and RAM to get the job done efficiently.

It’s also worth considering the amount of storage space you will need and the type of storage required. We recommend going for as much storage as you can afford and choosing solid state drives (SSDs) over traditional hard drive disks (HDDs).

SSDs have historically been much more expensive than HDDs but prices have dropped considerably in recent years and the slightly pricier type of drive will allow you to access the files you need at lightning speed, comparatively speaking.

The best laptops for programming

1. Apple MacBook Air (M1, 2020)

Best Mac for programming and coding

MacBook Air open on a table

IT Pro

Phenomenal performanceNo design change from previous generation
Whisper-quiet operation 
Flawless display 

MacBook Airs have been Apple's answer to the ultra-portable notebook for several years now. However, with the addition of the company's in-house processor, the M1 chip, they are now serious contenders for professional workloads too.

All that extra power gained in recent years has not raised the price of the series of notebooks either; the model we reviewed here is now available for under £900. There is a 2022 version of the MacBook Air, with an M2 processor, which is likely to have a performance boost, but that will come with a much larger price tag. You may also be more interested in the larger MacBook Pro, but for us, the Air hits the right notes as it's more compact, has options for both 8GB and 16GB models and comes with a smaller price tag. 

The MacBook Air will suit almost all programmers, coders, and software developers, with all major IDEs able to run on it without any issues. If you're a mobile developer using the Swift  or SwiftUI programming languages, you'll need a Mac to program for Apple's ecosystem, as Xcode is unavailable on other operating systems.

Apple made some very bold claims with its M1 processor and it has largely delivered on every single one of them. The fact that the Air, traditionally the Mac model with the lowest performance power, can go toe-to-toe with the best around is almost proof of concept. In our review, the MacBook Air (2020) produced a multi-core score of 7,476 in Geekbench - a 36.7% increase over the previous Core i9 MacBook Pro. The Air's Geekbench score was below the Dell XPS 15 (8,707) to further underline its processing capabilities. 

For coders that have power-intensive workloads, and those that want to stay with Apple hardware, the MacBook Air (2020) is a great, affordable notebook. 


8-core 3.2GHz/2.1GHz Apple M1 chip with 8-core GPU




13.3in 2,560 x 1,600


304 x 212 x 16.1mm



Price when reviewed: £1,374

Read our full Apple MacBook Air M1 review for more information.

2. Dell XPS 15

Best for processing power

A photograph of the Dell XPS 15

IT Pro

Stunning IPS displayDisappointing battery life
Powerful and omnicompetentOnly 4GB of vRAM
Easy to upgrade post-purchaseNo Type-A USB

Dell's XPS range of laptops are usually released with an assortment of high-scoring reviews. Each device produces an impressive set of benchmark scores, particularly for processing power, and they generally offer an excellent user experience. The 2022 model of XPS 15 is no different here, which makes it an excellent choice for coders.

The latest 15in model can rival the very best – including M1 MacBooks – thanks to its 1.9GHz octa-core Intel i7 11800H chip. That's backed up with 32GB of RAM and an Nvidia RTX 3o50Ti GPU to complete a very efficient spec sheet. The XPS 15 is more than capable of handling the toughest of workloads and its impressive cooling system and silent performance underline that quality. 

In IT Pro's in-house benchmarks, the XPS 15 excelled; for overall computing, it recorded 272, not far off the XPS 17 (281). Its GeekBench 5 scores also highlighted its processing prowess, hitting 8,707 for multi-threaded workloads. Which is more than the M1-based MacBook Air (2020) managed. In real terms, it suggests that this is a machine that can handle multiple use cases, work across a range of programs and applications, and more than enough power to see you through your workday.  
It is also worth looking at the keyboard on the XPS 15 too; it isn't just a powerhouse.

The keyboard is solid with precise action and nicely judged key travel. It has a traditional layout, so no odd idiosyncrasies to trip you up as you work through code. 
The trackpad is also decent and quite large at 150 x 90mm. Its smooth surface is satisfyingly tactile with a perfectly calibrated click action for both feel and sound. So as well as lashings of processing power, the Dell XPS 15 is also a good choice for inputting data.


Intel Core i7-1180H




15.6in, 3840 x 2400 touchscreen


354 x 230 x 18mm



Price when reviewed: £2,040 exc VAT

Read our full Dell XPS 15 review for more information.

3. Microsoft Surface Laptop Studio

Best 2-in-1 programmers and coders 

A photograph of the Microsoft Surface Studio Laptop in Stage mode
Excellent functionalityNo memory card reader
Great battery lifeUnderpowered for some professional software
Two Thunderbolt 4 connectionsHighest spec versions expensive

Unlike many 2-in-1 machines on the market, the Microsoft Surface Laptop Studio is truly fit for business. One of the best devices of its kind we've ever tested, the tablet-cum-laptop offers decent performance and 17-hour battery life to boot.

The real business benefit is its omni-capability - it functions not only as a tablet and a laptop but also as a bespoke presentation system thanks to its clever Stage mode. So whether it's building the next big feature for your application or website, or presenting your hard work to the higher-ups, the device is versatile enough to bring solid performance in many working setups.

The performance of the Microsoft Surface Laptop Studio is good, but don't expect it to be beating the MacBook Pros or the Dell XPS 15 any time soon, however, it should be plenty suitable for programming. Running real-time simulators for tasks like app development may degrade the performance a little though, so if that's a core part of your workflow then perhaps consider something more powerful.

With its 14.4in screen and 3:2 aspect ratio, the Surface Laptop Studio can fit a number pad with its chiclet-style keyboard. The keys themselves are comfortable for long periods of typing and have decent travel. There is also Microsoft's Adaptive Kit which lets users add some ridged elements to select keys to make them easier to find without looking, although the F and J keys already have their habitual home ridges for touch typists.

The touchpad is sensitive and highly usable, with a discernible click when pressed in any area. However, the Surface Laptop Studio also benefits from a touch screen, which is available whatever mode the notebook is in. It comes with a Slim Pen 2, that writes and doodles with little noticeable lag.


Intel Core i7-11370H




14.4in 2,400 x 1,600 touchscreen


323 x 228 x 19mm



Price when reviewed: £2,399

Read our full Microsoft Surface Laptop Studio review for more information.

4. Asus Chromebook CX9 (CX9400CE)

Best Chromebook for coding

A photograph of the Asus Chromebook CX9 on a table
Stylish, strong and light chassisMediocre battery life
Great keyboardExpensive
High-quality screen 

Chromebooks aren't often the first option that's likely to spring to mind for developers looking for a work machine, but increasing Linux support in ChromeOS is making it a more and more feasible option. If you are looking for a Chromebook for coding, then you can do much, much worse than the Asus Chromebook CX9.

Being among the more expensive Chromebooks available on the market, you would expect strong performance and it does indeed deliver, but not in excess. The performance is solid, but there are other far more powerful laptops on the market that are worth considering if pace is your priority. That said, in our tests, we ran into no issues running multiple applications concurrently and what's more, the CX9 runs quietly and cool.

The battery life on the CX9 is fine. It beats a lot of the high-powered machines in this list but not by a considerable margin with a score of 10hrs 47mins, and many programmers will favour power over battery life given the task at hand. Still, it's a highly capable device that delivers decent performance, all bundled into a strong and light chassis. 

It's got a good keyboard, too, with snappy and fast chicklet keys that have plenty of travel alongside a consistent typing action. A little more travel here than on the MacBook Pro and the latest Dell XPS. And unlike a number of small laptops that have keyboards that feel soft or hollow, the CX9's excellent keyboard is ideal for hours of typing. What's more, the ErgoLift hinge tilts the keyboard towards the user, which makes the typing position more comfortable.

The trackpad is fairly wide and its range is good. It's accurate, though it is a little tough to click. There is no numberpad, which is something of a con for programmers, though you can overlay a virtual numberpad over the trackpad, but this stop-gap solution doesn't always register keypresses and is unsatisfying to use. If you do lots of work with figures or data, you'd should look for a machine with a proper numberpad. But if it has to be a Chromebook, then make it this one.


Intel Core i7-1165G7




14in 1,920 x 1,080


322 x 205 x 16mm



Price when reviewed: £1,084

Read our full Asus Chromebook CX9 (CX9400CE) review for more information.

5. Razer Book 13

Best all-rounder

The Razer Book 13 on a desk

Keumars Afifi-Sabet/IT Pro

Premium build qualityExpensive
Superb keyboard 
Great performance 

Renowned for its dominance in the gaming space, Razer's first attempt at a business-focused laptop does away with the gimmicky gaming features (RGB lighting is still an option, though) and delivers outstanding performance that lends itself perfectly for programming.

We struggled to find a fault with the Razer Book 13 in almost any metric when we reviewed it in 2021. Everything from the premium build quality, and the hardware performance, all the way to the keyboard which struck an ideal balance between mechanical and muted switches, was superb.

The Razer Book 13 even bucks the trend when it comes to battery life. With no noticeable trade-off between performance and longevity, the machine ran for 10hrs 48ins in our tests - much longer than the XPS 15 - making it perfect for the typical working day. 


Intel Core i7-1165G7




13.4in 1,920 x 1,200


296 x 199 x 15mm



Price when reviewed: £1,317 exc VAT

Read our Razer Book 13 review for more information.

6. Lenovo ThinkPad X1 Titanium Yoga

Best for long periods of typing 

A photograph of the Lenovo ThinkPad X1 Titanium Yoga on a table
Slim, light and sturdy chassisPricier than competitors
Bright, useful touchscreenPoor physical connectivity
Crisp, satisfying keyboardDisappointing trackpad

This list wouldn't be complete without a ThinkPad - the business notebook. This isn't simply a check-box inclusion, though, the keyboards on ThinkPads have traditionally been a delight to use and the X1 Titanium Yoga's is no exception. 

The breed of users who seek out excellent typing experiences will appreciate the fast, crisp buttons on the X1 Titanium Yoga's keyboard, and the actuation is so fast the keys practically bounce back after being pressed. The device is slim and light too while keeping a sturdy chassis. Weighing in at just over 1kg, it's among the lightest in its product category and remained quiet and cool throughout our time with it.

We must say that the X1 Titanium Yoga's performance leaves much to be desired, and the trackpad that sits under the fantastic keyboard disappointed with a rough coating and required too much force to click. For this reason, programmers may want to opt for something a little more capable of heavy workloads.


Intel Core i7-1160G7




13.5in 2,256 x 1,504 touchscreen


298 x 232 x 11.5mm



Price when reviewed: £1,814 exc VAT

Read our full Lenovo ThinkPad X1 Titanium Yoga review for more information.

Best laptops for programming FAQs

Do I need a large screen for programming?

Bigger isn’t always better, but when it comes to coding, a large amount of screen real-estate can be incredibly useful. Not only does it allow you to see more lines of code at once without endless scrolling, it’s also great for multitasking - so you can have your preferred IDE open in one window, and StackOverflow right alongside without having to waste time switching back and forth.

Given that coding often involves long, continuous sessions, many programmers may choose to work with sophisticated customised desk setups, often keeping their laptop docked and connected to multiple monitors, along with an external keyboard and mouse for maximum comfort. If this is your prefered setup, the weight and size of the machine may not affect your purchasing decision.

However, if you are after a companion device – i.e. something that will stay with you for your entire work day – you will need to consider how heavy is too heavy. Large-screened laptops, generally anything over 15in, tend to be a little unweildy, and will be substantially heavier than a smaller, 13in laptop.

In general, we feel a 14in or 15in laptop represents the optimum balance between portability and screen size for most developers.

Should I buy a laptop with a numberpad for programming?

Physical numberpads offer some extra functionality for laptop users, but they can be a waste of space for some. It's generally the case that when you're using a standard keyboard, you will either use it all the time, or never touch it, depending on your tastes.

Numberpads can have their use – some find them easier to use a numberpad to navigate through an OS, or executing certain commands and operations. However, they do not provide any extra functionality that can't simply be reassigned elsewhere on the keyboard.

Generally speaking, you'll find most laptops already omit the numberpad to shrink the keyboard size, and there are no laptops on this list that feature this functionality – which should tell you everything you need to know. However, there are some business laptops that come equiped with a numberpad, or you can purchase an external one if needed.

Which OS is best for programming?

It’s become something of a trend that developers have to use Apple MacBooks to do their programming, and there are many reasons that coders might want to use Apple’s laptops - they’re elegantly designed, with strong performance and a smooth, UNIX-based OS that dovetails neatly with many languages and systems they’ll be using. They’re also a must-have for any developer looking to create software specifically for Apple’s ecosystem, as the necessary coding and testing tools are exclusive to its software.

However, macOS is by no means the only option when it comes to programming. Microsoft Windows is the most widely used operating system in the world, and since the addition of Windows Subsystem for Linux, its versatility has increased dramatically. FInally, there’s Linux itself, which – despite the ever-present spectre of compatibility issues – remains a popular choice for developers looking to completely immerse themselves in the world of programming. To get the best overall coverage, our advice would be to pick up a Windows device, and either dual-boot Linux onto it, or use the inbuilt Linux tooling to customise your workflows - unless you’re an Apple-specific developer, in which case a Mac is probably the way to go.

How we test laptops for programming

Like every laptop we review, the units on this list have been put through a number of tests to measure their technical performance across a range of categories. For display testing, we use a colorimeter and the open source DisplayCal measurement software. This allows us to check the contrast ratio and maximum brightness, as well as the colour accuracy and reproduction.

This is done by testing what percentage of a given colour gamut the display can represent, as well as measuring the average Delta-E rating, showing how closely those colours match the target hue. We generally test against the sRGB colour gamut, but for certain laptops, we may also test against the DCI-P3 and Adobe RGB gamuts, if the display has been specifically calibrated for them.

To measure a machine’s performance, we use a suite of custom benchmark tests, which simulate a series of different workloads: a single-core image conversion test, a multi-core video encoding job and a stress test where both the previous tasks are run simultaneously while also playing back a video.

Each test gives us an individual result, which are then combined to form an overall score. This is usually the main result we’ll quote as part of a review, but we’ll also discuss individual test results where relevant. These test results are supported by Geekbench 5’s single and multi-core benchmark tests to identify any anomalous results, as well as AS SSD’s storage speed benchmarks.

Battery life is another important area of testing, which is measured by playing a looped video in airplane mode with the screen set to a consistent brightness level, and measuring how long it takes the battery to deplete. This allows us to compare battery life between machines in a consistent manner, but doesn’t necessarily give an indication of real-world longevity, so for this we track the battery life over the course of our testing period, measuring how long it lasts when used for real-world workloads of varying intensities.

Featured Resources

What 2023 will mean for the industry

What do most IT decision makers really think will be the important trends and challenges in the coming year?

Free Download

2022 Magic quadrant for Security Information and Event Management (SIEM)

SIEM is evolving into a security platform with multiple features and deployment models

Free Download

IDC MarketScape: Worldwide unified endpoint management services

2022 vendor assessment

Free Download

Magic quadrant for application performance monitoring and observability

Enabling continuous updating of diverse & dynamic application environments

View Now


What 2023 will mean for the industry

What 2023 will mean for the industry

11 Jan 2023
16 ways to speed up your laptop

16 ways to speed up your laptop

5 Dec 2022
How we test laptops and PCs

How we test laptops and PCs

14 Nov 2022
Armari Magnetar M64TP-RW2000G3 review: Don’t call it a comeback

Armari Magnetar M64TP-RW2000G3 review: Don’t call it a comeback

12 Sep 2022

Most Popular

GTA V vulnerability exposes PC users to partial remote code execution attacks

GTA V vulnerability exposes PC users to partial remote code execution attacks

23 Jan 2023
Dutch hacker steals data from virtually entire population of Austria
data breaches

Dutch hacker steals data from virtually entire population of Austria

26 Jan 2023
European partners expect growth this year, here are three ways they will achieve it

European partners expect growth this year, here are three ways they will achieve it

17 Jan 2023