Is it safe to close the MacBook lid while downloading? What stops, what keeps going, and how to keep it awake
Closing the lid is safe for the Mac, but it puts the MacBook to sleep, and sleep pauses whatever was running: downloads, uploads, video exports, Time Machine backups and file syncs all stop until you open the lid again. Nothing is damaged; most downloads resume where they left off. The exception is clamshell mode: with an external display, a keyboard or mouse, and the power adapter connected, closing the lid does not sleep the Mac and everything keeps going. To keep a job running with the lid shut and no display, use the "Prevent automatic sleeping on power adapter when the display is off" setting or the caffeinate command.
- Lid closed, nothing attached
- Mac sleeps within seconds. Downloads pause.
- Lid closed, display + power + keyboard
- Clamshell mode. Mac stays awake. Everything continues.
- Damage from closing mid-download
- None. The download pauses or resumes.
- What pauses
- Downloads, uploads, exports, Time Machine, iCloud and Dropbox sync
- What continues in sleep
- Small background tasks only (mail, update checks), not your download
- Heat with lid closed
- Fine on a desk when plugged in. Never in a bag while awake.
What happens when you close the lid
Closing the lid on a MacBook sends it to sleep almost immediately. The display turns off, the processor drops to its lowest state, and apps are frozen where they are. The Mac is not off, and nothing is lost: the whole state is held in memory and comes back the instant you open the lid.
While asleep the Mac does a small amount of work. It wakes briefly to keep network connections alive, to fetch mail and check for updates (Apple calls this Power Nap on older Macs; on Apple silicon it is just how sleep works), and to answer Find My. Those wakes last seconds. A long-running job in an app is not one of them. As a MacRumors regular put it years ago, and it is still true: "If you close the lid all activity stops and the system sleeps."
So a 10 GB download in Safari, a 40 minute video export, a Dropbox upload of a thousand photos, or a first Time Machine backup all pause when the lid closes. The job does not fail; it waits. Most downloads resume when the Mac wakes. Some web uploads and streaming connections time out and need restarting. Exports in Final Cut, Compressor or Handbrake just continue from where they stopped.
The decision about when to sleep is made by powerd, which also honors requests from apps not to sleep. That is the hook the next section uses.
Will it keep going? The decision macOS makes
- 1Lid closes
- 2Is an external display connected, plus power, plus a keyboard or mouse? Yes: clamshell mode, Mac stays awake, job continues
- 3No external display. Is the Mac on the power adapter with "Prevent automatic sleeping when the display is off" turned on? Yes: Mac stays awake, job continues
- 4Neither. Is an app holding a sleep assertion (caffeinate, a video call, a media player)? Lid close overrides most of these: Mac sleeps
- 5Mac sleeps. Download, upload, export and backup pause until the lid opens
Clamshell mode: the one case where the lid does nothing
Connect an external display, connect the power adapter, and have a keyboard or mouse attached (USB or Bluetooth). Now close the lid: the Mac does not sleep, the built-in screen turns off, and the external display becomes the only one. This is clamshell mode, and Apple has supported it on every MacBook for years. A MacRumors moderator's summary from 2012 still applies: "In clamshell mode the machine is not asleep and everything will continue to work normally."
All three parts are needed. Without power, the Mac sleeps when the lid closes even with a display attached, because macOS assumes you are packing up. Without a keyboard or mouse, older versions would sleep too, since there is nothing to wake it with. If you have all three and the Mac still sleeps, check that the display is actually detected (System Settings, Displays) and that the power adapter is delivering enough wattage; a weak USB-C charger counts as not connected for this purpose.
Clamshell mode is the right answer for a desk setup. It is not a way to keep the Mac working in a bag, because the display cable is part of the condition.
Three safe ways to keep a job running with the lid shut
None of these require installing anything.
- The Energy setting. Open System Settings, Battery (or Energy on a desktop), and under Options turn on Prevent automatic sleeping on power adapter when the display is off. With this on and the charger connected, closing the lid turns the display off but does not sleep the Mac. It does nothing on battery, which is deliberate. Turn it off again when the job is done so the Mac goes back to sleeping normally.
- The caffeinate command. Open Terminal and type
caffeinate -ithen press Return. While that window stays open, macOS will not idle-sleep. Press ⌃C to end it.caffeinate -t 3600does the same for an hour then stops on its own. Note thatcaffeinateprevents idle sleep; on most MacBooks a lid close still sleeps the Mac unless an external display is connected or the power-adapter setting above is on. Combine it with the charger and that setting, or leave the lid open an inch. - Leave the lid open with the screen off. Press ⌃⇧⏏ (or ⌃⇧Power on Macs without an eject key) to turn off the display. The Mac stays awake, the screen uses no power, and the job finishes. Simplest of all for a download you expect to take an hour.
Apps that promise to keep the Mac awake are doing one of these three things underneath, usually caffeinate. Fine if you want a menu bar switch, unnecessary otherwise.
What not to do: there are Terminal commands that change how the lid behaves at the firmware level. They are easy to forget about, can leave the Mac running in a bag, and are not needed when the three options above cover every real case.
Battery and heat with the lid closed
Two practical concerns, both easy to handle.
Battery. If you keep the Mac awake with the lid shut on battery (the display-off shortcut, or caffeinate with the lid cracked open), a long download or export drains the battery the same as it would with the lid open, minus the screen. Expect a few hours of heavy work from a full charge, not a day. Plug in for anything that will take more than an hour, and read why a MacBook battery drains fast if you find the Mac has been staying awake when you did not ask it to.
Heat. A MacBook vents heat through the hinge area and, on models with fans, through the back edge. Closing the lid on a desk does not block that, which is why clamshell mode is fine. Closing the lid and putting the Mac in a bag or a sleeve while it is still awake is the problem: a 2013 MacRumors reply explains the design choice, "It's not a shortcoming that the computer sleeps when closed since the fans are blocked when the lid is closed." A Mac that stays awake in a bag gets hot, thermal-throttles, and drains the battery. If you use the power-adapter setting or caffeinate, make sure the job has finished, or the Mac is asleep, before it goes in the bag. Check: press a key with the lid shut; if the Mac is asleep, nothing happens on an attached display, and the lid feels cool.
A background item or app that holds the Mac awake without you asking is a separate problem; the background items page covers how to find it.
What to do before closing the lid, in order
- Decide whether the job can pause
A download or an export can almost always pause and resume. A web upload or a live call usually cannot. If it can pause, just close the lid and open it later.
- If it must keep going at a desk, use clamshell mode
Connect the display, the charger and a keyboard or mouse, then close the lid. Check the external display stays on.
- If there is no display, plug in and turn on the Energy setting
System Settings, Battery, Options, Prevent automatic sleeping on power adapter when the display is off. Then close the lid.
- Or leave the lid open and turn the screen off
Press Control Shift Eject (or Control Shift Power). The Mac stays awake with the display dark.
- Keep it on a desk, not in a bag
Anything that keeps the Mac awake with the lid shut also keeps it warm. Let the job finish before packing it.
- Turn the setting off afterwards
So the next lid close sleeps the Mac as expected.
What people hit, in their words
“If you close the lid all activity stops and the system sleeps.”
“In clamshell mode the machine is not asleep and everything will continue to work normally.”
“If you have an attached external monitor, it will work. If not, it won't.”
“It's not a shortcoming that the computer sleeps when closed since the fans are blocked when the lid is closed.”
Watch: what closing the lid does on current macOS
Close Your MacBook Lid? What REALLY Happens (macOS 26 Tahoe) by Crazy Errors. Independent channel, tested on macOS 26.
Questions people ask
Does closing the lid stop a download on a MacBook?
Yes, unless the Mac is in clamshell mode or the power-adapter display-off setting is on. Closing the lid sleeps the Mac within seconds and the download pauses. It is not damaged: Safari, Chrome and most download tools resume when you open the lid. Uploads to websites and streaming connections are more likely to time out and need restarting. To let a download finish, plug in and use one of the three keep-awake methods above.
Will my MacBook still update if I close the lid?
A macOS update that is downloading in the background can continue during sleep in small steps, since software update checks are one of the tasks macOS allows while asleep. The install itself needs the Mac awake and plugged in, and will wait for you. An app update from the App Store pauses like any other download. For a large update, leave the lid open and the charger connected until it finishes.
How do I keep my Mac awake with the lid closed for a download?
Plug in the charger, open System Settings, Battery, Options, and turn on Prevent automatic sleeping on power adapter when the display is off. Close the lid; the Mac stays awake. Alternatively connect an external display, charger and keyboard for clamshell mode, or leave the lid open and press Control Shift Eject to turn the screen off. Turn the setting off again when the download is done.
What happens if I close my MacBook without putting it to sleep?
Closing the lid is putting it to sleep; there is no separate step. The Mac saves its state to memory and sleeps within seconds. Nothing is lost and nothing needs saving first, although saving your work is always a good habit. The only case where closing the lid does not sleep the Mac is when an external display, power and a keyboard or mouse are attached, or you have turned on a keep-awake setting.
Is it bad to close the MacBook lid while it is running?
No. The lid sensor is how Apple intends you to sleep a MacBook, and the hardware is designed for it. The one thing to avoid is keeping the Mac awake with the lid closed inside a bag or sleeve, since the vents are around the hinge and the Mac will get hot. On a desk, plugged in, with the lid shut and a job running, it is fine.
Sources and further reading
- Apple Support: Use your Mac notebook computer in closed-display mode
- Apple Support: Set sleep and wake settings for your Mac
- MacRumors Forums: Keep downloading when system sleeps
- MacRumors Forums: Shutting the lid and keeping downloads going
- 9to5Mac: How to keep your Mac awake, even when your MacBook lid is closed