Will you owe taxes when you sell your home? Here is a straightforward explanation of capital gains exclusions, tax obligations, and what to track for tax season.
The Capital Gains Tax Exclusion for Primary Residences
The most important tax rule for home sellers is the capital gains exclusion under IRS Section 121. If you have 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 file as a single taxpayer, or up to $500,000 if you file jointly as a married couple.
This means that if you bought your home for $400,000 and sell it for $700,000, your $300,000 profit is tax-free if you are married filing jointly and meet the residency requirement. For most homeowners, this exclusion means they owe zero federal tax on their home sale.
The 2-out-of-5-year rule does not require consecutive years of residency. You could live in the home for the first two years after purchase, rent it out for two years, and sell it in year five — and still qualify for the full exclusion. The clock is based on the 5-year period ending on the date of sale. You can also use the exclusion repeatedly, but not more than once every two years.
Calculating Your Gain
Your taxable gain is not simply the difference between what you paid and what you sold for. Your cost basis includes the original purchase price plus certain costs: closing costs you paid when buying (title insurance, transfer taxes, recording fees), the cost of capital improvements you have made (renovations, additions, new roof — not routine maintenance), and any depreciation you need to recapture if you used part of the home for business.
Your net sale proceeds are the sale price minus selling costs: escrow fees, title insurance, transfer taxes, and any other closing costs you paid as the seller. The difference between your adjusted cost basis and your net proceeds is your gain.
Keep records of all home improvements. Receipts, contracts, and invoices for capital improvements increase your cost basis and reduce your taxable gain. Qualifying capital improvements include kitchen and bathroom remodels, room additions, new roofing, new HVAC systems, new windows, landscaping (permanent installations, not routine mowing), adding a deck or patio, and installing a pool or solar panels. Routine maintenance and repairs — painting, fixing a leaky faucet, replacing a broken window — do not count because they do not add value or extend the useful life of the property.
When You Might Owe Taxes
You may owe capital gains tax if your profit exceeds the exclusion amount ($250,000 single, $500,000 married filing jointly), if you have not lived in the home for at least 2 of the last 5 years, if the home was not your primary residence (investment property, rental, or second home), or if you have already used the exclusion on another home sale within the past 2 years.
If you do owe tax, the rate depends on your income and how long you owned the property. Long-term capital gains rates (for assets held more than a year) are 0%, 15%, or 20% depending on your taxable income bracket. The 0% rate applies to single filers with taxable income under approximately $47,000 and joint filers under approximately $94,000 (these thresholds adjust annually for inflation). Most homeowners with a taxable gain fall into the 15% bracket.
California also taxes capital gains as ordinary income at rates up to 13.3%, so California sellers may owe a significant state tax bill in addition to federal. Other states vary — some have no state income tax at all, while others tax capital gains at reduced rates. Factor state taxes into your planning.
Partial Exclusion Rules
If you do not meet the full 2-year residency or ownership requirement, you may still qualify for a partial exclusion if you sold the home due to a change in employment, health reasons, or certain other unforeseen circumstances. The IRS defines unforeseen circumstances to include job relocation (at least 50 miles farther from the home), a change in employment status, divorce or legal separation, multiple births from the same pregnancy, and certain natural or man-made disasters.
The partial exclusion is prorated based on the fraction of the 2-year requirement you met. For example, if you lived in the home for 12 months (half of the 24-month requirement) before relocating for work, you can exclude up to half the maximum — $125,000 if single or $250,000 if married filing jointly.
The partial exclusion also applies if you used the full exclusion on another home sale within the past 2 years and are selling again due to qualifying circumstances. The proration is based on the time since your last exclusion relative to the 2-year waiting period.
Depreciation Recapture
If you used any part of your home for business — a home office, a rental room, or a portion of the property rented to tenants — and claimed depreciation deductions on your tax returns, you must "recapture" that depreciation when you sell. Depreciation recapture is taxed at a rate of 25%, regardless of your regular income tax bracket.
For example, if you claimed $20,000 in depreciation deductions over several years for a home office, you owe $5,000 in depreciation recapture tax at sale (25% of $20,000). This tax applies even if your overall gain falls within the Section 121 exclusion — the exclusion does not cover depreciation recapture.
If you had a home office but used the simplified method (the flat $5-per-square-foot deduction), you did not claim actual depreciation and do not have recapture to worry about. This is one reason many tax advisors recommend the simplified method for home offices in properties you plan to sell.
1031 Exchanges for Investment Properties
If the property you are selling is an investment property or rental — not your primary residence — a 1031 exchange (also called a like-kind exchange) allows you to defer capital gains taxes by reinvesting the proceeds into another qualifying investment property. The Section 121 primary residence exclusion and the 1031 exchange serve different purposes and apply to different types of property.
A 1031 exchange has strict timing requirements: you must identify a replacement property within 45 days of closing on the sale, and you must close on the replacement property within 180 days. The exchange must be facilitated by a qualified intermediary — a third party who holds the sale proceeds in escrow until they are used to purchase the replacement property. You cannot touch the funds yourself at any point, or the exchange is disqualified.
The replacement property must be of equal or greater value to defer the full gain. If you buy a less expensive property, you owe taxes on the difference (called "boot"). You can exchange into multiple properties, exchange into a different type of investment property (residential rental into commercial, for example), and even do a reverse exchange where you buy the replacement first — though these are more complex.
Note that 1031 exchanges do not apply to primary residences. However, if you converted a rental property to your primary residence and lived in it for at least 2 of the last 5 years, you may be able to use the Section 121 exclusion instead, with some limitations on the gain attributable to periods of non-qualified use.
Installment Sales
If you sell your home through seller financing, where the buyer makes payments over time rather than paying the full purchase price at closing, the IRS treats this as an installment sale. Under installment sale rules, you recognize the gain proportionally as you receive payments, rather than all at once in the year of sale.
This can be advantageous for sellers whose gain exceeds the Section 121 exclusion amount — by spreading the gain over multiple tax years, you may stay in a lower tax bracket each year and pay a lower effective rate. However, you must also report the interest income you receive on the installment note as ordinary income each year.
Installment sale reporting is done on IRS Form 6252. The calculations involve your gross profit percentage (the ratio of your total gain to the total contract price), which determines how much of each payment is taxable gain versus a tax-free return of your basis. This is an area where working with a CPA is strongly recommended, as the rules are nuanced and mistakes can trigger penalties.
State Transfer Taxes
Separate from income tax, most states and some cities charge a transfer tax when real property changes hands. In California, the county transfer tax is $1.10 per $1,000 of the sale price. Some cities impose additional transfer taxes — Los Angeles charges $4.50 per $1,000, and several Bay Area cities have even higher rates. A handful of California cities have recently enacted mansion taxes on properties selling above certain thresholds, adding further complexity.
Transfer taxes are typically paid at closing and deducted from the seller's proceeds. They are not income taxes and are not affected by the capital gains exclusion. Budget for them as a closing cost when estimating your net proceeds from the sale.
Reporting Requirements and Tips for Tax Season
You will receive an IRS Form 1099-S from the title company or closing agent reporting the gross sale price. Even if your gain is fully excluded under Section 121, you should report the sale on your tax return using Schedule D and Form 8949. If the gain is within the exclusion limits, you report it and claim the exclusion — you do not owe tax, but the IRS expects to see the transaction. In some cases, if you meet all Section 121 requirements and the title company has certified this, they may not issue a 1099-S, but it is still good practice to report the sale.
Gather the following documents for your tax preparer: the original purchase closing statement (HUD-1 or closing disclosure), the sale closing statement, receipts and invoices for all capital improvements, depreciation schedules if you claimed a home office or rental use, and records of any previous Section 121 exclusions you have claimed.
If your situation is complicated — you rented out the home for a period, you used part of the home for a business, you converted the property between investment and personal use, you are going through a divorce, your gain exceeds the exclusion, or you are considering a 1031 exchange — consult a tax professional before closing. The cost of an hour or two with a CPA ($200-$500) is far less than the cost of a tax mistake on a six- or seven-figure transaction. A good CPA can also help you structure the timing of your sale to minimize your tax liability across tax years.
Ready to List Your Home?
List your home for $499. Get MLS access in participating states. AI pricing, DocuSign, smart lock showings, and escrow management — all included.