Learn
Selling a Business to Retire
The tax on the sale, the health-insurance rules that follow it, and what a plan needs to show
If the business is the retirement plan, one signature turns years of work into a lump of cash, and a handful of rules decide how much of it you keep: the tax on the sale, the income that Medicare and the marketplace read afterward, and what the house can add later. This article walks through each, with a worked example, and ends with how to enter them in Calcifir today.
It is general education, not tax or legal advice. A sale's tax depends on how the deal is written, so bring a CPA in before the letter of intent, not after. Figures use 2026 law for a married couple filing jointly.
The tax on the sale
Most of what you keep or lose is settled before the closing date, by how the deal is written. The gain on a business you have owned for more than a year is mostly long-term capital gain, taxed at 0%, 15% or 20% on top of your other income. But the buyer and seller divide the price among the business's assets, and each kind of asset is taxed differently.
Stock sale or asset sale
Selling shares or an ownership interest is usually all capital gain. Selling the assets one by one, which buyers often prefer, is not. Equipment you have depreciated is taxed as ordinary income, up to the depreciation you took (called recapture), at rates up to 37%. Real estate has its own recapture rate. Goodwill is generally capital gain.
Payments that are not part of the price
Money paid for a promise not to compete, for consulting after the sale, or as salary is ordinary income, not capital gain. A buyer may offer to move dollars into these categories, and the split is negotiated, so it belongs in the first conversation with your accountant, not the last.
The 3.8% investment income tax
Above $250,000 of income on a joint return (the line is set by law and is not adjusted for inflation), gain can carry an extra 3.8%. The tax is aimed at passive income. A gain on an active business that you work in is generally outside it, so many owners do not owe it, and a partner who does not work in the business generally does. Which one you are depends on your facts.
State tax
Most states tax the gain as ordinary income, and a few tax none of it. Some have a break for selling a business. Oklahoma, for example, lets residents deduct qualifying gain on the sale of an Oklahoma company or Oklahoma property that was held long enough (Form 561). Check your own state's rule before you settle on a number.
Here is the federal arithmetic for one clean case: a married couple who sell for $3,000,000 with a cost basis of $200,000, all of it long-term capital gain, with no other income that year, under 2026 rules.
| Gain ($3,000,000 − $200,000) | $2,800,000 |
|---|---|
| Federal capital gains tax (after the standard deduction) | $508,040 |
| 3.8% investment income tax, if it applies | $96,900 |
| Federal total if it applies | $604,940 |
Add your state tax, and the recapture or ordinary-income share of your own deal. The point of the example is the scale: for a sale this size, taxes can run from roughly 18% to 22% of the gain before state tax, and the number you will live on is the one after them.
In Calcifir today
Calcifir does not tax the sale for you. Get the after-tax figure from your accountant, and enter it on Income, under Windfalls, as a one-time amount at the age you sell. Use Where it goes to send it to a brokerage or cash account. The plan then invests it and draws from it, and later withdrawals are taxed only on growth after the sale, because the money lands at full cost basis.
The windfall counts as money you keep, not as income. It does not raise the plan's Medicare surcharge or lower its marketplace credit (both are below).
Spreading the sale: installment sales
If the buyer pays you over several years, you can report the gain as each payment arrives instead of all at once (the installment method, Form 6252). Because the gains tax has steps, a smaller gain each year stays out of the 20% band and may stay under the 3.8% line.
| Same $3,000,000 sale | All in one year | 5 equal years |
|---|---|---|
| Federal capital gains tax | $508,040 | $321,675 |
| 3.8% tax, if it applies | $96,900 | $58,900 |
| Federal total | $604,940 | $380,575 |
Spreading the example over 5 years saves about $224,365 of federal tax when the 3.8% tax applies. The saving is smaller with other income stacked in: a pension or Social Security in those years pushes each year's gain higher in the brackets, so the saving shrinks.
What an installment sale does not defer
Recapture income is taxed in the year of the sale even if the payments come later. Interest on the note is ordinary income each year. And you carry the buyer's credit risk: if the business fails, the payments stop.
Spreading can raise Medicare premiums
Each year's gain also counts toward the income Medicare reads two years later (next section). A couple with $560,000 of gain a year would sit in a surcharge tier each year, about $12,710 a year for the two of them, where one big year would cost them the top tier once. Which is cheaper depends on how many of those years fall in a Medicare lookback.
In Calcifir today
Enter a windfall that repeats each year, using the after-tax amount for that year. Fold the note's interest into each year's figure, since it is taxed as ordinary income.
Medicare reads your income two years back
Medicare charges a surcharge on Part B and Part D premiums (IRMAA) when income is high. The income it reads is the one on your tax return from two years earlier. A sale in 2030 is what sets premiums in 2032, and only if you are on Medicare in 2032.
The timing that matters
Medicare starts at 65, so a sale at 62 or earlier never reaches a premium year. A sale at 63 or later does. For a couple, the surcharge starts above $218,000 of income, and at the top tier both spouses together pay about $13,872 extra for the year (2026 figures), on top of the base Part B premium of $203 a month each.
It is one year, and you can ask for a review
The surcharge follows the year of income, so it falls back the next year if income does. If you have stopped working or sold the business since the year Medicare is reading, Social Security's form SSA-44 asks them to use a lower, current year instead.
In Calcifir today
Calcifir charges the surcharge automatically from the plan's own income, but it looks back one year, not two, and the windfall is not counted as income. A sale at 63 or later will therefore not show the surcharge it causes. Add the expected surcharge as a one-time expense at the age the premium year falls.
Base Part B, Part D and supplement premiums are not added for you. On Expenses, add a Healthcare category from 65 on with your expected total for each of you.
Before 65: marketplace credits and the Medicaid band
If you retire on the sale and are not yet 65, health insurance comes from the marketplace. The premium tax credit is based on income, not assets, so a seller who lives on money that is mostly cost basis can have a low taxable income and a large credit. The same rules cut the other way in the year of the sale.
The year of the sale
Credits are measured on the year's income, and the gain counts. Income above 400% of the poverty line means no credit at all, and a credit paid in advance for that year must be repaid when you file. Cancel or adjust advance payments before the sale year.
The years after
Selling a brokerage account counts only the gain, not the money that is your basis, and Roth withdrawals count nothing. That is why a couple can live on $100,000 of spending and show $25,000 to $50,000 of income. Keep it in mind before large gains or Roth conversions: each dollar can lower the credit.
The Medicaid band
In a state that expanded Medicaid (Oklahoma did, in 2021), adults under 65 with income below 138% of the poverty line generally qualify for Medicaid and cannot take marketplace credits. For two people in 2026 that line is about $29,187. A couple living on basis can land under it, and a low-income year is a year to check which program you are in.
In Calcifir today
On People, set your county, and choose Healthcare premium before 65: Full price. On Expenses, add a Healthcare category from the age you stop working to 65 with the premium you expect to pay. The credit can never exceed that amount. The plan then pays the credit year by year from the year's income, and steers withdrawals to stay under the 400% line where it can.
Two things the app does not do. It shows a credit from 100% of the poverty line up, so in an expansion state the first years of a low income need a check against the Medicaid band. And it does not tax yearly dividends on a large brokerage account, so it slightly understates income and overstates the credit.
Health care at 65 and long-term care
Medicare pays most hospital and doctor bills, but not the premiums, the deductibles, drugs without a Part D plan, or most long-term care. Original Medicare pays for a limited stay in a skilled nursing facility after a hospital stay and does not pay for custodial care, which is what most people who need care at home or in assisted living use.
In Calcifir today
The plan bills one care episode near the end of the plan by default: a stretch in assisted living, then a lower cost afterward. You can change it on the long-term care card on Expenses, to raise it to nursing-home cost or turn it off if you hold a policy. It is one episode for the household, not one per spouse.
Selling the house late in life
For many sellers the house is the second reserve: it sits outside the plan until the money for care or the last years runs short, and then it is sold. The plan can show that, with a few things to check first.
The home-sale exclusion
If you owned and lived in the home for two of the last five years, you can exclude up to $250,000 of gain, or $500,000 on a joint return, from tax. A house bought decades ago can have more gain than that, and the rest is taxed as capital gain.
After a death
A surviving spouse who sells within two years of the death can still use the $500,000 limit. After that it is $250,000. The home also generally gets a new cost basis at death (in full in a community property state, for half in the others), which can erase much of the gain for heirs and for a survivor.
Medicaid and the five-year look-back
If long-term care might one day be paid by Medicaid, how a house is sold or given away matters. Gifts in the five years before applying can delay coverage, and rules for a home differ by state. This one deserves an elder-law attorney before the house is sold or transferred.
In Calcifir today
On Real estate, choose Model a future move with no new home. That is a pure sale at the age you pick. The home grows at an editable rate above inflation, the plan takes off 6% selling costs and any mortgage, and the cash lands in savings the year after the sale. You can compare ages in the Sandbox.
The app treats the sale as tax-free, which holds only while the gain fits in the exclusion. If it may not, lower the home's value or add a one-time expense in the sale year to cover the tax. The app also does not add housing costs after the sale: add rent or assisted living from the sale age, or raise the care event if the care covers the housing. And it cannot model “sell only if the money runs out”: pick an age.
What to take to your accountant
- How the price is divided among assets, and what is recapture, ordinary income or capital gain.
- Whether an installment sale fits, and what the buyer's note pays in interest.
- Whether the 3.8% tax applies to you, and whether your state has a break for the sale.
- Your income for the sale year and the two after it, against the Medicare and marketplace lines above.
- The cost basis and the home-sale exclusion on the house.
Related articles
ACA Health Insurance for Early Retirees
Marketplace credits, income management and the cliff.
Tax-Efficient Withdrawal
Which accounts to tap first once the money is in hand.
Longevity Risk
Planning for the years after the sale money is tested.
Spend to Zero or Leave an Estate?
Treating the house as a reserve or leaving it behind.
Sources
- Topic no. 409: Capital gains and losses. Internal Revenue Service.
- Publication 544: Sales and other dispositions of assets (recapture, business sales). Internal Revenue Service.
- Publication 537: Installment sales, and Form 6252. Internal Revenue Service.
- Net investment income tax (IRC §1411) and Form 8960. Internal Revenue Service.
- Revenue Procedure 2025-32: 2026 capital gains rate thresholds and standard deduction. Internal Revenue Service.
- Publication 523: Selling your home (the §121 exclusion). Internal Revenue Service.
- Form 561: Capital gain deduction. Oklahoma Tax Commission.
- 2026 Medicare Parts A and B premiums and deductibles (fact sheet). Centers for Medicare & Medicaid Services.
- Medicare premiums: rules for higher-income beneficiaries, and Form SSA-44. Social Security Administration.
- Premium tax credit, and IRS Form 8962. HealthCare.gov.
- Medicaid expansion and the 138% of poverty line. Medicaid.gov.
- 2025 poverty guidelines (used for 2026 marketplace coverage). U.S. Department of Health and Human Services.
- Long-term care: what Medicare does and does not cover. Medicare.gov.
Written by Jordan Arlan
Jordan is the founder of Calcifir and builds the planner these articles explain. About Calcifir
Published November 14, 2026