Capital gains tax is a federal tax on profit you make when you sell real estate or other property. When you buy a house, rental property, or land and later sell it for more than you paid, that profit is called a capital gain. The IRS taxes this profit as income, though often at different rates than your regular wages.
Free Guide to Citibank Credit Card Options →
Real estate capital gains work differently than other types of income. If you own a property for more than one year before selling, you generally qualify for long-term capital gains rates, which are typically lower than short-term rates. Short-term gains (property held one year or less) are taxed as ordinary income at your regular tax bracket rate.
The tax applies to investment properties, rental homes, vacation homes, and sometimes even your primary residence—though primary residences have special rules. When calculating your gain, you subtract your original purchase price (called your basis) and certain improvements from your sale price. This difference is your taxable gain.
Capital gains tax rates at the federal level are 0%, 15%, or 20%, depending on your income level and filing status. These rates change yearly based on inflation adjustments. State and local taxes may also apply to capital gains in some areas, adding to your total tax burden.
Practical takeaway: Understanding whether your gain is short-term or long-term helps you estimate your tax burden. A property held over one year typically results in lower federal tax rates than a property sold within one year.
Calculating capital gains requires three main pieces of information: your adjusted basis, your sale price, and any costs involved in selling. Your basis typically starts with what you paid for the property, but it can be adjusted upward or downward based on various factors.
Get Your Free Banking Routing Number Guide →
Your adjusted basis includes your original purchase price plus the cost of improvements you made to the property. Improvements are upgrades that add value or extend the property's useful life, such as adding a new roof, replacing the foundation, installing new plumbing, or building an addition. Regular maintenance and repairs do not count toward basis—these are not deductible for capital gains purposes.
To find your adjusted basis, gather these documents: your original purchase deed and closing statement, receipts and invoices for any improvements, records of property tax payments, and documentation of any casualty losses or depreciation you claimed on tax returns. If you inherited the property, your basis may have been "stepped up" to the property's fair market value at the date of death, which can significantly reduce your taxable gain.
Once you have your adjusted basis, subtract it from your net sale proceeds. Net sale proceeds means your sale price minus real estate commissions, closing costs, and other selling expenses. The result is your capital gain (or loss if the number is negative).
Example: You bought a rental house for $200,000. You spent $50,000 on improvements over the years. Your adjusted basis is $250,000. You sell the house for $400,000. Your real estate commission and closing costs total $30,000. Your net proceeds are $370,000. Your capital gain is $370,000 minus $250,000, which equals $120,000.
Practical takeaway: Keep detailed records of your original purchase, all improvements, and selling costs. These documents reduce your taxable gain and are essential if the IRS ever questions your return.
The primary residence exclusion is one of the most valuable tax breaks in the real estate code. If you meet certain requirements, you can exclude up to $250,000 of capital gain from taxation if you are single, or up to $500,000 if you are married filing jointly. This means you owe no federal capital gains tax on that amount.
Learn How Facebook Pay Works For Sending Money →
To use this exclusion, you must meet two tests: the ownership test and the use test. For the ownership test, you must have owned the property for at least two of the five years before the sale. For the use test, you must have lived in the property as your main home for at least two of the five years before the sale. These two years do not have to be consecutive, and they do not have to be the same two years.
A primary residence is the home where you spend most of your time. It is where you typically sleep, eat, and maintain your household. You can only claim this exclusion once every two years. If you claimed it on another property within the past two years, you cannot claim it again until two years have passed since your last use of the exclusion.
Example: You bought a house in 2015 and lived there until 2022. You then moved to another state and rented out the house from 2022 to 2024. You sell in 2024. You owned the property for nine years and lived there for seven years, so you meet both tests. You can exclude up to $250,000 of gain (or $500,000 if married filing jointly) from taxation.
There are exceptions to this exclusion. If you did not own or use the property for the required two years due to a job change, health condition, or other unforeseen circumstance, you may be able to claim a reduced exclusion. Additionally, if you used part of your home for business or rented it out for part of your ownership period, some of your gain may be taxable.
Practical takeaway: If you are selling your primary residence, document that you lived there for at least two of the past five years. This single rule can save you thousands in federal taxes on your gain.
Rental properties and investment real estate do not receive the primary residence exclusion. This means you owe capital gains tax on the full profit from selling a rental property, subject to your federal tax bracket. However, understanding depreciation and cost basis helps reduce the taxable gain.
Free Guide to State Farm Motorcycle Insurance Options →
When you own a rental property, you can deduct depreciation each year as an expense on your tax return. Depreciation represents the estimated wear and tear on the building itself (not the land). For residential rental property, you depreciate the building cost over 27.5 years. This reduces your taxable income each year you own the property.
However, depreciation recapture creates a tax cost when you sell. Any depreciation you deducted reduces your basis, which increases your capital gain. Additionally, the IRS taxes depreciation recapture at a rate of 25% federally, which is higher than standard long-term capital gains rates. This means some of your gain may be taxed at 25% rather than 15% or 20%.
Example: You bought a rental house for $300,000 (building only; land was $100,000). Over 20 years, you deducted $218,000 in depreciation. Your adjusted basis is now $82,000. You sell for $500,000. Your capital gain is $418,000. Of this, $218,000 is depreciation recapture taxed at 25%, and $200,000 is long-term capital gain taxed at your regular rate (0%, 15%, or 20%).
State and local capital gains taxes may also apply to rental properties. Some states tax capital gains as regular income, while others have special capital gains rates or no capital gains tax at all. This can significantly affect your total tax bill.
Practical takeaway: When buying a rental property, keep careful records of your depreciation deductions. Understanding that depreciation recapture is taxed at 25% helps you estimate your true tax cost when you sell.
Timing your real estate sale involves understanding how holding period length affects your tax rate. Generally, holding property for more than one year results in long-term capital gains treatment, which is taxed at lower federal rates (0%, 15%, or 20%) compared to short-term gains taxed as ordinary income. This alone can save thousands of dollars in taxes.
Learn About the TAZ Credit Card →
Your income level determines which long-term capital gains rate applies to you. For 2024, single filers with taxable income up to $47,025 pay 0% federal capital gains tax. Those earning between $47,025 and $518,900 pay 15%. Those earning over $518,900 pay 20%. These thresholds adjust yearly for inflation. Married f
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.