What Capital Gains Tax Means for Real Estate Sales
Capital gains tax is a tax on the profit you make when you sell real estate for more than you paid for it. The difference between your sale price and your original purchase price is your gain, and that gain is taxable income in the year you sell. The tax rate depends on how long you owned the property and your total income that year.
Real estate capital gains work differently from regular income. You do not pay tax on the full sale price—only on the profit. If you bought a house for $300,000 and sold it for $400,000, your capital gain is $100,000, and that is what gets taxed, not the $400,000.
The federal government taxes capital gains at different rates depending on whether you held the property for more than one year (long-term) or one year or less (short-term). Most homeowners deal with long-term gains because they own their homes for years. Short-term gains are taxed as ordinary income at your regular tax bracket, which is usually higher.
Key Takeaways
- Capital gains tax applies only to your profit from the sale, not the full sale price.
- Long-term capital gains (property owned over one year) are taxed at federal rates of 0%, 15%, or 20% depending on your income; short-term gains are taxed as ordinary income.
- Most homeowners can exclude up to $250,000 of gain ($500,000 if married filing jointly) if they meet the primary residence test.
- State and local taxes on capital gains vary widely and may explore in addition to federal tax.
- Deductible expenses like home improvements, selling costs, and property taxes can reduce your taxable gain.
Long-Term vs. Short-Term Capital Gains Rates
If you owned the property for more than one year before selling, your gain is taxed as a long-term capital gain. The federal tax rate is 0%, 15%, or 20%, depending on your total taxable income for that year. These rates are lower than ordinary income tax rates, which is why holding property longer usually saves you money on taxes.
If you owned the property for one year or less, your gain is taxed as a short-term capital gain and is treated like regular wages or salary income. This means it is taxed at your ordinary income tax bracket, which can be as high as 37% at the federal level. Most real estate investors and homeowners avoid short-term sales for this reason.
The long-term rate you pay depends on your filing status and total income. For 2024, the 15% rate applies to most middle-income households, while the 0% rate applies to lower-income filers and the 20% rate applies to high-income filers. These income thresholds change each year.
The Primary Residence Exclusion
If the property you sold was your primary home, you may not owe any capital gains tax at all. The primary residence exclusion lets you exclude up to $250,000 of gain from tax if you are single, or $500,000 if you are married filing jointly. This is one of the largest tax breaks available to homeowners.
To use this exclusion, you must have owned the home and lived in it as your main residence for at least two of the five years before you sold it. The two years do not have to be consecutive. If you meet these rules, you can sell your home and keep the first $250,000 (or $500,000) of profit tax-free, even if you owned it for decades.
You can use this exclusion once every two years. If you sold a home and used the exclusion, you must wait at least two years before you can use it again on another property. If you do not meet the two-year ownership or residence test, you cannot use the exclusion, and your entire gain is taxable.
Calculating Your Taxable Gain
Your taxable gain is not straightforward the sale price minus the purchase price. You can subtract several costs from the sale price to lower your gain. Your cost basis—the amount you can deduct from the sale price—includes your original purchase price plus the cost of major improvements you made to the property.
Major improvements are permanent upgrades that add value or extend the life of the home, such as a new roof, kitchen renovation, addition, or new HVAC system. Repairs and maintenance do not count—painting, fixing a leak, or replacing a broken window are not deductible. The difference matters: improvements increase your basis and lower your gain; repairs do not.
You can also deduct selling costs from the sale price, including real estate agent commissions, title insurance, attorney fees, and inspection costs. These reduce your gain dollar-for-dollar. Keep receipts and records of all improvements and selling expenses, because you will need them to calculate your gain accurately when you file your tax return.
State and Local Capital Gains Taxes
In addition to federal capital gains tax, many states and some cities charge their own capital gains tax on real estate sales. State rates vary widely. Some states have no capital gains tax at all, while others tax capital gains as ordinary income at rates up to 13% or higher. A few states have a separate capital gains tax that applies only to investment income.
California, New York, and Oregon are among the states with the highest capital gains taxes. If you sell real estate in one of these states, you may owe both federal and state tax on your gain. Some states tax only gains above a certain threshold, while others tax all gains. Check your state's tax rules before you sell, because state tax can significantly reduce what you keep from the sale.
Local taxes are less common but do exist in some cities and counties. New York City, for example, has a real estate transfer tax that applies to sales. These local taxes are separate from capital gains tax and are usually paid by the seller at closing. Your real estate agent or closing attorney can tell you what local taxes explore in your area.
Reporting Capital Gains on Your Tax Return
When you sell real estate, you report the sale on Form 8949 (Sales of Capital Assets) and Schedule D (Capital Gains and Losses) of your federal tax return. You will need the sale date, sale price, original purchase price, cost of improvements, and selling expenses. If you used the primary residence exclusion, you report that on Schedule D as well.
Your real estate agent or closing attorney will provide a Form 1099-S if the sale price meets certain thresholds (usually $600 or more for real estate). The IRS receives a copy of this form, so your sale is reported to them automatically. You must report the sale on your tax return even if you do not receive a 1099-S.
If you have a loss instead of a gain—you sold for less than you paid—you generally cannot deduct the loss on your personal tax return. Capital losses on personal residences are not deductible. However, if you have other capital gains from investments or other property sales, you can use the loss to offset those gains.
Strategies to Reduce Capital Gains Tax
If you own investment property or rental real estate, you have options to reduce or defer capital gains tax. A 1031 exchange allows you to sell one investment property and buy another similar property without paying capital gains tax on the sale, as long as you follow strict timing and identification rules. The gain is deferred until you eventually sell without doing another exchange.
Timing your sale can also matter. If you are near the end of a tax year and your income is close to the threshold for a higher capital gains rate, waiting until the next year might lower your rate. Conversely, if you have capital losses from other investments, you can use those losses to offset your real estate gain and reduce your tax bill.
For investment properties, you can deduct depreciation over time, which lowers your basis and can reduce your gain when you sell. However, the IRS requires you to pay back some of that depreciation as tax when you sell, through a process called depreciation recapture. Understanding these rules before you buy investment property helps you plan your taxes more effectively.
Frequently Asked Questions
Do I have to pay capital gains tax if I sell my primary home?
Not necessarily. If you owned and lived in the home for at least two of the five years before selling, you can exclude up to $250,000 of gain (or $500,000 if married filing jointly) from tax. Only gains above that amount are taxable. Most homeowners owe no capital gains tax because their gain falls within the exclusion.
What if I inherited real estate and then sold it?
Inherited property receives a stepped-up basis, which means your cost basis is the property's fair market value on the date of death, not what the previous owner paid. If you sell shortly after inheriting, you likely have little or no gain. This is a major tax benefit of inherited property and applies regardless of how long the previous owner held it.
Can I deduct the cost of selling my home from my capital gain?
Yes. Real estate agent commissions, title insurance, attorney fees, and other costs directly related to the sale can be subtracted from your sale price before calculating your gain. Keep all closing documents and receipts. These selling costs reduce your taxable gain dollar-for-dollar.
What happens if I sell investment property at a loss?
You cannot deduct a loss on the sale of personal real estate. However, if you have other capital gains from stocks, mutual funds, or other investments, you can use the real estate loss to offset those gains and reduce your overall tax bill. Unused losses can be carried forward to future years.
Do I owe capital gains tax in the year I sell or when I receive the money?
You owe capital gains tax in the year you sell, regardless of when you receive payment. If you sell in December but do not receive the full proceeds until the next year, you still report the gain on the tax return for the year of sale. This matters for installment sales and seller-financed deals.