Selling and buying a house can affect your taxes through capital gains exclusions, deductions for expenses, and reporting requirements, depending on your home's use and profit.
How does selling and buying a home affect your taxes?
Selling and buying a home affects your taxes primarily through capital gains exclusions and deductions for expenses like mortgage interest and property taxes.
Here’s the thing: the tax impact depends on whether you’re dealing with your primary home or an investment property. If it’s your main residence and you’ve lived there at least two of the past five years, you can exclude up to $250,000 of profit ($500,000 if married). That’s a nice chunk of change off your taxable income.
Now, buying a new place doesn’t give you a direct tax break, but you can still benefit from deducting mortgage interest and property taxes. Just remember, if you sell a property that isn’t your primary home—like a vacation house or rental—any profit gets taxed as a capital gain. Short-term gains (held less than a year) get taxed at your regular income rate, while long-term gains (held more than a year) get a lower tax rate. Honestly, this is one of those cases where the IRS rewards patience.
How do I avoid paying taxes when I sell my house?
You can avoid paying taxes on your home sale by using the IRS primary residence exclusion, which lets you exclude up to $250,000 ($500,000 for married couples) of profit from taxable income.
This exclusion works if you’ve lived in the home for at least two of the past five years. Another smart move? Offset capital gains with losses from other investments. For rental or investment properties, a 1031 exchange lets you defer taxes by reinvesting the proceeds into a similar property within 180 days.
Don’t overlook home improvements and selling expenses either—those can reduce your taxable gain. Keep meticulous records of every receipt and improvement cost. (Seriously, the IRS loves documentation.) And if you’re unsure, chat with a tax pro. They’ll help you qualify and maximize your savings.
How does selling property affect taxes?
Selling property that isn’t your main home triggers capital gains tax on any profit, up to 15% for long-term gains (held over a year) or your regular income tax rate for short-term gains.
Let’s say you sell a vacation home for a $100,000 profit after three years. You’ll owe capital gains tax on that $100,000. Held it for less than a year? That profit gets taxed as ordinary income, which could bump you into a higher tax bracket. Fun, right?
You’ll need to report the sale on your tax return using Form 8949. If the property was your primary residence for at least two of the past five years, you might still qualify for the exclusion. The IRS isn’t always forgiving, so double-check those rules.
Does buying a house count as a tax break?
Buying a house does not count as a direct tax break, but mortgage interest and property tax deductions can reduce your taxable income.
For 2026, you can deduct mortgage interest on loans up to $750,000 (or $1 million if you locked in your loan before December 15, 2017). Property taxes are deductible too, though there’s a combined $10,000 cap with state and local taxes. Even discount points paid to lower your mortgage rate might be deductible in the year you pay them.
These deductions lower your taxable income, which can shave a few bucks off your tax bill. But here’s the catch: the standard deduction might still make itemizing less worthwhile for some folks. Run the numbers—sometimes it’s not worth the hassle.
How does the IRS know if you sold your home?
The IRS is notified of your home sale through Form 1099-S, filed by your settlement agent or real estate professional, or through matching records from property sales data.
Almost every real estate sale gets reported to the IRS via Form 1099-S. That form includes your name, Social Security number, and sale details. Even if you qualify for the capital gains exclusion, the IRS still gets a copy.
If you skip reporting the sale on your tax return, don’t be surprised if the IRS sends you a notice or audit letter. Always keep copies of your closing documents—you’ll need them to verify the sale price and any exemptions you claim.
Is money from sale of house considered income?
Money from the sale of a house is not automatically considered income, but profit over the IRS exclusion limits may be taxable.
The IRS lets you exclude up to $250,000 ($500,000 for married couples) of profit from the sale of your primary residence, as long as you meet the two-out-of-five-year rule. Exceed that limit or sell a rental property? The excess profit is taxable as capital gains.
For example, selling a rental property for a $200,000 profit means that amount is subject to capital gains tax. Report it using Form 8949 and Schedule D. Don’t try to hide it—the IRS has ways of finding out.
How long must you own a house to avoid capital gains tax?
To avoid capital gains tax on your primary residence, you must own and live in the home for at least two of the past five years before selling.
This rule applies even if you’ve owned the home longer than two years, as long as you meet the residency requirement during the five-year window. Bought a home in 2023 and moved in right away? Selling in 2026 would qualify you for the exclusion.
House-flippers who sell within a year usually owe short-term capital gains tax at their ordinary income rate—ouch. There are exceptions for unforeseen circumstances, like job relocation or health issues, but don’t count on them.
What happens if I sell my house and don’t buy another?
Selling your house without buying another does not automatically trigger a tax bill; you may still qualify for the capital gains exclusion if you meet the IRS requirements.
Profit from the sale is a capital gain, but if the home was your primary residence for two of the past five years, you can exclude up to $250,000 ($500,000 for married couples) from taxable income. Sell a home for a $300,000 profit and qualify for the exclusion? Only $50,000 would be taxable.
If you don’t qualify, the entire profit may be taxable. Renting out your home before selling could also mess with your exclusion eligibility. The IRS doesn’t like gray areas—so check the rules carefully.
What is the 2 out of 5 year rule?
The 2 out of 5 year rule requires you to have lived in your home for at least two of the five years before the sale to qualify for the capital gains exclusion.
This rule applies to your primary residence and lets you exclude up to $250,000 ($500,000 for married couples) of profit. Bought a home in 2022, lived there until 2024, then rented it out? Selling in 2026 still qualifies you because you lived there for two years within the five-year window.
You can use the exclusion once every two years, but not in consecutive years unless you meet specific exceptions. The IRS isn’t big on letting you game the system.
Will I get a 1099 from selling my house?
You will receive a Form 1099-S from your settlement agent or real estate professional if the sale proceeds aren’t fully excluded from taxable income.
Federal tax law requires the IRS to get a copy of Form 1099-S for almost every real estate sale—even if you later qualify for the exclusion. Don’t meet the IRS requirements for excluding the gain? You’ll get the form and must report the sale.
Sell a vacation home for $300,000 with a $50,000 profit? You’ll likely receive a 1099-S. Keep it for your records—you’ll need it to file accurately.
Do seniors have to pay capital gains?
Seniors do not get an automatic exemption from capital gains tax when selling a home; they pay tax on profits just like everyone else.
Age alone doesn’t change the capital gains rules. But if a senior meets the IRS’s two-out-of-five-year rule, they can still exclude up to $250,000 ($500,000 for married couples) of profit. A 70-year-old selling a home they’ve lived in for 10 years? No tax on the first $250,000 of profit.
Exceed the exclusion limit? The excess gets taxed at the applicable capital gains rate. Always run the numbers—sometimes it pays to consult a tax advisor.
At what age can you sell your home and not pay capital gains?
There is no specific age at which you can sell your home and avoid capital gains tax; the IRS exemption depends on residency, not age.
The old over-55 home sale exemption? Gone since 1997. Today, the rules depend on residency, not age. Live in your home for two of the past five years? You can exclude up to $250,000 ($500,000 for married couples) of profit.
A 65-year-old selling a home they’ve lived in for three years? No tax on the first $250,000 of profit. Miss the residency requirement? The full profit is taxable. The IRS doesn’t care how old you are—just whether you meet the rules.
What can I write off as a homeowner?
As a homeowner, you can write off mortgage interest, property taxes (up to $10,000 combined with state/local taxes), discount points, and home office expenses.
Mortgage interest on loans up to $750,000 is deductible, and property taxes are deductible if you itemize. Discount points paid to lower your mortgage rate may also be deductible in the year you pay them.
Work from home? Deduct a portion of your mortgage interest, utilities, and repairs based on your home office’s square footage. Home improvements that boost your home’s value—like a new roof—aren’t immediately deductible but can reduce capital gains tax when you sell. Keep those receipts!
Are realtor fees tax deductible?
Realtor fees are not typically tax-deductible for your primary home sale, but they may be deductible for rental properties.
Sell your primary residence? The realtor fees reduce your taxable gain but aren’t deductible as a separate expense. Sell a rental property? Those fees are deductible as a rental expense on Schedule E.
Commissions paid to agents managing your rental property are also deductible. Always track every fee—documentation is your best friend when tax time rolls around.
Is there a tax credit for buying a home in 2020?
There was no federal tax credit for buying a home in 2020, but many states offer first-time home buyer programs with tax credits or benefits.
The federal first-time home buyer tax credit expired in 2010, so no luck there in 2020. But many states still offer help. California, New York, and Texas, for example, have programs with tax credits, down payment assistance, or lower interest rates for first-time buyers.
Check out the FHA loan program—it lets buyers put down as little as 3.5% with competitive rates. Your state’s housing finance agency might have even better deals. Always research what’s available as of 2026—programs change all the time.
Edited and fact-checked by the FixAnswer editorial team.