Your Free Guide to Capital Gains Tax and Real Estate Sales
Understanding Capital Gains and How They're Taxed
When you sell a piece of real estate for more than you paid for it, that profit is called a capital gain. The IRS treats capital gains as income, which means you typically owe federal taxes on that profit. The amount of tax depends on how long you owned the property and your overall income level.
Learn About Chapter 11 Bankruptcy Filing Process →
Capital gains are divided into two categories: short-term and long-term. Short-term capital gains occur when you sell property you've owned for one year or less. These gains are taxed at the same rate as ordinary income, which ranges from 10% to 37% depending on your tax bracket. Long-term capital gains happen when you sell property you've owned for more than one year. These receive preferential tax treatment, with rates of 0%, 15%, or 20% depending on your income level.
As an example, suppose you bought a rental property for $200,000 in 2019 and sold it for $280,000 in 2024. Your capital gain would be $80,000. Because you held it for more than one year, it qualifies as a long-term gain. Depending on your filing status and total income, you might owe 15% tax on that gain, which would be $12,000. If you had sold it within a year of purchase, you would have owed taxes at your ordinary income rate, which could have been significantly higher.
The tax basis—the original purchase price plus certain improvements—also matters. You can reduce your capital gain by adding the cost of major improvements like a new roof, foundation repairs, or additions. However, routine maintenance like painting or landscaping doesn't count as an improvement. Understanding your basis helps you calculate your actual gain accurately.
Practical Takeaway: When planning a real estate sale, calculate how long you've owned the property. If you're close to the one-year mark, waiting a few months could reduce your tax burden significantly by qualifying you for long-term capital gains rates instead of short-term rates.
The Primary Residence Exclusion: A Major Tax Break
The IRS offers a substantial tax break for people who sell their primary home. If you meet certain conditions, you can exclude up to $250,000 of capital gains from your taxable income if you're filing as single, or $500,000 if you're married filing jointly. This means many homeowners pay zero federal tax on their home sale profits.
Understanding Your State Farm Insurance Card Information →
To qualify for 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 the sale. The two years don't need to be consecutive, and you can have brief absences for vacation or temporary work assignments without losing the benefit. For example, if you bought a home in 2015, lived in it through 2024, and sold it in 2024, you easily meet the ownership and residence requirements.
Here's a practical example: Maria bought her house for $300,000 in 2018. She lived in it as her primary home for six years and sold it for $500,000 in 2024. Her capital gain is $200,000. Because she meets the ownership and residence requirements and is filing as single, she can exclude $250,000 from taxation. Since her gain is only $200,000, she owes no federal capital gains tax on this sale. If she were married filing jointly, the $500,000 exclusion would still cover her entire $200,000 gain.
Some situations can affect this exclusion. If you used part of your home for business purposes or rented out a portion of it, you may only be able to exclude the portion that was your primary residence. If you sold another home within the two years before this sale, you generally cannot use the exclusion. Additionally, if you inherited the property, you typically cannot use the exclusion because the ownership period requirement applies to you personally.
State taxes also matter. While this exclusion applies to federal taxes, many states offer similar exclusions for primary residence sales. Some states exclude gains entirely, while others have smaller thresholds. Researching your state's rules can reveal additional tax savings.
Practical Takeaway: Before selling your primary home, verify that you've lived in it for at least two of the past five years. If you haven't yet, delaying the sale by a few months or years could result in a massive tax savings—potentially thousands of dollars in federal taxes.
Investment and Rental Property Sales
Selling investment properties or rental homes involves different tax treatment than selling your primary residence. These properties don't qualify for the $250,000 or $500,000 primary residence exclusion. Instead, all capital gains from investment property sales are taxable, though long-term gains still receive preferential tax rates if you've owned the property more than one year.
Get Free Information About Avant Credit Card Customer Service →
Additionally, rental properties are subject to depreciation recapture. When you own a rental property, you've likely deducted depreciation on your tax returns each year—the IRS assumes the building loses value over time. When you sell the property, the IRS recaptures those depreciation deductions you've taken. This recaptured depreciation is taxed at 25%, regardless of your long-term capital gains rate. This can significantly increase your overall tax bill on a rental property sale.
Consider this example: You bought a rental house for $300,000 in 2014 and sold it for $425,000 in 2024. Your capital gain is $125,000. Over 10 years, you deducted $75,000 in depreciation on your tax returns. When you sell, $75,000 of your gain is subject to the 25% recapture tax ($18,750 owed), and the remaining $50,000 is taxed at the long-term capital gains rate. If your long-term rate is 15%, you owe $7,500 on that portion. Your total capital gains tax would be $26,250.
You can offset capital gains from property sales by realizing capital losses from other investments. If you sold stocks or other property at a loss during the year, you can use those losses to reduce your capital gains. If you have more losses than gains, you can deduct up to $3,000 of net losses against ordinary income in a single year, with excess losses carried forward to future years.
Some investors use a 1031 exchange to defer capital gains taxes. This allows you to sell an investment property and purchase another similar property without immediately paying capital gains tax, as long as you follow specific timing rules and requirements. This strategy can help grow your real estate portfolio while deferring taxes, though the taxes aren't permanently eliminated.
Practical Takeaway: When planning to sell a rental property, factor in depreciation recapture taxes at 25% on top of your long-term capital gains tax rate. This total can reach 40% or more of your gain, so it's important to set aside funds and plan accordingly.
Calculating Your Actual Capital Gain
Many people make mistakes when calculating capital gains because they don't properly account for their tax basis—the starting value used to calculate their gain. Simply subtracting the purchase price from the sale price isn't always accurate. You need to include all costs associated with acquiring and selling the property.
Learn About Target Credit Card Payment Options →
Your purchase basis includes the property's purchase price plus closing costs paid at purchase, such as title insurance, attorney fees, appraisal fees, and certain inspection costs. For example, if you purchased a property for $200,000 and paid $6,000 in closing costs, your basis is $206,000, not $200,000. When you sell, you reduce your gain by that additional $6,000.
Capital improvements also increase your basis. These are upgrades that add value to the property, prolong its life, or adapt it to new uses. Installing new windows, replacing a roof, adding a deck, finishing a basement, installing a new heating system, or replacing the foundation all count as capital improvements. However, repairs and maintenance do not. Fixing a leak, repainting, or replacing broken items are repairs that don't increase basis. This distinction matters significantly because the average homeowner can spend $10,000 to $30,000 on improvements over years of ownership.
When you sell, your adjusted sales price subtracts selling costs from the gross sale price. Real estate agent commissions typically represent 5-6% of the sale price, and you can deduct these from your proceeds. You can also deduct other selling costs
This guide is general information, not professional advice. Offices and providers set their own rules, so check the details with the one you’re seeing. See our Editorial Policy.