Can't log into your Twitter account: how to find the cause and fix it
Can't log into your Twitter account? Reset the password, wait an hour on a "Locked out!" error, or use a two-factor backup code.
The sign-in page turns you away, and it doesn't always say why. On X, the platform formerly called Twitter, the cause is usually one of a handful that X documents, and each has its own fix.
If you can't log into your Twitter account, the cause is usually a forgotten password, a temporary lockout, a two-factor code problem or a browser issue.Forgotten password: select "Forgot password?" and enter the code X sends."Locked out!" error: stop trying and wait about an hour.Missing two-factor code: wait two minutes, then use a backup code.Reset done but login still fails: clear the cache, allow cookies or try another browser.
The walkthrough below takes each cause in turn, with X's own steps and what to do when none of them fit.
How to fix it when you can't log into your Twitter account
Fixing a failed login starts with identifying which failure you have. X's page on help with logging in is organized the same way, as a list of separate cases.
Work through two phases.
Identify what the sign-in page shows
- Check what you typed in the first field. X accepts a username, an email address or a phone number.
- Read the error in full, especially if it says "Locked out!"
Apply the fix that matches
- Reset the password if it is rejected and no lockout error appears.
- Wait about an hour if the page says you are locked out.
- Use a backup route if the password works but the two-factor code doesn't arrive.
Sorting the problem first saves you from the most common mistake, which is guessing passwords until a lockout is added to the original problem.
Forgot which username, email or phone is on your X account
You need only one identifier, and X accepts substitutes for each.
- Forgot your username: use your account email address and password to log in.
- Forgot your email: log in with your username and password instead.
- Forgot your phone number: enter your username or account email.
If you remember none with confidence, X suggests using the password request form. Enter the username, email addresses or mobile number you think you used, then check all your email inboxes for the message.
That last step works as a test. The inbox that receives the reset email is the one on the account.
How to reset a Twitter password by email
The email reset is the standard route. X's page on resetting a lost or forgotten password gives the sequence:
- Select "Forgot password?" on the sign-in page.
- Enter your email, phone number or username.
- Choose the email address where X should send the message.
- Enter the code from the email and select Submit.
- Choose a new password.
X notes one restriction on the second step. If you have multiple accounts associated with your phone number, you cannot use the phone number there.
Pick a password you haven't used elsewhere. It should be one you can type correctly on a phone keyboard.
Resetting an X password by text message
A text reset is available when a phone number is on the account. X's steps are short:
- Enter your phone number and select Search.
- Select the option to text a code to your phone, which shows the number's last digits.
- Select Continue.
- Enter the code you receive.
There is an important exception. X says the text message option isn't available to accounts that are enrolled in login verification. Those accounts can only reset through email.
If the text option is missing from your screen, that is likely the reason, and the email route is the one to use.
When the reset email from Twitter never arrives
A missing reset email is usually a filtering problem. X says to check your junk or spam filters, and it adds that many small domains filter its emails.
Search the inbox for X as a sender before you request again. Several requests in a row produce several messages, and it gets hard to tell which one is current.
If the email doesn't arrive after those checks, X's instruction is to file a support ticket.
Also confirm you are looking at the right inbox. An old address from a previous job or provider is a frequent culprit.
The reset email arrives but login still fails on X
X covers this case in detail, and the fixes are practical:
- Act promptly, because the links in those emails are time-sensitive.
- Paste carefully, with no extra spaces before or after.
- Try logging in from a different browser or another computer.
- Make sure your browser accepts cookies.
- Clear your browser's cache before saving the new password.
These are the browser-side steps X documents. They deal with stale data in the browser, which is why they come after the reset and not before it.
If none of them work, X raises another possibility. You may be locked out of your account for security purposes.
The locked out error on Twitter clears in about an hour
Too many failed attempts bring an error, not silence. The message reads "Locked out!"
X's page on temporary account lock out explains it. After a limited number of failed attempts, you are temporarily locked out from trying to sign in, even with the correct password.
The lock lasts about an hour and clears on its own.
Do not request more password resets while you wait. That is X's own instruction.
Close any other application that signs in to your account as well. An app with an old saved password can keep producing failed attempts in the background.
Two-factor authentication problems at X login
If your password is accepted and you stall at the code, the problem is the second factor. X's page on help with two-factor authentication lists the fixes.
For a text message code that hasn't come, wait at least two minutes before trying to sign in again. A phone that is offline or in flight mode can't receive it.
For a push notification that doesn't appear, turn on mobile notifications for the app, or request a code by text message instead.
X also points to the login code generator in the app's security settings as another source of codes.
How X backup codes work when your phone is gone
A backup code is the documented route when the phone itself is lost. X says to use the backup code, and if you don't have one, to contact its support team.

Two details matter when you use them. An account can hold up to five active backup codes at a time.
X also warns that using a code out of order will invalidate all previously generated codes. Use the most recent set, in sequence.
If you saved the codes as a screenshot or printout, look for the newest one. Older sets may no longer be valid.
When X asks an extra question at login
Sometimes the password is right and X wants more. Its page on additional sign up and log in details says it may ask you to answer a question about your account that only you know.
In some cases, it may also email you a code.
This is a verification step, and it isn't a lock.
Answer the question, or collect the code from your inbox, and the login continues.
It tends to worry people because it is unexpected. Treat it like the code step in two-factor authentication and you will be through quickly.
You lost access to the email on your Twitter account
Losing the inbox makes recovery harder but not always impossible. X's page on email address access gives the options in order:
- Update the email from an app where you are still logged in.
- Use a text message reset if a mobile number is on the account.
- Contact your email service provider to try to regain the inbox.
X is direct about the limit. With neither the email nor a verified mobile number, it says it is unable to continue troubleshooting, and that you can sign up for a new account.
So check every device first. A tablet or old phone still signed in to X can save the account.
A security lock or suspension can also stop an X login
Not every failed login is a password problem. Two account states produce similar symptoms.
A locked account shows a message asking you to verify by phone, email or a captcha check. You get past it by completing that step, not by resetting anything.
A suspended account is different again. X says that if you log in and see prompts asking for your phone number or to confirm your email address, you should follow them to get the account unsuspended. If there are none, an appeal is the route.
In both cases the screen tells you. Read it before you assume the password is at fault.
What to do if your Twitter account was hacked
A password that suddenly stops working can mean someone changed it. X lists a hacked account among its login cases.
Check the inbox tied to the account. When an account appears to be hacked or phished, X may proactively reset the password and email the owner instructions for setting a new one.
If you find that message, follow it. If you find a notice that the account's email was changed and you didn't do it, act on that notice.
Once you are back in, change the password again to one you have never used, and review which applications have access.
Is X itself not working?
Rule out the service before you change anything. If the sign-in page won't load, or the app fails on every device you try, the problem may not be your account at all.
A quick comparison helps. Ask someone else whether X opens for them, or try a second device on the same account.
If the site is having trouble, resetting your password won't help and may add confusion later. Waiting is the better choice.
There is a separate walkthrough on why X (Twitter) is not working for that situation.
What X does not list as a login cause
Several popular explanations don't appear on X's help pages. X does not mention VPNs or ad blockers as reasons a login fails.
It also doesn't describe failed attempts as a silent block. The lockout comes with a visible "Locked out!" error.
That doesn't prove those things never matter on your device. It means advice built on them is guesswork, while the fixes above come from X's documentation.
Start with the documented causes. They account for the cases X itself expects.
A brand-new Twitter account that won't log in
New accounts have their own entry on X's login page. If you just signed up and can't get in, check for the signup confirmation email.
If no confirmation arrived, X's guidance is to sign up again.
One thing to check is the address you typed at signup. If it was mistyped, the confirmation went to an inbox you can't open, and a fresh signup with the correct address is the quicker fix.
Where to ask X for login help
When self-service runs out, use X's forms. Its forms index has a topic named "Problems with account access", described as help logging in, or with reactivating or deactivating an account.
Have three things ready:
- the username
- the email or phone number on the account
- a plain description of what the sign-in page shows
X doesn't publish a response time. File once, keep the confirmation and avoid opening duplicates.
Your checklist for getting back into X
Work down the list and stop at the first step that fits:
- Confirm the identifier you are typing is the one on the account.
- Wait an hour if you saw "Locked out!", with other apps closed.
- Reset the password by email, or by text if that option appears.
- Clear the cache, allow cookies and try another browser if the reset didn't take.
- Use a backup code or contact support if two-factor is the barrier.
When you can't log into your Twitter account, the fastest fix is the one that matches the message on screen. Read that message again, then take the single step it points to.
Common questions about Twitter login problems
How long is a password reset code from X valid?
For 60 minutes. X says the code in the reset email is valid for that long, and the same applies to a code sent by text.
Does X block an IP address after failed logins?
X doesn't describe one. What it documents is a lockout on sign-in attempts for the account, lasting about an hour.
Will resetting my X password log me out on other devices?
Yes. X says a password reset logs you out of all active sessions, so expect to sign in again everywhere.