Second Display is an app on both Macs. It gives the MacBook an extra display and shows it on the iMac, so the iMac takes the place of the MacBook’s own screen.

What the MacBook needs

  • Power: plug the MacBook into its charger.
  • A keyboard and a mouse or trackpad connected to the MacBook.
  • macOS 14 Sonoma or later. The iMac needs macOS 12.3 Monterey or later or, if it can’t run that, Catalina 10.15.7 or later with the free Second Display Connect, and no account. What you need

Close the lid

  1. Connect the MacBook and the iMac and wait until the picture appears on the iMac. Set up Second Display on both Macs

  2. Shut the lid. Whatever was open on the MacBook’s own screen jumps to the iMac.

Closing the lid keeps the picture on the iMac by default: Keep running with the lid closed in Settings › Pro is on. With Pro you can switch it off, and a closed lid then puts the MacBook to sleep.

What happens when the MacBook sleeps or locks: Sleep, wake and the lock screen.

Cable or Wi‑Fi

A Thunderbolt cable carries the picture with nothing lost to compression. Both Macs on the same Wi‑Fi or Ethernet network work too, with the picture compressed to fit the connection, or lossless where the speed test finds Ethernet fast enough. Any iMac from late 2015 on can be the monitor with Second Display, and one from late 2012 to mid 2015 with the free Second Display Connect. An iMac from late 2012 to late 2015 has Thunderbolt or Thunderbolt 2 ports and connects through Apple’s Thunderbolt 3 to Thunderbolt 2 adapter. Apple’s Target Display Mode works only with some iMacs from 2009 to mid 2014, and with no Mac that has Apple silicon. Target Display Mode and newer iMacs Thunderbolt: which cable and which port? Which iMacs can be a display

Questions

Why does my MacBook go to sleep when I close the lid?

Your MacBook sleeps when you close the lid if it is not on power or has no keyboard and mouse or trackpad connected (macOS keeps a MacBook awake with its lid shut only with all of those), or if you turned Keep running with the lid closed off in Settings › Pro (without Pro it stays on). The iMac then says “Reconnects when it wakes”, and the picture returns when the MacBook wakes.

Can I type on the iMac’s keyboard while the MacBook is closed?

You can: the iMac’s own keyboard and mouse control the MacBook, though macOS still needs a keyboard and a mouse or trackpad connected to the MacBook to keep it awake with the lid shut. Keyboard, mouse and sound