Skip to main content
Back

Unique Taxpayer Reference

This pattern lets the user enter a Unique Taxpayer Reference (UTR). Do not call it a ‘Unique Taxpayer Reference number’.

When to use

Use this pattern when the user must enter a UTR to use a service.

If there is a good reason for asking for a UTR but the user does not have to enter one, make it optional.

When not to use

If there is no good reason for asking for a UTR and the user does not have to enter one to use the service, do not ask for one.

How it works

You can ask for the UTR as the main heading or <h1> of the screen. It may be a question or statement.

              <h1 class="govuk-heading-l">What is your Self Assessment Unique Taxpayer Reference (UTR)?</h1>

<p class="govuk-body">You can <a class="govuk-link" rel="noreferrer noopener" target="_blank" href="https://www.gov.uk/find-lost-utr-number">find a lost UTR (opens in new tab)</a>.</p>

<div class="govuk-form-group">
  <label class="govuk-label govuk-visually-hidden" for="utr">
    What is your Self Assessment Unique Taxpayer Reference?
  </label>
  <div id="utr-hint" class="govuk-hint">
    This is 10 numbers, for example 1234567890. It will be on tax returns and other letters about Self Assessment. It may be called ‘reference’, ‘UTR’ or ‘official use’.
  </div>
  <input class="govuk-input govuk-input--width-10" id="utr" name="utr" type="text" aria-describedby="utr-hint">
</div>

<button class="govuk-button" data-module="govuk-button">
  Continue
</button>
            
                <h1 class="govuk-heading-l">Beth yw'ch Cyfeirnod Unigryw y Trethdalwr ar gyfer Hunanasesiad (UTR)?</h1>

<p class="govuk-body">Gallwch <a class="govuk-link" rel="noreferrer noopener" target="_blank" href="https://www.gov.uk/dod-o-hyd-i-utr-sydd-ar-goll">ddod o hyd i UTR sydd ar goll (yn agor tab newydd)</a>.</p>

<div class="govuk-form-group">
  <label class="govuk-label govuk-visually-hidden" for="utr">
    Beth yw&#39;ch Cyfeirnod Unigryw y Trethdalwr ar gyfer Hunanasesiad?
  </label>
  <div id="utr-hint" class="govuk-hint">
    Mae hwn yn cynnwys 10 rhif, er enghraifft 1234567890. Bydd i’w weld ar Ffurflenni Treth a llythyrau eraill ynghylch Hunanasesiad. Efallai y cyfeirir ato gan ddefnyddio’r geiriau ‘cyfeirnod’, ‘UTR’ neu ‘defnydd swyddogol’.
  </div>
  <input class="govuk-input govuk-input--width-10" id="utr" name="utr" type="text" aria-describedby="utr-hint">
</div>

<button class="govuk-button" data-module="govuk-button">
  Yn eich blaen
</button>
              
                {% from "govuk/components/input/macro.njk" import govukInput %}
{% from "govuk/components/button/macro.njk" import govukButton %}

<h1 class="govuk-heading-l">What is your Self Assessment Unique Taxpayer Reference (UTR)?</h1>

<p class="govuk-body">You can <a class="govuk-link" rel="noreferrer noopener" target="_blank" href="https://www.gov.uk/find-lost-utr-number">find a lost UTR (opens in new tab)</a>.</p>

{{ govukInput({
  label: {
    text: "What is your Self Assessment Unique Taxpayer Reference?",
    isPageHeading: false,
    classes: "govuk-visually-hidden"
  },
  hint: {
    text: "This is 10 numbers, for example 1234567890. It will be on tax returns and other letters about Self Assessment. It may be called ‘reference’, ‘UTR’ or ‘official use’."
  },
  id: "utr",
  name: "utr",
  classes: "govuk-input--width-10"
}) }}


{{ govukButton({
  text: "Continue"
}) }}
              
                  {% from "govuk/components/input/macro.njk" import govukInput %}
{% from "govuk/components/button/macro.njk" import govukButton %}

<h1 class="govuk-heading-l">Beth yw'ch Cyfeirnod Unigryw y Trethdalwr ar gyfer Hunanasesiad (UTR)?</h1>

<p class="govuk-body">Gallwch <a class="govuk-link" rel="noreferrer noopener" target="_blank" href="https://www.gov.uk/dod-o-hyd-i-utr-sydd-ar-goll">ddod o hyd i UTR sydd ar goll (yn agor tab newydd)</a>.</p>

{{
  govukInput({
    label: {
      text: "Beth yw'ch Cyfeirnod Unigryw y Trethdalwr ar gyfer Hunanasesiad?",
      isPageHeading: false,
      classes: "govuk-visually-hidden"
    },
    hint: {
      html: 'Mae hwn yn cynnwys 10 rhif, er enghraifft 1234567890. Bydd i’w weld ar Ffurflenni Treth a llythyrau eraill ynghylch Hunanasesiad. Efallai y cyfeirir ato gan ddefnyddio’r geiriau ‘cyfeirnod’, ‘UTR’ neu ‘defnydd swyddogol’.'
    },
    id: "utr",
    name: "utr",
    classes: "govuk-input--width-10"
  })
}}

{{ govukButton({
  text: "Yn eich blaen"
}) }}
                
              <h1 class="govuk-heading-l">What is your Corporation Tax Unique Taxpayer Reference (UTR)?</h1>

<p class="govuk-body">You can <a class="govuk-link" rel="noreferrer noopener" target="_blank" href="https://www.gov.uk/find-lost-utr-number">find a lost UTR (opens in new tab)</a>.</p>

<div class="govuk-form-group">
  <label class="govuk-label govuk-visually-hidden" for="utr">
    What is your Corporation Tax Unique Taxpayer Reference?
  </label>
  <div id="utr-hint" class="govuk-hint">
    This is 10 numbers, for example 1234567890. It will be on tax returns and other letters about Corporation Tax. It may be called ‘reference’, ‘UTR’ or ‘official use’.
  </div>
  <input class="govuk-input govuk-input--width-10" id="utr" name="utr" type="text" aria-describedby="utr-hint">
</div>

<button class="govuk-button" data-module="govuk-button">
  Continue
</button>
            
                <h1 class="govuk-heading-l">Beth yw’ch Cyfeirnod Unigryw y Trethdalwr ar gyfer Treth Gorfforaeth (UTR)?</h1>

<p class="govuk-body">Gallwch <a class="govuk-link" rel="noreferrer noopener" target="_blank" href="https://www.gov.uk/dod-o-hyd-i-utr-sydd-ar-goll">ddod o hyd i UTR sydd ar goll (yn agor tab newydd)</a>.</p>

<div class="govuk-form-group">
  <label class="govuk-label govuk-visually-hidden" for="utr">
    Beth yw’ch Cyfeirnod Unigryw y Trethdalwr ar gyfer Treth Gorfforaeth?
  </label>
  <div id="utr-hint" class="govuk-hint">
    Mae hwn yn cynnwys 10 rhif, er enghraifft 1234567890. Bydd i’w weld ar Ffurflenni Treth a llythyrau eraill ynghylch Treth Gorfforaeth. Efallai y cyfeirir ato gan ddefnyddio’r geiriau ‘cyfeirnod’, ‘UTR’ neu ‘defnydd swyddogol’.
  </div>
  <input class="govuk-input govuk-input--width-10" id="utr" name="utr" type="text" aria-describedby="utr-hint">
</div>

<button class="govuk-button" data-module="govuk-button">
  Yn eich blaen
</button>
              
                {% from "govuk/components/input/macro.njk" import govukInput %}
{% from "govuk/components/button/macro.njk" import govukButton %}

<h1 class="govuk-heading-l">What is your Corporation Tax Unique Taxpayer Reference (UTR)?</h1>

<p class="govuk-body">You can <a class="govuk-link" rel="noreferrer noopener" target="_blank" href="https://www.gov.uk/find-lost-utr-number">find a lost UTR (opens in new tab)</a>.</p>

{{
  govukInput({
    label: {
      text: "What is your Corporation Tax Unique Taxpayer Reference?",
      isPageHeading: false,
      classes: "govuk-visually-hidden"
    },
    hint: {
      html: 'This is 10 numbers, for example 1234567890. It will be on tax returns and other letters about Corporation Tax. It may be called ‘reference’, ‘UTR’ or ‘official use’.'
    },
    id: "utr",
    name: "utr",
    classes: "govuk-input--width-10"
  })
}}

{{ govukButton({
  text: "Continue"
}) }}
              
                  {% from "govuk/components/input/macro.njk" import govukInput %}
{% from "govuk/components/button/macro.njk" import govukButton %}

<h1 class="govuk-heading-l">Beth yw’ch Cyfeirnod Unigryw y Trethdalwr ar gyfer Treth Gorfforaeth (UTR)?</h1>

<p class="govuk-body">Gallwch <a class="govuk-link" rel="noreferrer noopener" target="_blank" href="https://www.gov.uk/dod-o-hyd-i-utr-sydd-ar-goll">ddod o hyd i UTR sydd ar goll (yn agor tab newydd)</a>.</p>

{{
  govukInput({
    label: {
      text: "Beth yw’ch Cyfeirnod Unigryw y Trethdalwr ar gyfer Treth Gorfforaeth?",
      isPageHeading: false,
      classes: "govuk-visually-hidden"
    },
    hint: {
      html: 'Mae hwn yn cynnwys 10 rhif, er enghraifft 1234567890. Bydd i’w weld ar Ffurflenni Treth a llythyrau eraill ynghylch Treth Gorfforaeth. Efallai y cyfeirir ato gan ddefnyddio’r geiriau ‘cyfeirnod’, ‘UTR’ neu ‘defnydd swyddogol’.'
    },
    id: "utr",
    name: "utr",
    classes: "govuk-input--width-10"
  })
}}

{{ govukButton({
  text: "Yn eich blaen"
}) }}
                

Use a single text input and allow the user to enter:

  • 10 numbers, with or without spaces
  • 13 numbers, with or without spaces
  • 10 or 13 numbers that start or end with a k, for example k1234567890123 and 1234567890k

Remove spaces, characters and extra numbers before validating.

Provide help

Always provide help in the form of a label, normal content or hint text that is as clear as possible. This may include:

  • a short explanation of what a UTR is
  • where they can find it
  • what it looks like
  • an example — if you show an example, always use ‘1234567890’

You can use an image that shows where it is on documents and letters. You could also provide a lost UTR link ‘find a lost UTR (opens in new tab)’.

Do not use the details component to hide any help. Research shows users may:

  • not know what a UTR is
  • need help to know what a UTR looks like

Ask the user about the type of business earlier in the journey and use appropriate content. For example, if the business is a sole trader, tell the user they can find their UTR on letters about Self Assessment. If the business if a limited company, tell the user they can find it on letters about Corporation Tax.

Error messages

Make sure errors follow the guidance about error messages in the GOV.UK Design System and have specific error messages for specific error states.

If the UTR is empty

Say ‘Enter [whatever it is]’.

For example, ‘Enter your Self Assessment Unique Taxpayer Reference’.

If the UTR is in the wrong format

Say ‘Enter [whatever it is] in the correct format’.

For example, ‘Enter your partnership’s Self Assessment Unique Taxpayer Reference in the correct format’.

Research

Research has shown that users often expect this kind of information to be pre-populated, especially when they have signed in. Research has also shown users:

  • may not know what a UTR is
  • need help to know what their UTR looks like
  • need a specific error message so they know what went wrong
  • find their UTR more easily when we provide help appropriate to the type of business

We need more research. If you have used Unique Taxpayer Reference, get in touch to share your research findings.

Discuss Unique Taxpayer Reference on GitHub