G-TWC71REWG0

Government Gateway ID: Find It, Get It Back and Prepare for One Login

By Marina Jahan · Reviewed by Shamayun Chowdhury, CIMA · Tax year 2026/27 · Last reviewed [22 september 2026]

You’re trying to file something with HMRC, the sign-in screen asks for your gateway ID, and you have no idea what it is. You’re far from alone: it’s one of the most searched-for HMRC questions, and the number is usually sitting somewhere you haven’t looked yet.

Below you’ll find where to look first, how to get the ID back from HMRC if it really has gone, how to deal with a locked account or a missing security code, and what the gradual switch to GOV.UK One Login means for you.

Quick answer

Your gateway ID is the user ID HMRC issued when you first signed up for its online services, and it can be up to 12 characters long. The quickest way to find it is to search your email for “Government Gateway”, since HMRC sent it to you at registration. Failing that, start a sign-in on GOV.UK and choose the recovery option. Anyone new to HMRC since 9 February 2026 uses GOV.UK One Login rather than a Gateway ID.

Find your fix

Can’t remember the ID: go to Getting a lost ID back from HMRC. Can’t remember the password, or neither: see Match your problem to the fix. Locked out or no code arriving: see Locked out, or the code never comes. Never registered before: see Opening a new Government Gateway account in 2026.

The Government Gateway user ID explained

For over twenty years, the HM Revenue and Customs Government Gateway has been the front door to HMRC’s online services. HMRC gives you the user ID; you pick the password. With those two details you reach your personal or business tax account, Self Assessment, VAT and employer PAYE, and you grant your software the permissions it needs for Making Tax Digital.

Its length and look

A Government Gateway user ID runs to a maximum of 12 characters and is usually made up of numbers. You’ll often read that it is always 12 digits long. It isn’t; some older IDs are shorter. So when you’re scanning old emails, look for any long string of numbers rather than counting to twelve.

Numbers it gets mistaken for

HMRC gives you several reference numbers, and keying the wrong one into the sign-in box is a classic way to trigger a lock-out.

Reference Its purpose Do you sign in with it?
Government Gateway user ID The name you sign in to HMRC online services with Yes, alongside your password
Unique Taxpayer Reference (UTR) Ten digits identifying your Self Assessment or company tax record No, though recovery may ask for it
National Insurance number Two letters, six digits and a final letter No, though it’s often used to check who you are
VAT registration number Nine digits shown on your VAT certificate No
Agent reference A code accountants use when acting for clients Only within agent accounts

If HMRC keeps refusing a number you’re certain about, it’s worth checking whether it’s actually your UTR or VAT number.

Five places your gateway ID is probably hiding

Getting the ID back from HMRC works, but finding the one you already have is quicker. Try these first.

  1. Your email history. HMRC sent the ID by email when you signed up. Search every account you’ve ever used, old work addresses included, for “Government Gateway”, and look in spam and archive folders as well.
  2. Saved passwords. If your browser or a password manager ever stored your HMRC details, the ID may be stored against tax.service.gov.uk or gov.uk.
  3. Old files and screenshots. Plenty of people saved or printed the confirmation screen at registration. A folder marked HMRC or tax is a good bet.
  4. Your accountant’s notes. An accountant who helped you register may have recorded the ID. They should never have kept your password.
  5. The right business. If you’ve run a company or partnership, you may have a separate ID for it. Make sure the one you’ve found matches the taxes you’re trying to reach.

Illustrative example

Dev is a plumber who files personal Self Assessment and also runs a small limited company. He spends an hour trying to sign in to file the company’s VAT return, using the ID from his personal welcome email. It fails every time, because the VAT service sits under a second ID he set up for the company in 2019. Dev and his situation are made up, but the mix-up is one accountants see constantly.

Hold off on opening a fresh account. A new sign-in won’t carry the tax services linked to your old one, and people new to HMRC are now pointed towards One Login rather than a new Gateway account.

Getting a lost ID back from HMRC

If the search comes up empty, HMRC’s recovery process is built into its normal government gateway sign in, so there’s no hidden page to hunt for.

  1. Head to the HMRC online services page on GOV.UK and begin signing in with Government Gateway.
  2. Select the option for trouble signing in, then choose to recover your user ID.
  3. Give the email address you registered with.
  4. Answer HMRC’s identity questions, which may cover your National Insurance number, or references for your business.
  5. Look out for an email from HMRC with your ID, normally within a few minutes, and check your spam folder if it’s slow to arrive.

Always get there by going to GOV.UK yourself. Treat any gov gateway login link that arrives unexpectedly by text or email with suspicion, however genuine it appears.

When the password has gone too

Get the ID back first. The password reset needs your ID before it will go any further, so starting with the password just sends you in circles. With the ID in hand, go back to the sign-in screen, pick the password option and use the reset link HMRC emails you.

When you can’t reach the old email

This is the toughest situation, because HMRC sends recovered details to the email on your account. The online process may let you prove who you are another way and change the address. If it can’t, contact HMRC’s online services helpdesk, currently on 0300 200 3600, though it’s worth checking GOV.UK for up-to-date numbers and hours. For a business sign-in, keep your VAT or PAYE reference and the postcode HMRC has on file nearby.

Locked out, or the code never comes

Enter the wrong details too many times and the account locks. It reopens by itself after 2 hours, and HMRC’s helpdesk can’t unlock it any faster, so spend the time recovering the right ID instead of trying again.

If the trouble is the access code, you can switch how it reaches you. After entering your ID and password, pick the help option on the code screen and work through the prompts. HMRC can send codes by text, by voice call or through an authenticator app, which helps if your mobile number has changed.

For other HMRC gateway login problems, the digital assistant on GOV.UK is a good next stop and, when advisers are free, can hand you over to webchat.

government-gateway-id

Match your problem to the fix

Problem Start here Next step if stuck
You’ve lost the user ID Look through your email for “Government Gateway”, then pick recover ID when signing in HMRC’s online services helpdesk
You’ve lost the password Reset it from the sign-in screen using your user ID If you’re unsure of the ID, recover it first
You’ve lost both Recover the ID, then reset the password HMRC’s online services helpdesk
The old email address is gone Start recovery; it can sometimes check your identity by other means HMRC’s online services helpdesk
You’re locked out Wait 2 hours for the lock to lift Use the time to recover the correct ID
The access code doesn’t arrive Sign in and ask for help with the code Change to voice call or an authenticator app
You’ve never registered See the next section on One Login Not applicable
You’re an agent and a client is missing Make sure you’re in your agent services account See our agent guide

Are you even in the right account?

Plenty of failed log gateway attempts have nothing to do with lost details. They’ve opened the wrong account: perhaps a personal ID when the VAT belongs to a company one, or an old ID from a business long since closed. If you hold several IDs, write down which taxes each one covers and store that note securely.

Opening a new Government Gateway account in 2026

In most cases you can’t any more. Since 9 February 2026, people signing up to HMRC’s online services without an existing Government Gateway account now set up a GOV.UK One Login. That sign-in is built around your email address and a password of your choosing, not a number HMRC hands you, and identity is confirmed either in the GOV.UK ID Check app or through a set of questions.

Already hold a Gateway account? Then nothing changes for now. Your current ID and password still work, and HMRC has said it will contact you when it’s your turn to switch. You don’t need to do anything until then.

Any guide advising you to set up a new Government Gateway account when recovery fails pre-dates this change. Recovering the account you have is nearly always the better option, since that’s where your tax services already sit.

HMRC Government Gateway or One Login: which applies to you?

GOV.UK One Login, one account for many government services, is steadily taking over from the Government Gateway. Which one you need for HMRC right now depends on when you first registered.

Your position How you sign in to HMRC
You already have a Gateway ID With that Government Gateway user ID and password
You first used HMRC’s online services after early February 2026 With GOV.UK One Login
You have a Gateway ID and also use One Login elsewhere, for example for your State Pension or Companies House Still with your Gateway ID, until HMRC says otherwise
You’re an agent Through your agent services account, as now

Timing of the move for existing users

The changeover is happening in stages, and no closing date for the Government Gateway has been set. Published plans suggest existing individual customers will move from late 2026 into 2027. HMRC will be in touch when it’s your turn, so be cautious about any unexpected message urging you to switch through a link.

Using the ID Check app doesn’t mean you’ve switched

Some Gateway users are now asked to confirm their identity with the GOV.UK ID Check app. That’s just a way of proving who you are while you keep signing in with your Gateway ID; it doesn’t move you onto One Login.

The old gateway.gov.uk address

The gateway.gov.uk site no longer exists. If a gateway gov HMRC search takes you to an old link, return to GOV.UK and start from HMRC’s sign-in page.

More than one ID: personal, company and agent sign-ins

It’s common to collect several Gateway IDs over the years, and they don’t all do the same job.

  • A personal, or individual, account holds your own tax: Self Assessment, PAYE details and, for sole traders and landlords, Making Tax Digital for Income Tax.
  • An organisation account serves a limited company or similar body, covering services such as Corporation Tax, VAT and employer PAYE.
  • An agent account is separate again. Accountants doing MTD work sign in through an agent services account, which carries a separate user ID.

A company director who also files personal Self Assessment will often have two IDs, each holding different services, as in Dev’s case above.

Where sign-in meets Making Tax Digital

Making Tax Digital asks you to sign in to HMRC at three moments: when you register, when you connect software, and when you appoint an accountant.

  • Registering. You use your Gateway ID, or One Login if you’re a newer customer, to sign up for MTD for Income Tax. Our MTD sign-up page walks through it.
  • Connecting software. Your software hands you over to HMRC’s own sign-in screen to give it permission. Never enter your HMRC password into a form on a software provider’s site. The MTD software guide explains authorisation.
  • Appointing an accountant. Once you authorise them, an agent acts for you from the firm’s own agent services account. They have no need for your Government Gateway password and shouldn’t ask for it. Practices can read our guide for agents.

Protecting your sign-in details

Your Gateway details unlock your tax records and, for some services, any refunds due to you. Look after them as carefully as your banking log-in.

  • Get to HMRC’s sign-in by typing GOV.UK yourself or from a saved bookmark, not from links in messages you weren’t expecting
  • Keep your password to yourself, accountant included; authorise them as your agent instead
  • Let a password manager hold the ID and password instead of a sticky note
  • Update the account’s email and mobile number whenever they change, so recovery emails and codes find you
  • If a supposed HMRC message feels wrong, check it against HMRC’s phishing guidance on GOV.UK

Five sign-in traps to avoid

When the government gateway log in page won’t let you through, one of these is usually behind it.

Entering your UTR or VAT number as the ID. They’re easy to confuse, and a run of failed tries brings on the 2-hour lock.

Resetting the password without the ID. The reset can’t start without the ID, so recover that first.

Opening a new account rather than recovering the old one. The new sign-in won’t have your tax services attached, and new users now go to One Login anyway.

Using the wrong account. Company VAT won’t appear under a personal ID. Check which ID holds the service you’re after.

Handing your password to an accountant. Authorise them as your agent. That’s safer, and it’s how MTD is meant to work.

Prefer to let us deal with HMRC?

If sign-in headaches keep holding up your tax, there’s an easier route. Acting as your authorised agent, we can register you for MTD, send your updates and return, and handle HMRC through our own agent account, which means you’ll seldom need to sign in yourself.

MOST CHOSEN FOR MTD

Making Tax Digital

£15 a month

For sole traders and landlords in MTD

  • Registered for MTD by us, as your agent
  • Quarterly updates and return sent for you
  • Hardly any HMRC log-ins needed from you

Self Assessment

£7.50 a month

For anyone outside MTD so far

  • Annual return submitted as your agent
  • Replies to HMRC correspondence
  • Support when you can’t get into your account

Can’t get past HMRC’s sign-in?

Let us know what you need to do and what’s stopping you. We’ll help you get back in, or take the filing on ourselves for a fixed fee agreed up front.

Phone: 0116 403 0595  |  Email: mtdfix@yahoo.com  |  Web: mtdfix.com

MTDFix, 6 Egginton Street, Leicester, LE5 5BA · Serving clients across the UK

Your gateway ID questions answered

Where will I find my Government Gateway user ID?

HMRC emailed it to you at registration, so a search of your inboxes for “Government Gateway” is the place to start. If nothing turns up, pick recover ID on HMRC’s sign-in page.

Is a gateway ID always 12 digits?

No. It can be up to 12 characters, mostly numbers, and some older IDs are shorter.

Can I still open a Government Gateway account?

Most people new to HMRC now set up a GOV.UK One Login instead. If you’ve had a Gateway account before, recover it rather than starting over.

Why has HMRC locked my account?

Too many incorrect attempts. The lock clears after 2 hours, and the helpdesk can’t lift it earlier.

Does Government Gateway HMRC access still work for everyone?

It works for anyone who already has an ID. People who first came to HMRC after February 2026 sign in with GOV.UK One Login.

I already use One Login for my State Pension. Will it work for HMRC?

Not if you already have a Government Gateway ID. Carry on using those Gateway details for HMRC until HMRC asks you to switch.

Is gov gateway sign in the same thing as signing in to HMRC?

For anyone with an existing ID, they’re one and the same. Newer customers reach HMRC through One Login.

Should I give my accountant my gateway login?

No. Authorise them as your agent so they can work through their own account, and keep your gateway login to yourself.

The quick route back in

Start with your inbox: an email headed “Government Gateway” usually holds the ID you need. If it doesn’t, recover the ID through HMRC’s sign-in page, then reset the password if necessary. Let a lock time out rather than battling it, keep your contact details up to date, and avoid opening a new account unless HMRC asks you to. Newcomers to HMRC will use GOV.UK One Login, while existing users will be contacted by HMRC when their turn arrives.

This page reflects HMRC’s sign-in arrangements, Gateway and One Login alike, as at October 2026, and is general information only. HMRC is changing its sign-in services, so where GOV.UK says something different, follow GOV.UK.

Who wrote this guide

This guide comes from Marina Jahan at Eternity Accountants and was checked by Shamayun Chowdhury, a CIMA-qualified Senior Accountant at Major Accountancy, Leicester, who also lectures in accounting at Nottingham Trent University.

Shamayun’s 15-plus years in UK practice include work with more than 500 businesses on Self Assessment, Corporation Tax, VAT and Making Tax Digital. Find him on LinkedIn and Facebook.

Checked: [22 September 2026]

MTDFix, part of Major Accountancy Limited · 6 Egginton Street, Leicester, LE5 5BA · 0116 403 0595 · mtdfix@yahoo.com

Sources