How to Automatically Hide and Show the Dock on Mac

When working on a 13-inch MacBook or managing dense spreadsheets, coding editors, and creative applications, screen real estate is at a premium. The permanent presence of the macOS Dock along the bottom or side of your display consumes valuable vertical or horizontal pixels that could otherwise display content.

Enabling the auto-hide feature allows the Dock to smoothly disappear when not in use and instantly reappear whenever your mouse cursor touches the screen edge.

Method 1: Using the Instant Keyboard Shortcut

The fastest way to toggle the Dock visibility without opening system menus is via the built-in macOS shortcut:

  1. Press Option + Cmd + D on your Mac keyboard.
  2. The Dock will immediately slide off-screen.
  3. Move your cursor to the edge of the display where the Dock is positioned to reveal it momentarily.
  4. Pressing Option + Cmd + D again locks the Dock permanently back in place.

Method 2: Enabling Auto-Hide in System Settings

To configure auto-hide permanently through macOS preferences:

  1. Click the Apple menu () in the top-left corner of your screen.
  2. Select System Settings (or System Preferences on earlier macOS versions).
  3. In the left sidebar, click on Desktop & Dock.
  4. In the main settings pane, toggle on the option labelled Automatically hide and show the Dock.

Method 3: Quick Context Menu Toggle from the Dock Itself

You can also toggle auto-hide directly from the Dock divider bar:

  1. Locate the subtle vertical divider line on the Dock (separating your regular app icons from your recent apps and Trash).
  2. Right-click (or hold Control and click) directly on this divider line.
  3. Click Turn Hiding On from the popup menu.

Hiding the Dock ensures your windows can expand to the full height of your screen, creating a clean, immersive, and distraction-free desktop environment.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.