How to use NPI check digit validator
- 01Type the NPI10 digits, or 9 to get the last.
- 02See the resultValid or not.
- 03Read the workingDoubled digits plus 24.

123456789 → 1234567893.
An NPI ends in a Luhn check digit that CMS always calculates as if the prefix 80840 were in front. In practice that means adding 24 to the usual Luhn total. Checking it catches most typos before an NPI goes onto a claim or a form.
An NPI check digit calculator that follows the CMS document to the letter: Luhn with the 80840 prefix, or the shortcut of adding 24. Type all 10 digits to validate, or the first 9 to get the last.
Why the prefix matters
CMS designed the NPI so it can serve as a card issuer identifier on health ID cards, where it is preceded by 80840 (80 for health, 840 for the United States). The check digit is always calculated as if that prefix were there. Adding the constant 24 gives the same result without writing the prefix.
The calculation, step by step
CMS’s example: 123456789. Doubling 9, 7, 5, 3, 1 gives 18, 14, 10, 6, 2. 24 + 2 + 2 + 6 + 4 + 1 + 0 + 6 + 1 + 4 + 8 + 1 + 8 = 67, and 70 − 67 = 3, so the NPI is 1234567893.
- Take the first 9 digits of the NPI.
- Starting from the rightmost of those 9, double every second digit.
- Add the digits of the doubled values, the digits that weren’t doubled, and 24.
- Subtract the total from the next number ending in zero. That is the check digit (0 if the total already ends in zero).
Where people use it
- Billing staff checking an NPI before submitting a claim.
- Developers adding validation to EHR, claims or credentialing forms.
- Anyone checking a typed NPI before searching the NPPES registry.
At a glance
- Price
- Free. No sign-up, no watermark.
- Privacy
- Your text stays in your browser. Nothing is uploaded.
- Works in
- Chrome, Edge, Firefox and Safari, on phones and computers
Questions
Why do generic Luhn checkers reject a valid NPI?
Because the NPI check digit is worked out with the 80840 prefix included. A plain Luhn check on the 10 digits leaves the prefix out and gives a different answer. Add 24 to the total, or put 80840 in front, and it matches.
Does this look up the provider?
No. It only checks the digits. To find who holds an NPI, search the CMS NPPES NPI Registry.
Can an NPI start with any digit?
CMS issues NPIs starting with 1 or 2. The tool flags other first digits even when the check digit matches.
Is the number sent anywhere?
No. The check runs in your browser.
Does an NPI contain information about the provider?
No. CMS designed it with no embedded intelligence: the digits say nothing about the provider’s type, state or specialty.
Can I check a 15-digit number with 80840?
Yes. Type it with the prefix and the tool checks the NPI inside it.
Is 1234567893 a real NPI?
It is CMS’s worked example. It passes the check, but use the NPPES registry to see whether any provider holds a number.