Big Sale TaxHans Goldstein: Tax & Exit Planning
Home / Capital Gains / Pharmacy
Pharmacy sale

Selling a pharmacy: how inventory, prescription files and licenses are taxed

Short answerAn independent pharmacy sale splits into inventory, which is ordinary income and cannot be spread on a note, and prescription files plus goodwill, which are usually long-term capital gain. Files you bought from another pharmacy bring amortization recapture, and a LIFO reserve becomes ordinary income. In our Ohio example the sale adds $371,265 paid in cash, or $283,363 with the file price spread over three years.

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 runAsset sale to a regional chain, Ohio, married filing jointlySame sale to an owner-pharmacist, file price paid over 3 years
Filing statusMarried, jointMarried, joint
StateOhioOhio
Tax years13
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 gain25.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

Federal on the sale$0
NIIT$0
State$0
Total tax, held over a year$0
Effective rate0%
If held one year or less$0

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.

Free PDF sheet

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.

By entering your email you agree to receive this sheet and occasional educational emails from Hans Goldstein: Tax & Exit Planning. Unsubscribe anytime.

Frequently asked questions

How is the sale of a pharmacy taxed?
Asset by asset. Inventory is ordinary income, including any LIFO reserve. Prescription files and goodwill you built are usually long-term capital gain. Fixtures and any files you previously purchased bring Section 1245 recapture taxed as ordinary income, and a non-compete is ordinary. Real estate, if sold, is taxed separately.
How much does a pharmacy sell for?
Price depends mostly on prescription volume, gross margin and payer mix, plus inventory paid separately at a count on closing day. Chains buying files only often pay per active prescription, while going-concern buyers value earnings. Compare offers after tax, since inventory dollars are ordinary income and file dollars are usually capital gain.
Can I sell my pharmacy on an installment sale?
Partly. The installment method (IRC 453) can spread the gain on prescription files and goodwill, but not inventory, which is excluded by IRC 453(b)(2)(B), and not depreciation recapture, which is taxed in the year of sale under IRC 453(i).
Does a DEA registration transfer when a pharmacy is sold?
No. Under 21 CFR 1301.52(b) a registration cannot be assigned or transferred except on DEA conditions and with written consent. The buyer normally obtains its own registration and state permit, and the parties take a joint controlled-substance inventory on the transfer date.
How long does it take to sell a pharmacy?
A file-only sale to a chain can close quickly, while a going-concern sale takes longer because the buyer needs its own DEA registration, state permit and payer contracts before dispensing. Timing also matters for tax: closing in January instead of December moves the gain into the next tax year.
How Hans helps: the $5,000 Big Sale Tax Analysis runs your sale through every path that fits: a cash sale, a Section 453 installment sale, 1031, Opportunity Zones, charitable trusts, timing and loss offsets, year by year, and ends with a written recommendation your CPA can check. Get the Big Sale Tax Analysis.
Next step

Know 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.

Book a callCall Hans