HomeGuides › Capital Gains Basics When Selling a Home (And When to Ask a CPA)

Capital Gains Basics When Selling a Home (And When to Ask a CPA)

Published August 14, 2026

Selling your home can put a significant amount of money in your pocket — but depending on how much your property has appreciated, the IRS may want a share of that gain. Understanding the basics of capital gains tax before you sell helps you plan ahead, avoid surprises at tax time, and make smarter decisions about how and when to sell. This article walks you through the fundamentals and flags the situations where a licensed CPA is worth every penny of their fee.

What Is a Capital Gain on a Home Sale?

A capital gain is the profit you realize when you sell an asset for more than you paid for it. With real estate, the calculation starts with your cost basis — generally, what you originally paid for the home. Your gain is the difference between that basis and your net sale price (the amount you receive after subtracting selling costs like agent commissions and closing fees).

For example, if you bought your home for $200,000 and sell it for $500,000, your raw gain is $300,000. Whether — and how much — tax you owe on that gain depends on several important factors.

The Primary Residence Exclusion: The Big Break Most Sellers Get

Federal tax law provides a powerful exclusion for homeowners who sell their primary residence. If you qualify, you can exclude up to $250,000 of gain from your taxable income ($500,000 if you are married filing jointly). To qualify for the full exclusion, you generally must meet two tests:

These two years do not have to be continuous or the same two years — just at least 24 months total within that five-year window. You can only use this exclusion once every two years.

The IRS publishes detailed guidance on the home sale exclusion, including worksheets to calculate your gain and exceptions to the standard rules. It is worth bookmarking that resource as you prepare to sell.

What Adjusts Your Cost Basis?

Your taxable gain is not always as large as it first appears, because your cost basis can be adjusted upward by certain expenses. Common basis adjustments include:

Routine repairs and maintenance — painting, fixing a leaky faucet — generally do not increase your basis. Keeping receipts and records for major improvements over the years of ownership is one of the most practical things a homeowner can do to reduce a future tax bill.

Short-Term vs. Long-Term Capital Gains Rates

If your gain exceeds the exclusion amount, the tax rate you pay depends on how long you owned the home:

For most homeowners who have lived in their home for several years, the long-term rate applies. The specific rate you pay depends on your overall taxable income for the year, so the impact varies from person to person.

Situations Where It Gets Complicated

The basic exclusion covers many straightforward sales, but several circumstances can complicate your tax picture significantly. These are the situations where professional guidance is not optional — it is essential.

You Rented the Home or Used It as a Business

If you rented the property for a period or claimed a home-office deduction, a portion of your gain may not qualify for the exclusion. You may also face depreciation recapture, a separate tax on deductions you took while the property was a rental. This calculation can be complex.

Your Gain Exceeds the Exclusion Amount

If your home has appreciated dramatically and your gain is larger than $250,000 (or $500,000 for joint filers), the amount above the exclusion limit is taxable. In high-appreciation markets, this catches some sellers off guard.

You Inherited the Home

Inherited property typically receives a stepped-up basis to the fair market value at the date of the original owner's death. This can substantially reduce or eliminate a taxable gain. However, the rules around inherited property and subsequent sale are nuanced, and estate considerations may apply.

You Are Relocating Due to Work, Health, or Unforeseen Circumstances

If you do not meet the full two-year use and ownership tests, you may still qualify for a partial exclusion under certain qualifying circumstances. The IRS defines these situations specifically, so verify whether your reason qualifies before assuming you owe the full tax.

State Taxes

Federal law is only part of the picture. Many states have their own capital gains rules, and they do not always mirror federal treatment. Your state tax authority or a CPA familiar with your state's law can clarify what you owe locally.

Practical Steps to Take Before You Sell

  1. Gather your purchase documents. Find your original closing disclosure or HUD-1 settlement statement from when you bought the home.
  2. Compile improvement records. Collect receipts, permits, and contractor invoices for capital improvements made during ownership.
  3. Estimate your gain. Use your adjusted basis and a realistic net sale price to get a rough sense of whether your gain will exceed the exclusion.
  4. Consult a CPA before listing. If your situation involves any of the complexities above — rental use, large gains, inheritance, or partial exclusion scenarios — schedule a conversation with a licensed CPA or tax advisor before you sign a contract. Timing and structure of the sale can sometimes affect your tax outcome.
  5. Review CFPB resources. The Consumer Financial Protection Bureau offers guidance on the financial aspects of selling your home, including what to expect at closing.
  6. Consider a housing counselor. If you are weighing a sale due to financial hardship, HUD-approved housing counseling agencies can provide free or low-cost advice on your options.

Does a Cash Sale Change Your Tax Situation?

In short: not fundamentally. The IRS taxes the gain on the sale, not the method of sale. Whether you sell through a traditional listing, accept a cash offer, or sell at auction, the same capital gains rules apply. A cash sale may close faster — sometimes in days rather than months — which could affect which tax year the gain falls into. If you are near the end of a calendar year, that timing difference may matter. A CPA can help you think through the implications.

It is also worth being clear-eyed about trade-offs: a traditional listing with a real estate agent often produces a higher sale price, which may increase your taxable gain. A cash sale typically comes in below full market value, but offers speed, certainty, and the ability to sell a home in any condition without repairs. Neither path is universally better — it depends on your priorities, timeline, and financial situation. For more on your legal rights during a property sale, Nolo provides plain-language legal information for homeowners.

The Bottom Line

For many homeowners selling a long-held primary residence, the $250,000/$500,000 exclusion covers the gain entirely and no federal capital gains tax is due. But every situation is different, and the consequences of misunderstanding your tax liability can be costly. Consult a licensed CPA or tax professional — especially if your gain is large, the property had any non-residential use, or you inherited the home. Do not rely solely on general articles, including this one, as a substitute for personalized tax advice.

If you are exploring a cash sale as part of your decision-making process, you can request a no-obligation cash offer right here at Fasthomesale101. We connect homeowners with buyers who are interested in purchasing property for cash — no pressure, no commitment, just information to help you weigh your options.

Curious what your home could sell for?
Get My Cash Offer