Mac guide
How to use a MacBook with the lid closed (clamshell mode)
By Aqib Javed · Updated Nov 2, 2026
To use a MacBook with the lid closed, connect an external display, an external keyboard and a mouse or trackpad, and plug the Mac into power (a monitor that charges over USB-C or Thunderbolt counts). Wait until the desktop shows on the monitor, then close the lid. If the monitor goes dark, press a key or click to wake it. On Apple silicon MacBooks, allow the display, keyboard and mouse to connect the first time macOS asks.
What clamshell mode needs
- An external display, connected with a cable to a port on the Mac or through a dock.
- An external keyboard and a mouse or trackpad. Wired or Bluetooth both work, but Bluetooth has to be on and the devices paired before you close the lid.
- Power. Apple's own troubleshooting for a dark display with the lid closed says to make sure the Mac is connected to power, so plan on a charger, a dock that charges, or a monitor that charges the Mac over USB-C or Thunderbolt.
- On a MacBook with Apple silicon, permission for the accessories. The first time you connect a new display, keyboard or mouse, macOS asks you to allow it, and you have to answer before you close the lid.
How to set it up
- Connect the power adapter, the keyboard and the mouse or trackpad.
- Connect the display and wait until your desktop appears on it. Click Allow if macOS asks about a new accessory.
- Close the lid. The built-in screen turns off and the external display carries on as your only screen.
- If the external display goes dark, press a key or click the mouse to wake it.
- To stop accessory prompts in a dock you use every day, open System Settings, Privacy & Security, Accessories, and change Allow accessories to connect. The default is Ask for new accessories.
Why it sleeps or the screen stays black
- The Mac isn't on power. Check the charger or the dock's power supply first.
- The keyboard or mouse isn't connected, or is a Bluetooth device that wasn't paired yet.
- The accessory hasn't been allowed. Open the lid, log in to the Mac and approve it.
- The dock is the problem. Apple suggests connecting the display straight to a port on the Mac to rule it out.
- You want it to keep running while the monitor sleeps. In System Settings, Battery, Options, turn on Prevent automatic sleeping on power adapter when the display is off.
Closing the lid doesn't add displays. On a MacBook Air or 14-inch MacBook Pro with M3, two external displays only work with the lid closed; on M4 and M5 models, closing the lid doesn't raise the number. The dual monitor guide lists each chip.
What happens to your windows when you open the lid or undock
Opening the lid brings the built-in screen back, and macOS adds it to the arrangement. When you take the MacBook off the dock, macOS moves the monitor's windows onto the MacBook screen. Plug back in, or wake the Mac after the monitor slept, and windows don't always go back where they were.
DisplayShift doesn't change how clamshell mode works. It handles the windows around it: when a monitor or dock connects, it lists every open window, full screen apps and other desktops included, and moves the ones you tick. With Remember my layout and Put back after sleep on, it returns windows to their spots when the same screens come back. Opening the lid isn't treated as plugging in a display, so to pull windows onto the MacBook screen press Control Option Command M and pick them, or Control Option Command B to move everything to the MacBook. It's free for 7 days, then $6.99 once.
Questions
Can you use a MacBook with the lid closed without power?
- Apple's guidance is to keep the Mac connected to power with the lid closed. A monitor or dock that charges the Mac over USB-C or Thunderbolt covers it, so you don't need a separate charger.
Is clamshell mode bad for a MacBook's battery?
- It is a normal way to use a MacBook. Keeping it plugged in is fine: Optimized Battery Charging, on by default, delays charging past 80% when macOS learns you usually stay on power.
Does the MacBook microphone work in clamshell mode?
- No. MacBooks with Apple silicon, and Intel models with the T2 chip, cut off the built-in microphone in hardware whenever the lid is closed. Use the monitor's microphone, a headset or a USB microphone.
Can you use clamshell mode without an external display?
- No. With no display connected, closing the lid puts the Mac to sleep. Clamshell mode needs an external display to show the desktop on.
Can I use two monitors in clamshell mode?
- Yes, on MacBooks that support two external displays. MacBook Air and the 14-inch MacBook Pro with M3 need the lid closed for the second display; M4 and M5 models run two with the lid open or closed.