Ready to sell? Get a free cash offer today.

Get My Offer
← All Articles
Capital Gains Tax When You Sell Your House: What You Actually Owe, and Why Waiting for the Law to Change Is a Bad Bet

Capital Gains Tax When You Sell Your House: What You Actually Owe, and Why Waiting for the Law to Change Is a Bad Bet

Skip The Agent

Most homeowners who sell a primary residence owe zero federal capital gains tax, because the IRS lets a single filer exclude up to $250,000 of gain and a married couple filing jointly exclude up to $500,000 under IRS Topic 701. You only owe tax on the gain above that number, not on the sale price. If you want to know what your after-tax proceeds actually look like without listing, Skip The Agent writes cash offers in 24 hours, closes in as few as 7 days, and charges no fees or commissions: request a free estimate.

You are selling your house, or thinking about it, and you keep reading that Washington might kill the capital gains tax on primary residences. You want to know two things. What do you actually owe if you sell right now, and is it worth sitting on the property for another six or twelve months to find out if a bill passes.

This article is for you if you are a homeowner who has watched your home value climb, an heir who just inherited a property and is scared of a tax bill, a landlord thinking about cashing out of a rental, or a divorcing couple trying to figure out what each spouse walks away with. One quick note before the numbers: this is not tax advice. Any decision involving more than a few thousand dollars of potential tax needs your own CPA reading your own return. Where the rules have exceptions, and they usually do, IRS Publication 523 is the source of truth.

The Tax Is on Gain, Not on Price. Most Sellers Owe Nothing.

The single most common mistake is thinking capital gains tax applies to the sale price. It does not. It applies to the gain, which is the sale price minus what the IRS calls your adjusted basis, minus your selling costs.

Here is the arithmetic on a real example. You bought your house for $180,000 in 2011. You put a new roof on it in 2018 for $14,000, replaced the HVAC in 2020 for $8,000, and finished the basement in 2022 for $22,000. Your adjusted basis is $224,000. You sell it in 2026 for $340,000, and you pay 6% in commissions plus $4,000 in other closing costs, which comes to $24,400 in selling expenses. Your net proceeds are $315,600. Your gain is $315,600 minus $224,000, which is $91,600.

That $91,600 is the number the IRS cares about. And if you are married filing jointly and this is your primary residence, you exclude up to $500,000 of that gain under Section 121. Your federal capital gains tax bill on this sale: zero.

For a married couple filing jointly to owe a single dollar of federal capital gains tax on a primary residence, the gain has to exceed $500,000. For a single filer, it has to exceed $250,000. That is not the sale price. That is the appreciation net of improvements and selling costs. Most sellers, even in markets where prices have climbed hard, are nowhere near that line.

The Two Tests You Have to Pass

To claim the exclusion you have to pass two tests, both defined in IRS Topic 701.

The ownership test: you owned the home for at least 24 months out of the 5 years before the sale.

The use test: you lived in the home as your primary residence for at least 24 months out of the 5 years before the sale.

The 24 months do not have to be consecutive, and they do not have to be the same 24 months for both tests. You also cannot have used the exclusion on another home sale in the 2 years before this sale.

If you fail one of these tests, you may still qualify for a partial exclusion if the reason for selling is a change in place of employment, a health issue, or an unforeseen circumstance. This matters more for our readers than any other section of this article, because a divorce, a job loss, a death in the household, or a move to care for a family member is exactly why most people sell early. The partial exclusion is prorated by the number of qualifying months you were in the home. The specific safe harbors are in IRS Publication 523, and if you are within a few months of the 24-month line, this is not a blog decision, it is a CPA decision.

Basis Is the Lever, and It Is the One Almost Everyone Loses

If your gain is going to exceed the exclusion, or you are selling a former rental where the exclusion may not apply in full, the number that will save you the most money is your adjusted basis. Capital improvements raise it. Higher basis, lower gain, lower tax.

The receipts for the roof, the HVAC, the kitchen remodel, the addition, the new windows, the finished basement, the deck: those are worth real money at closing. Most homeowners throw them away.

The IRS draws a hard line between improvements and repairs, and you have to know the difference:

Publication 523 has the definitive list. If you have lived in the house for 15 years and you can produce documentation for $60,000 of improvements, you have knocked $60,000 off your taxable gain. If you cannot document them, the IRS treats them as if they never happened.

Capital improvements increase your adjusted basis and lower your taxable gain when you sell, but only if you can document the cost. A new roof, HVAC replacement, kitchen remodel, or addition all count as improvements per IRS Publication 523. Routine repairs like painting and leak fixes do not.

A Cash Sale Does Not Change Your Tax Bill

Because this is a cash-buyer site, this deserves its own section. Selling to a cash buyer does not create capital gains tax and does not avoid it. The IRS does not care who buys your house. What the IRS cares about is the gain, the exclusion, your basis, and your holding period.

Anyone telling you a specific buyer type triggers or avoids capital gains tax is either confused or lying. What a cash sale can change is your net proceeds, your carrying costs while you wait, and your timeline. Those things affect the dollars in your pocket. They do not affect the federal tax code.

The 2026 Political Noise: Do Not Wait for a Bill That Has Not Passed

You have probably read that the federal capital gains tax on primary residences might be eliminated. In summer 2026, administration officials floated the idea publicly, and there is real legislative activity:

Verify the current status of each bill on congress.gov before you make a decision. As of the writing of this article, none of them has passed. A bill introduced is not a bill signed. Most tax bills introduced in any given Congress die in committee.

This is the same mistake as waiting to sell until mortgage rates drop, which we wrote about in Should You Wait to Sell Until Rates Drop? Run the Math First. Run the arithmetic honestly.

What Six Months of Waiting Actually Costs You

Say you are considering holding a house for six months to see if a bill passes. Assume a $300,000 home with a $200,000 mortgage at 6.5%, in a place where property tax runs around 1% of value and insurance is climbing.

That is around $10,600 in real out-of-pocket carrying cost over six months, before you count the risk that home values fall in that window. Redfin tracks median sale prices in real time, so check what your own metro has actually done before you assume six months is free. A 3% price drop on a $300,000 house is $9,000 gone.

So the honest question is: does the tax you might save if a bill passes and if it applies to your gain exceed roughly $19,600 in downside risk over six months? For the majority of sellers who already qualify for the full $250,000 or $500,000 exclusion, the answer is no, because they already owe zero. Waiting on a bill to save tax they were never going to pay is expensive.

If you do have gain that exceeds the exclusion, the math is closer, and you should get a CPA to run your specific numbers. But do not treat “Washington might change the rule” as a plan.

Timing: The Only Real Lever Once the Sale Is Decided

Beyond the political question, there are three timing levers inside the current tax code:

  1. The 24-month tests. If you are within a few months of hitting 24 months of ownership or use, waiting a few months could move you from partial exclusion to full exclusion. On a large gain, that is worth real money.
  2. The two-year rule between sales. You cannot claim the exclusion on two homes within 24 months. If you sold another primary residence 18 months ago and claimed the exclusion, waiting 6 more months matters.
  3. Your income year. Long-term capital gains rates depend on your taxable income for the year. Selling in a low-income year, such as a year you retire or are between jobs, can drop your capital gains rate. This is where a CPA earns their fee.

When the numbers are close, the answer is a CPA and not a blog. Always.

Do Capital Gains Count as Income?

Yes and no, which is why the question gets 1,900 searches a month. Long-term capital gains are taxed at their own rate schedule, not at ordinary income rates. But the gain does count toward your total income for purposes of determining which bracket you fall into and whether you owe the 3.8% Net Investment Income Tax, which kicks in at $200,000 of modified adjusted gross income for single filers and $250,000 for married filing jointly.

That means a large gain can push you into a higher capital gains bracket even if your wages did not change. If you are selling a house with $400,000 of gain in a year you also earned $150,000 in wages, your total picture matters. Again, this is CPA territory.

Inherited Property: The Stepped-Up Basis Usually Saves You

If you inherited a house, your basis is not what the original owner paid. It is the fair market value on the date of death. This is called the stepped-up basis, and it is why most heirs who sell within a year or two of inheriting owe little or no capital gains tax.

Example: your parent bought the house in 1985 for $60,000. They died in 2026 and you inherited it when it was worth $310,000. You sell it three months later for $315,000. Your gain is $5,000, not $255,000. That is the step-up doing its job.

If you are dealing with an inherited property and trying to figure out the sale side, our complete guide to selling an inherited house covers the probate timeline, sibling coordination, and the mechanics of a sale.

The Rental Case: Depreciation Recapture Changes Everything

If the house was ever a rental, the calculation is different and worse.

While you rented it out, you were required (whether you took it or not) to depreciate the structure over 27.5 years. When you sell, the IRS reclaims that depreciation at a rate up to 25%, called unrecaptured Section 1250 gain. This applies even if you did not actually take the depreciation deductions.

The Section 121 primary residence exclusion may still apply in part if you lived in the property for 24 months of the last 5 years, but the depreciation recapture is not excludable. On a former rental you owned for 15 years, that can easily be $30,000 to $60,000 of tax you were not expecting.

For investors, a 1031 exchange can defer this tax entirely by rolling the proceeds into another investment property. There are strict deadlines: 45 days to identify the replacement property, 180 days to close. If you are considering an exchange, our commercial team wrote about what missing the 45 and 180 day deadlines actually costs you.

State Capital Gains: A Few Fast Answers

Does Florida have capital gains tax? No. Florida has no state income tax and no separate state capital gains tax on individuals. You still owe federal capital gains tax on any gain above the exclusion.

Does Maryland tax capital gains? Yes. Maryland taxes capital gains as ordinary income at state rates up to 5.75%, plus local county rates. There is no separate state exclusion beyond federal treatment for primary residences.

Indiana taxes capital gains as ordinary income at the flat state rate. Illinois, Michigan, and most other Midwestern states do the same. Confirm your state’s current rate before you plan around a specific number.

When a Cash Sale Actually Makes Sense Here, and When It Does Not

If your gain is well under the exclusion and you have a normal, marketable house, listing with an agent usually nets you more even after commissions. That is the honest answer. Our breakdown of what it actually costs to sell a house walks through the numbers.

A cash sale becomes the right call when the tax math is not the main problem: when the house needs repairs a buyer’s inspector will demand, when you are on a timeline that cannot survive 38 days on market and a 30 to 45 day close, when the property is inherited and vacant and burning $1,500 a month, or when a divorce or foreclosure calendar is running against you. In those cases the carrying costs and repair demands eat the difference, and a clean 7-day close with no fees is the higher-net number.

If you want to see what your specific number looks like both ways, get a free estimate. We will show you the cash offer and the arithmetic behind it.

The Bottom Line

Most sellers of a primary residence owe zero federal capital gains tax because the $250,000 and $500,000 exclusions are large enough to cover them. Basis is the lever that saves the sellers with larger gains, and it only works if you kept receipts. A cash sale does not change your tax bill. Waiting for Congress to eliminate the tax is not a plan. Inherited property gets a stepped-up basis, which usually means little tax. Former rentals get depreciation recapture, which usually means more tax.

Run your own numbers with your own CPA. And do not sit on a house that is costing you money every month because you read a headline about a bill that might pass someday.

Frequently Asked Questions

How do I avoid capital gains tax on the sale of my home?

Live in the home as your primary residence for at least 24 months out of the 5 years before the sale, and your first $250,000 of gain (or $500,000 if married filing jointly) is excluded from federal tax under IRS Section 121. This is the primary residence exclusion, and it is the main way homeowners avoid capital gains tax legally. Keep receipts for every capital improvement, because those raise your basis and reduce any gain above the exclusion.

How do I avoid capital gains tax on real estate that is not my primary residence?

For investment property, the main strategy is a 1031 like-kind exchange, which defers the tax by rolling proceeds into another investment property within strict deadlines: 45 days to identify a replacement and 180 days to close. You cannot use Section 121 on a property that was never your primary residence. Some investors also use installment sales or opportunity zone investments to spread or defer the tax.

How much capital gains tax will I pay on the sale of my house?

If the house is your primary residence and your gain is under $250,000 (single) or $500,000 (joint), you pay zero federal capital gains tax. Gain above the exclusion is taxed at 0%, 15%, or 20% depending on your total taxable income for the year, plus a possible 3.8% Net Investment Income Tax if your income exceeds $200,000 single or $250,000 joint. State tax varies: Florida charges none, Maryland and Indiana tax gains at state income rates.

How to avoid paying capital gains tax on property I inherited?

Sell soon after inheriting, because inherited property receives a stepped-up basis equal to the fair market value on the date of death, which usually means little or no gain when you sell within a year. You do not need to have lived in the property. If you hold it and it appreciates further before you sell, only the appreciation after the date of death is taxable.

Do capital gains count as income for tax purposes?

Long-term capital gains are taxed at their own rate schedule (0%, 15%, or 20%), not at ordinary income rates, but the gain does count toward your total taxable income for the year. That matters because a large gain can push you into a higher capital gains bracket and can trigger the 3.8% Net Investment Income Tax at $200,000 (single) or $250,000 (joint) of modified adjusted gross income. Short-term gains on property held less than one year are taxed as ordinary income.

Does selling to a cash buyer change my capital gains tax?

No. The IRS taxes the gain on the sale, not the identity of the buyer. What a cash sale can change is your net proceeds, your closing timeline, and the carrying costs you avoid by not waiting on the market. Those affect the dollars in your pocket, but the federal tax calculation is the same.

What counts as a capital improvement I can add to my basis?

Capital improvements are changes that add value, prolong the useful life, or adapt the home to new uses: roof replacement, new HVAC, additions, kitchen and bath remodels, new windows, finished basements, and permanent landscaping. Routine repairs like painting, fixing leaks, or replacing broken fixtures do not add to basis. IRS Publication 523 has the complete list, and you need documentation to claim any of it.

Should I wait to sell until Congress eliminates capital gains tax on primary residences?

No, not as a general rule. Several bills to eliminate or expand the exclusion have been introduced in 2025 and 2026, but none has passed, and most tax bills introduced die in committee. Six months of holding a $300,000 house costs roughly $10,000 in mortgage interest, taxes, insurance, and utilities before you count the risk of prices moving against you.

This article was written by the editorial team at Skip The Agent LLC. It is not tax or legal advice. Consult a licensed CPA before making decisions based on any figure discussed here.


Written by Addai Lewellen and Grant Umali, co-founders of Skip The Agent LLC. Addai is a lifelong Indiana resident with deep experience in the Indianapolis and Midwest real estate market. Grant brings a background in marketing, sales, and customer success. They handle every deal personally. Reach them directly at skiptheagent.llc.

No Agents. No Fees. No Pressure.

Ready to see what your home is worth in cash?

Get a free, no-obligation offer in 24 hours, from two real people, not an algorithm.

Get My Free Cash Offer

Closes in as few as 7 days · No repairs needed · 100% free to request

Not ready to call yet?

Get our latest market updates, seller guides, and real estate insights delivered straight to your inbox. No spam, no pressure.

One email. No spam. No pressure.

← Back to all articles

Ready to sell? Get a cash offer in 24 hours.

Get My Offer