Capital Gains Tax on Your Home Sale: What Sellers Actually Owe

Capital Gains Tax on Your Home Sale: What Sellers Actually Owe

Most home sellers never pay a dollar of capital gains tax on their sale. But the number of sellers who do owe something is growing, quietly, as home values climb faster than the tax exclusion limits that protect them.

Short answer: If you’ve owned and lived in your home as your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 of profit from capital gains tax if you’re single, or up to $500,000 if you’re married filing jointly. Profit above that threshold is taxed — usually at 0%, 15%, or 20% federally, depending on your income, plus any applicable state tax.

How Does Capital Gains Tax on a Home Sale Actually Work?

Capital gains tax applies to your profit — not your sale price. It’s calculated as:

Sale price − selling costs − your cost basis = taxable gain

Your cost basis isn’t just what you originally paid. It includes:

  • The original purchase price
  • Certain closing costs from when you bought the home
  • The cost of capital improvements (a new roof, an addition, a remodeled kitchen — not routine repairs or maintenance)

Selling costs that reduce your gain include real estate commission, transfer taxes, title fees, and other costs paid at closing. Once you subtract your basis and selling costs from your sale price, what’s left is your taxable gain — before any exclusion is applied.

Who Qualifies for the $250,000 / $500,000 Home Sale Exclusion?

You qualify for the full exclusion if you meet two tests: you owned the home for at least 2 of the last 5 years before the sale, and you used it as your primary residence for at least 2 of those same 5 years. The two periods don’t need to overlap exactly, and you generally can’t have used the exclusion on a different home sale within the prior 2 years.

If you meet these tests, you exclude up to $250,000 of gain as a single filer, or up to $500,000 filing jointly, before any tax applies at all.

Example: A married couple bought their home for $350,000, made $40,000 in qualifying improvements, and sold it for $780,000 after $45,000 in selling costs.

ItemAmount
Sale price$780,000
Selling costs−$45,000
Original purchase price−$350,000
Capital improvements−$40,000
Taxable gain before exclusion$345,000
Married exclusion−$500,000
Taxable gain$0

This couple owes no capital gains tax at all — the exclusion fully covers their profit.

When Do Sellers Actually Owe Capital Gains Tax?

You’re more likely to owe tax if your home has appreciated significantly and you’re a single filer (a $250,000 exclusion is easier to exceed than $500,000), if you didn’t live in the home as your primary residence for 2 of the last 5 years, or if your gain simply exceeds the exclusion even after it’s applied.

Gain above the exclusion is taxed at long-term capital gains rates if you owned the home more than a year — typically 0%, 15%, or 20% federally depending on your total taxable income, plus state capital gains tax where applicable. A small number of high-income sellers may also owe the Net Investment Income Tax (an additional 3.8% federal surtax) on gain above certain income thresholds — a CPA can confirm whether this applies to your situation.

Does Selling and Buying Another Home Avoid the Tax?

No. Buying a replacement home has no effect on your capital gains tax. This is a common point of confusion because an older tax rule — repealed in 1997 — used to let sellers defer tax by reinvesting proceeds into a new home. That rule no longer exists. Today, your tax treatment depends entirely on your ownership/use tests and exclusion eligibility, regardless of whether or when you buy again.

How Does State Capital Gains Tax Work on a Home Sale?

Federal capital gains rules are the same nationwide, but state treatment varies widely. Some states (like Texas, Florida, and Washington) have no state income tax and therefore no state-level capital gains tax on your home sale gain. Others tax capital gains as ordinary income at your state’s regular income tax rate, with no separate home sale exclusion beyond what the federal rules provide. A handful of states offer their own partial exclusions or preferential capital gains rates. Because this varies so much, confirm your specific state’s treatment with a tax professional — don’t assume the federal exclusion is the whole picture.

How Does Commission Affect Your Capital Gains Tax Bill?

Because selling costs reduce your taxable gain dollar-for-dollar, the commission you pay your agent isn’t just a cost of selling — it’s also lowering the profit the IRS taxes you on. This is one more reason the commission rate you negotiate matters twice: once at closing, and again at tax time.

This is where IDEAL AGENT changes the math in your favor. IDEAL AGENT matches sellers with a top 1% local agent at a firm 2% listing commission — not the 2.5–3% many sellers pay with a traditional agent. And if a buyer comes directly through that agent’s marketing of your home, you pay 2% total commission combined, covering both sides of the transaction. Lower commission means a smaller selling-cost deduction, but it also means significantly more of your sale price stays in your pocket instead of going to fees — while you still get full-service, top-performing representation.

Should You Talk to a Tax Professional Before Selling?

Yes — especially if you’ve owned the home less than 2 years, the property was a rental, inherited, or a second home for part of your ownership, your expected gain is close to or above the exclusion threshold, or you’ve used the exclusion on a different home sale within the last 2 years.

A CPA or tax preparer can confirm your exact basis, exclusion eligibility, and any state-specific rules before you list — not after you’ve already signed a purchase agreement.

Frequently Asked Questions

Do I have to pay capital gains tax if I sell and buy another house?

No. The old rule requiring you to reinvest sale proceeds into another home was repealed decades ago. Whether you buy another home has no bearing on your capital gains tax — only the ownership/residency tests and exclusion limits matter.

Is capital gains tax based on the sale price or the profit?

It’s based on profit — your sale price minus your cost basis and selling costs — not the total sale price.

What if I sold my home at a loss?

You generally can’t deduct a loss on the sale of a personal residence for tax purposes, though the loss also isn’t taxed since there’s no gain.

Does the $250,000/$500,000 exclusion apply every time I sell a home?

Yes, as long as you meet the ownership and use tests each time, and haven’t already used the exclusion on another sale within the prior 2 years.

Do partial exclusions exist if I sell before meeting the 2-year rule?

In some cases — job relocation, health reasons, or certain unforeseen circumstances can qualify you for a reduced exclusion even if you haven’t met the full 2-year test. A tax professional can confirm whether your situation qualifies.

Do I owe capital gains tax in every state?

No. States without an income tax generally don’t tax your home sale gain at the state level either. States that do tax income typically tax capital gains as part of it, though rules and rates vary — confirm your state’s specific treatment before assuming either outcome.

Is the capital gains exclusion the same as a tax deduction?

No. A deduction reduces your taxable income by a set amount. The exclusion removes a portion of your home sale profit from taxation entirely, up to the applicable limit — it’s specific to this type of transaction, not a general deduction.

Understanding your tax exposure before you list is only half the equation — the other half is making sure you’re not giving away more of your profit than necessary in commission. Get matched with a top 1% local agent who lists for 2% and helps you keep more of what your home is actually worth.

IDEAL AGENT

Ready to sell your home?

Get matched with a top local agent who's pre-negotiated to a lower commission — so you keep more of your sale price.

Get Matched Free →