Selling a pharmacy: how inventory, prescription files and licenses are taxed
Inventory: the biggest check and the least favorable tax
An independent pharmacy may carry several hundred thousand dollars of drugs on its shelves. That stock is inventory, not a capital asset (IRC 1221(a)(1)), so any gain on it is ordinary income, and inventory is specifically barred from the installment method (IRC 453(b)(2)(B)). Buyers usually pay for it separately at closing, based on a physical count the day of the sale, at wholesale acquisition cost or a negotiated percentage of it, with short-dated, opened and non-returnable stock excluded or discounted.
If you sell inventory at your book cost, the ordinary gain is small. Two things change that:
- LIFO reserve. Pharmacies that elected LIFO under IRC 472 to cope with drug price inflation carry inventory on the books well below current cost. When the inventory is sold with the business, the difference between LIFO cost and the price comes back as ordinary income in one year.
- Price above cost. Any premium the buyer pays over your inventory basis is ordinary, so a buyer offering "inventory at full value" is offering ordinary income, while the same dollars on prescription files would usually be capital gain.
Controlled substances need extra care at the count: the seller and buyer take a complete inventory on the transfer date, which is the seller's final DEA inventory and the buyer's initial one (21 CFR 1301.52(e)), and Schedule II drugs move on official order forms.
Prescription files: a Section 197 intangible
The real value of most independent pharmacies is the prescription file: patient profiles and refill history that will follow the files to a new pharmacy. For tax purposes that is a customer-based intangible, value arising from future provision of goods or services under relationships with customers (IRC 197(d)(2)). The buyer amortizes what it pays over 15 years. For you, a file you built yourself has zero basis and, held over a year, its sale is generally long-term capital gain, often reported as part of goodwill under the residual method (IRC 1060).
Files you previously bought are different. If you acquired another store's prescription files, say from a retiring pharmacist in 2016, you have been amortizing that cost, and an amortizable Section 197 intangible is treated as depreciable property (IRC 197(f)(7)). The amortization you claimed comes back as ordinary Section 1245 recapture when you sell. Pull the fixed asset schedule before you agree to a price; see depreciation recapture and purchase price allocation.
File-only sales to chains vs selling the whole store
Many chain pharmacies buy only the prescription files and some inventory, then close the store and transfer patients to a nearby chain location. A file-only deal is usually simpler and faster, with no lease assignment, staff or fixtures, and most of the price lands on files and the non-compete. A going-concern sale to another independent or a regional operator includes fixtures, the store lease, staff and sometimes the real estate, so the price spreads over more asset classes. Buyers who keep the store open also need their own licenses before they can dispense, which affects the closing timeline.
For tax, the file-only deal concentrates gain in two places: capital gain on files and goodwill, and ordinary income on whatever is called a non-compete. Chains often propose a large non-compete allocation. Since both files and non-competes are amortized over 15 years by the buyer (IRC 197(d)(1)(E)), that allocation costs you rate without helping the buyer, so it is worth pushing back.
Licenses and registrations do not transfer
A pharmacy's DEA registration belongs to the registrant and location. No registration may be assigned or otherwise transferred except on conditions the DEA designates and only with its written consent (21 CFR 1301.52(b)), and a registrant transferring the business must notify the DEA at least 14 days before the transfer (21 CFR 1301.52(d)). In practice the buyer applies for its own registration and state board of pharmacy permit for the location, and its NCPDP number, payer contracts and Medicare enrollment are handled as changes of ownership.
Because a license or permit granted by a government is itself a Section 197 intangible (IRC 197(d)(1)(D)), some purchase agreements assign a value to it. If the license does not transfer, that value usually belongs in goodwill or files instead, which supports capital gain treatment for you.
Worked example: an Ohio pharmacy couple
A married pharmacist owner in Ohio has $150,000 of other income and sells to a regional chain. The deal pays $1,100,000 for prescription files and goodwill, recaptures $160,000 on fixtures and on files bought from a retiring pharmacist in 2016, and triggers $120,000 of LIFO reserve plus a $60,000 non-compete. Ohio treats gain from selling a business as business income: the first $250,000 is deducted and the rest taxed at 3% (ORC 5747.01(A)(28) and 5747.02, 2026). The sale adds $371,265 of tax, an effective 25.8%, with $35,250 to Ohio. The calculator counts the LIFO reserve and non-compete in the 3.8% net investment income tax base, a conservative reading for an owner who works in the store.
Now the same pharmacy sells to an owner-pharmacist who pays $300,000 of the file and goodwill gain at closing and $400,000 in each of 2027 and 2028 on a secured note. Inventory, LIFO reserve, recapture and the non-compete are still taxed in 2026, because the installment method does not reach them (IRC 453(b)(2)(B) and 453(i)). The total tax drops to $283,363, $87,902 less, mainly because more of the gain stays in the 15% bracket and Ohio's $250,000 deduction applies each year. See Ohio capital gains.
Protecting yourself on a note from a pharmacist buyer
Owner-pharmacist buyers often need seller financing for part of the file price, especially when bank loans cover only inventory and working capital. If you carry a note, take a meaningful down payment, a UCC lien on the files, inventory and fixtures, a personal guarantee from the buyer, interest at or above the applicable federal rate, and default and acceleration terms. Remember that the files lose value quickly if patients leave, so the collateral is weaker than it looks. Our seller financing and installment sale pages cover the note terms.
To compare a chain's cash offer, an independent buyer on a note and keeping the real estate as a rental on your numbers, Get the Big Sale Tax Analysis.
What to know
The inventory check is large but taxed as ordinary income, and a LIFO reserve can make that bill bigger than owners expect. Spreading the price only helps the file and goodwill portion. A note from an individual buyer carries credit risk, and prescription files are collateral that can lose value fast. A chain's file-only deal is quick but usually closes the store and comes with a non-compete that limits where you can practice.
Worked example
Assumes $150,000 of other income, $1,100,000 for prescription files and goodwill (long-term gain), $160,000 recapture ($40,000 fixtures, $120,000 amortization on files bought in 2016), $180,000 ordinary ($120,000 LIFO reserve, $60,000 non-compete); inventory otherwise sold at cost. Same facts, but $800,000 of the file and goodwill gain is paid on a note in 2027 and 2028; inventory, LIFO reserve, recapture and non-compete stay in 2026.
| Engine run | Asset sale to a regional chain, Ohio, married filing jointly | Same sale to an owner-pharmacist, file price paid over 3 years |
|---|---|---|
| Filing status | Married, joint | Married, joint |
| State | Ohio | Ohio |
| Tax years | 1 | 3 |
| Other income (wages, pension, interest) per year | $150,000 | $150,000 |
| Long-term capital gain | $1,100,000 | $1,100,000 |
| Section 1245 recapture (ordinary income) | $160,000 | $160,000 |
| Ordinary income from the sale (short-term gain, inventory, non-compete) | $180,000 | $180,000 |
| Federal income tax on the sale | $329,175 | $256,273 |
| Net investment income tax (3.8%) | $6,840 | $6,840 |
| State income tax on the sale | $35,250 | $20,250 |
| Total tax caused by the sale | $371,265 | $283,363 |
| Effective rate on the gain | 25.8% | 19.7% |
| Gain kept after these taxes | $1,068,735 | $1,156,637 |
Computed October 7, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2025-32 (OBBBA-adjusted) and the One Big Beautiful Bill Act (P.L. 119-21); NIIT under IRC 1411 (thresholds not indexed); state tax from the engine's state table. "Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.
Run your own numbers
2026 law from the engine: federal 0/15/20% brackets (Rev. Proc. 2025-32), 25% cap on unrecaptured 1250 gain, ordinary rates on 1245 recapture, 3.8% NIIT over $200,000 single / $250,000 joint (IRC 1411), AMT, and your state's rules. Tax shown is the tax caused by the sale. Excludes selling costs, local taxes and NIIT exceptions for active business owners. Education only.
Long-Term vs Short-Term Capital Gains (2026)
The one-year holding rule, the 2026 0/15/20% thresholds for every filing status, NIIT, recapture, the state layer and a worked $200,000 example: 11 months vs 13 months, and what spreading the gain can save.
Frequently asked questions
How is the sale of a pharmacy taxed?
How much does a pharmacy sell for?
Can I sell my pharmacy on an installment sale?
Does a DEA registration transfer when a pharmacy is sold?
How long does it take to sell a pharmacy?
Sources
- 21 CFR 1301.52, termination and transfer of DEA registration (Cornell LII)
- IRC 197, amortization of goodwill and certain other intangibles (Cornell LII)
- IRC 472, last-in, first-out inventories (Cornell LII)
- IRC 453, installment method (Cornell LII)
- IRC 1221, capital asset defined (Cornell LII)
- IRC 1060, allocation in asset acquisitions (Cornell LII)
- Ohio Rev. Code 5747.01, business income definitions
- Ohio Rev. Code 5747.02, income tax rates
Figures as of October 7, 2026; each rate and limit above names its source and year. Education only, not legal or tax advice.
Keep reading
Veterinary practice
Most vets own the hospital building separately, and it is taxed on a different track from the practice.
ReadMedical practice
Hospitals pay physicians through salary, not price; the split decides your tax rate.
ReadSale of a business
Why one price becomes seven tax buckets, which pieces are ordinary income, and what an active owner can keep out of the 3.8% NIIT.
ReadAsset sale vs stock sale
Buyers want assets for the step-up, sellers want stock for one layer of capital gain; here is how the difference is measured and priced.
ReadSeller financing
Carry the buyer's note, collect interest, and pay the tax as the principal comes in, with the right collateral and terms behind it.
ReadInstallment sale (Section 453)
Report the gain as the buyer pays you instead of all in the year of sale, under rules that have been in the tax code for decades.
ReadKnow your number before you sign.
The Big Sale Tax Analysis is a flat $5,000. Start with a free scoping call; you are invoiced only after it, and only if you go ahead.
Prefer email? Request the analysis by email.