Jackie’s Post-it note went to the tip with the old fridge. On it, in her own handwriting, was the one thing she now needed: her Government Gateway user ID. It was a Sunday night in Doncaster, an HMRC letter about her tax code was on the table, and the sign-in box on her laptop wanted a 12-character code she’d never once memorised. If your Government Gateway user ID is lost too, here’s the good news: HMRC has a recovery route built for exactly this, and most people are back in within the evening.
Government Gateway User ID Recovery at a Glance
| What you’re looking for | A user ID of up to 12 characters (HMRC calls it a 10 to 12 digit ID) |
| Cost | Free |
| First place to look | Your email, searched for “Government Gateway user ID” |
| Online route | Sign in page → “I have forgotten my Government Gateway user ID” → email code → ID emailed to you |
| If the email address is gone | Choose your account type, then call the HMRC online services helpline |
| Locked out | 2 hours after too many wrong attempts; advisers cannot lift it early |
| Helpdesk | 0300 200 3600, Monday to Friday, 8am to 6pm (outside the UK +44 161 930 8445) |
What You’re Actually Looking For

Jackie’s first mistake was typing her National Insurance number into the user ID box. Easy to do, and wrong. A Government Gateway user ID is its own thing: up to 12 characters, which HMRC describes as a 10 to 12 digit ID. It isn’t your NI number, it isn’t your 10-digit Unique Taxpayer Reference, and it isn’t your email address. HMRC showed it on screen the day you created your sign-in details and emailed it to you at the same time, which is why recovery always starts in your inbox. If you’re hazy on how it was created, our guide to setting up a Government Gateway account walks through every screen. Once you know its shape, the hunt gets shorter.
Start With Your Inbox

Before HMRC lets you recover anything, it shows you a screen headed “Before recovering your Government Gateway user ID” and asks you to search your emails first. Take that seriously. Jackie typed “Government Gateway user ID” into Gmail’s search bar and found a 2019 message from HMRC in a folder called Old Stuff, with the ID in the body. Check the archive, the spam folder and any older address you used back then, because the message went to whichever email you registered with. Saved passwords in Chrome, Edge or Safari often hold the ID as well. If the search draws a blank, or the screen says Government Gateway isn’t working today, move on to the recovery route below.
The Online Recovery Route, Screen by Screen

Here is the path as it appears on GOV.UK in August 2026. Jackie followed it in about 10 minutes. The same page is also where you’d start a new Government Gateway account, so take care not to create one by accident.
- On the HMRC sign-in page on GOV.UK, choose “Government Gateway” and press Continue.
- Under “Problems signing in”, pick “I have forgotten my Government Gateway user ID”.
- Answer “Did you find your Government Gateway user ID?” with “No, recover my user ID”.
- Type the email address linked to your account. HMRC sends a code to prove it’s yours.
- Enter the code. HMRC may ask you to confirm your name and National Insurance number, then your user ID arrives by email. Write it somewhere that won’t end up at the tip.
Forgotten the Password Too, or Lost the Email Address?

Jackie’s neighbour Dev had it worse: no user ID, no password, and an account tied to a work email from a job he left in 2022. For both details, choose “I have forgotten my Government Gateway user ID and password” on the sign-in page and follow the same email-code steps. For a dead email address, click “I have forgotten or cannot access this email address”. GOV.UK then asks “What type of account do you have?” with four choices: Individual with Self Assessment, Personal tax account, Organisation, or Tax agent. Pick yours and you’re given the helpline number, because HMRC won’t hand out a user ID online without a working email. If you’re about to file Self Assessment online near a deadline, start early.
Calling the Helpdesk: 0300 200 3600

Dev rang the HMRC Online Services Helpdesk on 0300 200 3600 from his van at lunchtime. It’s open Monday to Friday, 8am to 6pm, closed bank holidays; from abroad dial +44 161 930 8445. If you use Relay UK, dial 18001 first. This is the team for lost sign-in details, access codes, identity problems and error messages; they can’t answer tax questions, and VAT online problems go to the VAT helpline. Have your National Insurance number, date of birth and address close by; the adviser checks who you are first. GOV.UK’s digital assistant can also pass you to webchat with an adviser when one is free. Dev was verified and back in before he’d finished his sandwich, and could finally check his tax code online.
Locked Out? The 2-Hour Rule

Jackie’s husband Mark found his ID but got the password wrong five times in a row, and the screen locked him out. GOV.UK is blunt about what happens next: enter the wrong sign-in details too many times and the account stays locked for 2 hours. Helpdesk advisers cannot shorten that, so put the kettle on instead. The other common snag is the access code. HMRC sends it by text, voice call or authenticator app; if your number has changed, sign in with your user ID and password, select “You can get help” when the code is requested, and follow the steps to switch method. Mark used the wait to install the HMRC app, which signs in with a 6-digit PIN or fingerprint once set up.
Signed Up in 2026? You May Have GOV.UK One Login Instead

Jackie’s son Liam, 19, hunted for his user ID for 20 minutes before realising he’d never had one. He registered in March, and since 9 February 2026 new individual customers create a GOV.UK One Login with just an email address and password. Existing Gateway users keep their IDs for now; HMRC aims to start moving them across in 2027. In Liam’s position, enter your email on the sign-in page, choose “I’ve forgotten my password”, type the security code emailed to you, then a second code by text or authenticator app, and set a new password. Codes expire after 15 minutes. Lost the phone too? GOV.UK’s guide to changing your One Login details covers backup options, and the One Login team answers 0300 373 9020, Monday to Friday, 8am to 8pm, part of the wider UK digital ID shift.
Making Sure You Never Lose It Again

Once she was in, Jackie did three things. She saved the ID in her phone’s password manager, wrote it in the notebook where she keeps the car’s MOT dates, and checked the email address and mobile number on the account were current, so the next recovery email lands somewhere she can read it. GOV.UK’s sign-in page carries a bold warning: do not share your Government Gateway user ID and password with anyone, and that includes a friendly caller claiming to be HMRC. A genuine recovery email only arrives after you’ve asked for one, so an unexpected “your user ID” text is an HMRC text scam, not a favour. For a refresher on passwords and 2-step verification, see our Government Gateway account guide.
Where This Leaves You
A lost Government Gateway user ID feels like a locked front door, but the spare key is nearer than you think. Search your inbox for “Government Gateway user ID” first, use the “I have forgotten my Government Gateway user ID” link if that fails, and ring 0300 200 3600 if the email address is gone. Joined HMRC this year? You’re probably a GOV.UK One Login user and need a password reset instead. Do it this week, and store the ID somewhere that survives a new fridge.
Frequently Asked Questions
What does a Government Gateway user ID look like?
It’s a code of up to 12 characters, which HMRC describes as a 10 to 12 digit ID. It is not your National Insurance number, UTR or email.
Can I recover my Government Gateway user ID without my email address?
Not online. Select “I have forgotten or cannot access this email address”, choose your account type, then call the HMRC helpline on 0300 200 3600 to prove who you are.
How long is a Government Gateway account locked for?
Enter the wrong sign-in details too many times and the account locks for 2 hours. It opens again on its own; HMRC advisers cannot lift the lock sooner.
Is my Government Gateway user ID the same as my National Insurance number?
No. Your NI number is for your tax and benefits records. Your Government Gateway user ID is a separate sign-in code of up to 12 characters.
Do I have a Government Gateway user ID if I registered with HMRC in 2026?
Possibly not. Since 9 February 2026, new individual customers get a GOV.UK One Login with an email and password, so you’d reset that password instead.
Disclaimer: This article is general information, not tax, financial or legal advice. Sign-in steps, phone numbers and opening hours are correct as of August 2026 and can change; check the official GOV.UK pages before acting.