Capital gains tax is a tax you may owe when you sell real estate for more than you originally paid for it. The difference between what you paid (called your basis) and what you sold it for (called the sale price) is your capital gain. If you sell your home, rental property, vacant land, or any other real estate for a profit, the IRS considers this income that may be subject to federal income tax. Many states also charge state capital gains taxes on real estate sales.
Get Your Free Zable Credit Card Information Guide →
Understanding capital gains tax matters because the amount you owe can be substantial. For example, if you bought a home for $300,000 and sold it ten years later for $500,000, your capital gain would be $200,000. Depending on your situation, you could owe federal taxes on part or all of that gain. The tax rate varies based on how long you owned the property and your overall income level.
Capital gains come in two categories: short-term and long-term. Short-term capital gains apply when you own the property for one year or less before selling it. These are taxed as ordinary income at your regular tax rate, which can range from 10% to 37% depending on your income bracket. Long-term capital gains, which apply when you own the property for more than one year, typically have lower tax rates: 0%, 15%, or 20% for federal purposes.
Real estate works differently from stocks or other investments in some ways. Your primary residence (the home you live in) may qualify for a special exclusion that allows you to exclude up to $250,000 of gain if you're single, or $500,000 if you're married filing jointly. This exclusion is one of the biggest tax breaks in the tax code, and many homeowners use it when they sell.
Practical takeaway: Before selling any real estate, calculate what your capital gain would be by subtracting your original purchase price (plus any improvements you made) from the sale price. This number tells you whether capital gains tax will likely affect you and helps you prepare financially for any taxes you might owe.
The length of time you own real estate before selling it directly affects your tax rate. This is one of the most important factors in calculating what you'll owe. The IRS draws the line at exactly one year. If you own the property for one year or less, any gain is considered short-term. If you own it for more than one year, the gain is long-term.
Get Your Free Guide to W-2 Forms and Tax Documents →
Short-term capital gains are taxed as ordinary income. This means they're added to all your other income for the year and taxed at your regular income tax bracket. For 2024, federal tax brackets range from 10% on the lowest income up to 37% on high income. If you're in the 24% tax bracket and have a $50,000 short-term capital gain, you would owe approximately $12,000 in federal capital gains tax on that gain alone (before considering any state taxes).
Long-term capital gains receive preferential tax treatment. Most people pay either 0%, 15%, or 20% on long-term gains, depending on their overall income. This is significantly lower than the ordinary income rates. For example, a person in the 24% ordinary income bracket might pay only 15% on long-term capital gains. If that same person had a $50,000 long-term gain, they would owe about $7,500 in federal capital gains tax instead of $12,000—a savings of $4,500.
The specific long-term rate you pay depends on your filing status and total income. In 2024, for single filers, the 0% rate applies to income up to $47,025, the 15% rate applies from $47,025 to $518,900, and the 20% rate applies to income over $518,900. For married couples filing jointly, these thresholds are roughly double. This means it's possible for some people to pay zero federal capital gains tax on real estate sales if their total income falls within the 0% bracket.
Practical takeaway: If you're planning to sell real estate and the sale would create a significant gain, consider whether you've owned it for more than one year. If you haven't reached the one-year mark yet, waiting those extra months or weeks could substantially reduce your tax burden by moving you into the long-term gains category.
One of the most valuable tax breaks in the U.S. tax code is the primary residence exclusion, sometimes called the Section 121 exclusion. This rule allows homeowners to exclude a portion of their capital gain from taxation when they sell their main home. Single filers can exclude up to $250,000 of gain, while married couples filing jointly can exclude up to $500,000 of gain.
Get Your Free Car Gap Insurance Information Guide →
To use this exclusion, you must meet three requirements. First, you must have owned the home for at least two of the five years before the sale. Second, you must have lived in the home as your primary residence for at least two of those same five years. Third, you cannot have used this exclusion on another home sale within the past two years. These rules are straightforward and apply to the vast majority of homeowners.
Here's how this works in practice. Suppose a married couple bought their home for $400,000 and sold it fifteen years later for $900,000. Their capital gain is $500,000. Without the primary residence exclusion, they would owe federal capital gains tax on $500,000. With the exclusion, they can exclude the entire $500,000 from taxation (since married couples can exclude up to $500,000), so they owe zero federal capital gains tax on the sale. This is an enormous benefit—they could have owed roughly $75,000 in federal taxes without this exclusion.
The exclusion applies to the gain only, not the sale price. If you sold your home for $1 million, you wouldn't exclude $250,000 or $500,000 from the sale price itself. Instead, you'd first calculate your total gain, then subtract the allowed exclusion amount. Any remaining gain is what you would pay tax on.
Some situations prevent you from using this exclusion or limit it. If you've sold another home and used the exclusion within the past two years, you cannot use it again until two years have passed. Additionally, if you primarily used the home for business or rental purposes (even if you lived there part-time), you may not be able to use the full exclusion on the entire gain. However, if you rented out part of your home while living there, you may still qualify for the exclusion on the portion you lived in.
Practical takeaway: If you own a home you live in and are considering selling it, look at your capital gain and compare it to the exclusion amount available to you. Most homeowners find that this exclusion covers their entire gain, meaning they owe no federal capital gains tax on the sale. Consult with a tax professional to confirm your specific situation.
The primary residence exclusion does not apply to investment properties, rental homes, or land held for business purposes. This means owners of these types of real estate must pay capital gains tax on the full amount of any gain when they sell. Understanding how this works is critical for real estate investors and landlords.
Budget Grocery Shopping Guide →
When you sell a rental property, you pay capital gains tax on the difference between your adjusted basis and the sale price. Your basis includes what you originally paid for the property, plus any capital improvements you made (like adding a roof or rebuilding a porch), minus any depreciation deductions you claimed on your taxes over the years. Depreciation is particularly important because while it lowered your taxes during the years you owned the property, it also reduced your basis, which means a larger gain when you sell.
For example, imagine an investor bought a rental house for $250,000. Over ten years of ownership, they claimed $80,000 in depreciation deductions on their taxes. When they sell the property for $350,000, their adjusted basis is $170,000 ($250,000 minus the $80,000 in depreciation). Their capital gain is $180,000 ($350,000 sale price minus $170,000 basis). They would owe capital gains tax on the full $180,000. Additionally, they would owe an extra 3
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.