United Kingdom · Validation

NHS Number validator.

Verify a UK NHS Number's real Modulus 11 check digit, as specified by the NHS Data Dictionary. Everything runs in your browser: nothing you type is transmitted anywhere.

Source: NHS Data Dictionary — NHS NUMBER 10 digits, formatted 3-3-4

Advertisement

Inputs

Spaces and dashes are ignored.

Result

Enter an NHS Number and press Validate.

How the NHS Number check digit works

An NHS Number is 10 digits, conventionally displayed 3-3-4 (e.g. 943 476 5919). The 10th digit is a Modulus 11 check digit computed from the first 9:

  1. Multiply each of the first 9 digits by a descending weight: 10, 9, 8 … down to 2.
  2. Sum the 9 products and take the result mod 11.
  3. The check digit is 11 minus that remainder.
  4. If that comes to 11, the check digit is 0. If it comes to 10, there is no valid check digit for those 9 digits at all — the number cannot be a real NHS Number regardless of what its 10th digit says.

Verification

The NHS Data Dictionary's own NHS NUMBER page (datadictionary.nhs.uk) returned an HTTP 403 to an automated fetch this session — a bot-blocking WAF, not a sign the algorithm is wrong. The algorithm above was instead cross-verified against the MIT-licensed, open-source nhs-number Python package, whose own check-digit function cites that exact NHS Data Dictionary page (and the CLOSER research-data-linkage resource report) as its source — an independently-published implementation of the same spec, not a guess.

Worked example: 943 476 5919

First nine digits against the weights 10 down to 2
Digit943476591
Weight1098765432
Product90362428423020272

The products add to 299. 299 mod 11 is 2, and 11 minus 2 is 9, so the check digit is 9, matching the final 9 of 943 476 5919. Change the last digit to 8 and the tool reports that the checksum requires 9.

Sources and as-of date

The NHS Data Dictionary entry for NHS Number defines the Modulus 11 check; it blocks automated fetches (HTTP 403 on 26 October 2026), so the algorithm was cross-checked against the open-source nhs-number package, which cites that page. Verified 26 October 2026: the example above was re-run through this tool.

Common mix-ups

  1. NHS: Find your NHS number, checked 2026-10-26

Checked against these sources on .

Frequently asked questions

What does an NHS Number look like?

Ten digits, shown as 3-3-4, for example 943 476 5919. The tenth is a Modulus 11 check digit.

When can no check digit exist?

If 11 minus the remainder comes to 10, there is no valid check digit for those first nine digits, so no real NHS Number can start with them.

Can this tool look up a patient?

No, and it never will. It runs in your browser and checks arithmetic only.

What a passing checksum does and doesn’t tell you

A valid Modulus 11 check digit only proves the 10 digits are internally consistent — it does not confirm the number was ever actually issued to a real patient, or look up any patient record. This tool has no lookup capability and never will: NHS Numbers identify real patients. Runs entirely in your browser: nothing you type is transmitted, stored, or logged.

Advertisement
Advertisement