
A wrong keyboard layout at the Mac login screen can make your password fail even when you are entering the correct characters. The login window may be using a different input source than the one you use after signing in, or macOS may not be applying your preferred layout before authentication.
Start by checking the input source shown in the upper-right corner of the login screen. Select the correct keyboard layout, then enter your password again. If the correct layout is unavailable, sign in using an on-screen keyboard or another temporary method, then configure the login window’s input source in System Settings.
Quick Answer
To fix a keyboard layout problem at the Mac login screen:
- Select the input source menu in the upper-right corner of the login window. 2. Choose the correct keyboard layout, such as U.S., British, or another installed layout. 3. Enter your password again, paying attention to symbols and special characters. 4.
Why the Keyboard Layout Is Wrong at Login
The login screen runs before your user account is fully loaded. Because of that, it may use a system-wide input source rather than the keyboard layout selected inside your account.
Common causes include:
- The physical keyboard and selected layout do not match.
- A different input source was selected at the login window.
- The preferred layout was added only to your user account.
- The Mac was configured in another country or language.
- A password contains symbols that move between layouts.
- FileVault encryption is enabled, causing an earlier password screen to appear before the normal login window.
- macOS has not synchronized the login window’s input source with your account.
For example, pressing the same key on a U.S. keyboard and a British keyboard can produce different symbols. A password that contains @ may therefore be entered as a different character if the wrong layout is active.
Check the Input Source at the Login Screen
Before changing settings, confirm which layout the login window is using.
- At the Mac login screen, look in the upper-right corner for an input source indicator. It may display a language, keyboard icon, flag, or abbreviated layout name.
- Select the indicator.
- Choose the layout that matches your physical keyboard.
- Enter your password again.
If you do not see an input source menu, the login window may not have more than one enabled layout, or the menu may be hidden by the current login configuration.
Identify the Physical Keyboard Layout
Look at the printed symbols on the keyboard rather than relying only on the Mac’s region settings.
For example:
- A U.S. keyboard places the
@symbol above2. - A British keyboard typically places
"above2and@near the Return key. - Some European keyboards use different positions for letters and punctuation.
- Third-party keyboards may have labels that do not match the layout selected in macOS.
If the password contains a symbol, try entering it according to the selected layout—not according to the printed key alone.
Add the Correct Keyboard Layout After Signing In
If the required layout is missing from the login screen, add it to your Mac after signing in.
- Sign in using the available layout.
- Open the Apple menu and choose System Settings.
- Select Keyboard in the sidebar.
- Find Text Input and select Edit next to Input Sources.
- Select the + button.
- Search for the required language or keyboard layout.
- Select the layout and choose Add.
- If necessary, remove an incorrect or unwanted input source by selecting it and choosing the – button.
- Select Done.
Do not remove the only layout until you have added and tested the replacement. Removing an input source can make it harder to enter your password if the remaining layout does not match your keyboard.
After adding the layout, sign out or restart the Mac and check whether the input source appears at the login screen.
Make the Login Window Use Your Preferred Layout
macOS can sometimes use a different input source at the login window than the one selected in your account. On some Mac configurations, you can synchronize the login window with your current input source.
- Open System Settings.
- Select Keyboard.
- Select Edit next to Input Sources under Text Input.
- Look for an option similar to Show Input menu in login window or an option that applies the current input source to the login window.
- Enable the relevant option if it is available.
- Close System Settings.
- Restart the Mac and test the login screen.
The exact options can vary depending on your Mac’s login settings and macOS configuration. If you do not see a setting for the login window, add the desired input source first and restart the Mac.
Test the Password Without Changing It
If you are unsure whether the keyboard layout is the cause, test the characters in a place where you can see what you type.
After signing in:
- Open TextEdit.
- Create a blank document.
- Type the symbols and letters used in your password.
- Compare the results with the characters you intended to enter.
- Switch between input sources from the menu bar and test again.
Never save a document containing your password. Delete the text immediately after testing.
This test can reveal whether a key combination produces a different character under the active layout. It also helps distinguish a layout problem from a password problem.
Use the Keyboard Viewer to Find Symbols
The Keyboard Viewer displays the characters produced by each key in the current input source. It is useful when a password contains punctuation that is difficult to locate.
- Open System Settings.
- Select Keyboard.
- Enable the option to show input sources or the Input menu in the menu bar, if necessary.
- Select the input source icon in the menu bar.
- Choose Show Keyboard Viewer.
- Hold Shift, Option, or Option-Shift to view additional characters.
The Keyboard Viewer does not reveal your password. It only shows which characters the selected layout produces. Use it to identify the correct key combination, then close it when finished.
Check Whether You Are at the FileVault Password Screen
Some Macs display a password screen before the normal macOS login window when the startup disk is encrypted with FileVault. This screen unlocks the disk first; it is not always identical to the later user login screen.
If the keyboard behaves differently at startup:
- Look for an input source menu or keyboard indicator on the screen.
- Select the correct layout if one is available.
- Try the password using the selected layout.
- Once macOS starts, check your input sources in System Settings > Keyboard > Text Input.
If the startup screen does not offer the layout you need, connect a keyboard that matches the currently selected layout or use the on-screen accessibility options when available. After the disk is unlocked, correct the input source settings inside macOS.
FileVault protects the contents of the startup disk. Do not disable disk encryption merely to troubleshoot a keyboard layout unless you understand the security consequences and have another reason to change that setting.
Use an On-Screen Keyboard or Accessibility Keyboard
If you cannot enter your password reliably with the physical keyboard, use an accessibility keyboard if it is available from the login window.
Look for an Accessibility Options button, usually represented by a person-in-a-circle icon. Select it and enable an on-screen keyboard or related keyboard accessibility feature.
Availability depends on the Mac, the login window configuration, and whether the accessibility feature was enabled before you were locked out. If the option is not present, try connecting a different physical keyboard with a layout that matches the login screen.
An external keyboard can also help determine whether the issue is caused by the keyboard hardware or the selected layout. Avoid repeatedly guessing a password, particularly if your organization uses account lockout rules.
Check Caps Lock and Keyboard Behavior
A keyboard layout problem is not the only reason a correct password may fail.
Check the following:
- Make sure Caps Lock is off unless your password intentionally uses uppercase letters.
- If the login screen shows a Caps Lock indicator, confirm that it reflects the key’s actual state.
- On a Mac notebook, check whether a key is physically stuck.
- Disconnect and reconnect a wired keyboard.
- If using Bluetooth, connect a wired keyboard or charge the wireless keyboard.
- Try the built-in keyboard if you are using an external one, or vice versa.
- Avoid using a keyboard shortcut that changes input sources while entering the password.
If the keyboard works normally after you sign in but fails only at the login screen, the problem is more likely related to the login window’s input source than to hardware.
Restart and Recheck the Login Window
A restart can reload the login window and apply newly added input sources.
Before restarting, save all open work. Restarting closes applications and may cause unsaved changes to be lost.
- Sign in if possible.
- Save your work and close important applications.
- Open the Apple menu.
- Choose Restart.
- At the login screen, check the input source indicator.
- Select the correct layout before entering the password.
If the Mac is frozen, hold the power button only as a last resort. A forced shutdown can cause unsaved work to be lost.
If You Cannot Sign In at All
If the password continues to fail after selecting the correct layout, do not assume that the password is wrong immediately.
Try these checks:
- Confirm that you are entering the password for the correct user account.
- Check the input source indicator again.
- Test symbols using the Keyboard Viewer or an on-screen keyboard.
- Turn off Caps Lock.
- Try a wired keyboard.
- Restart the Mac.
- If another administrator account is available, sign in to it and correct the affected account’s input source settings.
- If you have forgotten the password rather than experiencing a layout problem, use Apple’s available password recovery options.
Changing a password will not automatically fix a mismatched keyboard layout. If you need to change the password, see How to Change the Login Password on a Mac. If you cannot remember the password at all, use a password recovery procedure rather than repeatedly guessing.
Troubleshooting
The input source menu is missing
Open System Settings > Keyboard > Text Input > Edit and make sure at least two input sources are configured if you need to switch between layouts. Also enable the option to show the Input menu in the menu bar when available.
If the login window still does not show a menu, restart the Mac after adding the correct input source.
The correct layout is selected, but the password still fails
Check Caps Lock and test every symbol in the password. A password containing punctuation is especially sensitive to layout differences.
Also confirm that you are using the correct account. If multiple accounts appear, select the intended user before entering the password.
The layout changes after every restart
The login window may be using a system-level layout while your account uses another one. Remove unnecessary layouts, keep the required input source enabled, and restart again.
If the issue affects only one account, test another account. If every account has the same problem, the issue is more likely system-wide or related to the keyboard hardware.
The keyboard works after login but not before login
This often indicates that the login window does not have access to the same input source configuration as your account. Add the layout to the Mac, enable the login-window input menu if available, and restart.
For persistent account-specific login problems, an administrator may need to review the user account settings.
A password reset did not solve the problem
A reset password can still fail if the login screen is entering different characters from the ones you intended. Check the active layout before trying the new password.
If you are using a managed Mac, contact your administrator before changing security or account settings.
Frequently Asked Questions
Why does my Mac say my password is wrong when it is correct?
The login screen may be using a different keyboard layout. This changes the characters produced by some keys, especially punctuation and symbols.
Can I see what I am typing at the Mac login screen?
macOS normally hides login passwords. You can use the Keyboard Viewer after signing in to confirm which characters a layout produces.
Does changing the keyboard layout change my Mac password?
No. It changes how keystrokes are interpreted. A password remains the same sequence of characters, but the physical keys needed to enter those characters may differ between layouts.
What if I cannot access any working layout?
Try a wired keyboard, another keyboard that matches the available layout, or an on-screen accessibility keyboard if the login screen provides one.
Final Thoughts
A keyboard layout mismatch can make a valid Mac password appear incorrect, particularly when it contains symbols.