Why the conversion exists at all

HIPAA electronic transactions define a fixed-width 11-digit NDC field. The FDA never required a uniform width, so its codes come in three shapes. Every 10-digit code therefore has to be normalised before it goes on a claim.

Medicaid drug rebate reporting and Medicare Part D claims use the same 11-digit form, which is why the conversion is unavoidable rather than a payer preference.

The three rules

The three rules
Source formatPad this segmentBeforeAfter
4-4-2First0002-7510-0100002-7510-01
5-3-2Second50242-051-0150242-0051-01
5-4-1Third0169-4132-10169-4132-01

Then strip the hyphens. 00002-7510-01 transmits as 00002751001.

The two ways people get it wrong

Both errors produce syntactically valid output, which is what makes them dangerous: nothing rejects them at entry, and the mismatch surfaces later as a denial or an audit finding.

  • Adding a zero to the front of the whole number instead of to the short segment. This shifts every digit and produces a code that points somewhere else entirely.
  • Trimming a digit to make the length fit. An 11-digit code that came from truncation will usually pass format validation and then match the wrong product.

Where the converted code goes on a claim

On a CMS-1500 the shaded portion of box 24A carries the N4 qualifier immediately followed by the 11 digits, with no space or hyphen, then the unit qualifier and the quantity administered. On an 837P the same data sits in the LIN and CTP segments.