Yes, on a hard surface with airflow: Apple supports closed-lid use in closed-display mode, and Clamshell for Mac keeps a closed MacBook awake without a monitor with thermal safety that is always on. The real risks are where the Mac sits and what is left on: a bed or bag, a camera cover pressing on the screen, a battery held at 100 percent for months, or a sleep switch you forget.
Clamshell for Mac keeps a MacBook awake with the lid closed on a desk or shelf, and lets it sleep when macOS reports serious or critical thermal pressure. Free for 7 days.
Download free trialApple Silicon, macOS 14+. Notarized by Apple. 3.6 MB. Or buy now, $9.99
People ask this two ways. Some want to know whether closing the lid on a working Mac hurts it at all. Others already run a keep-awake tool and want to know whether a night of builds or an AI agent with the lid shut is pushing their luck. The short answer is the same for both: the closed lid itself is a normal state for a MacBook, and the risks are specific and avoidable. Here is what Apple says, what macOS does as the Mac heats up, what to do about the battery, and a checklist for long runs.
Does Apple support running a MacBook with the lid closed?
Yes. Apple documents closed-display mode, often called clamshell mode: a Mac laptop working with its lid closed while it is connected to power and an external display, keyboard and mouse. Apple's support pages explain how to set it up and how to let accessories connect without opening the lid. Without a display, macOS puts the Mac to sleep when the lid closes, and keeping it awake then takes pmset or an app such as Clamshell. The keep-awake mechanisms guide explains the difference.
What Apple does not publish is a separate rule for closed-lid use without a display. So the fair reading is: the closed lid is a supported state, and the same heat and surface guidance applies as for any Mac laptop at work.
Heat: surface matters more than the lid
Apple's temperature guidance for Mac laptops asks for three things:
- A stable work surface that allows good ventilation. Not a bed, a pillow or bedding. A sofa cushion or a duvet is the same problem.
- An ambient temperature of 10 to 35 °C (50 to 95 °F). Apple warns that a parked car can exceed that range.
- Nothing in the ventilation openings, on Mac laptops that have them.
A closed MacBook on a desk, a shelf or a laptop stand meets all three. If you use Clamshell and nothing needs the screen, turn off its setting that lets agents use the screen while the lid is closed: the display then sleeps with the lid closed, which uses less battery and keeps the Mac cooler. A MacBook Air has a fanless design, so under heavy sustained work it relies on slowing down rather than on a fan, while a MacBook Pro can run its fans. Either way, a hard surface lets heat leave.
A bag is the exception worth its own page. A closed bag fails every one of Apple's conditions, and we do not recommend running work inside one with or without a keep-awake tool. The MacBook in a bag guide covers it.
What macOS does as the Mac heats up
macOS tracks thermal pressure in four levels, and apps can read them. Apple's developer documentation describes them like this:
- Nominal: thermals are at an acceptable level, with no noticeable impact.
- Fair: thermals are minimally elevated; on Macs with fans, the fans may become active and audible.
- Serious: thermals are highly elevated; fans run at maximum speed and system performance may be impacted as the system enacts countermeasures. This is what people call thermal throttling.
- Critical: thermals are significantly elevated and the device needs to cool down.
Those countermeasures limit damage, but they do it by slowing your work down. If a closed-lid run regularly reaches serious, the setup needs more airflow or a lighter workload. To look for a runaway process, Apple suggests Activity Monitor. In Terminal, pmset -g therm prints any thermal or performance warning level macOS has recorded.
Battery: plugged in for weeks, or on battery overnight
A Mac that stays closed on a desk usually stays on power, and a battery held at 100 percent for long stretches wears faster. Apple's battery page describes two settings that help:
- Optimized Battery Charging, on macOS Big Sur or later, learns your routine and delays charging past 80 percent when it predicts a long period on power. The battery menu shows Charging On Hold.
- Charge Limit, on macOS Tahoe 26.4 or later with Apple silicon, lets you cap charging between 80 and 100 percent in Battery settings. Apple notes the Mac still charges to 100 percent occasionally to keep its charge estimate accurate.
On battery, a closed Mac that is kept awake drains its battery like an open one. Clamshell works on battery and re-applies itself when you plug in or unplug. Its optional Disarm on low battery setting, off by default, lets the Mac sleep when the charge drops below a level you choose. The on-battery guide covers drain and cutoffs.
The screen: camera covers and things on the keyboard
The gap between a MacBook's display and keyboard is very small. Apple warns that closing a Mac laptop with a camera cover on it might damage the display, and that a cover should be no thicker than an average piece of printer paper, 0.1 mm. The same logic applies to a pen, an earbud or a cable left on the keyboard. This risk is the same whether the Mac sleeps or keeps working, but a Mac that runs closed for days gets closed with less thought.
The forgotten switch
The most common way closed-lid use goes wrong is not heat on a desk. It is a Mac that was meant to sleep and did not: a keep-awake mode still on when the Mac goes into a backpack. sudo pmset -a disablesleep 1 is the classic case, because it stays on until you set it back to 0, with no timer and no menu bar indicator. The undo guide shows how to check it.
Clamshell is built around that risk. Arming from the menu bar covers only the next lid close, and an Option-close session ends when the lid opens. Disarming or quitting restores normal lid-close sleep, and its lid change is never saved across a restart. Right-click and Shortcuts arming stay on until you disarm, so disarm before you pack the Mac.
Clamshell keeps your Mac awake with the lid closed on a desk or shelf, with thermal safety always on and nothing left switched on after a restart. Free for 7 days, then $9.99 once for one Mac. 14-day money-back guarantee.
Download free trialRisk by setup
| Setup | Risk | What to do |
|---|---|---|
| Desk, shelf or stand, plugged in | Low | Turn on Charge Limit or Optimized Battery Charging for long periods on power. |
| Desk, on battery overnight | Low | Set a low-battery cutoff so the Mac sleeps before it runs flat. |
| Closed-display mode with a monitor | Low | Apple's own setup. Keep vents and the area around the Mac clear. |
| Bed, sofa or lap blanket | Higher | Apple says not to use a Mac laptop on a bed, pillow or bedding. Move it to a hard surface. |
| Hot room or parked car | Higher | Apple's range ends at 35 °C (95 °F). Do not run long jobs above it. |
| Closed bag or backpack | Avoid | Let the Mac sleep. Disarm keep-awake tools and check pmset -g before packing. |
| Camera cover thicker than 0.1 mm | Avoid | Remove it before closing the lid. |
What Clamshell's thermal safety does and does not do
What it does
Thermal safety is always on. At serious or critical thermal pressure, Clamshell disarms toward normal lid sleep and blocks arming until the Mac has cooled. Disarm or quit, and normal lid sleep returns.
What it does not do
It does not cool the Mac or replace airflow. It acts on the pressure macOS reports, so by then the Mac is already warm. It cannot override other things that keep a Mac awake, such as pmset disablesleep.
Other closed-lid tools take a similar approach. LidRun's help center says it can step back and allow sleep at serious or critical thermal states, and Helmlet ends its closed-lid mode when the Mac gets too hot. Running pmset disablesleep by hand has no thermal cutoff at all.
Checklist for a long closed-lid run
- Hard surface, open air. A desk, shelf or laptop stand, away from heaters and out of direct sun.
- Nothing between screen and keyboard. Remove camera covers thicker than 0.1 mm, pens and cables.
- Power and battery set. Plugged in for long runs, with Charge Limit or Optimized Battery Charging on. On battery, set a low-battery cutoff.
- A tool that turns itself off. Prefer one with a thermal cutoff and nothing saved across a restart over a global switch.
- Check in the morning. Open the lid, confirm the job finished, and make sure normal sleep is back before the Mac goes in a bag. The overnight agent guide has a full pre-flight list.
Frequently asked questions
Is it bad to run a MacBook with the lid closed?
No, not on a hard surface with airflow. Apple supports running a MacBook with the lid closed in closed-display mode. The risks come from where the Mac sits and what is left on: a bed, pillow or bag, a camera cover on the screen, a battery held at 100 percent for months, or a sleep switch you forget to turn off.
Does a MacBook overheat with the lid closed?
Not on a desk under normal workloads. macOS tracks thermal pressure in four levels: nominal, fair, serious and critical. At serious, Apple says fans run at maximum speed and performance may be reduced as the system acts to cool down. Heavy sustained work on a soft surface or in a bag is what pushes a Mac toward those levels.
Is it bad for the battery to keep a MacBook plugged in with the lid closed?
Keeping it at 100 percent all the time adds wear. Optimized Battery Charging, on macOS Big Sur or later, delays charging past 80 percent when it predicts long periods on power. On macOS Tahoe 26.4 or later, Apple silicon Macs can also set a Charge Limit between 80 and 100 percent in Battery settings.
Can closing a MacBook damage the screen?
It can if something is in the way. Apple says closing a Mac laptop with a camera cover on it might damage the display, and that a cover should be no thicker than an average piece of printer paper, 0.1 mm. Remove covers and anything left on the keyboard before you close the lid.
Does Clamshell protect my MacBook from overheating?
Clamshell for Mac's thermal safety is always on: when macOS reports serious or critical thermal pressure, it disarms toward normal lid sleep and blocks arming until the Mac cools. It reacts to what macOS reports. It does not cool the Mac, so keep the Mac on a hard, ventilated surface.
Is it safe to leave a MacBook running overnight with the lid closed?
Yes, on a hard surface with airflow, plugged in, with a battery Charge Limit or Optimized Battery Charging on, and with a tool that turns off on its own. Avoid beds, sofas and bags, and check in the morning that normal sleep came back.
Related guides
- Is it safe to keep a MacBook running in a bag?
- How keep-awake apps work with the lid closed
- Keep a MacBook awake with the lid closed on battery
- Run AI coding agents overnight on a MacBook
- Use a MacBook as a home server with the lid closed
- What sudo pmset disablesleep 1 does
- Keep a MacBook awake with the lid closed
Sources checked October 8, 2026: Apple's support pages on laptop operating temperatures, Optimized Battery Charging and Charge Limit, camera covers, a closed laptop with an external display and accessories with the lid closed; Apple's developer documentation on thermal states; the MacBook Air product page; LidRun's help center; Helmlet's site as checked for our Helmlet comparison. Clamshell behavior is described from its changelog and FAQ. Clamshell is the publisher of this guide and an independent app, not affiliated with or endorsed by Apple.