The quick answer: two Terminal commands
Regular spacer (apps side):
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' && killall Dock
Small spacer (half-width):
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}' && killall Dock
Copy one command, paste it into Terminal, press Enter. The Dock restarts and a new spacer appears at the end. Drag it into position like any app icon.

Spacers on the Trash side (documents/folders)
To add spacers on the right side of the Dock separator (where documents and folders live), use persistent-others instead:
Regular spacer (Trash side):
defaults write com.apple.dock persistent-others -array-add '{"tile-type"="spacer-tile";}' && killall Dock
Small spacer (Trash side):
defaults write com.apple.dock persistent-others -array-add '{"tile-type"="small-spacer-tile";}' && killall Dock

How to remove a spacer
Drag it out: Click and drag the spacer away from the Dock until it poofs away, just like removing an app.
Terminal method: If you know its position, you can remove it with defaults delete, but dragging is simpler and visual.

Ideas for grouping your Dock
By workflow: Communication apps | Development tools | Design apps | Utilities
By frequency: Daily apps | Weekly apps | Rarely-used apps
By project: Client A apps | Client B apps | Personal projects
Use regular spacers between major groups and small spacers for subtle divisions.
Other hidden Dock customizations
Spacers are just one hidden Dock setting. You can also adjust:
- Auto-hide delay and animation speed
- Dock size and magnification
- Minimize effect (genie, scale, suck)
- Position (bottom, left, right)
- Show/hide recent applications
Use our Mac Dock Command Generator to build all these commands with a visual interface.
Beyond spacers: add widgets to your Dock
Terminal spacers organize the Apple Dock you already have. If you want active widgets beside your Dock — system stats, AI usage, calendar, clocks — explore DockMagic.
It's a second, independent Dock at the bottom, left, or right edge. Pick the widgets you want and place them alongside the Apple Dock. The Apple Dock stays unchanged.
Other apps like CoolDock offer similar widget Docks. Spacers and widget Docks serve different needs: spacers organize icons, widget Docks add live information.

Questions
Does this work on macOS 26 (Tahoe)?
Yes. These Terminal commands work on macOS 14 Sonoma, macOS 15 Sequoia, and macOS 26 Tahoe. Dock preference keys are stable across recent macOS versions.
Is it safe to run these commands?
Yes. The commands only edit your Dock's preference file (com.apple.dock.plist). They don't modify system files or other apps. Your Dock restarts to apply changes, but your apps stay open.
Do spacers survive macOS updates and restarts?
Yes. Dock preferences are stored in your user account and persist across restarts and macOS updates. Spacers stay in place unless you remove them.
Why does the Dock restart (killall Dock)?
The Dock process needs to restart to read the new preferences. 'killall Dock' safely restarts it. Your windows and apps stay open.
Can I add multiple spacers at once?
Yes. Either run the command multiple times, or use a generator tool like [Mac Dock Command Generator](/tools/mac-dock-command-generator) to add several spacers in one command.