The two ways to change your Mac username

You can change your Mac username in two places: the account name that appears on the login screen, and the folder name where your files live. Most people need to change both, but macOS treats them separately. The account name change happens in System Settings and takes effect when ready. The folder name change is more involved because macOS locks you out of renaming your own home directory — you have to create a new admin account, use that to rename the folder, then switch back.

If you only care about what appears on the login screen and in menus, you can stop after the first step. If you want the folder name to match (so your home directory is not called "oldname" anymore), you need both steps. Back up your Mac before you start, in case something goes wrong during the folder rename.

Key Takeaways

  • Changing your account name in System Settings takes five minutes and shows up on your login screen and in menus right away.
  • Renaming your home folder requires a second admin account because macOS prevents you from renaming your own active directory.
  • If you skip the folder rename, your login name and folder name will not match, but everything still works.
  • Back up your Mac before you start, in case something goes wrong during the folder rename.

Step 1: Change your account name in System Settings

Open System Settings and go to General, then Users & Groups (or Accounts on older macOS versions). Click the lock icon in the bottom left and enter your password to unlock the settings. Select your account from the list on the left.

Look for the "Full Name" field at the top of the account details. This is the name that shows on your login screen, in the top-right menu bar, and in most applications. Click the field, delete the old name, type the new one, and press Enter. The change takes effect when ready — you do not need to restart.

The "Account Name" field below it is grayed out and cannot be changed from this screen. That is the short name used for your home folder path, and it requires the folder rename process described below.

Step 2: Create a temporary admin account

To rename your home folder, you need to be logged in as a different admin user. Go back to System Settings, Users & Groups, and click the lock to unlock. Click the plus button at the bottom left to create a new account. Choose "Administrator" from the account type dropdown.

Give it a temporary name like "Temp Admin" and a straightforward password you will remember. Click "Create User." macOS will set up the new account and return you to the Users & Groups window. You will use this account only to rename your original home folder, then delete it afterward.

Step 3: Log out and log in as the temporary admin

Click the Apple menu in the top-left corner and select "Log Out." When the login screen appears, click your new temporary admin account and enter its password. You are now logged in as a different user, which means your original home folder is no longer in use and can be renamed.

Keep your password for this temporary account written down or memorized until you finish the rename process and delete the account. You will need it if anything goes wrong and you have to log back in to fix it.

Step 4: Rename your home folder

Open Finder and click "Macintosh HD" (or your drive name) in the sidebar. Navigate to the Users folder. You will see a folder with your old account name — this is your home directory. Right-click it and select "Rename." Type the new short name you want (usually lowercase, no spaces). Press Enter to confirm.

macOS may ask for your password to confirm the change. Enter it and wait for the rename to complete. Do not interrupt this process or restart your Mac while the rename is happening. If the rename fails, try again — sometimes it takes a second attempt.

Step 5: Update your account settings to match the new folder name

Go back to System Settings, Users & Groups, and unlock the settings. Select your original account (the one you renamed in Step 1). You should see that the "Account Name" field is now editable. Click it and change it to match the folder name you just created. Click outside the field to save the change.

If the Account Name field is still grayed out, log out of the temporary admin account, log back into your original account, and try again. Sometimes macOS needs a moment to recognize the folder rename. If it still will not work after a restart, log back in as the temporary admin and rename the folder back to its original name, then contact Apple Support.

Step 6: Delete the temporary admin account

Log out of the temporary admin account and log back into your original account with its new name. Go to System Settings, Users & Groups, unlock the settings, and select the temporary admin account. Click the minus button at the bottom left and choose "Delete the home folder" when prompted. Confirm the deletion.

Your original account is now the only admin account, and your home folder name matches your account name. You can verify the change by opening Finder, clicking your home icon in the sidebar, and checking the window title — it should show your new username.

What to do if something goes wrong

If you renamed the folder but your account still will not recognize it, restart your Mac while logged in as the temporary admin. Sometimes the system needs a restart to fully register the change. After the restart, log back into your original account and check whether the Account Name field in System Settings is now editable.

If you still cannot log back into your original account after the rename, log in as the temporary admin again and rename the folder back to its original name. Then try the rename process once more, or contact Apple Support if the problem repeats. If you created the temporary admin account but cannot delete it, make sure you are logged in as your original account (not the temporary one) when you try to delete it — you cannot delete the account you are currently using.

Frequently Asked Questions

Do I have to rename the home folder, or can I just change the account name?

You can stop after changing the account name in System Settings. Your login screen and menus will show the new name when ready. The folder rename is optional — it just makes things tidier if you want the folder name to match your account name.

What happens to my files if I rename the home folder?

Your files stay exactly where they are. Renaming the folder does not move or delete anything. Applications will find your files in the new location automatically because macOS updates the path internally.

Can I change my account name without creating a temporary admin account?

You can change the full name without a temporary account. To change the account name (the folder name), you must use a different admin account because macOS locks you out of renaming your own active home directory.

How long does the folder rename take?

Usually a few seconds to a minute, depending on how many files you have. Do not force quit or restart during the rename — let it finish completely.

Will changing my username affect my passwords or login keychain?

No. Your passwords and keychain are tied to your account, not to the folder name. They will work the same way after the rename.