Possibly, depending on your purchase price, the improvements you have made, how long you have owned and lived in the home, your filing status, the exemptions available to you, prior transactions and the rest of your tax circumstances. For the 2026 tax year the federal exclusion on a qualifying primary residence is $250,000 for a single filer and $500,000 for a married couple filing jointly; it has not been indexed to inflation since 1997. Tax rules change and none of this is advice about your situation, so keep records of qualifying improvements and confirm the figures with your CPA or tax attorney before relying on an estimate.

The exclusion, and why it runs out here

If you have owned the home and lived in it as your main residence for at least two of the last five years, you can exclude $250,000 of gain as a single filer or $500,000 filing jointly. The two years of use need not be continuous, and you must not have claimed the exclusion on another home in the previous two years.

The number to sit with: those amounts were set in 1997 and have never been indexed to inflation. Everything else in the tax code moves with prices each year. This does not.

To put a shape on it: a house bought in 1990 for $400,000 and selling at $3.5M has a gain of roughly $3.1M before any adjustments. A married couple meeting the ownership and use tests would exclude $500,000 of that. What happens to the rest depends on the seller’s circumstances — basis from documented improvements, selling costs, filing status, other income, prior transactions, and which of the taxes below apply to them. This is an illustration of the arithmetic, not a calculation of anyone’s liability.

Source: Internal Revenue Code §121; IRS Publication 523. Exclusion amounts confirmed unchanged for the 2026 tax year. Tax rules change; confirm the current figures and how they apply to you with your CPA or tax attorney.

The three layers

Federal long-term capital gains, for 2026: 0% up to $98,900 of taxable income filing jointly, 15% to $613,700, and 20% above that. (Rev. Proc. 2025-32.)

Net Investment Income Tax, 3.8%, once modified adjusted gross income passes $250,000 jointly or $200,000 single. Those thresholds are also not indexed — the IRS says so explicitly. Gain you exclude under the §121 rule is excluded from this too; only the gain above the exclusion counts.

California, which has no separate capital gains rate at all. The gain is ordinary income, at rates up to 13.3% — the 12.3% top bracket plus the 1% levy on income over a million dollars.

What actually reduces the bill

Improvements raise your basis. Repairs do not. The IRS line is whether the work added value, prolonged the home’s life, or adapted it to a new use. A new kitchen, a room addition, a replaced roof, new windows, a rebuilt deck, landscaping that is genuinely new: basis. Repainting, fixing a leak, servicing the furnace: not.

Selling costs come off the top. Commission, escrow, title and transfer tax are subtracted from the sale price to get the “amount realized”, and the gain is calculated from that figure — so they reduce the taxable gain directly.

Which is why the receipts matter so much. Thirty years of documented improvements on a Palo Alto house can easily be several hundred thousand dollars of basis, and several hundred thousand dollars of basis at these rates is real money. Permits, contractor invoices, cancelled cheques, credit card statements — anything that establishes what was done and what it cost.

Start looking before you list, not during escrow.

The withholding nobody warns you about

California withholds 3⅓% of the gross sale price at closing unless the seller certifies an exemption on Form 593. On a $4M sale that is about $133,000.

The principal-residence exemption is one of the certifications available, and it is handled through escrow at closing. Getting it wrong does not create a tax — you get the money back eventually — but “eventually” means after you file a return.

If the house was inherited

Different arithmetic entirely, and usually much better. Inherited property generally receives a basis stepped up to its value at the date of death, which can eliminate decades of gain outright. That is its own question, and it is the reason selling a parent’s house soon after inheriting it often produces very little taxable gain.

Not tax advice

Maggie is a listing agent, not a CPA or a tax attorney, and this page is not advice about your return. The figures above are current for 2026 and cited so you or your accountant can check them. On a Palo Alto sale the gain is large enough that an hour with a CPA before you list is among the cheapest money in the whole transaction — sometimes it changes the timing, and occasionally it changes whether you sell this year at all.

You may also see proposals in the news to eliminate capital gains tax on home sales. As of September 2026 none has become law.

Maggie Ma Keller Williams Palo Alto · DRE #02117367 Updated

Have a question about your own house? Ask Maggie directly → Or text Maggie.