The short answer · checked 23 November 2026

  • You recover a lost Government Gateway user ID or password online, from HMRC’s own sign-in page. GOV.UK says you’ll be told how when you try to sign in.
  • A Government Gateway user ID is up to 12 characters. GOV.UK One Login uses your email address instead, so check which of the two you set up before you start.
  • Too many wrong attempts lock the account. It unlocks itself after 2 hours, and HMRC’s helpdesk advisers cannot unlock it sooner.
  • If you already have a Government Gateway ID, HMRC says keep using it until it contacts you. A One Login from Companies House does not replace it for HMRC yet.
  • The 2025/26 online tax return is due by 11:59pm on 31 January 2027. “I couldn’t log in” is not an excuse HMRC lists, so sort access out now.
  • HMRC’s online services helpline is 0300 200 3600, Monday to Friday, 8am to 6pm, with waits of up to 45 minutes.

You sit down to file, pay or sign up for Making Tax Digital and can’t remember how you log in to HMRC. Below: which sign-in you have, how to get back in, what to do if you’re locked out or the code doesn’t arrive, and how to protect yourself if the deadline is close.

Everything here comes from GOV.UK and HMRC’s own pages, checked today. Where HMRC only says “you’ll be told how”, we say so rather than guess.

12characters, at most, in a Gateway user ID
2 hoursbefore a locked account reopens
3ways to get an access code
31 Jan 2027online Self Assessment deadline

Which login did you use: Government Gateway or One Login?

HMRC now has two sign-in routes, and the recovery steps differ. The first screen of HMRC’s sign-in asks you to pick one, so you need to know which you set up.

HMRC sign-in options, from GOV.UK and HMRC’s sign-in page, checked 23 November 2026
Your situationWhat you sign in withWhere to recover it
You’ve used HMRC online services before 9 February 2026Government Gateway user ID (up to 12 characters) and passwordHMRC’s sign-in page, Government Gateway option
You first signed up to HMRC online on or after 9 February 2026 as an individualPossibly GOV.UK One Login: email address and passwordThe One Login “I’ve forgotten my password” link
You have a One Login only from Companies House or another serviceStill your Government Gateway for HMRCHMRC’s sign-in page, Government Gateway option
You manage a limited company’s taxesThe company’s own Government Gateway user ID, not your personal oneHMRC’s sign-in page, using the company’s details

A good clue: if your login starts with an email address, it is One Login. If you were given a string of numbers as a user ID, it is Government Gateway. HMRC’s own announcement described the old ID as 10 to 12 digits.

How do I recover a lost Government Gateway user ID or password?

GOV.UK’s help page is short on this: “You can recover or reset your sign in details if you’ve lost them. You’ll be told how to do this when you try to sign in.” There is no separate form or phone line to do it for you.

  1. Open HMRC’s sign-in Go to HMRC online services from GOV.UK, the HMRC app, or the “Sign in” button on a service such as your personal tax account. Use the GOV.UK link, not one from an email. easy
  2. Choose Government Gateway The first screen offers Government Gateway, GOV.UK One Login, or “Create new sign in details”. Pick Government Gateway. easy
  3. Follow the recovery link HMRC shows the recovery or reset route at this point. HMRC doesn’t publish what it asks at this stage, so have the email address and phone number you registered with to hand. medium
  4. Get back in and save the details Write the user ID into a password manager. If your phone number or email has changed, update them under your security settings once you’re signed in. easy

Once in, the HMRC business tax account lets you change your sign-in details and security preferences.

If you’ve been locked out

GOV.UK says you’ll be locked out if you enter the wrong details too many times, and the account unlocks after 2 hours. Helpdesk advisers cannot unlock it. Don’t keep guessing; wait the 2 hours, then use the recovery route instead.

If the access code doesn’t arrive

After your password, Government Gateway asks for an access code by text message, voice call or authenticator app. If you’ve changed phone, sign in with your user ID and password, select “You can get help” when asked for the code, and follow the steps. GOV.UK says you may need to confirm your identity.

Don’t create a second login to get round it

GOV.UK tells existing users to “continue to use the sign in details you have”. “Create new sign in details” is for people who have never used HMRC online services. A fresh login is a different account, so recover the old one first.

What if you signed in with GOV.UK One Login?

One Login has no user ID: you sign in with your email address. If you’ve forgotten the password, GOV.UK’s One Login guidance gives these steps.

  1. Start to sign in and enter your email On the password screen, select “I’ve forgotten my password”. easy
  2. Enter the email code One Login sends a security code to your email. Codes expire after 15 minutes, so use the most recent one. easy
  3. Enter a second code This comes by text message or from your authenticator app. medium
  4. Set a new password Then carry on into HMRC. easy

Lost the phone too? Use your back-up method if you added one, or select “Problems with the code”. GOV.UK says you can only change how you get codes if you’ve already proved your identity with One Login, using the GOV.UK ID Check app. Otherwise contact the One Login team, not HMRC.

Is Government Gateway being replaced by One Login?

Yes, but slowly, and you don’t need to switch yourself. HMRC opened One Login to new individual customers on 9 February 2026. Its guidance, last updated 9 February 2026, says One Login will “over time” replace other sign-in routes, including Government Gateway.

What has changed

  • New individual customers can create a One Login with an email and password
What hasn’t

  • Existing Government Gateway users keep their ID until HMRC asks them to move
  • A One Login from Companies House or another service doesn’t work for HMRC yet
  • Limited companies still need their own Government Gateway ID
  • When asked to move, you may have to verify your identity again, with a passport or driving licence

So if you lost a Government Gateway ID, recover it. Creating a One Login won’t give you your old HMRC records.

What should I do if a filing deadline is close?

Start now. Recovery can involve codes, a 2-hour lockout or a phone call, and HMRC’s Self Assessment support line warns of waits up to 45 minutes.

HMRC deadlines that need a working login, from GOV.UK, checked 23 November 2026
ObligationNext deadlineLogin needed for
2025/26 Self Assessment online return and payment11:59pm, 31 January 2027Filing online with HMRC
MTD for Income Tax quarterly update, 6 April to 5 January7 February 2027Authorising your software

Signing up for MTD uses “the same user ID and password you got when you registered for Self Assessment”, and software asks for the same details when you connect it. A lost ID therefore blocks MTD sign-up too. The full calendar is on our deadlines page, and our Self Assessment deadline guide covers what is due when.

If you miss the 31 January deadline, these are the late filing penalties GOV.UK lists for a return filed 6 months late:

Initial penalty, as soon as the return is late
£100
Daily penalties after 3 months: £10 × 90 days, capped at
£900

At 6 months late, before the 5% or £300 charge£1,000

A further 5% of the tax due or £300, whichever is greater, follows at 6 and 12 months. Late payment adds separate penalties and interest.

A forgotten login is not a reasonable excuse

GOV.UK lists “issues with HMRC online services” and a computer or software failure as things that may count. It says “you found the HMRC online system too difficult to use” will not. If HMRC’s systems fail, note the date you tried and any error message, which GOV.UK says to include in an appeal.

Before you assume your password is wrong, check whether HMRC online services are down. HMRC also posts known Government Gateway issues on its “Problems signing in” page; today it listed none. If a penalty does arrive, our guide to appealing an HMRC penalty explains the 30-day window.

The Radar, every week

New business account offers, fee changes and deadlines, in one short email.

What if someone else changed my password?

GOV.UK treats this as possible identity fraud. Signs include access codes arriving when you haven’t tried to sign in, a password that has been changed, changes to your tax records you didn’t make, and unexpected HMRC letters or payments.

  • If you can still sign in, change the password and report it from the security console in HMRC online services.
  • If you can’t, use HMRC’s online report form. You’ll need an email, a phone number, details of the activity and, for a business, your tax reference.
  • HMRC says it aims to phone or email you within 10 working days.

Who do I contact if recovery doesn’t work?

Try first

  • The recovery link on HMRC’s Government Gateway sign-in
  • Wait out a lockout: 2 hours
  • “You can get help” at the access code screen
  • HMRC’s digital assistant, which can pass you to a webchat adviser if one is free
Then phone

  • HMRC online services helpdesk: 0300 200 3600, or +44 161 930 8445 from abroad, Monday to Friday, 8am to 6pm
  • It handles log-in problems, not tax questions
  • It may ask security questions, so have your UTR ready
  • One Login problems go to the GOV.UK One Login team, not HMRC

If you don’t know your UTR, our guide on how to find your UTR number covers letters and past returns.

Company directors: HMRC’s Government Gateway and Companies House sign-in are separate. If you also file at Companies House, check the director ID verification deadline. If you run both a sole trade and a company, each has its own HMRC sign-in; our sole trader vs limited company guide explains how the two are taxed.

FAQ

How do I find my lost Government Gateway user ID?

Start to sign in to HMRC online services, choose Government Gateway, and follow the recovery link. GOV.UK says you’ll be told how to recover or reset your details at that point. Check old HMRC emails, a password manager and your accountant’s records first.

Can HMRC tell me my Government Gateway user ID over the phone?

GOV.UK points you to the online recovery route at sign-in. The helpline, 0300 200 3600, deals with problems logging on, but advisers cannot unlock a locked account.

I’ve lost my Government Gateway ID and password. Can I just create a new one?

GOV.UK tells people who already use HMRC online services to keep using the details they have. “Create new sign in details” is for people who have never used the services. Recover the old account first so your taxes stay together.

How long does a Government Gateway lockout last?

GOV.UK says your account unlocks after 2 hours if you enter the wrong details too many times. Helpdesk advisers cannot unlock it sooner, so wait and then use the recovery route.

Do I need to switch from Government Gateway to GOV.UK One Login?

Not yet, unless HMRC asks you. Since 9 February 2026 new individual customers can use One Login, while existing Government Gateway users keep their ID until HMRC contacts them. A One Login from another service, such as Companies House, doesn’t replace it for HMRC.

Will HMRC accept a lost login as an excuse for filing late?

Unlikely. GOV.UK says finding the HMRC online system too difficult to use is not a reasonable excuse, though issues with HMRC’s own online services may be. Recover your login well before 31 January 2027.

Sources

  1. GOV.UK: HMRC online services, sign in or set up an account, and get help with signing in (updated 16 November 2026)
  2. HMRC: technical support with HMRC online services (updated 28 January 2026)
  3. HMRC: Self Assessment online technical support
  4. HMRC: accessing HMRC online services using GOV.UK One Login (updated 9 February 2026)
  5. HMRC: HMRC introduces GOV.UK One Login for new customers (9 February 2026)
  6. GOV.UK: changing the sign in details for your GOV.UK One Login and getting a security code
  7. HMRC: problems signing in to HMRC services
  8. GOV.UK: Self Assessment tax returns, deadlines and penalties
  9. GOV.UK: disagree with a tax decision or penalty, reasonable excuses
  10. GOV.UK: sign up for Making Tax Digital for Income Tax and send quarterly updates
  11. HMRC: report suspicious activity happening in an HMRC online account
  12. GOV.UK: set up a private limited company, Corporation Tax

Checked on 23 November 2026 against GOV.UK and HMRC guidance. Tax rules change; GOV.UK and HMRC always prevail.