What Is an NPI Number? Definition, Format, and Who Needs One
The National Provider Identifier, or NPI, is a unique 10-digit number that identifies healthcare providers in the United States. If you have ever looked at a medical bill, an insurance claim, or a prescription label and seen a 10-digit code next to a doctor’s name, that was almost certainly an NPI. This guide explains what the number is, who needs one, how the format works, and where you will run into it.
What an NPI number is
The NPI is a standard, unique identifier for healthcare providers, introduced under the Health Insurance Portability and Accountability Act (HIPAA). Before the NPI existed, every insurance company and government program assigned its own identifier to each provider, which made billing slow and error-prone. HIPAA established a single number that every payer could recognize.
An NPI carries no built-in meaning. It does not encode the provider’s specialty, location, or type. It is simply a unique reference number that points to a record in a national database. That record — held in the official NPPES registry at npiregistry.cms.hhs.gov — stores the provider’s name, practice address, taxonomy (specialty), and other administrative details.
Who needs an NPI
Any healthcare provider who transmits health information electronically in connection with a standard transaction — most commonly billing insurance — must obtain an NPI. This includes individual clinicians such as physicians, nurse practitioners, dentists, physical therapists, and pharmacists, as well as organizations such as hospitals, group practices, laboratories, and pharmacies.
Providers who never bill insurance electronically are not strictly required to have one, but most obtain an NPI anyway because payers, hospitals, and pharmacies expect it. If you are unsure whether your role requires enumeration, see our guide on whether nurses need an NPI, which walks through a common example.
The 10-digit format and check digit
Every NPI is exactly 10 digits long. The first nine digits are the identifier itself, assigned in sequence with no hidden meaning. The tenth digit is a check digit — a value calculated from the first nine digits that helps software catch transposed or mistyped numbers.
The check digit is computed using the Luhn algorithm, the same method used to validate credit card numbers. For NPIs, the calculation uses a fixed prefix of 80840 placed in front of the nine identifier digits, and then runs the Luhn formula over those 14 digits to produce the final check digit.
Here is a worked example using the widely published sample NPI 1234567893:
- Take the first nine digits:
123456789 - Add the constant prefix:
80840123456789 - Run the Luhn algorithm over that string
- The result is the check digit 3, giving the complete NPI
1234567893
Because the check digit is derived from the other digits, a single mistyped digit will usually fail validation. You can test any number yourself with our NPI validator, which recreates this calculation and tells you whether a 10-digit number is structurally valid. Note that passing the check-digit test only means the number is well-formed — it does not confirm the number is actually assigned to a real provider. For that, you need to look the number up.
Type 1 vs Type 2 NPIs
There are two kinds of NPI:
- Type 1 (Individual): issued to a single human provider, such as a physician or therapist. A person has only one Type 1 NPI for their entire career.
- Type 2 (Organization): issued to a business entity, such as a group practice, hospital, or pharmacy. An organization can also register subparts for distinct locations or departments.
A provider who practices both as an individual and through an incorporated business may be associated with both a Type 1 and a Type 2 number. Our dedicated guide on NPI Type 1 vs Type 2 covers sole proprietors, subparts, and the edge cases in detail.
Where you will see an NPI
Once you know what to look for, NPIs turn up in many places:
- On the CMS-1500 paper claim form and its electronic equivalent, the 837 transaction
- On prescriptions and pharmacy records
- In insurance provider directories and Explanation of Benefits statements
- In hospital credentialing files and referral paperwork
Each NPI is also tied to one or more taxonomy codes, which describe the provider’s specialty. If you want to understand how a specialty is encoded, read what a taxonomy code is or browse the taxonomy lookup.
How to look up or check an NPI
If you have a provider’s name but not their number, you can search by name using our NPI lookup by name tool, or search directly on the NPI lookup page if you already have the 10-digit number. For a full walkthrough, see how to find a provider’s NPI number.
All of this information originates from public data published by the Centers for Medicare & Medicaid Services (CMS). NPI Portal is an independent tool that makes that public data easier to search; it is not affiliated with any government agency. For questions about how the underlying registry works, see our overview of the NPI registry.