The best laptops for programming offer a lightweight and slim design for easy mobility, yet pack enough power to handle demanding development tasks on the go. That makes it easy for you to throw them into a bag and take them everywhere you go, without compromising on performance.

There are so many options these days, though, that’s it’s easy to get lost in the weeds. So our experts have meticulously evaluated and narrowed down the current crop of laptops to a curated selection. These are, in other words, the absolute best laptops for programming programmers’ needs. We’ve tested these laptops for factors including speed, performance, power, display quality and battery life to ensure they’ll deliver the performance you need throughout long coding sessions.

Design: There are no surprises with the MacBook Pro M3 Max; much like its predecessors, the design is professional and sleek, balancing sophisticated hardware with its elegant chassis. Its 16.2-inch Liquid Retina XDR display, offers 3456×2234 resolution with up to 1,600 nits of peak brightness for HDR content, and while these specs might be slightly overkill on the surface, the screen must be as clear and bright as possible for long coding sessions. The keyboard and trackpad are comfortable and responsive, and there are a variety of ports on offer, including Thunderbolt 4, HDMI, and an SD card slot.

Swipe to scroll horizontally
Test results
Attributes Notes Rating
Price Premium pricing, as per Apple’s modus operandi ★★★★½
Design Stylish and sleek, with Liquid Retina display ★★★★★
Performance Fantastic, powered by Apple Silicon ★★★★½
Battery life Up to 10 hours intensive use, 22 for media playing ★★★★★

Design: Gorgeous inside and out, the HP Elite Dragonfly has a beautiful touchscreen QHD+ display made of Corning Gorilla Glass 5, making it a great choice if you like to get hands-on with your code.

Swipe to scroll horizontally
Test results
Attributes Notes Rating
Price Very pricey, especially for a Chromebook ★★★★
Design Beautifully designed, great display specs ★★★★★
Performance Solid performance, and great security features. ★★★★½
Battery life Definite room for improvement. ★★★

Design: With a great build quality, that stunning 18-inch screen and ample ports, the Razer Blade 18 has the makings of a great laptop for programming. Its size does, however, come at the expense of portability, which will be a necessity for many programmers.

Swipe to scroll horizontally
Test results
Attributes Notes Rating
Price Very pricey, but understandably given its power ★★★★
Design Fairly large, and therefore not so portable ★★★★
Performance A performance power-house ★★★★★
Battery life Very much its weak point. ★★½

Design: 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.

Swipe to scroll horizontally
Test results
Attributes Notes Rating
Price It’s expensive, but not unreasonably so. ★★★★
Design It’s wonderfully compact, though lacking a little in the display department. ★★★★
Performance For its size, it’s fantastically powerful. ★★★★★
Battery life Though it’s not breaking any records, battery life is solid. ★★★★

Design: Of course, the real hero of this clamshell are its dual-screens, with both displays offering 2880×1800 resolution and 120Hz refresh rate. These configurable screens are excellent if you need to spread your applications and windows out while programming and the detachable keyboard only adds to its versatility.

Battery: On the one hand, we found the Zenbook Duo OLED’s battery life impressive when using a single screen, reaching over 12 hours during our testing. However, using both screens at once will eat up battery life much quicker, so it’s wise to keep it close to an outlet while using the laptop to its full potential.reen sessions.

Price: The ASUS Zenbook Duo OLED 2024 is comparable to the MacBook Pro M3 listed above, starting at £1,699 and going up to around £2K. While its performance isn’t as impressive, its form factor is almost entirely unique.

Read more:
ASUS Zenbook Duo OLED 2024 review

Swipe to scroll horizontally
Test results
Attributes Notes Rating
Price Premium price for innovative design ★★★★
Design Unique dual-screen configuration ★★★★★
Performance Strong CPU, integrated GPU ★★★★★
Battery life 12+ hours with a single screen, less with both ★★★★

Design: It’s not reinventing the wheel, borrowing the core design principals from previous Surface Laptops, which makes it feel a little dated. 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.

Battery: Microsoft says the Surface Laptop 5 has a 17 to 18 hour battery life, but on test our reviewer found it topped out at around 10 hours (tested with the Intel i7 chip).

Price: It’s a little overpriced in all configurations, but that’s certainly more noticeable at the lower-end of the product line.

Read more:
Microsoft Surface Laptop 5 review

Swipe to scroll horizontally
Test results
Attributes Notes Rating
Price Premium price belies its power. ★★★½
Design Looks almost identical to its predecessor. ★★★★
Performance Good enough for programming needs, but struggles multitasking. ★★★★
Battery life Doesn’t deliver on marketed claims, but decent. ★★★★

Design: Ditching the wedge design of previous MacBook Air devices, the M2 2022 Air is attractive and thinner and lighter than ever before. The real win is that the display is actually larger than previous models at 13.6-inches screen, compared to the M1 Model’s 13.3-inch display, and to avoid any drop in image sharpness, the resolution has also been increased from 2,560 x 1,600 to 2,560 x 1,664.

Price: It’s a little overpriced in all configurations, but that’s certainly more noticeable at the lower end of the product line.

Read more:
MacBook Air (M2, 2022) review

Swipe to scroll horizontally
Test results
Attributes Notes Rating
Price Apple’s new MacBook Air pricing makes them less of a value purchase. ★★★½
Design Slimmer and lighter but also with a larger display. ★★★★★
Performance Runs hot, but performs very well. ★★★★
Battery life Excellent, lasting over 16 hours on test. ★★★★★

Price: This is pricey- the configuration we used costs $3,299 / £2,999 – but it’s a unique laptop that could transform how you code.

Swipe to scroll horizontally
Test results
Attributes Notes Rating
Price Very expensive despite its flaws. ★★★½
Design Beautiful, but limited by form factor. ★★★½
Performance Performs well when docked, otherwise spotty. ★★★★
Battery life A definite weak point. ★★★
ASUS ProArt Studiobook 16 OLED

ASUS ProArt Studiobook 16 OLED
If you also need a real creative powerhouse for art and design, this is a must-have. During our testing we loved its power and performance, and its glorious, glasses-free 3D screen. It can handle demanding creative software with ease, meaning speedy rendering times and no lag.
Read our 4.5-star review.

MSI Creator Z17 HX Studio

MSI Creator Z17 HX Studio Another option that’s great for creatives, this clamshell is particularly good for artists thanks to its 16:10 display supporting a stylus. During our testing, we found it was great for multitasking even while running creative apps, though we’d have liked to see better battery life.
Read our 4-star review