Canadian · Validation

NPI number validator.

Check a 10-digit US National Provider Identifier against the real Luhn check-digit formula CMS uses — the same routine check medical billers, pharmacists and insurance staff run on an NPI before they trust it.

How it checks out: CMS calculates the NPI check digit with the standard Luhn (modulus-10 “double-add-double”) formula, always computed as if the fixed prefix 80840 (the card-issuer-identifier prefix for US health applications) were prepended to the 9-digit identifier root — even though the prefix itself is never part of the NPI you're given.

Source: CMS — Requirements for NPI and NPI Check Digit (Jan 23, 2004)Verified 29 September 2026

Advertisement

Inputs

Enter the full 10-digit NPI, including its check digit.

Result

Enter an NPI and press Check.

How the NPI check digit is calculated

Every US health care provider that transmits HIPAA-covered electronic transactions gets a 10-digit National Provider Identifier (NPI): 9 numeric digits with no embedded meaning, plus a final check digit. CMS specifies that check digit using the standard Luhn formula for computing the modulus-10 “double-add-double” check digit — the same algorithm used for credit-card numbers and, per CMS's own document, for the ISO card-issuer identifier on a standard health identification card.

The wrinkle is the prefix. When an NPI is printed as a card-issuer identifier, it is preceded by 80840 (80 = health applications, 840 = the United States under ISO 3166-1). CMS's rule: the check digit is always calculated as if that prefix were present, even on a bare NPI that never carries it. So validating an NPI means prepending 80840 to its 9-digit root, running Luhn on the resulting 14 digits, and comparing the result to the 10th digit you were given.

Worked example, from CMS's own specification document: identifier root 123456789, prefixed to 80840123456789. Doubling alternate digits from the right and summing gives 67; the amount needed to reach the next multiple of ten is 3 — so the full, correctly-checksummed NPI is 1234567893.

Checksum only — not an NPPES registry lookup

This tool verifies the check digit's arithmetic entirely in your browser. It does not query the NPPES registry, so a checksum pass is not proof the number was ever actually assigned to a real provider — only the NPPES NPI Registry can confirm that. Nothing you type is transmitted, stored, or logged.

Worked example: 1234567893

Take the nine-digit root 123456789 and put 80840 in front: 80840123456789. Counting from the right, double every second digit starting with the rightmost: 9, 7, 5, 3, 1, 4 and 0 become 18, 14, 10, 6, 2, 8 and 0, whose digit-sums are 9, 5, 1, 6, 2, 8 and 0, a total of 31. The undoubled digits 8, 6, 4, 2, 0, 8 and 8 add to 36. The sum is 67. The amount needed to reach the next multiple of ten is 3, so the NPI is 1234567893. Change the final digit to 4 and the tool reports the expected digit as 3.

Sources and as-of date

The method is that of CMS’s NPI check-digit specification (Luhn with the 80840 prefix). The CMS PDF returned HTTP 404 and the NPPES NPI Registry page returned no descriptive text to an automated fetch on 26 October 2026, so neither could be re-read here. The example was verified by recomputing the sum (67) in this tool. Verified 26 October 2026.

Frequently asked questions

Why add 80840?

CMS calculates the check digit as if the card-issuer prefix 80840 were present, even on a bare NPI.

Does a pass mean the provider exists?

No. Use the NPPES NPI Registry to confirm an assignment.

How many digits is an NPI?

Ten: nine digits and one check digit.

Is my input sent anywhere?

No.

Advertisement
Advertisement