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.
Inputs
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:
- Multiply each of the first 9 digits by a descending weight: 10, 9, 8 … down to 2.
- Sum the 9 products and take the result mod 11.
- The check digit is 11 minus that remainder.
- 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
| Digit | 9 | 4 | 3 | 4 | 7 | 6 | 5 | 9 | 1 |
|---|---|---|---|---|---|---|---|---|---|
| Weight | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 |
| Product | 90 | 36 | 24 | 28 | 42 | 30 | 20 | 27 | 2 |
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
-
Often assumedI can look up my NHS number on the NHS website using my name and date of birth.
What the source saysThe NHS page says the Find your NHS number service is no longer available. It lists the NHS App or your NHS website account, any NHS letter or prescription, or your GP surgery as places to find it. [1]
-
Often assumedI need to know my NHS number by heart before I can use NHS services.
What the source saysThe NHS page states that you do not need to know your NHS number to use NHS services. It describes the number as 10 digits, with 485 777 3456 as its example. [1]
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.