Capital gains tax is a federal tax you may owe when you sell property for more than you paid for it. The difference between what you paid (your cost basis) and what you sold it for (the sale price) is called your capital gain. The Internal Revenue Service (IRS) taxes this gain at different rates depending on how long you owned the property and your income level.
Learn About Collections on Your Credit Report →
There are two types of capital gains: short-term and long-term. If you own property for one year or less before selling it, any profit is considered a short-term capital gain. The IRS taxes short-term gains at your ordinary income tax rate, which can range from 10% to 37% depending on your total income. Long-term capital gains apply when you own the property for more than one year. These gains receive preferential tax treatment, with rates of 0%, 15%, or 20% for most taxpayers, depending on income level.
For example, if you buy a house for $200,000 and sell it five years later for $250,000, your capital gain is $50,000. If you're in the 15% long-term capital gains bracket, you would owe $7,500 in federal capital gains tax on that profit. However, you may also owe state income tax depending on where you live, and there are several important exceptions and deductions that can reduce or eliminate this tax.
Understanding whether your gain is short-term or long-term is one of the first steps in calculating your tax responsibility. This distinction alone can mean the difference between owing 37% of your gain versus 20% of your gain in federal taxes.
Practical takeaway: Write down the date you purchased your property and the date you sold it. Count whether it's been more than 12 months. This determines whether your gain gets favorable long-term treatment or is taxed at higher short-term rates.
One of the most valuable tax breaks available is the primary residence exclusion. This rule allows you to exclude up to $250,000 of capital gains from taxation if you're single, or up to $500,000 if you're married filing jointly. This means many homeowners pay zero federal capital gains tax when they sell their primary home, even if they made a substantial profit.
Learn About Checking Accounts and Banking Options →
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 the five years before the sale. Third, you cannot have used this exclusion on another home within the two years before the current sale. These requirements are straightforward for most longtime homeowners.
Consider a real example: A couple buys a home for $300,000, lives in it for 10 years, and sells it for $550,000. Their capital gain is $250,000. Because they're married filing jointly, they can exclude the entire $250,000 from taxation. Their federal capital gains tax is zero. If they were single, they could exclude $250,000, but would owe taxes on the remaining $0 (since the gain equals the exclusion). If the same single person had a $400,000 gain, they would exclude $250,000 and owe federal capital gains tax only on the remaining $150,000.
The primary residence exclusion applies to houses, condominiums, townhouses, and houseboats with sleeping quarters, kitchen, and bathroom. It does not apply to investment properties, vacation homes you don't live in most of the year, or property used for business purposes.
If you have lived in your home for less than two years due to a job change, health condition, or unforeseen circumstance, you may still be able to claim a reduced exclusion. This is one area where understanding the rules can save thousands in taxes.
Practical takeaway: If you own a primary residence, document your ownership and residency dates. For most homeowners, this single exclusion eliminates capital gains tax entirely, regardless of how much profit you made.
Your cost basis is the starting point for calculating capital gains. It's not simply what you paid for the property. It includes your purchase price plus certain investments you made in the property over time. Understanding what increases your basis can significantly reduce your taxable gain.
Learn About Westlake Financial Payment Methods and Timing →
Your initial basis includes the purchase price plus closing costs such as title insurance, transfer taxes, legal fees, and survey costs. If you borrowed money to purchase the property, the loan amount does NOT increase your basis—you paid for it with borrowed funds. However, if you paid points to obtain a mortgage, those points may be deductible and can be added to your basis.
Capital improvements add to your basis. These are significant upgrades that extend your property's useful life or increase its value. Examples include a new roof, finished basement, deck, swimming pool, major kitchen remodel, new HVAC system, or new windows. However, repairs and maintenance do not increase basis. Painting, patching the roof, or replacing broken fixtures are repairs, not improvements. The distinction matters because basis affects your taxable gain.
Let's use an example: You purchase a home for $250,000 with closing costs of $8,000 (basis: $258,000). Over the years, you add a deck for $15,000, upgrade the kitchen for $30,000, and install a new roof for $12,000. Your new basis is $315,000 ($258,000 + $15,000 + $30,000 + $12,000). When you sell for $500,000, your capital gain is $185,000, not $242,000. That $57,000 difference in basis reduces your taxable gain significantly.
If you inherited property, inherited property receives a "step-up in basis." This means your basis becomes the fair market value on the date of the person's death, not what they paid for it years earlier. This can eliminate or greatly reduce capital gains tax for inherited properties.
Practical takeaway: Keep records of all major home improvements: receipts, contracts, and photos. Create a spreadsheet listing each improvement, its cost, and the year completed. This documentation will reduce your taxable capital gain when you sell.
Federal capital gains tax is only part of the picture. Most states also tax capital gains, and the rates vary dramatically by location. Some states have no capital gains tax at all, while others tax capital gains as ordinary income at rates up to 13%. Where you live and where your property is located can significantly affect your total tax bill.
Free Guide to Nordstrom Credit Card Options →
States with no capital gains tax include Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming. If you sell property in one of these states, you owe no state capital gains tax. However, if you live in a high-tax state like California (13.3%), New York (10.9%), or New Jersey (10.75%), your state tax can match or exceed your federal tax burden.
Nine states—Colorado, Connecticut, Delaware, Illinois, Iowa, Kansas, Maine, Maryland, and Vermont—have recently enacted capital gains taxes or increased rates. The rates and rules in these states are evolving, so current information is important. Some states tax capital gains at a flat rate (like Vermont's 5.8%), while others tax them as ordinary income.
The primary residence exclusion applies only to federal taxes. Most states do not offer an equivalent exclusion for primary residence sales, though a few states provide partial relief. This means you might owe zero federal tax but substantial state tax on the same property sale.
For example, a California resident sells a primary home with a $300,000 capital gain. Using the federal $250,000 exclusion, they owe zero federal tax. But California taxes the full $300,000 gain at its top rate of 13.3%, resulting in $39,900 in state tax. Understanding your state's rules before selling can help you plan or explore timing strategies.
Practical takeaway: Look up your state's capital gains tax rate. If you're selling soon, calculate what your state tax bill will be. If your state has a high rate, explore whether moving your primary residence before sale or adjusting sale timing could reduce your total tax burden.
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.