Laptops

How to choose a laptop for programming

Most laptops can run a code editor. Far fewer stay fast once you add Docker, a dev server, three browsers and a design tool. Here's how to choose one that will.

By Nathan Moussouni · Published · 2 min read

This article contains affiliate links: if you buy through them, the blog may earn a commission at no extra cost to you. It never changes what we recommend. Learn more

What a developer laptop really has to handle

A typical web development session runs a code editor, one or more dev servers, a browser with dev tools, a terminal, maybe Docker containers, a database and a chat app, all at once. That workload is mostly limited by memory, then by CPU during builds and tests, and by the screen for your comfort over a full day.

ComponentMinimumRecommendedWhy
RAM16 GB32 GBBrowsers, Docker and language servers eat memory first.
Storage512 GB SSD1 TB NVMe SSDnode_modules, images and VMs fill a disk faster than you think.
CPURecent 8-coreRecent 10+ coresFaster builds, tests and container start-up.
Screen14" 1920×120014–16" high-resolutionSharper text and more lines of code visible.
Battery6 h real use10 h+ real useWorking from a café or a train without hunting for a plug.

Rule of thumb: if you must compromise, keep the RAM and cut elsewhere. On most modern laptops RAM is soldered and can never be upgraded.

macOS, Windows or Linux?

macOS

Unix-based, excellent battery life on Apple Silicon and the only way to build iOS apps with Xcode. A MacBook Pro or MacBook Air with 16 GB or more is a very common choice among web developers.

Windows

Huge hardware choice and, with WSL 2, a real Linux environment for your tooling. Best if you also need Windows-only software or game development tools.

Linux

The same environment as most production servers, light and fully customizable. Pick hardware with good Linux support: business lines like Lenovo ThinkPad or the repairable Framework Laptop are popular for that reason.

Details people forget to check

  • Keyboard: you'll type on it for thousands of hours. Try it in a shop if you can.
  • Ports: at least two USB-C with charging and display output, ideally HDMI too for meetings.
  • Weight: under 1.6 kg if you move around a lot.
  • Repairability and warranty: a laptop that can be fixed lasts longer and costs less in the long run.
  • Thermals: thin laptops can slow down under long builds. Look for sustained performance reviews, not just peak benchmarks.

Picks by profile

  • Student or beginner: 16 GB RAM, 512 GB SSD, any recent mid-range CPU. Look at current developer laptops on Amazon and filter by RAM first.
  • Freelance web developer: 32 GB RAM, 1 TB SSD, great battery and screen. MacBook Pro, ThinkPad X1/T series or Framework.
  • Mobile and full-stack: if you ship iOS apps you need a Mac; otherwise choose the OS your team uses.

Bottom line

Buy for memory, screen and keyboard; the rest follows. A good laptop paired with a good external monitor and a comfortable keyboard will serve you for five years or more.

Building a project rather than a setup? I build custom websites and web apps for clients worldwide.