🥝GuideKiwi
Free Guide

Learn About Capital Gains Tax on Home Sales

Understanding Capital Gains Tax Basics Capital gains tax is a tax on the profit you make when you sell an asset for more than you paid for it. When you sell...

GuideKiwi Editorial Team·

Understanding Capital Gains Tax Basics

Capital gains tax is a tax on the profit you make when you sell an asset for more than you paid for it. When you sell your home, the difference between what you originally paid and the sale price is considered a capital gain. The Internal Revenue Service (IRS) taxes these gains as income, though special rules apply to primary residences.

There are two types of capital gains: short-term and long-term. Short-term capital gains occur when you own an asset for one year or less before selling it. These gains are taxed at your ordinary income tax rate, which can range from 10% to 37% depending on your income level. Long-term capital gains apply when you own the property for more than one year. The long-term capital gains tax rates are generally lower: 0%, 15%, or 20%, depending on your taxable income.

For home sales specifically, the IRS allows many homeowners to exclude a significant portion of their gains from taxation. If you're single, you may exclude up to $250,000 of capital gains. If you're married filing jointly, you may exclude up to $500,000. This exclusion exists because Congress recognized that home values naturally appreciate over time, and the exclusion prevents taxing the entire appreciation.

Understanding how capital gains work on your home sale helps you prepare for potential tax bills and plan your finances accordingly. Many homeowners are surprised to learn they may owe taxes on their home sale, especially if they've owned the property for many years and watched it appreciate significantly in value.

Practical Takeaway: Calculate your home's original purchase price plus any improvements, then subtract this from your sale price. This gives you your potential capital gain before any exclusions apply.

The Primary Residence Exclusion Explained

The primary residence exclusion is one of the most valuable tax breaks available to homeowners. This rule allows you to exclude a substantial amount of capital gains from your taxable income when you sell your home. For single filers, the exclusion is $250,000. For married couples filing jointly, the exclusion is $500,000. This means many homeowners pay zero federal income tax on their home sale profits.

To use this exclusion, you must meet certain requirements. You must have owned the home for at least two of the five years before the sale. You must have lived in the home as your primary residence for at least two of those five years. These don't have to be consecutive years. Additionally, you can only use this exclusion once every two years. If you sold another home and used the exclusion within the past two years, you cannot use it again yet.

The primary residence exclusion applies to various types of homes. A house, condominium, cooperative apartment, or houseboat with sleeping, cooking, and bathroom facilities all count as residences. Mobile homes and houseboats can qualify if they're titled as real property in your state. The IRS considers your primary residence the place where you spend the most time and where your family lives.

Let's look at an example: Maria bought her home in 2000 for $150,000. She lived there continuously and sold it in 2024 for $500,000. Her capital gain is $350,000. Because she's a single filer and used the $250,000 exclusion, her taxable capital gain is only $100,000. This significantly reduces her tax burden compared to if the entire $350,000 were taxable.

Practical Takeaway: Review whether you meet the two-of-five-years ownership and residence test. Keep records showing your primary residence status, including utility bills and address on tax returns from the years you owned the home.

Calculating Your Capital Gain on Home Sale

Calculating your capital gain requires determining your adjusted basis in the home and subtracting it from the sale price. Your basis starts with what you originally paid for the home, including closing costs. This isn't just the down payment—it includes all closing expenses like loan origination fees, title insurance, survey fees, and property transfer taxes paid at purchase.

After determining your initial basis, you add the cost of any capital improvements you made. Capital improvements are permanent upgrades that increase your home's value, extend its useful life, or adapt it to new uses. A new roof, addition, deck, updated electrical or plumbing systems, new windows, kitchen remodel, or bathroom renovation all count as capital improvements. However, routine maintenance like painting, fixing a leaky roof, or replacing worn carpeting does not count. The IRS distinguishes between improvements (which add basis) and repairs (which don't).

Let's work through an example. Tom purchased his home in 1995 for $180,000, including $5,000 in closing costs. His adjusted basis is $185,000. Over the years, he added a $45,000 deck in 2005, replaced the HVAC system for $12,000 in 2015, and updated the kitchen for $35,000 in 2020. His adjusted basis is now $185,000 + $45,000 + $12,000 + $35,000 = $277,000. When he sells the home in 2024 for $525,000, his capital gain is $525,000 - $277,000 = $248,000. Using the primary residence exclusion of $250,000, he would have no taxable capital gain.

Keeping records of improvements is essential. Save receipts, contracts, invoices, and before-and-after photos. These documents prove the cost and nature of the work if the IRS questions your basis calculation.

Practical Takeaway: Create a home improvement spreadsheet listing each project, the date, and the cost. Gather receipts and store them in a safe place. You'll need this information when preparing your tax return for the home sale.

Special Situations and Exceptions

While most homeowners can use the primary residence exclusion, certain situations create exceptions or require special consideration. If you're going through a divorce, the rules are more lenient. You can still use the $250,000 or $500,000 exclusion even if your ex-spouse received the home in the divorce settlement, as long as you owned and lived in it during at least two of the five years before the sale.

If you've used the primary residence exclusion recently, you may not be able to use it again. The two-year rule means you must wait two years from your last home sale using the exclusion before you can use it again. However, there are exceptions. If you sold your previous home because of a work-related move, health condition, or unforeseen circumstance, you may be able to use a reduced exclusion amount and then become eligible for the full exclusion sooner.

Inherited homes have different rules. If you inherit a property and the deceased owner lived there, you may still use the exclusion if you sell it soon after inheriting it. The IRS allows a reasonable time to sell an inherited home and still qualify for the exclusion, though what constitutes "reasonable" can vary.

If you used part of your home for business or rental purposes, the rules become more complex. For example, if you ran a home office or rented out part of the home, you may only exclude gains related to the portion used as your primary residence. If you converted your primary residence to a rental property and then sold it, you cannot use the exclusion at all.

Foreclosures and short sales (selling for less than the mortgage balance) have tax implications. If you're underwater on your mortgage, you have no capital gain to report. However, if the lender forgives the debt, that forgiven amount may be considered taxable income in some situations.

Practical Takeaway: If your situation involves divorce, inheritance, business use, or a recent home sale, consult with a tax professional before filing your return. These situations require specific documentation and calculations.

State and Local Taxes on Home Sales

In addition to federal capital gains taxes, many states impose their own taxes on home sale profits. State capital gains tax rates and rules vary significantly. Some states have no capital gains tax at all, while others tax capital gains as ordinary income. A few states have separate capital gains tax rates distinct from income tax.

Washington State, for example, implemented a 7% capital gains tax on long-term gains over $250,000 in 2022. Oregon taxes capital gains

🥝

More guides on the way

Browse our full collection of free guides on topics that matter.

Browse All Guides →