The Year Dad Went Into Care, She Sold $200,000 of the Stock He’d Held Since 1995. The Nursing-Home Bills Erased the Entire Gain
Selling a parent's long-held stock to cover nursing home bills can trigger a massive capital gains tax bill, or almost no tax at all, and the difference comes down to one detail most families get wrong before they ever call…
This post may contain links from our sponsors and affiliates, and Flywheel Publishing may receive compensation for actions taken through them.
If your parent entered a nursing home this year and you sold a long-held stock position to cover the bills, Internal Revenue Code section 213 can quietly absorb most or all of the capital gain. A family can sell $200,000 of Microsoft (NASDAQ:MSFT | MSFT Price Prediction) stock held since 1995, realize a large embedded gain, and end the year owing surprisingly little federal tax. The same fact pattern, structured slightly wrong, produces a full tax bill with no offset.
One Family’s Year, Under a Tax Microscope
In this scenario, the dad has held Microsoft shares since 1995. Four 2-for-1 splits occurred after that purchase date, in December 1996, February 1998, March 1999, and February 2003, leaving any 1995 buyer with a share count sixteen times the original and a cost basis that is negligible relative to the current value. With Microsoft trading near $534 in mid-October 2026, liquidating $200,000 of the position to cover a year of skilled nursing care creates a substantial long-term capital gain. Nursing home invoices then become an itemized medical deduction under section 213, and on the same return, one absorbs the other.
The stakes are real. According to the CareScout 2025 Cost of Care Survey, the national median for a private nursing home room runs $129,575 a year, and a semi-private room costs $114,975. A $200,000 sale covers roughly one and a half years of care at private-room rates, meaning families who plan to use stock proceeds across multiple years face this calculation repeatedly, each time resetting the math.
How Nursing Care Turns Into a Medical Deduction
Section 213 lets a taxpayer who itemizes deduct qualified medical expenses exceeding 7.5% of adjusted gross income. That 7.5% floor is permanent, locked in by the Consolidated Appropriations Act of 2021, and it applies regardless of age. Nursing home costs qualify in full, including lodging and meals, if the principal reason for admission is to receive medical care. A physician’s certification and the facility’s breakdown of skilled versus custodial charges both matter. If Dad is in the facility primarily for custodial reasons rather than medical ones, only the specifically medical portion counts, and the math changes completely.
The Floor That Rises With Every Share Sold
Selling appreciated stock lifts adjusted gross income, and the 7.5% deduction floor is calculated against that higher AGI. The offset is real but smaller than a straight dollar-for-dollar match: a larger sale raises the floor and narrows the deduction. Long-term capital gains face preferential federal rates of 0%, 15%, or 20% depending on total taxable income, with the 2026 thresholds set at $49,450 (single) and $98,900 (married filing jointly) for the 0% rate, and $545,500 (single) or $613,700 (joint) before the 20% rate kicks in. On top of that, a 3.8% Net Investment Income Tax applies once modified AGI crosses $200,000 for single filers or $250,000 for joint filers. Those NIIT thresholds have never been indexed for inflation since they were written into law in 2013, so each year of wage or investment growth pulls more households across the line. Running the actual numbers matters far more than eyeballing them.
Whose Return the Sale Belongs On
This is the trap that ruins the strategy. If Dad pays his own care costs and sells his own stock, the gain and deduction both land on his return, and the offset works cleanly. If the daughter pays the facility or sells stock held in her own name, the deduction lives on her return only if she can treat Dad as a qualifying relative for medical-expense purposes. That test is stricter than most assume, and siblings may need a multiple-support agreement when they share the cost. Get this wrong and the sale creates a fully taxable gain against no deduction.
The Step-Up Basis You Gave Away
Stock bought in 1995 carries a very low basis and a very large embedded gain. Sell it during Dad’s lifetime, and you realize that gain. Hold it until death, and heirs inherit it with a stepped-up basis under Internal Revenue Code section 1014, resetting the basis to fair market value on the date of death and typically wiping out the gain entirely. Selling the oldest, lowest-basis holding first trades away a step-up that can never be recovered. When care must be paid for and the section 213 deduction absorbs the gain, that trade can be worth it. When other assets are available, the appreciated position is frequently the wrong one to touch first.
State Tax, Medicaid, and What to Establish First
State treatment of capital gains and medical deductions varies considerably, and the answer can flip depending on where Dad files. Large care costs also tend to recur across several years, which changes the optimal sale timing each filing season. Spending down assets on care has Medicaid eligibility consequences that sit entirely outside the tax question and belong with an elder law attorney. Section 213 is one of several IRS rules that quietly decide whether a retirement is drained or preserved (nine of them are charted in a free tax trap map for those who want the full picture).
The single most important step is establishing whose return the sale and the payment need to land on. Fix that first, and section 213 can do the work the fine print promises. Get it wrong, and $200,000 of long-held stock ends up funding both the nursing home and the IRS in the same year, a financial outcome as damaging as any gap in care itself.
Editor’s note: This article corrects the number of post-1995 Microsoft stock splits from two to four (December 1996, February 1998, March 1999, and February 2003), updates the share price to reflect the mid-October 2026 level near $534, and adds current nursing home cost benchmarks from the CareScout 2025 Cost of Care Survey.
Contact [email protected] for any questions or corrections.








