Selling a home can be a significant financial milestone, but it also carries important tax implications that homeowners must understand. One key consideration is capital gains tax on home sales, which can affect your profit from selling your property. Essentially, capital gains tax is levied on the profit realized from the sale of a non-inventory asset, such as real estate. However, the tax code provides certain exemptions and conditions that can help homeowners minimize or even eliminate this tax burden, such as a $250,000 exclusion for selling your home. 1
A financial advisor can help you create a tax plan to maximize your investments.
What Are Capital Gains Taxes?
Capital gains are the profits that you receive from selling an asset.
When you sell an asset, you calculate your capital gains or losses according to the following:
Sale Price – (Purchase Price + Additional Investment) = Capital Gain (Loss)
Your capital gains or losses are based on the original cost of your underlying investment, otherwise known as your tax basis.
For example, say that you buy a bundle of stocks for $1,000. Later, you buy an additional bundle for another $500. This combined investment of $1,500 would be your tax basis. Then, you sell the entire portfolio for $2,500.
Your capital gains will be: $2,500 – ($1,000 + $500) = $1,000
Since capital gains are a form of income, they are subject to taxation. However, Congress has established a special, lower rate for long-term capital gains called the capital gains tax.
In 2026, there are three long-term capital gains tax brackets. 2
| Single | Joint | |
|---|---|---|
| 0% | Up to $48,350 | $96,700 |
| 15% | $48,351 to $533,400 | $96,701 to $600,050 |
| 20% | Above $533,400 | Above $600,050 |
So, for example, say that your job pays you $45,000 per year. This earned income is subject to both income and payroll taxes, for a minimum rate of 17.65% (10% income + 7.65% payroll). 3
But say that you are an investor who makes $45,000 off the sale of stocks. This is a capital gain subject to the capital gains tax, which is 0% for those earnings.
Long-term capital gains rates apply only to assets that you have held for more than a year. If you hold assets for 12 months or less, they are taxed at the rate of ordinary income. As with all taxed income, capital gains are cumulative. At the end of each year, you pay taxes on all of your combined gains from various sources.
Real Estate Sales and Capital Gains

Real estate sales are considered capital gains, so when you sell a property, you account for any profits or losses on your capital gains taxes. Your capital gain from selling the house is your sale price less the tax basis of the property.
Calculating the tax basis for a home sale can get fairly complicated. In general, the IRS allows you to consider any improvements and updates that you’ve made to the property as part of your overall investment. Also allowable are many of the costs for marketing and selling the property.
However, you cannot include maintenance and repair costs, nor can you claim financing costs. This is why it’s critical to keep a record of any money you spend upgrading and improving your property.
In broadest strokes, the IRS defines this difference by classifying improvements as spending that will “add to the value of your home, prolong its useful life or adapt it to new uses.”
Calculating Capital Gains
For example, say that you sell your home for $500,000. Over the years, you spent the following on the property:
- Purchase Price: $350,000
- Interest on the mortgage: $25,000
- New windows: $3,000
- Deck repairs: $750
- Listing and marketing fees: $1,000
You can include your purchase price, the new windows and the marketing fees in your property’s tax basis. You cannot include the deck repairs, since that’s maintenance, nor can you include your interest payments. So, your capital gains here are:
$500,000 – $354,000 = $146,000
This gives you $146,000 in capital gains.
If your total taxable income puts you in the 15% capital gains rate bracket, the most common, you will pay $21,900 on that gain (15% x $146,000).
These are the rules that apply to most property sales. That means if you sell your vacation house or a rental property, you will calculate your tax basis and determine your capital gains.
You will then pay taxes on those gains based on your overall tax rates.
Why Tax Basis Matters More Than Selling Price
Many homeowners focus on their sales price, but from a tax standpoint, the home’s adjusted tax basis is often more important.
Your basis usually starts with what you paid for the home. Over time, it can increase if you make qualifying capital improvements or incur certain costs for buying or selling the property. The higher your basis, the smaller your potential capital gain.
Keeping records of those expenses can minimize the taxable gain if your profit eventually exceeds the home sale exclusion.
Improvement vs. Repair
The distinction between an improvement and a repair is especially important.
Replacing an entire roof, installing a new HVAC system or adding a room generally increases your basis because those projects add value or extend the home’s useful life. Routine maintenance, such as painting, fixing a leak or replacing broken windows, generally does not increase your basis even if the work is expensive.
This difference becomes more significant the longer you own the home. A homeowner who keeps records of major improvements over 20 years may have a substantially higher adjusted basis than someone who discarded those receipts. Even if both homes sell for the same price, the homeowner with better documentation could report a smaller taxable gain.
If you expect your appreciation to exceed the available exclusion, calculating your adjusted basis before listing your home can provide a more accurate estimate of your potential tax liability. It can also help you identify records that may reduce it.
Home Sale Exclusion
For the most part, the rules surrounding real estate and capital gains don’t change according to the nature of the underlying property.
If you sell a house and make money, this profit is still a taxable capital gain. However, there is a broad exclusion for the sale of your primary residence.
When you sell your main home, you may exclude the first $250,000 (or $500,000 joint) of profits from your taxes. Importantly, this exclusion applies to your gains, so you apply the exclusion after you adjust for the property’s tax basis.
Sale Price – (Purchase Price + Qualified Spending) – Exclusion = Taxable Gains
To qualify for the home sale exclusion, otherwise known as the Section 121 Exclusion, you must meet the ownership and use test. This means that you must have owned the property and lived in it as your primary residence for at least two out of the past five years. This period may be nonconsecutive, but it must cover the five years immediately preceding the sale.
The purpose of this test is to limit the home sale exclusion to a primary residence, rather than investments, vacation properties or flips. As the homeowner, this exclusion means that you will typically pay little - if any - taxes on all but the most lucrative sales.
Bottom Line

Understanding how capital gains tax on home sales works is crucial for homeowners looking to maximize their profits when selling a property. When you sell your home, the profit you make, or the capital gain, may be subject to taxation. However, the IRS provides significant exclusions that can help reduce or even eliminate this tax burden. It’s important to keep meticulous records of any home improvements, as these can increase your home’s cost basis and further reduce your taxable gain. By understanding these rules and planning accordingly, you can make informed decisions that align with your financial goals.
Tips on Selling Your House
- A financial advisor can help you build a comprehensive retirement plan. Finding a financial advisor doesn’t have to be hard. SmartAsset’s free tool matches you with vetted financial advisors who serve your area, and you can have a free introductory call with your advisor matches to decide which one you feel is right for you. If you’re ready to find an advisor who can help you achieve your financial goals, get started now.
- Selling your home is a process that can require many steps. Many tasks required to sell your home can be broken down into 10 major steps.
Photo credit: ©iStock.com/dragana991, ©iStock.com/svetikd, ©iStock.com/dragana991
Article Sources
All articles are reviewed and updated by SmartAsset’s fact-checkers for accuracy. Visit our Editorial Policy for more details on our overall journalistic standards.
- “Topic No. 701, Sale of Your Home.” Internal Revenue Service, https://www.irs.gov/taxtopics/tc701. Accessed Aug. 9, 2026.
- “Topic No. 409, Capital Gains and Losses.” Internal Revenue Service, https://www.irs.gov/taxtopics/tc409. Accessed Aug. 9, 2026.
- “Earned Income and Earned Income Tax Credit (EITC) Tables.” Internal Revenue Service, https://www.irs.gov/credits-deductions/individuals/earned-income-tax-credit/earned-income-and-earned-income-tax-credit-eitc-tables. Aug. 9, 2026.
