Blog · · Updated

MacBook clamshell mode: how to use your Mac with the lid closed

Lid closed, monitor on: you need power, an external keyboard and mouse, and a display. The order that works, why the screen goes black, and the battery.

Horizon MacBook wallpaper in light modeHorizon MacBook wallpaper in dark mode

Clamshell mode means running a MacBook with the lid closed while it drives an external monitor. The laptop turns into a small desktop computer: one big screen, a proper keyboard, and a MacBook that takes up no more space than a book. macOS supports it without any app or hidden setting, but it only works when a few conditions are met, and that is where most "my monitor goes black when I close the lid" problems come from. Here is what you need, the order that works, and what changes for the battery and for your wallpaper.

The short answer

You need three things: an external display, power, and an external keyboard plus a mouse or trackpad. Plug everything in with the lid open, wait until the desktop appears on the monitor, then close the lid. If the screen goes dark for a moment, press a key or click the mouse. That is all. Apple lists the same three requirements (keyboard and mouse or trackpad, power, display) in its own instructions for running the M3 MacBooks with the lid closed.

What you need

An external display. Without one, closing the lid simply puts the Mac to sleep. Any monitor your Mac supports works, over USB-C, Thunderbolt or HDMI.

Power. Apple's instructions always assume the Mac is connected to power, either through its own adapter or through a monitor or dock that charges over USB-C. On battery, a MacBook usually goes to sleep when you close the lid, even with a monitor attached. Some owners report that newer models keep running on battery, but Apple does not document that, so do not build your desk around it.

A keyboard and a mouse or trackpad. Wired or Bluetooth both work. With the lid closed you cannot reach the built-in keyboard, the trackpad or the Touch ID sensor. Apple's Magic Keyboard with Touch ID works with Macs with Apple silicon, so you keep unlocking and paying with your finger even when the MacBook is closed.

Set it up step by step

  1. Connect the MacBook to power.
  2. Connect the keyboard and mouse or trackpad. Bluetooth devices should be paired and switched on before you close the lid.
  3. Connect the monitor and wait until your desktop shows up on it.
  4. Close the lid. The external display becomes the only screen, with the menu bar and Dock.
  5. If the monitor stays black, press a key or click. That wakes the Mac.

If you use a dock or a monitor with a USB-C hub, steps 1 to 3 collapse into one cable. Before you unplug, put the Mac to sleep from the Apple menu or simply open the lid first. Apple's troubleshooting guide for external displays uses the same routine in reverse: close the lid to sleep, connect power, display and a keyboard, then wake the Mac with a key press.

Why the monitor goes black when you close the lid

When clamshell mode fails, it is almost always one of these:

  • No power. The most common cause. Check that the charger or the monitor's USB-C port actually delivers power. A hub with pass-through charging only charges if its own power supply is plugged in.
  • No external keyboard or mouse. Without input devices, macOS assumes you want the Mac to sleep.
  • Bluetooth devices not ready. A keyboard that is switched off or paired to another device cannot wake the Mac. Wire it once to test.
  • The display limit. A MacBook Air with M1 or M2 drives one external monitor, whether the lid is open or closed. Closing the lid does not add a second one, with one exception (below). The full list is in how many external displays your Mac supports.

The M3 exception: two monitors only with the lid closed

On almost every MacBook, closing the lid changes nothing about the number of external displays. The exception is the M3 generation. A MacBook Air or 14-inch MacBook Pro with M3 drives a second external monitor only in clamshell mode. Apple requires macOS Sonoma 14.3 or later on the Air and 14.6 or later on the Pro, plus power and an external keyboard and mouse. Connect the first monitor, close the lid, then connect the second. If you open the lid again while both are connected, the second display goes dark or disconnects. From M4 on, the Air and the 14-inch Pro drive two monitors with the lid open as well.

The Mac desk setup planner knows these rules. Pick your Mac and choose "Lid closed (clamshell)", and it shows how many monitors work, which dock fits, and that you need a keyboard and mouse.

Is clamshell mode bad for the battery?

The worry is that a MacBook connected to power all day wears out its battery. macOS has two settings for exactly this case, both under System Settings > Battery, then the info button next to Charging:

  • Optimized Battery Charging (macOS Big Sur or later) learns your routine and delays charging past 80 % when it predicts the Mac will stay connected to power for a long time.
  • Charge Limit (macOS Tahoe 26.4 or later, Macs with Apple silicon) lets you choose a fixed maximum between 80 % and 100 %. The Mac stops charging close to that value and only charges again when the battery drops more than 5 %.

According to Apple, both still charge to 100 % now and then to keep the battery estimate accurate. For a MacBook that lives on a desk, a limit of 80 % is a sensible default.

Heat and placement

The closed MacBook keeps working at full speed, so give it air. Macworld advises against running a closed Mac in a bag or an enclosed space and recommends a hard, flat surface. A vertical stand that holds the MacBook upright next to the monitor saves desk space and keeps it off soft surfaces. A drawer or a sofa cushion is not a good place.

Keeping the Mac awake with the lid closed and no monitor

Clamshell mode needs a display. If you want a MacBook to keep a download running with the lid closed and no monitor, macOS sleeps by design. Apps such as Amphetamine can change that, but Macworld warns that a closed Mac that never sleeps gets warm. For a desk setup you do not need any of this.

The wallpaper you actually see

With the lid closed, the built-in screen is off, and only the monitor's wallpaper matters. That changes the size you need: a 27-inch 5K display needs 5120 × 2880, a 4K monitor 3840 × 2160, not the MacBook's resolution. A MacBook-sized image stretched to a 5K screen is the classic cause of a soft desktop, as explained in why a wallpaper looks blurry. If you switch between lid open and closed, give each screen its own image, as described in a different wallpaper on each monitor.

The Notchwerk generator makes the wallpaper at the native resolution of the monitor you pick, as a .heic that switches between light and dark with macOS. Horizon suits a single big screen, with a day sky in light mode and stars at night. Terminal fits a developer desk, and Blueprint prints the resolution into the corner, so you see at once whether the file matches the screen.

Sources

Plan the desk for your Mac

Desk setups to copy

Templates for this

More articles

Mac screen saver size: the right resolution for your own photos

The pixel size a photo needs to stay sharp as a Mac screen saver, why a folder beats the Photos library, and how it ties in with the Lock Screen.

Liquid Glass wallpaper: how to pick one that stays readable on iOS 27 and macOS 27

Liquid Glass shows your wallpaper through the Dock, menu bar and icons. What the new slider in iOS 27 and macOS 27 does and which wallpapers stay readable.

Wallpaper blurry on iPhone or Mac? Every cause and how to fix it

Home Screen frosted? Fix it in 3 steps, no app: Settings → Wallpaper → Customize → Blur. Plus every other cause on iPhone and Mac, each with its fix.