You will get a unique tax reference number automatically when you complete a self assessment form or register a company with gov.uk. Once you have registered either yourself or the business with the self assessment tool, you will be sent a letter with your UTR. This can take up to 15 days to arrive.