Skip to content
↑↓ to move · Enter to open · Esc to close

Buying guide

Best laptops for programming: memory, cores, battery and ports

The laptops in our data that suit developers best, judged on memory, processor cores, battery, ports and screen sharpness, with picks for Mac, Windows and GPU work.

vsfind editorsPublished 2 min read

Developers need more memory than most people, a processor with many cores, a battery that survives a day away from a desk and enough ports for monitors and drives. In our data the MacBook Pro 14-inch with the M5 Pro is the standout all-rounder: 15 CPU cores, 24 GB of memory that can be configured up to 128 GB, 22 h of listed video playback and 4 external displays. On Windows, look at the LG gram Pro 16 for a light machine with 32 GB and the Lenovo Legion 5 if you need an NVIDIA GPU.

Best overall

Best all-rounder for developers

Apple

MacBook Pro (14-inch, M5 Pro)

Launch price (US): $ 2,199
Chip
Apple M5 Pro
Screen
14.2″
RAM
24 GB
Battery
22 h

It scores 83/100 overall, with a ports section of 92/100 (Thunderbolt 5, HDMI and an SD card slot) and a display section of 86/100: 254 ppi makes code sharp. The listed price is 2199 USD, and the weight 1.6 kg. For heavier work, the M5 Max versions score higher in performance; see M5 vs M5 Pro vs M5 Max.

A lighter Mac that is enough for web and app work

Apple

MacBook Air (15-inch, M5)

Launch price (US): $ 1,299
Chip
Apple M5
Screen
15.3″
RAM
16 GB
Battery
18 h

The 15-inch Air has 16 GB of memory (up to 32 GB) and weighs 1.51 kg. Its performance section is 60/100, well below the Pro, and the screen is IPS LCD at 60 Hz. It lists 1299 USD.

Best for Windows

Light Windows laptop with 32 GB

LG

LG gram Pro 16" (16Z90TR)

Chip
Intel Core Ultra 7 255H
Screen
16″
RAM
32 GB
Battery
27 h

It has 32 GB of memory, 16 CPU cores and a discrete GPU (NVIDIA GeForce RTX 5050 Laptop GPU) in a 1.36 kg body, and lists 27 h of video playback. Performance section: 78/100. The trade-offs are the screen (IPS LCD at 60 Hz, display section 37/100) and memory that tops out at 32 GB.

Compact, long battery, sharp OLED

Lenovo

Yoga Pro 7 14ASP10

Chip
AMD Ryzen AI 9 365
Screen
14.5″
RAM
32 GB
Battery
20.7 h

The Yoga Pro 7 14 pairs 32 GB with a AMD Ryzen AI 9 365 chip and an OLED screen of 2944 x 1840, and lists 20.7 h of video playback at 1.53 kg. Its battery section scores 88/100. Ports are the weak point: 1 USB-C port, plus USB-A, HDMI and an SD slot.

When you need an NVIDIA GPU

For CUDA and local model work

Lenovo

Legion 5 15IRX10

Chip
Intel Core i7-13645HX
Screen
15.3″
RAM
32 GB
Battery
9 h

The Legion 5 has an NVIDIA GeForce RTX 5050 Laptop GPU, 32 GB of memory that is listed as upgradeable, 14 CPU cores, wired Ethernet and USB-A ports. Its performance section scores 78/100, level with the gram. The cost is on the other side of the ledger: 9 h of listed battery life and 1.9 kg, so it is a laptop for a desk.

Side by side

MacBook Pro (14-inch, M5 Pro)
LG gram Pro 16" (16Z90TR)
Yoga Pro 7 14ASP10
Legion 5 15IRX10
Overall
Performance78786778
Display86375844
Battery89908837
Portability62786043
Ports & wireless92647073
Camera, audio & extras89586143
ChipApple M5 ProIntel Core Ultra 7 255HAMD Ryzen AI 9 365Intel Core i7-13645HX
CPU cores15161014
RAM24 GB32 GB32 GB32 GB
RAM (max. configurable)128 GB32 GB32 GB32 GB
Panel typeMini-LED (XDR)IPS LCDOLEDIPS LCD
Pixel density254 ppi189 ppi239 ppi148 ppi
Battery life (video)22 h27 h20.7 h9 h
Weight1.6 kg1.36 kg1.53 kg1.9 kg
USB-C / Thunderbolt ports3212
USB-A ports0222
HDMIYesYesYesYes

Before you buy

Choose memory first: 16 GB is the floor for modern tooling, and containers, virtual machines and local language models quickly want 32 GB or more. On most thin laptops it cannot be upgraded later. Then look at ports against what you plug in. See the most powerful laptops for the full ranking.