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 that holds your files. Most people need to change both, but they use different settings. The account name change happens in System Settings under Users & Groups. The folder name change requires the Finder or Terminal, and is separate from the account name.
If you only change one, you'll end up with a mismatch — your login screen might say "Sarah" but your home folder stays named "sarah.johnson". Both changes are free and don't require a restart, though you will need to log out and back in to see the account name take effect.
Key Takeaways
- Change your account name (what shows on the login screen) in System Settings under Users & Groups by clicking the lock icon, selecting your account, and editing the Full Name field.
- Change your home folder name (where your files live) separately using Finder's Rename function or Terminal, because System Settings does not rename the folder automatically.
- You must log out completely and log back in to see the account name change take effect on the login screen.
- If you forget your password, you cannot change your username without resetting it first through your Apple ID or a recovery key.
Changing your account name in System Settings
Open System Settings and go to General, then Users & Groups. You'll see a list of accounts on your Mac. Click the lock icon in the bottom left corner and enter your password — this unlocks the settings so you can make changes. Select your own account from the list on the left.
You'll see a field labeled "Full Name" at the top. This is the name that appears on your login screen and in the top-right corner of your menu bar. Click into that field, delete the current name, and type the new one. Press Enter to save. You don't need to restart, but you do need to log out and log back in for the change to show up on the login screen itself.
If you're on an older Mac running macOS Big Sur or earlier, the path is slightly different: go to System Preferences instead of System Settings, then Users & Groups. The steps after that are the same.
Changing your home folder name in Finder
Your home folder is the one with your username on it, usually located in /Users/. To rename it, open Finder and click Macintosh HD (or whatever your drive is called) in the sidebar. Navigate to the Users folder. You'll see a folder with your current username — that's your home folder.
Right-click on your home folder and select Rename from the menu. Type the new name and press Enter. If you get a message saying you don't have permission, you may need to use Terminal instead (see the next section). After you rename the folder, log out completely and log back in. Your Mac will recognize the new folder name and use it going forward.
Do not rename your home folder while you're logged in as that account. Always log out first, then log in as a different administrator account to do the renaming. If you only have one account, you can use Recovery Mode: restart your Mac, hold Command-R until you see the Apple logo, open Finder from the Utilities menu, and rename the folder from there.
Using Terminal to rename your home folder
If Finder won't let you rename the folder, Terminal gives you more control. Open Terminal (in Applications > Utilities) and type the following command, replacing "oldname" with your current username and "newname" with what you want it to be:
sudo mv /Users/oldname /Users/newname
Press Enter and type your password when prompted. Terminal will not show your password as you type — that's normal. After the command runs, close Terminal and log out. When you log back in, your home folder will have the new name. If you get a "permission denied" error, make sure you're logged in as an administrator account and that you're not currently using the account you're trying to rename.
What happens to your files and settings
Changing your username does not move or delete any of your files. Everything stays in your home folder — documents, photos, downloads, all of it. Your applications, browser bookmarks, email, and system settings remain exactly as they were. The change is purely cosmetic: your Mac just refers to the folder by a different name.
Some older applications might have hardcoded your old username into their settings or file paths. This is rare, but if an process stops working after you rename your account, try opening it while holding Shift (to disable login items) and see if that helps. If not, you may need to reinstall the process or contact its support.
If you need to undo the change
You can change your username back the same way you changed it forward. Go to System Settings > Users & Groups, unlock the settings, select your account, and edit the Full Name field back to the original. Then rename your home folder back in Finder or Terminal using the same steps. There's no penalty for changing your username multiple times — it's a safe operation.
If you realize you made a mistake when ready after logging out, log back in with your old password (it doesn't change) and redo the steps. Your password stays the same no matter what your username is.
Frequently Asked Questions
Do I have to change both the account name and the folder name?
No, but it's cleaner if you do. You can change just the account name and leave the folder as it is. However, having them match makes it easier to find your home folder and understand which account is which if you have multiple users on your Mac.
Will changing my username affect my Apple ID or iCloud?
No. Your Apple ID and iCloud account are separate from your Mac username. Changing your Mac username does not change your Apple ID, and you'll still log into iCloud with the same email address you always have.
What if I forgot my password and can't unlock System Settings?
You'll need to reset your password first. Restart your Mac and hold Command-Q at the login screen to access password reset options. You can reset using your Apple ID or a recovery key if you have one set up. Once your password is reset, you can proceed with changing your username.
Can I change my username while other people are logged in?
No. You must be the only person logged in, and you must be logged in as an administrator. If someone else is using the Mac, ask them to log out first. If you're trying to change someone else's username, you need administrator access and they should not be logged in.
Does my password change when I change my username?
No. Your password stays exactly the same. You log in with your password, not your username, so changing the username has no effect on how you sign in to your Mac.