Close your MacBook lid while keeping it running and connected to your monitor

When you connect a MacBook to an external monitor, you can close the lid and the Mac will stay on, displaying everything on the external screen instead. This works because macOS detects the external display and automatically disables the built-in screen when the lid closes — as long as your Mac is plugged into power and not in sleep mode.

The key is that your MacBook must be connected to a power adapter before you close the lid. If you close the lid while running on battery, your Mac will go to sleep regardless of whether a monitor is connected. Once you plug in power and open the lid again, the external monitor will work normally.

Key Takeaways

  • Your MacBook must be plugged into a power adapter for the external monitor to stay active when the lid is closed.
  • Close the lid gently after your Mac is powered and the external monitor is connected — the display will switch to your monitor automatically.
  • If your Mac goes to sleep when you close the lid, check System Settings to adjust the sleep timer or disable automatic sleep.
  • You can use your keyboard, trackpad, or an external mouse and keyboard even with the lid closed.
  • The external monitor will not work if your Mac is in sleep mode, even if it is plugged in.

What happens when you close the MacBook lid

When you close the lid on a plugged-in MacBook with an external monitor connected, macOS recognizes the external display and keeps your Mac awake. The screen on the monitor stays on and shows your desktop, applications, and windows exactly as they were. Your Mac does not go to sleep just because the lid is closed — the sleep setting only applies when the lid is closed and no external display is detected.

If you have a Magic Mouse, external keyboard, or trackpad connected, you can continue working without opening the lid at all. Moving the mouse or pressing a key will wake the screen if it has dimmed, just as it would with the lid open.

Setting up power and connections before closing the lid

Before you close the lid, make sure your MacBook is connected to a power adapter. Use the USB-C or MagSafe cable that came with your Mac, depending on your model. Plug the other end into a wall outlet or power strip. Your Mac should show a power indicator light or a battery icon in the menu bar showing it is charging.

Next, connect your external monitor using the appropriate cable — HDMI, USB-C, DisplayPort, or Thunderbolt, depending on your monitor and MacBook model. Your Mac should detect the monitor within a few seconds. You will see the external display light up and show your desktop. Once the monitor is displaying your Mac's screen, you can safely close the lid.

Adjusting sleep settings if your Mac sleeps when the lid closes

If your MacBook goes to sleep when you close the lid even though it is plugged in and a monitor is connected, your sleep settings may be configured to prioritize lid closure over external displays. Open System Settings and go to General, then Sleep. Look for an option that says something like "Put display to sleep after" or "Sleep when display is off." Set this to a longer time, such as 30 minutes or Never.

You can also check Energy Saver settings (on older Macs) or Battery settings to see if there is an option to prevent sleep when the lid is closed while plugged in. The exact location varies by macOS version, but the principle is the same: you are telling your Mac to stay awake when external power is connected.

If adjusting these settings does not work, restart your Mac and try again. Sometimes the external monitor is not recognized until after a restart, and sleep behavior will correct itself once the monitor is properly detected.

Using keyboard and mouse with the lid closed

With the lid closed, you can use an external keyboard and mouse or trackpad to control your Mac. If you have a Magic Keyboard and Magic Mouse or Magic Trackpad, they will work immediately — just make sure they are paired with your Mac and have battery. Third-party keyboards and mice that connect via USB or Bluetooth will also work as long as they are connected before you close the lid.

If you are using the MacBook's built-in trackpad, you will need to keep the lid open or use an external trackpad instead. The built-in trackpad does not work when the lid is closed.

Troubleshooting when the monitor goes black or your Mac sleeps

If your external monitor goes black after you close the lid, first check that your Mac is still powered on by moving your mouse or pressing a key. If the monitor lights up, your Mac was just in sleep mode and the monitor woke with it. If the monitor stays black, your Mac may have gone to sleep despite being plugged in.

Open the lid to wake your Mac, then check your power connection and sleep settings. Make sure the power adapter is firmly seated in both the Mac and the wall outlet. If the monitor is still not showing anything, try unplugging the monitor cable from your Mac and plugging it back in — sometimes the connection needs to be reestablished after sleep.

If this keeps happening, your external monitor may not be recognized by your Mac as a reason to stay awake. Try going to System Settings and resetting your display preferences, or restart your Mac with the monitor already connected and powered on.

Closing the lid safely without damaging your Mac

Close the lid gently and slowly. Do not slam it or apply pressure to the screen. MacBooks are designed to close smoothly, and forcing the lid can damage the hinges or the display. Make sure nothing is blocking the lid — no cables, books, or objects on the keyboard — before you close it.

Leave enough space around your closed MacBook for air to circulate. Even though the external monitor is doing the display work, your Mac's processor and other components are still running and generating heat. Blocking vents with the lid against a wall or in a tight space can cause overheating over time.

Frequently Asked Questions

Will my MacBook battery drain if I close the lid while plugged in?

No. When your MacBook is plugged into a power adapter, the battery does not drain — the power adapter supplies all the energy your Mac needs. The battery will stay at full charge or near it as long as the adapter is connected.

Can I use my MacBook's built-in speakers with the lid closed?

Yes. The speakers will work normally even with the lid closed. If you want to use external speakers or headphones, connect them to the monitor or to your Mac's audio port or USB ports before closing the lid.

What if I have two external monitors — will they both work with the lid closed?

Yes, if your MacBook supports multiple displays. Most modern Macs can drive two or more external monitors at once. Both will stay active when the lid is closed, as long as your Mac is plugged in and the monitors are connected.

Does closing the lid save energy compared to leaving it open?

Slightly. The MacBook's built-in screen uses power even when you are not looking at it. Closing the lid disables that screen, so you use a small amount less energy. The difference is not dramatic, but it is real.

Can I close the lid if my MacBook is running on battery?

Your MacBook will go to sleep if you close the lid while on battery power, even if an external monitor is connected. You must be plugged into a power adapter for the external monitor to stay active when the lid is closed.