Pharmacy billing operates through a pricing system that most patients never see — and that system contains more opportunities for overcharging than almost any other area of healthcare billing. BillKarma’s analysis of 6,800+ hospitals and their affiliated pharmacy networks found that the same 90-day supply of a common generic drug varies from $12 to $340 depending on where it’s filled and how it’s billed. A single wrong DAW code can cost a patient $1,200 more per year. This guide explains how pharmacy billing actually works, the most common errors, and exactly what to do about each one.

1. How Pharmacy Billing Works

Every prescription fill triggers an electronic claim submitted in real time from the pharmacy to your insurer’s pharmacy benefit manager (PBM). The PBM — companies like Express Scripts, CVS Caremark, and OptumRx — adjudicates the claim in seconds and sends back an approval with the reimbursement amount and the patient’s cost-sharing obligation.

The key fields on every pharmacy claim include: the National Drug Code (NDC, an 11-digit number uniquely identifying the specific drug, manufacturer, and package size), the quantity dispensed, the days supply, the DAW code, and the submitted charge. Errors in any of these fields change what you pay.

Average Wholesale Price (AWP) is the benchmark most PBMs use. AWP is a list price published by drug pricing databases (First DataBank, Micromedex). Reimbursement is typically calculated as AWP minus a percentage (e.g., “AWP − 15% + $2 dispensing fee”). The pharmacy’s actual acquisition cost is often 20–70% below AWP for generics, creating a margin the pharmacy retains. Your coinsurance, if calculated as a percentage of the AWP-based charge, is based on this inflated benchmark.

Days supply determines how many fills you’re allowed per year. A 30-day supply fills 12 times. A 90-day supply fills 4 times. If a pharmacist bills 30 days when they dispensed 90, you’ll pay three times as much in per-fill copays. The reverse error (billing 90 days for a 30-day supply) can cause your refill to be rejected as “too soon.”

2. The Generic vs. Brand Markup Problem

When a brand-name drug loses patent protection, generic manufacturers enter the market and competition drives the acquisition cost down dramatically — sometimes to pennies per pill. However, AWP-based pricing databases don’t always update immediately, and formulary tier assignments can lag behind generic availability by months.

The most common way this harms patients: a generic becomes available for a drug you’ve been taking as brand-name. The pharmacist may continue dispensing the brand (especially if the physician wrote a DAW-1 code years ago and never updated the prescription). You continue paying brand-tier copays of $60–$150/month for a drug that now costs $4–$12 as generic.

The DAW code is the gateway to this problem. DAW-1 (physician requires brand) locks you into brand pricing even when a generic is available. Many DAW-1 prescriptions are written once and never revisited. Ask your prescriber whether a DAW-1 code on your prescription is still medically necessary, or whether it was set by default and can be changed to DAW-0.

DAW Code Meaning Who Controls It Patient Impact
DAW-0 No product selection indicated — generic is acceptable Neither (default) Generic dispensed; lowest copay tier applies
DAW-1 Physician requires brand-name product Prescriber Brand-tier copay ($40–$150+ more per fill than DAW-0)
DAW-2 Patient requests brand; generic available Patient Brand-tier copay; some plans charge an additional brand penalty
DAW-3 Pharmacist selects brand (no generic stocked) Pharmacist Usually processed at brand rate; ask pharmacist to order generic
DAW-4 No generic available in marketplace Market Brand copay is unavoidable; check manufacturer coupons
DAW-5 Brand dispensed but generic priced Pharmacist You pay generic-tier cost even though brand was given — favorable
DAW-6 Override — reclassification or override by pharmacist Pharmacist Varies; review EOB to confirm tier applied correctly
DAW-7 Brand mandated by law (state substitution law) State regulation Brand copay applies; no patient or prescriber action can change it
DAW-8 Generic not available from manufacturer Supply chain Brand copay; temporary — recheck when shortage resolves
DAW-9 Other (plan-specific or non-standard use) Plan/PBM Call insurer to confirm correct tier was applied
Key Takeaway 1: Check the DAW code on every prescription fill for a drug that has a generic equivalent. A DAW-1 code forces you to pay brand-tier pricing even when generics are available, adding hundreds or thousands per year to your drug costs unnecessarily. Upload a pharmacy receipt to BillKarma for a DAW code and pricing audit.

3. Drug Price Comparison Table

Drug (Generic Name) Typical Insurance Copay GoodRx Cash Price Manufacturer AWP (30-day)
Atorvastatin 40mg (generic Lipitor) $10–$45 $4–$12 $380
Metformin 1000mg (generic Glucophage) $5–$20 $4–$8 $120
Lisinopril 10mg (generic Zestril) $5–$15 $4–$9 $98
Rosuvastatin 20mg (generic Crestor) $15–$60 $14–$28 $640
Pantoprazole 40mg (generic Protonix) $10–$40 $8–$18 $510
Duloxetine 60mg (generic Cymbalta) $20–$80 $16–$35 $820
Montelukast 10mg (generic Singulair) $5–$25 $8–$16 $290
Escitalopram 10mg (generic Lexapro) $10–$45 $9–$20 $740

4. Common Billing Errors

Wrong days supply: A 90-day fill billed as 30 days means you pay three copays instead of one. Always verify the days supply on your receipt matches what was dispensed.

Wrong DAW code: DAW-1 (physician requires brand) when a generic is available costs you the brand-tier copay. If your doctor didn’t specifically require brand, the DAW code should be DAW-0. Ask the pharmacist to call the prescriber’s office to confirm and resubmit.

Incorrect quantity: The number of pills, milliliters, or units dispensed and billed should match your prescription. A prescription for 30 tablets billed as 60 will trigger an overpayment and potentially an early-refill rejection next month.

Wrong NDC code: Each drug formulation has a unique NDC. If the pharmacist dispenses a 20mg tablet but bills the NDC for a 40mg tablet, you may be charged for a higher-priced formulation. This also creates a medication record discrepancy that could affect future prescribing.

Rebate clawbacks: In some states, if a manufacturer has negotiated rebates with a PBM, patients on certain plans may have their copay calculated before rebates are applied (on the gross price) while the insurer collects rebates separately. You pay more; the PBM keeps the rebate. This is a systemic issue, not a per-transaction error, but it’s worth knowing.

5. Mail-Order vs. Retail Pharmacy Billing

Most insurers offer mail-order pharmacy programs that provide 90-day supplies of maintenance medications for a lower total copay than three 30-day retail fills. A drug that costs $30/30-day fill at retail might cost $60 for a 90-day mail-order fill — saving $30/quarter or $120/year on one drug.

However, mail-order billing has its own error patterns. Automatic refills can ship when you’ve discontinued a medication (resulting in charges for drugs you can’t return). Substitution errors (mail-order ships a different manufacturer’s generic) occasionally trigger DAW and NDC billing discrepancies.

Check whether your plan requires mail-order for maintenance medications after a certain number of retail fills. Failure to comply can result in higher cost-sharing for continued retail fills — sometimes doubling or tripling your copay.

6. Reading a Pharmacy Receipt

Atorvastatin 40mg — 30-day supply | DAW: 1 | Patient paid: $87 Generic available. DAW-1 forces brand-tier copay. GoodRx generic price at same pharmacy: $6. Prescriber should update to DAW-0. Annual overpayment at current rate: $972.
Metformin 1000mg — 30-day supply (billed) / 90-day dispensed | Patient paid: $45 Days supply mismatch. 90 tablets dispensed but 30 days billed. You paid 3 copays’ worth when 1 would apply. Request corrected claim for 90-day supply: $15 copay.
Lisinopril 10mg — 30-day supply | DAW: 0 | Patient paid: $7
Pantoprazole 40mg — 30-day supply | Patient paid: $72 Insurance copay exceeds GoodRx cash price ($14 at this pharmacy). Paying with GoodRx saves $58 this fill. Note: cash payment won’t apply to deductible.
Total paid this visit: $211 | Correctable errors identified: $126 | Annual impact: $1,512

7. Case Studies

Key Takeaway 3: Audit your pharmacy EOB every quarter. Match the days supply on each claim against what was actually dispensed. A 90-day fill billed as 30 days means you paid three copays for one fill — a refund that most insurers will issue if you catch and report it. Learn how to read every section of an EOB.

DAW-1 Code Error Costs Patient $1,200/Year Extra

A 47-year-old office manager had been taking rosuvastatin (Crestor) for three years. When the generic became available, her prescriber switched her verbally to the generic, but the DAW code on her electronic prescription was never updated from DAW-1. Her pharmacy continued billing her insurer with DAW-1, and she continued paying the $89 brand-tier copay instead of the $14 generic copay.

She noticed the price discrepancy when a friend mentioned paying $12 for the same drug. She asked the pharmacist to print her claims history and confirmed 14 months of DAW-1 fills. The pharmacist contacted her prescriber, who confirmed generic was appropriate. The prescription was updated to DAW-0, reducing her monthly cost by $75. For the months within the insurer’s correction window, she received a credit of $450.

Lesson: Check the DAW code on every prescription for a drug that has a generic equivalent. If it shows DAW-1 and your doctor hasn’t specified brand-only, ask the pharmacist to clarify with the prescriber.

90-Day vs. 30-Day Supply Billing Saves $840/Year

A 52-year-old teacher took four maintenance medications: metformin, lisinopril, atorvastatin, and levothyroxine. She refilled all four monthly at a retail pharmacy, paying four copays per month totaling $68/month ($816/year in copays for these drugs alone).

Her insurer’s mail-order program offered 90-day supplies at 2x the copay (not 3x). Switching all four medications to mail-order changed her copay pattern from $68/month to $46/quarter per drug cycle — $184/year total for all four. Combined savings: $632/year. Processing was automatic. The switch took one phone call.

Lesson: Call your PBM and ask for a list of your current maintenance medications and what the copay comparison is between retail 30-day and mail-order 90-day fills. For most patients on multiple chronic medications, the savings are substantial.

GoodRx Cash Price Beats Insurance by $94/Month

A 38-year-old freelance graphic designer had a high-deductible health plan with a $4,000 deductible. She was prescribed duloxetine 60mg for generalized anxiety. Her pharmacy quoted her $187/month on her insurance (the full deductible-phase cost). Before paying, she checked GoodRx on her phone while standing at the counter.

GoodRx showed a cash price of $28 at the same pharmacy for the same drug and dose. She paid with the GoodRx card and saved $159 that fill. She was aware that the cash payment wouldn’t apply to her deductible, and calculated that using GoodRx for the full year ($336 total) would cost less than meeting her deductible through insurance ($4,000). For her specific situation, GoodRx was clearly the right choice.

Lesson: For patients with high deductibles on drugs they take long-term, compare GoodRx cash prices against insurance before every fill. Always calculate whether deductible accumulation is worth the higher in-deductible price for your specific annual drug costs.

8. Insulin Pricing Changes

The Inflation Reduction Act of 2022 capped Medicare Part D out-of-pocket costs for insulin at $35/month per covered insulin product, effective January 2023. This applies only to Medicare beneficiaries — not commercially insured patients.

For commercially insured patients, the landscape changed voluntarily in 2023 when Eli Lilly, Novo Nordisk, and Sanofi — the three largest insulin manufacturers — reduced list prices for their most common insulins by 70–78% and capped out-of-pocket costs at $35/month. This was a voluntary action, and coverage varies by plan.

If you are paying more than $35/month for insulin through either Medicare or a major commercial insurer, call your insurer and ask why. The manufacturer programs provide co-pay cards directly as a backstop — Lilly Insulin Value Program, Novo Nordisk Patient Assistance Program, and Sanofi’s Insulins Valyou Savings Program each provide $35/month caps for eligible patients.

9. How to Audit Your Pharmacy Explanation of Benefits

Your insurer sends an Explanation of Benefits (EOB) for every prescription fill processed through your insurance. Most insurers provide pharmacy EOBs monthly or quarterly via their patient portal. Here’s how to audit them.

Step 1: Download your pharmacy EOB from your insurer’s portal for the past 12 months. Match each line against your actual prescriptions and fill dates.

Step 2: Check the DAW code column. Any code of “1” or higher for a drug with a generic equivalent should be questioned.

Step 3: Verify days supply against what was actually dispensed. If you filled a 90-day supply but the EOB shows 30 days with three separate claim dates, you overpaid.

Step 4: Look for the same drug appearing twice in the same month. Duplicate billing does occur.

Step 5: For each drug, look up the GoodRx cash price and compare. If cash price is less than your copay, decide whether paying cash makes sense for your deductible situation.

Key Takeaway 2: Before paying your insurance copay at the pharmacy counter, check the GoodRx cash price on your phone. For patients in the deductible phase, GoodRx frequently beats insurance by $50–$150 per fill on common generic drugs. Use our drug cost calculator to compare annual costs across payment methods.

10. Specialty Drug Billing

Specialty drugs (biologics, gene therapies, high-cost infusibles) are subject to a separate set of billing rules. Most are handled through specialty pharmacies rather than retail pharmacies, and they require prior authorization before your insurer will cover them.

Prior authorization errors are common: a specialty drug approved under one diagnosis code may be denied if the pharmacy submits under a different code, even for the same drug. If a specialty drug is denied, request the specific denial reason and the appeals process. Peer-to-peer review (your physician calling the insurer’s medical director) overturns specialty drug denials in a significant percentage of cases.

Specialty pharmacy cost-sharing is often coinsurance-based (20–30% of the drug’s list price) rather than a flat copay, making it far more expensive than retail pharmacy cost-sharing. Always ask your insurer what your out-of-pocket maximum is and whether specialty drug costs count toward it.

Frequently Asked Questions

What is a DAW code on a pharmacy bill?

DAW stands for Dispense As Written. It’s a one-digit code (0–9) on pharmacy claims that tells the insurer whether the prescriber or pharmacist required a brand-name drug. DAW-0 means no instruction was given (generic is fine). DAW-1 means the physician required the brand. DAW-2 means the patient requested brand. A DAW-1 code on a prescription with a generic equivalent available will cause your insurer to apply a brand-tier copay instead of a generic copay — sometimes $50–$150 more per fill.

Can I use GoodRx instead of insurance?

Yes. GoodRx is not insurance but a discount card that negotiates cash prices with participating pharmacies. For many generic drugs, the GoodRx cash price is lower than your insurance copay — sometimes dramatically so. However, if you pay cash (using GoodRx or otherwise), that payment does not count toward your deductible or out-of-pocket maximum. Use GoodRx when the savings exceed what you’d gain from accumulating cost-sharing credit.

Why did my drug price suddenly change?

Drug prices change for several reasons: your insurer may have moved the drug to a higher formulary tier at the start of the plan year, the manufacturer may have raised the wholesale price, your deductible may have reset January 1st, or a generic may have become available and your plan now applies different cost-sharing. Always call your insurer or pharmacist if a price increases unexpectedly — it may be a billing error, not a legitimate price change.

What is AWP in pharmacy billing?

AWP (Average Wholesale Price) is a benchmark list price for drugs published by drug pricing databases. Despite its name, AWP does not reflect what pharmacies actually pay for drugs. It’s typically 20–25% above the true wholesale price and is used as a reference point for insurer reimbursement formulas (e.g., “AWP minus 15%”). Patients rarely pay AWP directly, but it influences the billed charge that determines your coinsurance.

How do I dispute a pharmacy billing error?

Start by requesting a detailed receipt or claims printout from the pharmacy showing the NDC code, DAW code, quantity, days supply, and the price submitted to your insurer. Compare this against your prescription. If the DAW code is wrong, ask the pharmacist to resubmit with the correct code. If the quantity or days supply is wrong, request a corrected claim. If the NDC code billed doesn’t match the drug dispensed, that’s a serious error requiring immediate correction and possibly a report to your state pharmacy board.