An MT5 login normally depends on three pieces of information matching the same trading account: your account number, the correct account password and the exact broker trading server. If any one of those is wrong, MetaTrader 5 may fail to authorize the account even when the other two are correct. The fastest way to solve most login failures is therefore to verify the server first, then the account number, then the password.

Your MT5 account login is also different from a broker website login and from an MQL5.community login. A broker portal may use an email address and a separate password, while MetaTrader 5 connects to the broker's trading server using trading-account credentials. The official MetaTrader 5 Help from MetaQuotes identifies the desktop connection fields as Login, Password and Server.

What You Need for an MT5 Account Login

Before opening the platform, locate the account credentials issued by your broker. These are often shown in the broker's client area or account-opening message. Do not assume the email and password used for the broker's website are also your MT5 credentials.

CredentialWhat it meansCommon mistake
LoginThe numeric trading account number used to connect to the account.Entering an email address or a different account number.
PasswordThe master password or investor password assigned to that trading account.Using a broker portal password or an old saved password.
ServerThe broker trading server on which the account exists.Selecting a similarly named demo or live server.

The server is not a cosmetic choice. The same broker can operate several MetaTrader 5 servers for different account groups, regions or environments. Your login number is valid only where the broker has created that account. A correct account number sent to the wrong server can therefore fail just like an incorrect password.

How to Log In to MT5 on Desktop

  1. Open MetaTrader 5.
  2. Choose File and then Login to Trade Account. You can also use the account entry in the Navigator.
  3. Enter your trading account number in the Login field.
  4. Enter the master or investor password supplied for that account.
  5. Select the exact broker server associated with the account.
  6. Use Save password only on a device you control.
  7. Confirm the login and watch the platform connection status.

If the required server is not available in the list, verify the server name from the broker rather than guessing from similar entries. On desktop, MetaTrader 5 can also connect to a server specified by address and port, but most retail users should use the broker-provided server entry unless the broker gives different instructions.

After login, check that the displayed account number and server correspond to the account you intended to use. This matters if you keep several demo and live accounts in the same terminal. A successful connection to the wrong account can look like a login problem when the real issue is simply that the platform opened a previously saved account.

How to Log In to MT5 on Mobile

On Android or iPhone, open the account management area and choose to add or connect an existing account. Search for the broker or server, select the correct server and enter the account number and password. The official MetaTrader 5 mobile guide from MetaQuotes notes that the full server list is not necessarily displayed at first and that users can search for the required broker server.

Mobile login is especially sensitive to server selection because a broker may appear more than once. Check the complete server label rather than choosing the first result that resembles the broker name. If the broker supplied a QR code for account connection, supported MetaTrader 5 mobile versions can use it to connect without manually typing the login, password and server values.

If the account works on desktop but not on mobile, compare the server names character for character and confirm that you are entering the same trading-account password. A mobile app does not need a different MT5 password merely because it is running on another device.

Why the MT5 Server Matters

The trading server determines where MetaTrader 5 sends your authorization request. Think of the account number as an identifier inside a particular broker server rather than a universal MetaTrader identity. That is why an account number by itself is not enough for an MT5 login.

Server names often distinguish live and demo environments. They may also distinguish account groups or infrastructure operated by the same brokerage. Choosing a demo server for a live account or a live server for a demo account can prevent authorization. The safest source of the correct server is the broker that opened the account.

If you recently opened another account with the same broker, do not assume it uses the same server as your older account. Likewise, if a broker tells you that an account has been moved or reissued, use the current server details it provides. Do not keep retrying an old saved server entry indefinitely.

MT5 Login Problem: Fast Diagnostic Order

When an MT5 login problem appears, troubleshoot in an order that separates credential errors from connection errors. Changing several things at once makes it harder to identify what actually fixed the problem.

  1. Confirm the server. Match the full server name against the broker's account details. Pay particular attention to live versus demo labels and similarly named servers.
  2. Confirm the account number. Use the trading login shown for the MT5 account. Do not substitute your client-area email, wallet ID or MQL5.community username.
  3. Re-enter the password. If a password is saved, remove the possibility of stale credentials by typing the current account password again.
  4. Check the password type. A master password permits trading. An investor password is intended for read-only access and can make the account appear connected while trading remains unavailable.
  5. Check connectivity. If the platform cannot reach the trading server at all, test your internet connection and see whether another network changes the result.
  6. Check the account state. If the details are correct but authorization still fails, ask the broker whether the account is active on that server and whether it has been archived, deleted, migrated or otherwise restricted.

On desktop, check the platform Journal immediately after a failed attempt. The exact log entry is more useful than a vague description such as "it will not log in" because it helps separate authorization from connectivity. Record the error text and the server you selected before changing settings. If you share a log excerpt with support, remove unrelated account or system details and send it through the broker's official support channel.

This order matters because changing a password will not fix a wrong server and reinstalling the platform will not restore a deleted account. The error should drive the next step.

What Does MT5 Invalid Account Mean?

MT5 invalid account means the platform could not authorize the trading account as supplied. It is an outcome rather than a complete diagnosis. The practical causes to check are an incorrect account number, the wrong trading server, an incorrect or outdated password and an account that no longer exists or is no longer active on that server.

There is one documented case in which the message has a very specific meaning. The official MetaTrader 5 account management guide from MetaQuotes states that an expired demo account can return an Invalid account error when the demo account has been deleted on the broker's trade server. In that situation, repeatedly entering the old credentials cannot restore that deleted demo account.

For a live account, do not infer that invalid account means the broker has closed it permanently. First verify the exact server and credentials. If those are correct, the broker is the party that can confirm whether the account exists on that server and whether its status changed.

Login Failure and Connection Failure Are Different

A login failure occurs when MetaTrader 5 reaches a trading server but the account cannot be authorized with the submitted details. A connection failure means the platform cannot establish or maintain the network connection needed to reach the server reliably. The two problems can look similar to a user because both may leave prices or account data unavailable.

SymptomLikely area to checkBest next action
Invalid accountAccount number, server, password or account stateVerify credentials and server with the broker.
No connectionInternet path, server reachability or local network settingsTest connectivity and then confirm whether the broker server is available.
Connected but cannot tradePassword type or trading permissionCheck whether you used the investor password and review the account status.
Old account keeps loadingSaved account dataSelect the intended account and re-enter the current credentials.

If you use a corporate network, proxy or restrictive firewall, network settings may affect connectivity. Avoid changing advanced server or proxy settings at random. A successful test on a different trusted network can help separate a local network issue from an account-authorization issue.

Master Password and Investor Password

MetaTrader 5 supports two main account-access modes. The master password provides full account access including trading. The investor password provides read-only access, allowing the user to view the account and analyze market data without placing trades.

This distinction explains a common false alarm: the login succeeds, prices update and account information is visible, but order placement is unavailable. If you intentionally logged in with the investor password, that behavior is expected. Use the master password when you need trading rights and are authorized to trade the account.

Do not confuse either trading password with an MQL5.community password. MQL5.community credentials are used for community and integrated services such as Market features. They are not a substitute for the broker-issued trade account number, password and server used for the MT5 account login.

OTP and Extended Authentication

Some accounts use additional authentication beyond the ordinary account password. MetaTrader 5 supports one-time passwords for accounts configured to use them. If OTP is enabled, the platform can request a current one-time code in addition to the normal password. A code generated for an earlier time interval will not work as a current code.

MetaTrader 5 also supports certificate-based extended authentication when the broker's server enables it. In that configuration, the required certificate must be available on the device and the certificate password may also be needed. If a normal login and password are correct but the account is configured for extended authentication, missing certificate requirements can still block access.

These security layers are account-specific. Do not assume every MT5 login should show an OTP or certificate prompt. If you were never instructed to use them and your broker has not enabled them for your account, focus first on the standard login, password and server combination.

If the Password Was Changed or Forgotten

If you changed the master password, an older password saved in MetaTrader 5 can cause repeated authorization failures. Re-enter the current password manually. On devices where you no longer want credentials stored, clear the saved password or disable automatic credential storage.

If you have forgotten the trading password, contact the broker that maintains the trading account. MetaTrader 5 is the client platform, but the broker operates the trade server and manages the account relationship. A generic MetaTrader website password reset does not replace the broker's trading-account recovery process.

When changing a password inside the platform, make sure you are connected to the intended account. Password-change controls apply to the current trading account, so traders who keep multiple accounts should verify the account number before making the change.

Why MT5 Works but Trading Does Not

A successful MT5 login does not always mean the account can place orders. The clearest login-related reason is investor access. With an investor password, the account can be opened in read-only mode but trading is unavailable.

Other trading restrictions can be separate from login itself. An account may be connected while a broker-side permission, account status or instrument condition prevents a particular trade. If quotes and account information load correctly, treat that as evidence that authorization succeeded and investigate the trading restriction separately instead of repeatedly changing the login credentials.

Common MT5 Login Mistakes

  • Using the broker portal password. The website login and the trading-account password may be different credentials.
  • Choosing the first server with the broker name. The account may belong to another live or demo server.
  • Using an old saved password. Password changes can leave a device trying credentials that are no longer valid.
  • Entering MQL5.community credentials. Community access and trade account access serve different purposes.
  • Expecting an MT4 account to work automatically in MT5. Use the platform and server credentials specifically issued for the account.
  • Assuming read-only access is a platform fault. Investor authorization is designed to prevent trading.
  • Reinstalling before checking the server. Reinstallation does not correct a server mismatch or an inactive account.

When to Contact Broker Support

Contact the broker when you have confirmed the account number, server and current password but authorization still fails. You should also contact it if you no longer know the trading password, if the server named in your account details cannot be found or if you suspect the account has been moved, disabled or deleted.

Provide the account number, the exact server name, the device and platform you are using and the error text shown by MetaTrader 5. A timestamp of the failed attempt can also help the broker locate server-side records. Do not send your master password in a support message. A legitimate support process should be able to investigate the account without asking you to disclose the secret password itself.

MT5 Login Checklist

  1. Use the trading account number rather than an email address.
  2. Select the exact server assigned to that account.
  3. Enter the current master password for trading or the investor password for read-only access.
  4. Distinguish the MT5 trade account from the broker portal and MQL5.community account.
  5. If you see Invalid account, verify server, login and password before reinstalling anything.
  6. If you see a connectivity problem, test the network separately from the credentials.
  7. If OTP or extended authentication is enabled, complete the additional authentication requirement.
  8. If the credentials are correct but access still fails, ask the broker to confirm the account status on the specified server.

Most MT5 login problems become easier once you treat the server as part of the credential set. The correct account number and password are not enough when they are pointed at the wrong trading server. Verify all three together, then separate authorization issues from network problems and broker-side account status. That sequence avoids unnecessary password resets, reinstalls and repeated failed login attempts.