Capital Gains Basics When Selling a Home (And When to Ask a CPA)
Selling your home is one of the biggest financial moves you will ever make. Before you accept any offer — whether from a traditional buyer or a cash buyer — it pays to understand the basics of capital gains tax. The good news is that many homeowners owe little or nothing in federal tax on the sale of their primary residence. The important caveat is that the rules come with conditions, and the details of your situation matter enormously. This article gives you a solid foundation and helps you recognize when a licensed CPA or tax attorney should weigh in.
What Is a Capital Gain on a Home Sale?
A capital gain is simply the profit you realize when you sell an asset for more than you paid for it. For your home, the starting point is your cost basis — generally what you originally paid, plus certain closing costs from the purchase, plus the cost of qualifying capital improvements you made over the years. When you subtract that basis from your net sale proceeds, the result is your capital gain.
For example, if you paid $200,000 for a home, added $30,000 in documented improvements, and sold it for $380,000 after paying $20,000 in selling costs, your gain would be roughly $130,000. Whether and how much of that is taxable depends on the exclusion rules below.
The Primary Residence Exclusion
Federal tax law includes a significant exclusion for gains on the sale of a primary residence. Under current IRS rules, you may be able to exclude up to $250,000 of gain if you are a single filer, or up to $500,000 of gain if you are married filing jointly. To qualify, you generally must meet two tests:
- Ownership test: You owned the home for at least two of the five years before the sale.
- Use test: You used the home as your primary residence for at least two of the five years before the sale.
These two years do not have to be consecutive, and in most cases you can only use this exclusion once every two years. The IRS publishes detailed guidance on the home sale exclusion, including worksheets and special rules for situations like divorce, disability, or a death in the family — it is worth reading directly from the source.
When You Might Still Owe Tax
The exclusion is generous, but it does not protect everyone in every situation. You may still owe capital gains tax if:
- Your gain exceeds the exclusion limit (common in high-appreciation markets or after long ownership periods).
- You do not meet the ownership or use tests — for instance, if you inherited the home, converted it from a rental, or moved sooner than two years.
- You claimed the home as a rental or business property for part of the ownership period, which can affect the calculation and potentially trigger depreciation recapture.
- You have already used the exclusion on another home sale within the past two years.
When a gain is taxable, the rate depends on how long you owned the property and your total taxable income for the year. Long-term gains (property held more than one year) are taxed at lower rates than short-term gains, which are taxed as ordinary income. Higher-income households may also owe an additional net investment income tax on top of the standard rate. These thresholds change periodically, so verifying current figures with the IRS or a tax professional is essential.
Improvements, Records, and Your Basis
One of the most overlooked ways homeowners reduce a taxable gain is by carefully tracking capital improvements. A new roof, an addition, a kitchen remodel, or a new HVAC system can all increase your cost basis — which in turn reduces your gain. Routine repairs and maintenance generally do not qualify.
If you have owned your home for many years, digging up old receipts and permits is worth the effort. Even partial records can help a CPA reconstruct a more accurate basis. Keep any documentation in a dedicated folder, both physical and digital.
Cash Sales and Capital Gains: Is There a Difference?
From a tax standpoint, the form of payment — cash offer, financed offer, or installment sale — does not change whether a gain is taxable. What matters is the net amount you receive and your adjusted basis. That said, the timing of a sale can matter. If selling before year-end versus early in the new year affects your overall taxable income bracket, a CPA can help you model both scenarios. An installment sale, where you receive payments over time, is a separate strategy with its own tax treatment and should always involve professional guidance.
State Taxes: An Often-Forgotten Layer
Federal rules are only part of the picture. Many states impose their own income or capital gains taxes on home sale profits, and the rules vary widely. Some states conform closely to federal law; others do not. Check with your state's department of revenue or a local tax professional to understand your state-level exposure before you close.
When You Should Definitely Talk to a CPA
While the basics above apply to many straightforward primary-residence sales, certain situations call for professional advice before you sign anything:
- You have owned the home for a short period (less than two years).
- The property was ever used as a rental or home office.
- You inherited the home or received it as a gift.
- You are going through a divorce or separation.
- Your anticipated gain is close to or exceeds the exclusion limit.
- You are considering an installment sale or a 1031 exchange (which applies to investment property, not a primary residence).
- You have experienced a significant life event — job loss, remarriage, or relocation — in the past few years.
A CPA or tax attorney can run the actual numbers with your specific figures, identify deductions you may have missed, and help you time the sale strategically. The CFPB offers general guidance on the financial aspects of selling a home and can help you understand what questions to bring to a professional. If you are uncertain about where to find reputable help, HUD-approved housing counselors can offer referrals and general guidance at low or no cost. For broader legal questions about real estate transactions, Nolo provides plain-language legal information on topics ranging from title issues to seller disclosures.
Practical Steps to Take Right Now
- Locate your original closing disclosure or settlement statement from when you purchased the home.
- Gather receipts for any capital improvements made during ownership.
- Note the dates you purchased, moved in, and any periods the home was used for non-residential purposes.
- Review the IRS publication on home sales to see whether you appear to qualify for the exclusion.
- Schedule a consultation with a licensed CPA before you accept an offer if any of the complex situations above apply to you.
Understanding your potential tax liability early — not after closing — gives you time to make informed decisions and avoid surprises. Selling a home is already a complex process; getting the tax piece right from the start makes everything that follows smoother.
If you are exploring your selling options and want to see what a cash offer might look like, you are welcome to request a no-obligation offer through Fasthomesale101. We connect homeowners with buyers who are genuinely interested in purchasing homes for cash — no pressure, no commitment required. It is simply one more data point to help you make the best decision for your situation.