keepcalculator

06 Numbers and Powers

Stop Desktop Icons Changing Positions on Mac

Card No. 06·48094 · Updated · Standard formula, shown below

If your Mac’s desktop icons keep rearranging themselves after a restart, the cause is almost always the Finder’s automatic sorting and alignment settings, not a system error. You can stop this by setting your Finder to sort icons in a fixed way (by Name, Kind, etc.) and disabling “Snap to Grid,” which forces icons into a strict grid that resets on reboot. This article explains why it happens and walks you through the exact steps to lock your icon layout.

Why Your Desktop Icons Move

macOS’s Finder is responsible for the desktop, and it has two separate behaviors that affect icon positions:

  • Automatic sorting: When enabled, the Finder constantly re-orders icons based on a chosen attribute (Name, Date Added, Size, etc.). This overrides any manual placement you’ve made.
  • Snap to Grid: This aligns icons to an invisible grid. When you restart, the Finder may re-apply the grid, snapping icons that were placed off-grid back to their nearest grid point, which can look like a shuffle.

Additionally, if you have a display that changes resolution (e.g., a laptop connected to an external monitor), the grid size changes, and icons get re-arranged to fit the new layout. This is a common cause on MacBooks.

How to Stop Icons from Moving (Step-by-Step)

Follow these steps on macOS Ventura or later (the steps are nearly identical on older versions):

  1. Click anywhere on your desktop to make sure Finder is active.
  2. In the top menu bar, click View → Sort By and choose an option like Name or Kind. This disables free-form placement and forces a fixed order.
  3. Still in the View menu, click Show View Options (or press Cmd+J).
  4. In the panel that appears, check the box next to Snap to Grid (if you want icons to stay in a tidy grid) or uncheck it (if you want to place icons anywhere).
  5. Set the Sort By dropdown (at the top of the panel) to the same option you chose in step 2.
  6. Click Use as Defaults at the bottom of the panel to apply these settings to all folders and the desktop.

After this, restart your Mac. Your icons should stay exactly where you put them (or in the sorted order you chose).

What If Icons Still Move After This?

If the steps above don’t fix it, the issue is likely one of these:

  • Multiple displays: If you use an external monitor, disconnect it and see if the icons return to your preferred layout. The Finder treats each display’s resolution as a separate grid. To minimize this, use the same resolution on both displays, or set your Mac’s display to “Default” in System Settings → Displays.
  • Stale preference files: Corrupted Finder preferences can cause erratic behavior. Reset them by going to ~/Library/Preferences/ and deleting the file com.apple.finder.plist, then restart your Mac. (This will reset all Finder settings, so you’ll need to re-apply your sorting choices.)
  • Third-party apps: Some utilities that manage desktop icons (like icon organizers or wallpaper changers) can interfere. Temporarily uninstall any such apps to test.

Sort By vs. Snap to Grid: What’s the Difference?

These two settings are often confused, but they do different things:

  • Sort By (also called “Arrange By” on older macOS) tells the Finder to automatically order icons by a property—Name, Date Modified, Date Created, Kind, Size, or Tags. When active, you cannot drag icons to arbitrary positions; they are locked into a sorted list.
  • Snap to Grid only affects where icons can be placed when dragging. It doesn’t reorder them automatically; it just aligns them to an invisible grid. If you turn it off, you can place icons anywhere, but they may overlap or look messy.

For a stable layout, the best approach is to choose a fixed Sort By (e.g., Name) and leave Snap to Grid on. This ensures a consistent, predictable arrangement that survives restarts.

Common Misconception: “I Can’t Drag Icons Anymore”

When you set a Sort By option, you might find that you can no longer drag icons to a new spot—they just snap back. That’s expected. The Finder is enforcing the sort order. If you want to manually place icons, you must set Sort By to “None” (or “Freeform” on some versions). However, doing so re-introduces the possibility of icons moving after a restart, because the Finder has no memory of your manual layout across reboots unless you also disable Snap to Grid and use the same display resolution.

In practice, most users prefer a sorted view because it’s the only reliable way to keep icons stationary across reboots. If you truly need freeform placement, you’ll need to accept that icons may shift when the display resolution changes or after a restart.

How to Reset Your Desktop Layout to Default

If you’ve messed up your icon layout and just want to start fresh, you can reset the desktop to macOS’s default view:

  1. Open Finder and go to Finder → Settings (or Preferences on older macOS).
  2. Click the Advanced tab.
  3. Check the box for Show warning before emptying the Trash (this is irrelevant, but it’s a common step in tutorials—actually, you can skip this).
  4. Actually, the simplest way is to right-click on the desktop, choose Clean Up (which snaps icons to grid) or Clean Up By (which sorts them). This doesn’t reset your preferences, but it gives you a tidy layout.
  5. To fully reset Finder preferences, delete com.apple.finder.plist as described earlier, then restart.

Frequently Asked Questions

Why do my desktop icons move when I connect an external monitor?

When you connect a monitor, the desktop area’s resolution changes (or the monitor has a different resolution than your built-in display). The Finder’s grid is based on pixel coordinates, so icons that were placed at certain positions on your laptop screen may not fit on the external display’s grid. The Finder then re-arranges them to fit. To avoid this, use the same resolution for both displays, or set your Mac to mirror displays.

Will turning off “Snap to Grid” stop icons from moving?

No, it actually makes it more likely. Without Snap to Grid, you can place icons anywhere, but the Finder still remembers positions based on grid coordinates. On restart, it may try to restore those positions, but if the grid has changed (due to resolution change), it will place them at the nearest grid point, which can look random. Keeping Snap to Grid on and using a fixed Sort By is the most reliable way to keep icons stable.

Can I save multiple desktop layouts and switch between them?

macOS does not natively support multiple desktop icon layouts. You can create separate user accounts, each with its own layout, but that’s not practical. Third-party apps like “Desktop Curtain” or “Icon Layout Manager” claim to do this, but they are not built-in and may not work on all macOS versions.

Does this happen on Windows too?

Yes, Windows has a similar issue. In Windows, you can right-click the desktop, go to View, and uncheck “Auto arrange icons” and “Align icons to grid” to prevent automatic rearrangement. However, Windows also has a known bug where icons move after a reboot if the display resolution changes. The fix is similar: set a fixed resolution and use the “Auto arrange” option.

Is there a way to lock my icon positions permanently?

No, macOS doesn’t offer a true “lock” for desktop icon positions. The only permanent solution is to use a fixed Sort By (like Name) and never change display resolution. If you need absolute control, consider hiding desktop icons entirely (right-click desktop → Use Stacks or Hide Desktop) and using a different organization method, like the Dock or a folder.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →