Buyer’s Guide

Best Laptop for Claude Code 2026: 4 Picks for Mac, Windows and Linux

Our verdict: the MacBook Air 15-inch M5 with 16GB or 24GB is the best laptop for Claude Code for most developers. Step up to the MacBook Pro 14-inch with M6 for long builds and heavy Docker work, pick the ThinkPad X1 Carbon Gen 13 for Windows, and the Framework Laptop 16 for Linux, upgrades or an NVIDIA GPU.

Claude Code, Claude Cowork and Cursor run the model in the cloud, so you don't need a GPU monster. Your laptop has to survive everything around the AI: repos, terminals, Docker, a local server and a wall of browser tabs.

A developer typing on a slim laptop at a cafe table with a coffee cup and notebook
Cloud AI, local mess: the model runs on Anthropic's servers, your laptop runs everything else. Illustration: TechVerdict.
Compared MacBook Air 15 M5 MacBook Pro 14 M6 ThinkPad X1 Carbon Gen 13 Framework Laptop 16

What Claude Code needs from a laptop

Anthropic's own bar is low, because the model runs on its servers. What we'd buy is higher, because of everything you run next to it.

RequirementAnthropic's minimumWhat we'd buy
Memory4GB16GB, or 24GB with Docker
ProcessorAny x64 or ARM64 chipAny current Apple, Intel or AMD chip
macOS13.0 or laterAny Apple silicon Mac
WindowsWindows 10 version 1809 or laterWindows 11, with WSL 2 for Linux tools
LinuxUbuntu 20.04, Debian 10 or laterA current Ubuntu or Fedora release
InternetRequiredSteady Wi-Fi; replies stream live
Claude planPro, Max, Team, Enterprise or ConsolePro at $20 a month to start

Minimums from Anthropic's Claude Code setup guide, checked November 14, 2026. The free Claude plan doesn't include Claude Code.

Claude Code welcome screen in a dark terminal window on an orange background
Claude Code: a terminal app that sends your prompts to Anthropic's servers. Image: Anthropic.

How much memory you actually need

Infographic: 8GB skip it, 16GB minimum for editor, terminal and browser, 24 to 32GB sweet spot for Docker and several repos, 48GB and up for running local models
Spend on memory first: tiers are our guidance, based on the memory options on Apple's, Lenovo's and Framework's own spec pages. Infographic: TechVerdict.

16GB still works for lighter web work, but it's the config people regret six months later. If you keep an IDE, several terminals, Docker and dozens of tabs open, 24GB or 32GB is the smarter buy. Not sure? Try our RAM Calculator.

The 4 laptops at a glance

MacBook Air 15 M5
Best for most developers
$1,499 16GB, 512GB
  • Fanless, so it's silent all day
  • Up to 15 hours of web use (Apple)
  • 3.3 pounds with a 15-inch screen

The catch: no NVIDIA GPU, memory can't be upgraded later.

MacBook Pro 14 M6
Best for heavy workloads
$1,999 16GB, 1TB
  • Fans keep it fast under long builds
  • Up to 24 hours of battery (Apple)
  • Configure up to 32GB of memory

The catch: $500 more than the Air for work many people never push.

ThinkPad X1 Carbon Gen 13
Best for Windows
$2,573 16GB, 512GB
  • Under 1kg, the lightest here
  • ThinkPad keyboard and TrackPoint
  • Linux option on Lenovo's store

The catch: pricey, and memory tops out at 32GB.

Framework Laptop 16
Best for Linux and local AI
$1,249 DIY, before memory and storage
  • Up to 96GB in two memory slots
  • Optional NVIDIA RTX 5070 module
  • Every part is repairable

The catch: 2.1kg and bulkier than the rest.

Prices and specs

Apple prices checked November 14, 2026; Lenovo and Framework checked October 23, on each company's own US store. Starting configs shown; Lenovo's prices change often.

LaptopStarting priceChipMemoryBattery (maker claim)Weight
MacBook Air 15 M5$1,499 (16GB, 512GB)Apple M5, 10-core CPU16GB, up to 32GBUp to 15 hrs web, 18 hrs video3.3 lb (1.51kg)
MacBook Pro 14 M6$1,999 (16GB, 1TB)Apple M6, 12-core CPU16GB, up to 32GBUp to 24 hrsAbout 3.5 lb
ThinkPad X1 Carbon Gen 13$2,573 (16GB, 512GB)Intel Core Ultra 7 256V16GB or 32GB, fixedNot stated in hoursUnder 1kg
Framework Laptop 16$1,249 DIY (no memory, storage or OS)AMD Ryzen AI 5 340 and upBring your own, up to 96GB85Wh, hours not stated2.1kg (2.4kg with GPU)

What each one gets right

FeatureAir 15 M5Pro 14 M6X1 CarbonFramework 16
All-day battery (14+ hrs claimed)✓✓––
16GB+ RAM in the base config✓✓✓You add it
Under $1,500 to start✓✗✗Before parts
Linux-friendly✗✗✓✓
Runs Windows✗✗✓✓
Upgrade memory later✗✗✗✓
NVIDIA GPU option (CUDA)✗✗✗✓
3.5 lb or lighter✓✓✓✗

– means the company hasn't said. Battery figures are the makers' own claims.

MacBook Air 15 M5: best for most developers

The Air has no fan, so it stays silent through a full day of Claude Code, Cursor, terminals and docs. Apple rates it at up to 15 hours of web use, and the 15-inch screen fits an editor and a browser side by side.

It starts at $1,499 with 16GB and 512GB. Buy 24GB if you run Docker or several repos at once, since you can't add memory later. Skip it if your work depends on CUDA.

MacBook Air with M5 in starlight running a photo editing app
MacBook Air with M5: fanless, 3.3 pounds in the 15-inch size. Image: Apple.

MacBook Pro 14 M6: best for heavy workloads

Apple put the new M6 chip in the 14-inch Pro on October 28. It has fans to hold its speed through long builds, a brighter display, more ports and up to 24 hours of battery by Apple's count.

It starts at $1,999 with 16GB and 1TB; configure 24GB or 32GB if you live in Docker. Need 64GB? The M5 Pro model is still on Apple's store, at $2,499 when we checked on October 23. The touch OLED MacBook Pro adds nothing for coding; see M6 vs OLED MacBook Pro.

The 14-inch MacBook Pro with M6 running Xcode beside an app preview
MacBook Pro with M6: Apple claims up to 2.5x faster Xcode builds than an M1 MacBook Pro. Image: Apple.
Buy memory, not a faster chip: on both MacBooks and the ThinkPad, memory is fixed when you buy. For Claude Code, moving from 16GB to 24GB does more than any chip upgrade, because the AI itself runs in the cloud.

ThinkPad X1 Carbon Gen 13: best for Windows

If your company runs Windows or your stack needs it, this is the work laptop to get. It weighs under 1kg, has one of the best keyboards you can buy, and Lenovo's store offers a Linux option.

It's expensive at $2,573 for 16GB, and memory sits on the chip, so you can't add more. Buy the 32GB model. The newer X1 Carbon Gen 14 is also on Lenovo's store, from $2,815.

ThinkPad X1 Carbon Gen 13 Aura Edition open, front view, in black
ThinkPad X1 Carbon Gen 13 Aura Edition: under 1kg with a full-size ThinkPad keyboard. Image: Lenovo.

Framework Laptop 16: best for Linux and local AI

Framework is the pick when you want Linux, upgrades or a real GPU. It takes up to 96GB in two standard memory slots, and an NVIDIA RTX 5070 Graphics Module slides into the back for CUDA work.

The DIY Edition starts at $1,249 before memory, storage and an OS, and that base model is a November pre-order. It's also the heaviest here at 2.1kg, or 2.4kg with the GPU.

Hands sliding a Graphics Module into the back of a Framework Laptop 16
Swappable GPU: the Graphics Module slides in with one tool. Image: Framework.

Mac or Windows for Claude Code?

Claude Code installs natively on macOS, Windows and Linux, so buy for the system your projects need. We pick the Mac for battery life and silence, not because Claude Code runs better on it. On Windows you choose between two setups:

Windows setupWhat you installSandboxed commandsUse it for
Native WindowsNothing extra; Git for Windows is optional✗Windows-native projects and tools
WSL 2WSL 2 turned on✓Linux toolchains, safer command runs

Source: Anthropic's Claude Code setup guide.

The best laptop for Claude Cowork

The same four. Cowork, like Claude Code, does its thinking on Anthropic's servers, and the Claude desktop app is light. If you only use Cowork and never run Docker, the 16GB MacBook Air is all you need. Not sure which Claude product you want? Read Claude Chat vs Code vs Cowork.

What about the MacBook Neo, the 13-inch Air and gaming laptops?

The MacBook Neo is $699, but it only comes with 8GB, which is too little for Docker and a full dev setup. The 13-inch MacBook Air M5 starts at $1,299 with 16GB and is a fine pick if you don't need the bigger screen. Gaming laptops only make sense if you also run local models, CUDA or games; otherwise they're heavier and louder than you need.

Which laptop should you buy?

Under $1,500, cloud AI coding
MacBook Air 15 M5
Tightest budget that still works
MacBook Air 13 M5 ($1,299)
Docker, big repos, long builds
MacBook Pro 14 M6
You need Windows
ThinkPad X1 Carbon Gen 13
Linux, upgrades or CUDA
Framework Laptop 16

The verdict

The MacBook Air 15-inch M5 is the best laptop for Claude Code for most people: silent, all-day battery and $1,499 to start. Spend more only for a reason: the Pro for heavy local work, the ThinkPad for Windows, the Framework for Linux or a GPU. Running models locally? Read our local LLM laptop guide and 16GB vs 32GB RAM first.

FAQ

Do you need a powerful computer to run Claude Code?

No. Claude Code, Claude Cowork and Cursor run the model on the company's servers, so your laptop only handles the editor, terminal, browser and whatever your project runs locally. Spend on memory, battery life and a good screen before a faster chip or a graphics card.

Can I use Claude Code on my laptop?

Almost certainly. Anthropic's requirements are macOS 13, Windows 10 version 1809, Ubuntu 20.04 or Debian 10, with 4GB of RAM and an internet connection. You also need a paid Claude plan or a Console account, because the free plan doesn't include Claude Code.

How much RAM do you need for Claude Code?

Anthropic's minimum is 4GB. In practice, buy 16GB for an editor, terminal and browser, and 24GB or 32GB if you run Docker, several repos or local databases next to it. Memory is fixed at purchase on most thin laptops, so decide before you buy.

Does Claude Code work better on Mac or Windows?

It installs natively on both, and on Linux. On Windows, running it inside WSL 2 adds sandboxed command execution, which native Windows doesn't support. We pick a Mac for battery life and silence, not because Claude Code runs better there.

What is the best MacBook for Claude Code?

The 15-inch MacBook Air M5 at $1,499 for most people, or the 13-inch at $1,299 if you want it smaller. Choose the 14-inch MacBook Pro with M6 at $1,999 if you run long builds or heavy Docker work. Skip the MacBook Neo, which only comes with 8GB.

Should you buy a gaming laptop for Claude Code?

Only if the same machine also has to run local models, CUDA work or games. For cloud AI coding, most gaming laptops are heavier, louder and shorter on battery than you need.