Fix Microsoft Account Asking for 7-Digit Code Instead of 6-Digit
Question details
The user receives a six-digit security code via email, but the Microsoft sign-in prompt requires a seven-digit code to proceed.

- Product
- Microsoft Account
- Device & OS
- not provided
- Scenario
- Signing into a Microsoft account where two-step verification or security prompts are enabled.
- Observed behavior
- The sign-in page incorrectly requests a seven-digit code while the automated verification email only provides a six-digit code, preventing account access.
Ensure you have access to your alternate Microsoft account recovery methods, such as an authenticator app, a linked trusted device, or a backup email address.
Use an Alternative Verification Method
Bypass the email code glitch by utilizing another configured two-step verification method.
When Microsoft's email delivery system experiences a temporary bug causing code length mismatches, the most reliable workaround is to use a completely different verification channel.
On the security code prompt screen, click the 'Get a code another way' or 'Sign in another way' link.
Choose an available method from the list, such as a Microsoft Authenticator app, a trusted device notification, SMS text message, or a secondary backup email address.
Retrieve the code sent to your alternative method and enter it into the sign-in prompt to access your account.

Wait and Retry the Sign-In Later
Allow Microsoft's authentication servers time to resolve temporary synchronization glitches.
Try WPS Office as Your Hassle-Free Office Suite
Tired of account sign-in glitches preventing you from accessing your essential documents? WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office that allows you to manage your local files smoothly without complex cloud account verifications.
- 1. Download the software: Visit the official WPS website and download the free installer for your operating system.
- 2. Install WPS Office: Run the setup file and follow the quick installation wizard to set up the software.
- 3. Open existing files: Launch WPS Office and directly open your existing Microsoft Office files without worrying about complex account lockouts.

Frequently Asked Questions
Why is Microsoft asking for a 7-digit code when they only sent a 6-digit code?
This usually happens due to a temporary server-side glitch where Microsoft's security prompt interface becomes out of sync with the automated email dispatch system, causing mismatched code requirements.
Can I use an authenticator app instead of waiting for an email code?
Yes. If you previously linked an authenticator app to your Microsoft account, you can select 'Get a code another way' during sign-in and approve the request directly from your app.
What happens if I don't have any alternative verification methods set up?
If email verification is your only method and you encounter this glitch, your best option is to wait a few hours for Microsoft to fix the temporary issue. If it persists, you may need to use the Microsoft account recovery form to regain access.




