Medicare BIN, PCN & Group ID → Contract Crosswalk
A Medicare pharmacy claim never says which plan paid it. It carries routing codes: an RxBIN, an RxPCN, and usually an RxGroup. Those codes send the claim to a processor, but they do not name the CMS contract or plan benefit package (PBP) behind it. A BIN/PCN/Group-to-contract crosswalk closes that gap. It maps every Medicare Part D contract/PBP to the routing codes it uses and to the PBM that processes its claims, so that routing codes can be traced back to candidate plans. TwinFyRx maintains this crosswalk across all 8,181 Part D plans for 2026 and every plan year back to 2015.
CMS publishes half of this mapping. It does not publish the RxGroup that actually separates one plan from the next, or the PBM. This page covers what each routing code identifies, what CMS gives you and what it leaves out, why a single BIN/PCN pair can match more than a hundred contracts, and why the complete crosswalk is so hard to build and keep current. To look up a single BIN/PCN/Group, use the Medicare BIN/PCN lookup.
8,181
Part D contract/PBPs, 2026
1,032
CMS contracts
191
Distinct BIN/PCN pairs
86%
Of plans on a pair shared by 10+ contracts
Plan year 2026. BINs and PCNs normalized for zero-padding and case before counting.
The short answer
A BIN and PCN will narrow a Medicare claim to a set of candidate plans, usually a large one. RxGroup is what narrows it to one, and RxGroup is the piece nobody publishes. The value of the crosswalk sits in that gap, and so does the difficulty.
What Are BIN, PCN, and Group ID?
These are the routing fields of a pharmacy claim, defined in the NCPDP Telecommunication Standard that every US pharmacy uses to submit prescriptions electronically. Together with the cardholder ID they are often called the 4Rx fields, and they are printed on the member’s ID card as RxBIN, RxPCN, and RxGrp. Each one narrows where the claim goes. None of them is the Medicare plan.
| RxBIN | RxPCN | RxGroup | Contract / PBP | |
|---|---|---|---|---|
| NCPDP field | 101-A1 | 104-A4 | 301-C1 | Not on the claim |
| Format | 6 digits | Up to 10 alphanumeric | Up to 15 alphanumeric | H/S/R/E + 4 digits, plus a 3-digit PBP |
| Assigned by | ANSI (an Issuer Identification Number) | The claims processor | The processor or plan sponsor | CMS |
| What it selects | Which processor receives the claim | A benefit configuration at that processor | A specific group, formulary, or benefit design | The Medicare plan the member is enrolled in |
| Published by CMS per plan | Yes | Yes | No | Yes (it is the key) |
A contract ID is a letter and four digits (H for Medicare Advantage and cost plans, S for standalone PDPs, R for regional PPOs, E for employer direct contracts). Each contract offers one or more PBPs, numbered 001, 002, and so on. Contract, PBP, and plan year together identify one Medicare plan.
What the Crosswalk Does
The crosswalk is keyed at the grain CMS regulates, which is contract × PBP × plan year. It answers two questions that run in opposite directions:
Forward
Plan → routing
Given H1234-001 in 2026, which BIN, PCN, group, and M3P routing does it use, and which PBM processes it? This direction is always one-to-few.
Reverse
Routing → candidate plans
Given a claim with BIN, PCN, and group, which Medicare plans could have paid it? This is the direction the market needs, and it is one-to-many.
claim BIN 610011 PCN CTRXMEDD plan year 2026 │ │ reverse lookup on BIN + PCN ▼ 257 candidate plans across 54 contracts │ │ add RxGroup BCBSMAN ▼ 1 plan S5584-801 PBM: OptumRx
That narrowing, from 257 plans to one, is the whole argument for RxGroup. It is also why a crosswalk built only from what CMS publishes stops at the second box.
What CMS Publishes, and What It Leaves Out
CMS does publish Medicare BIN and PCN assignments. The Part D Information for Pharmaceutical Manufacturers page carries a contract/PBP-to-BIN/PCN file for the current year and a historical archive back to 2015. It is authoritative, and it is the spine of any serious crosswalk. It is also deliberately narrow.
In the CMS file
- Contract ID and PBP for every Part D plan.
- The BIN and PCN each plan routes claims on.
- Medicare Prescription Payment Plan (M3P) BIN and PCN, from 2025 onward.
- One file per plan year, as tab-delimited text inside a ZIP, with historical years nested inside further ZIPs.
Not in the CMS file
- RxGroup, the field that separates plans sharing a BIN/PCN pair.
- The PBM processing each plan's claims. A BIN hints at it, but does not state it.
- Any consistent formatting across years. BINs lose leading zeros and PCNs change case between files.
- Plan names, sponsors, or anything else to join on besides the contract and PBP.
If you only need the BIN and PCN for a known plan, the CMS file is the right answer and this page is context. The crosswalk becomes real work once you start from the claim and need the plan, the PBM, or the group, which describes most analytical uses.
Why the Crosswalk Is Valuable
Pharmacy claims, switch transactions, and prescription datasets all carry routing codes and none carry a Medicare contract. Whatever you want to learn about Medicare from claims data passes through this mapping, and the crosswalk’s precision caps how precise the answer can be.
Plan and sponsor attribution
Assign pharmacy claims to the Medicare plan and sponsor that paid them, for payer-mix analysis, market access reporting, and pull-through tracking by account.
PBM market intelligence
Measure which PBM processes which plans, how that share moves between plan years, and which sponsors switched. CMS publishes none of this directly.
Formulary and access joins
Once a claim resolves to a contract/PBP, it joins to that plan's formulary tier, prior authorization, step therapy, and quantity limits, so access friction can be measured on the claims it actually affected.
Patient support and copay programs
Manufacturer programs must recognize Medicare coverage at the counter to stay within federal anti-kickback rules. Routing codes are how that coverage shows up at the point of sale.
Payment plan claim handling
Separate M3P routing from drug-benefit routing, so that payment-plan transactions are not counted as prescriptions.
Pharmacy network analytics
Tie dispensing activity at a pharmacy to the plans and PBMs whose members fill there, which is the basis for network adequacy and contracting analysis.
One BIN/PCN Pair, Hundreds of Plans
In plan year 2026, 8,181 Part D plans route through just 191 BIN/PCN pairs. Only 554 plans (under 7%) sit on a pair used by a single contract. The rest share, and the largest pairs are shared at a scale that makes a BIN/PCN-only lookup close to meaningless:
| BIN | PCN | Attributed PBM | Contracts | Plans |
|---|---|---|---|---|
| 610097 | 9999 | OptumRx | 71 | 1,242 |
| 015581 | 03200000 | Humana Pharmacy Solutions | 43 | 1,053 |
| 610502 | MEDDAET | CVS Caremark | 45 | 953 |
| 004336 | MEDDADV | CVS Caremark | 135 | 949 |
| 610014 | MEDDPRIME | Express Scripts | 120 | 684 |
| 022188 | PSTMEDD | Prime Therapeutics | 145 | 273 |
Real rows, plan year 2026. Plans = distinct contract/PBPs routed on the pair.
A claim on 022188 / PSTMEDD could belong to any of 145 contracts. A claim on 610097 / 9999 could belong to any of 1,242 plans. Neither result tells you the plan. The first does not even give you the sponsor.
Why This Crosswalk Is So Hard to Build
Loading the CMS file takes an afternoon. Everything that makes the crosswalk useful beyond that file (the group, the PBM, and continuity across years) has to be assembled from sources that were never meant to be joined. Each of the following is a separate way to produce a mapping that looks right and is not.
A BIN/PCN pair is not a plan key
CMS requires a Part D sponsor to route Part D claims on a BIN/PCN distinct from its commercial business. Nothing requires that routing to be distinct per plan, and almost none of it is. Processors run hundreds of plans for dozens of sponsors through one configuration, so the reverse lookup the market actually needs, from a claim's routing codes back to a plan, fans out instead of resolving.
RxGroup is never published, and it is scattered
The one field that can separate plans sharing a pair appears on member ID cards and in pharmacy-facing documents that sponsors and PBMs publish on their own sites, in their own formats: native-text PDFs, scanned image cards, multi-page tables. There is no registry to download. Each source has to be found, read, and checked individually, and new ones appear every plan year.
The documents that carry groups rarely carry contract IDs
Pharmacy-facing documents are written for pharmacists, who never see a CMS contract number. They name plans the way a marketing brochure does, and plan names are reused, abbreviated, and renamed from year to year. Tying a group code to a specific contract/PBP means resolving that name to the plan CMS actually filed, which is where most naive attempts produce confident, wrong associations.
Sample values look exactly like real ones
Example ID cards and training material print placeholder or illustrative routing values in the same layout as a live card. A pipeline that trusts the layout ingests fiction. Every observed value has to be tested against the authoritative CMS pair for that plan before it is allowed to enrich anything.
The same BIN is written three ways
Across CMS plan years, one BIN appears as 4336, 04336, and 004336, and PCNs switch between PartD and PARTD. Compare 2025 to 2026 without normalizing and 3,629 of 6,831 continuing plans (53%) appear to have changed routing. Normalized, the real figure is 1,026 (15%). Formatting noise alone would overstate routing churn more than threefold.
BINs migrate, and a BIN is not a PBM
Processors re-platform plans onto new BINs, and BINs survive mergers under new owners. One BIN can route to different PBMs depending on the PCN, and some BINs are shared aggregators serving several. PBM attribution therefore has to be decided per plan and per year from evidence. A static BIN-to-PBM lookup table decays the first time a contract moves.
Two sets of routing per plan since 2025
The Medicare Prescription Payment Plan (M3P) introduced separate routing for members who spread out-of-pocket costs over the year. 7,310 of the 8,181 plans in 2026 carry M3P BIN/PCN values. Conflate M3P routing with drug-benefit routing and a payment-plan claim is attributed as if it were a drug claim.
Not every group code narrows anything
Some group codes identify a single plan. Others appear on every plan behind a BIN/PCN pair and carry no discriminating signal at all. A crosswalk that treats every observed group as a plan key inflates its apparent precision. The honest position is to record the group where it is observed and let the candidate count speak for itself.
Where the Evidence Lives
None of the sources beyond the CMS file are secret. Sponsors and PBMs publish them so pharmacies can bill claims and members can read their benefits. The difficulty is that they are spread across dozens of websites, each in its own format, and the routing values make up a tiny fraction of the pages they appear on. This is the evidence base behind the TwinFyRx crosswalk to date:
146
Documents collected
75
Separate web domains
4,350
Pages read
1,812
Candidate routing values
| Source type | What it is | Why it is painful | Yielded a value |
|---|---|---|---|
| PBM payer sheets | NCPDP billing specifications that PBMs publish for pharmacies, often listing BIN, PCN, and group for each client plan. | The richest source, and organized by PBM rather than by plan. Plans are named the way the client markets them and never by CMS contract ID. Tables run across pages, and every PBM uses its own layout, which changes from year to year. | 31 of 49 |
| Sample member ID cards | Example cards that sponsors publish so pharmacies know what to look for. | The values are printed explicitly, but often only in an image, so they have to be read visually. Sample cards also print placeholder values in exactly the same layout as real ones. They come from 30 different domains. | 31 of 40 |
| Provider and pharmacy manuals | Operating manuals for the pharmacies and prescribers in a sponsor's network. | Hundreds of pages about everything except routing. The BIN/PCN table, if there is one, is buried in an appendix and rarely tied to a specific plan. | 11 of 17 |
| Evidence of Coverage | The full legal benefit document for each plan. | Plan-specific, which should make it ideal, but the routing values usually sit on a card image rather than in the text. 1,867 pages of EOCs yielded 9 routing values. | 2 of 18 |
| Summaries of Benefits and retiree packets | Member-facing plan summaries and employer group enrollment material. | They describe the ID card more often than they reproduce it. Employer group routing can also differ from the individual plan it is attached to. | 10 of 12 |
“Yielded a value” means the document produced at least one candidate BIN, PCN, or group. A candidate is not the same as an accepted value.
The yield column tells the story. The most plan-specific document a sponsor publishes, the Evidence of Coverage, is close to useless for routing, while the most useful one, the payer sheet, says nothing about which CMS contract it describes. Every candidate value then has to be tied to a plan, checked against the CMS pair for that plan and year, and either kept with its source or thrown away. That work is repeated every plan year, because sponsors republish these documents annually and routing changes underneath them.
How TwinFyRx Builds It
The build is evidence-first. The CMS file is the authoritative spine. Everything added on top of it is observed in public plan and pharmacy-facing documents, checked against that spine, and carried with its provenance. Four principles govern it:
CMS is the source of truth for BIN/PCN
An observed value that contradicts the CMS pair for a plan is rejected, not reconciled. Observed evidence can add a group or a PBM. It never overrides what CMS publishes.
Every attribution carries its evidence
Each PBM attribution has a confidence score, a high, medium, or low label, and an evidence trace recording which signals supported it, so any row can be audited back to its sources.
Nothing is filled in to look complete
Where no RxGroup has been observed for a plan, the column is empty. Where PBM evidence is insufficient, the plan is unattributed. Coverage figures are reported as they are.
Plan year is part of the key
Routing and PBM are attributes of a plan in a year, not of a contract forever. Keying on plan year is what makes year-over-year PBM switching and BIN migration visible rather than silently overwritten.
Coverage, stated plainly. For plan year 2026, a PBM is attributed to 7,926 of 8,181 plans (96.9%). The unattributed remainder is concentrated on shared aggregator BINs, where the BIN/PCN pair is genuinely consistent with more than one processor.
An RxGroup has been observed for 1,904 plans (23%). Of the 36 distinct BIN/PCN/Group combinations observed in 2026, 30 point to a single contract. Not all of them narrow anything, though: a group code on a pair that only one contract uses adds no new information, and some group codes span every plan on their pair. The lookup lab shows the candidate count for every query, so you can see how far a given group narrows it.
Querying the Crosswalk
1. Reverse lookup: routing codes to candidate plans
SELECT
r.contract_id,
r.pbp_id,
r.rxgroup,
r.pbm_name
FROM plan_routing r
WHERE r.plan_year = 2026
AND r.bin = '610011'
AND r.pcn = 'CTRXMEDD'
AND r.rxgroup = 'BCBSMAN'; -- drop this line to see all 257 candidates2. Forward lookup: a plan’s routing and PBM, with confidence
SELECT
r.bin, r.pcn, r.rxgroup,
r.m3p_bin, r.m3p_pcn,
i.pbm_name,
i.confidence_label
FROM plan_routing r
JOIN pbm_inference i USING (contract_id, pbp_id, plan_year)
WHERE r.contract_id = 'S5584'
AND r.pbp_id = '801'
AND r.plan_year = 2026;3. How ambiguous is each pair? Candidate count per BIN/PCN
SELECT
bin,
pcn,
COUNT(DISTINCT contract_id) AS contracts,
COUNT(DISTINCT contract_id || '-' || pbp_id) AS plan_count
FROM plan_routing
WHERE plan_year = 2026
GROUP BY bin, pcn
ORDER BY plan_count DESC;API endpoints
| Endpoint | Purpose |
|---|---|
| GET /v1/medicare/routing/lookup?bin=&pcn=&group= | Reverse lookup: routing codes to every matching plan |
| GET /v1/medicare/plans/{contract}-{pbp}/routing | Forward lookup: BIN, PCN, group, and M3P routing for a plan |
| GET /v1/medicare/plans/{contract}-{pbp}/pbm | PBM attribution with confidence and evidence |
| GET /v1/medicare/pbm/{pbm_name}/plans | Every plan attributed to a PBM |
| GET /v1/medicare/pbm-market-share | PBM share of Part D plans by year |
Full request and response shapes are in the API reference. Table and column definitions for plan_routing, pbm_inference, and pbm_market_snapshot are on the schema reference.
Sources and Methodology
| Source | Publisher | Used for |
|---|---|---|
| Part D contract/PBP BIN/PCN files | CMS | The authoritative spine: contract, PBP, BIN, PCN, and M3P routing for every Part D plan, 2015 to present. |
| Part D plan and formulary files | CMS | Plan names, sponsors, and plan types, which link observed documents to the contract/PBP they describe. |
| Public plan and pharmacy-facing documents | Plan sponsors and PBMs | Observed RxGroup values and PBM evidence from payer sheets, sample ID cards, provider manuals, Evidence of Coverage documents, Summaries of Benefits, and retiree packets. Each value is checked against the CMS spine before use. |
| Telecommunication Standard | NCPDP | Field definitions and formats for BIN, PCN, and group. |
BINs are normalized to six digits and PCNs to upper case before any comparison or year-over-year diff. Primary and Medicare Prescription Payment Plan routing are stored in separate columns. The crosswalk is rebuilt when CMS publishes a new plan-year file, and history is retained, so a plan’s routing and PBM can be read for any year since 2015.
Frequently Asked Questions
What is a BIN/PCN/Group to Medicare contract crosswalk?
It is a table linking the three pharmacy claim routing codes (RxBIN, RxPCN, and RxGroup) to the Medicare Part D plan they belong to, identified by CMS contract ID and plan benefit package (PBP). It works in both directions. Forward, it tells you which routing codes a given contract/PBP uses. Reverse, it tells you which plans could have produced a claim carrying a given BIN, PCN, and group. The TwinFyRx version also attributes the pharmacy benefit manager (PBM) behind each plan, with a confidence label on every attribution.
What do BIN, PCN, and Group mean on a pharmacy card?
They are the routing fields a pharmacy uses to send a prescription claim to the right place, defined in the NCPDP Telecommunication Standard. The RxBIN (field 101-A1) is a 6-digit number identifying the claims processor. The RxPCN (field 104-A4) is an alphanumeric code of up to 10 characters that selects a benefit configuration at that processor. The RxGroup (field 301-C1), up to 15 characters, identifies the specific group or benefit design. Together with the member ID, these are often called the 4Rx fields.
Does CMS publish Medicare BIN and PCN numbers?
Yes. CMS publishes a file mapping every Part D contract and plan benefit package to its BIN and PCN, on the Part D Information for Pharmaceutical Manufacturers page, with a current-year file and historical files back to 2015. Since 2025 it also carries Medicare Prescription Payment Plan (M3P) routing. What CMS does not publish in that file is the RxGroup or the name of the PBM processing the plan's claims.
Does CMS publish RxGroup for Medicare plans?
No. RxGroup is not part of the CMS contract/PBP BIN/PCN file. Group values appear on member ID cards and in pharmacy-facing documents that plan sponsors and PBMs publish themselves, in inconsistent formats and usually without the CMS contract ID. Any contract-level RxGroup data has to be observed from those sources and associated back to the plan.
Where does Medicare RxGroup data come from?
Since CMS does not publish it, RxGroup has to be collected from documents that plan sponsors and PBMs publish for other purposes. These are PBM payer sheets (NCPDP billing specifications for pharmacies), sample member ID cards, provider and pharmacy manuals, Evidence of Coverage documents, Summaries of Benefits, and retiree or employer group packets. They are public but scattered across dozens of websites, and their formats vary. Payer sheets carry the most routing detail but name plans rather than CMS contracts. EOCs are plan-specific but usually print routing values only on a card image. Each value found has to be associated with a contract/PBP and checked against the CMS BIN/PCN for that plan year before it can be used.
Can you identify a Medicare Part D plan from its BIN and PCN?
Usually you can narrow the candidates, but you rarely get down to one plan. In plan year 2026, 7,035 of the 8,181 Part D plans (86%) share their BIN/PCN pair with plans from at least ten other contracts. Only 554 plans (under 7%) sit on a pair used by a single contract. BIN 610011 with PCN CTRXMEDD, for example, matches 257 plans across 54 contracts. Adding the RxGroup BCBSMAN narrows that to one. Group is the field that discriminates, where a plan-specific group exists.
How do I find out which PBM a BIN belongs to?
Treat a BIN as evidence about the PBM rather than as an answer. Most BINs belong to one processor, but one BIN can route to different PBMs depending on the PCN, some BINs are shared by several processors, and BINs change hands in mergers and migrations. Reliable PBM attribution is made per plan and per year from the BIN/PCN pair plus corroborating evidence. TwinFyRx attributes a PBM to 7,926 of the 8,181 Part D plans in 2026 (96.9%), each with a high, medium, or low confidence label.
What is the M3P BIN and PCN?
The Medicare Prescription Payment Plan (M3P), which started in 2025, lets Part D members spread their out-of-pocket drug costs across the year. Plans can route M3P claims on a different BIN/PCN from their standard drug benefit, and CMS publishes these M3P values alongside the primary routing. In 2026, 7,310 of the 8,181 Part D plans carry M3P routing values. They should be kept separate from drug-benefit routing in any claims attribution.
Why do Medicare BIN/PCN values change from year to year?
Plans change processors, processors move plans onto new BINs, and BINs survive mergers under new owners. Between 2025 and 2026, 1,026 of the 6,831 Part D plans present in both years (15%) changed their BIN/PCN routing, and five BINs appeared for the first time. Routing is a plan-year attribute, so any crosswalk has to be keyed on plan year as well as contract and PBP.
What are a Medicare contract ID and PBP?
A contract ID is the CMS identifier for an agreement with a plan sponsor: a letter followed by four digits. H is used for Medicare Advantage and cost contracts, S for standalone prescription drug plans (PDPs), R for regional PPOs, and E for employer direct contracts. Each contract offers one or more plan benefit packages (PBPs), identified by a 3-digit number. Contract ID plus PBP plus plan year identifies one specific Medicare plan offering.
Why doesn't a pharmacy claim carry the Medicare contract ID?
Claims are routed, not addressed. The pharmacy only needs to reach the right processor and benefit configuration, so the NCPDP claim carries BIN, PCN, group, and cardholder ID. It does not carry the CMS contract or PBP. That is why pharmacy claims, switch data, and prescription datasets can be tied to a Medicare plan only through a routing crosswalk, and why the crosswalk's ambiguity sets a ceiling on how precisely those datasets can be attributed.
What is the BIN/PCN crosswalk used for?
The common uses are attributing pharmacy claims and prescription data to Medicare plans and sponsors, measuring PBM market share across Part D, joining claims to the formulary and utilization management rules of the plan that paid them, supporting manufacturer patient-support and copay programs (which must recognize Medicare coverage to comply with federal anti-kickback rules), and building pharmacy network and payer-mix analytics. Anything that starts from a claim and needs to reach a plan runs through this mapping.
How many Medicare plans does the TwinFyRx crosswalk cover?
Every Part D contract/PBP in the CMS routing file. For plan year 2026 that is 8,181 plans across 1,032 contracts, routed through 58 BINs and 191 distinct BIN/PCN pairs. Historical plan years back to 2015 are included, so routing and PBM changes can be traced over time. RxGroup is populated where it has been observed in public sources, which in 2026 covers 1,904 plans (23%). It is left empty elsewhere rather than guessed.
TwinFyRx Medicare plan routing
Every Part D contract/PBP from 2015 onward, with BIN, PCN, observed RxGroup, M3P routing, and an evidence-backed PBM attribution, keyed on contract_id, pbp_id, and plan_year. Delivered as tables or through the API.