What Are the Tax Implications of Selling Your Home?

House resting on coins representing the tax implications and capital gains from selling a home
Home Sale Tax Planning

What Are the Tax Implications of Selling Your Home?

Selling a home can create a substantial financial gain, but that does not automatically mean you will owe capital gains tax. Federal tax law provides a valuable exclusion for many homeowners, while basis, improvements, selling expenses, prior rental use, depreciation, and reporting rules can all affect the final tax result.

Azalea City Tax & Accounting Approximately 12-minute read

Homeowners often hear that they can sell a house "tax free," but the real rule is more specific. Federal law may allow qualifying taxpayers to exclude up to $250,000 of gain from the sale of a principal residence, or up to $500,000 of gain for many married couples filing jointly.

The exclusion applies to the gain, not the selling price of the house. Determining that gain requires looking at what you originally paid, certain acquisition costs, capital improvements, depreciation, selling expenses, and other adjustments to your tax basis. A home that sells for $700,000 does not automatically create $700,000 of taxable income—or even $700,000 of gain.

The tax consequences of a home sale can range from no federal income tax at all to a significant capital-gain liability. The outcome depends on whether the property was your main home, how long you owned and occupied it, whether you used it as a rental or for business, your adjusted basis, the amount of gain, and whether you qualify for the home-sale exclusion.

This is why the tax review should begin before the closing whenever possible. By the time a Form 1099-S arrives after the sale, many of the underlying facts have already been fixed.

First, Understand What "Capital Gain" Actually Means

A capital gain generally occurs when a capital asset is sold for more than its tax basis after taking the applicable selling costs and basis adjustments into account. Your home is generally a capital asset, although special rules apply because it may also qualify as your principal residence.

Selling Price Is Not the Same Thing as Taxable Gain

A taxpayer who sells a home for $600,000 after originally purchasing it for $350,000 does not automatically have a $600,000 gain. The calculation starts with the amount realized on the sale and compares it with the property's adjusted basis.

For a broader explanation of how capital gains are taxed, see Investopedia's overview of capital gains tax. Home sales, however, have special exclusion rules that do not apply to most other capital assets.

The $250,000 and $500,000 Home-Sale Exclusion

One of the most valuable provisions available to homeowners is the exclusion under Internal Revenue Code Section 121. In general, a qualifying individual may exclude up to $250,000 of gain from the sale of a main home. A married couple filing jointly may be able to exclude up to $500,000.

Taxpayer SituationPotential Maximum Exclusion
Single taxpayerUp to $250,000 of qualifying gain
Married filing separatelyGenerally up to $250,000 for a qualifying spouse
Married filing jointlyUp to $500,000 when the joint-return requirements are satisfied
Gain above the available exclusionThe excess may be taxable and reportable as capital gain

The exclusion is not automatic simply because the property was a home. The taxpayer must meet the applicable ownership, use, and frequency requirements, and special rules can apply to spouses, surviving spouses, military taxpayers, prior rental periods, and other circumstances.

The Two-Out-of-Five-Year Ownership and Use Tests

In general, to qualify for the full principal-residence exclusion, the taxpayer must satisfy both an ownership test and a use test during the five-year period ending on the date of sale.

1

Ownership Test

During the five-year period ending on the sale date, you generally must have owned the home for at least 24 months, or two years.

2

Use Test

During that same five-year period, you generally must have used the property as your main home for at least 24 months.

3

The Periods Do Not Have to Be Identical

The ownership and residence periods do not necessarily have to be the same continuous 24 months, provided the applicable requirements are satisfied within the five-year window.

4

Prior Exclusions Matter

In general, you cannot use the exclusion if you excluded gain from another principal-residence sale during the two-year period ending on the current sale date.

Married couples filing jointly have additional requirements for the $500,000 exclusion. Generally, either spouse must satisfy the ownership test, both spouses must satisfy the use test, and neither spouse can have used the exclusion on another home within the relevant two-year period.

Your Adjusted Basis Can Dramatically Change the Tax Result

One of the most commonly overlooked parts of a home-sale calculation is adjusted basis. Basis usually begins with what you paid for the home, but it does not necessarily remain equal to the original purchase price.

Original Purchase Price

The starting point is generally the amount paid to acquire the property, along with certain acquisition costs that are properly added to basis.

Capital Improvements

Qualifying improvements that add value, prolong the property's useful life, or adapt it to a new use may increase basis and reduce the eventual taxable gain.

Basis Reductions

Certain tax benefits, casualty adjustments, depreciation, and other items may reduce basis and therefore increase gain when the property is sold.

Selling Expenses

Certain expenses directly connected with the sale can reduce the amount realized and therefore reduce the gain recognized on the transaction.

This is why homeowners should retain closing statements and records for major improvements even years after the work is completed. A roof replacement, major addition, substantial renovation, HVAC replacement, or other qualifying capital improvement may be important when determining gain.

Repairs and Improvements Are Not the Same Thing

Routine repairs and maintenance generally do not increase basis simply because money was spent on the home. Capital improvements are analyzed differently. The nature and purpose of the expenditure matter.

Example: A Home Can Appreciate Substantially and Still Produce No Taxable Gain

Example ItemAmount
Original purchase price and qualifying acquisition basis$300,000
Qualifying capital improvements$60,000
Adjusted basis before other adjustments$360,000
Sale price$650,000
Assumed qualifying selling expenses$40,000
Illustrative amount realized$610,000
Illustrative gain$250,000

In this simplified example, a qualifying single taxpayer who meets the principal-residence exclusion requirements could potentially exclude the entire $250,000 gain. The house sold for $650,000, but the relevant tax calculation was based on the gain after basis and selling-cost adjustments—not the gross sales price.

Real calculations can include additional basis adjustments and special rules, so this example is intended only to illustrate the mechanics.

What If You Sell Before Living There for Two Full Years?

Failing the full two-year ownership or use requirement does not always mean the entire gain becomes taxable. Some taxpayers may qualify for a reduced or partial exclusion when the sale is primarily due to a qualifying change in place of employment, health reason, or certain unforeseen circumstances.

WORK
Change in Place of Employment A qualifying employment-related move may permit a reduced exclusion when the applicable safe-harbor or facts-and-circumstances rules are satisfied.
HEALTH
Health Reasons Certain sales primarily related to obtaining, providing, or facilitating diagnosis, cure, mitigation, or treatment may qualify under the health provisions.
EVENT
Unforeseen Circumstances Specific unforeseen events and other qualifying facts may support a reduced exclusion even though the full ownership or use period was not met.

A partial exclusion is not simply a discretionary exception. The taxpayer must fit within the applicable rules, and the maximum exclusion is generally prorated based on the qualifying period.

Rental or Business Use Can Make the Home-Sale Tax Rules More Complicated

A property can begin as a residence, later become a rental, return to personal use, or contain a portion used for business. Those changes can create tax consequences that do not exist in a straightforward principal-residence sale.

One of the most important issues is depreciation. If depreciation was allowed or allowable for rental or business use after May 6, 1997, the portion of gain attributable to that depreciation generally cannot be excluded under the principal-residence exclusion.

Depreciation Can Create Tax Even When the Rest of the Gain Is Excluded

A homeowner may otherwise qualify for the Section 121 exclusion and still owe tax on gain attributable to depreciation from prior rental or qualifying business use. The depreciation also reduces basis, which can increase total gain.

Periods of "nonqualified use" can also affect how much gain is excludable in some cases. These rules are technical and become especially important when a former rental property is converted to a principal residence before sale.

If the property had significant rental or business use, the tax consequences should be modeled before closing rather than relying solely on the general $250,000 or $500,000 exclusion rule.

What Happens If Some of the Gain Is Taxable?

Gain that cannot be excluded may be subject to federal capital-gains tax. The rate depends on several factors, including how long the property was held, the taxpayer's taxable income, filing status, and the character of the gain.

Long-Term Capital Gain

A home owned for more than one year will generally produce long-term capital gain to the extent the gain is taxable and not treated under a special provision.

0%, 15%, or 20%

Federal long-term capital gains are generally taxed using preferential rate brackets of 0%, 15%, or 20%, depending on taxable income and filing status.

Depreciation-Related Gain

Certain gain attributable to prior depreciation on real property may be subject to the special rules for unrecaptured Section 1250 gain, potentially at a rate of up to 25%.

Net Investment Income Tax

Higher-income taxpayers may also need to consider the 3.8% Net Investment Income Tax when the statutory income thresholds and other requirements are met.

State income tax consequences should also be considered. A federal home-sale exclusion does not automatically answer every state tax question, particularly for taxpayers who moved between states or sold property located in a different state.

Do You Have to Report the Sale on Your Tax Return?

Not every home sale must be reported in the same manner. If the entire gain is excludable and no Form 1099-S was issued, a qualifying taxpayer may not need to report the transaction. However, reporting is generally required when the gain is not fully excludable, the taxpayer chooses not to claim the exclusion, or a Form 1099-S was received.

1

Review Form 1099-S

Form 1099-S reports proceeds from certain real estate transactions. If one is issued, do not ignore it simply because you believe the gain qualifies for exclusion.

2

Use Form 8949 When Required

Form 8949 is used to reconcile and report certain sales and dispositions of capital assets, including reportable home-sale transactions involving Form 1099-S or nonexcluded gain.

3

Carry the Results to Schedule D

Schedule D is used to summarize capital gains and losses and calculate the aggregate capital-gain result reported with the individual income tax return.

IRS Reporting Resource

Form 8949: Sales and Other Dispositions of Capital Assets

The IRS states that Form 8949 is used to reconcile amounts reported on Form 1099-B or Form 1099-S with the amounts reported on the taxpayer's return. The subtotals are then carried to Schedule D.

View IRS Form 8949 Information
IRS Capital Gains Resource

Schedule D: Capital Gains and Losses

Schedule D is used to report capital-asset transactions and summarize the taxpayer's capital gains and losses when the transaction must be reported.

View IRS Schedule D Information

What If You Sell Your Main Home at a Loss?

A loss on the sale of a personal-use main home is generally not deductible for federal income-tax purposes. This surprises homeowners because losses on investments or business assets can sometimes produce tax deductions, while a personal residence is treated differently.

A Personal Loss Is Different From an Investment Loss

If a taxpayer buys a principal residence for personal use and later sells it for less than its adjusted basis, the personal loss generally cannot be used to offset wages, investment gains, or other taxable income.

Property converted from personal use to rental or investment use can involve different basis rules for determining a later deductible loss. That is another situation where the property's history matters.

Records to Keep Before and After Selling Your Home

Home-sale tax calculations can depend on documents that are many years old. Waiting until the year of sale to reconstruct basis is one of the easiest ways to overlook legitimate basis adjustments.

BUY
Original Purchase Closing Statement Keep the settlement or closing documents from the original acquisition so the starting basis and qualifying acquisition costs can be identified.
IMPROVE
Capital Improvement Records Keep invoices, contracts, receipts, permits, canceled checks, and other documentation for qualifying additions and improvements.
RENTAL
Depreciation and Rental Records If the home was ever rented or used for business, retain depreciation schedules and the related tax returns so basis and depreciation-related gain can be calculated correctly.
SELL
Sale Closing Statement and Form 1099-S The closing documents help identify proceeds and selling costs, while Form 1099-S may determine whether the transaction must be reported.

Common Tax Mistakes When Selling a Home

Taxing the Entire Sale Price

Tax is based on taxable gain, not the gross selling price. Basis, improvements, selling costs, and the home-sale exclusion all matter.

Forgetting Improvements

Failing to document qualifying capital improvements can understate basis and make taxable gain appear larger than it should be.

Ignoring Prior Rental Use

Prior depreciation and nonqualified use can change both basis and the amount of gain eligible for exclusion.

Ignoring Form 1099-S

If the closing generates a Form 1099-S, the IRS receives transaction information. The return should address the sale correctly even when the gain is fully excluded.

Why Tax Planning Before the Sale Can Matter

The timing of a home sale can affect whether the ownership and use tests are met, whether the two-year limitation on a prior exclusion has expired, and whether a taxpayer qualifies for the full exclusion or only a partial one.

Planning can be especially important when the property has appreciated by hundreds of thousands of dollars, has been used as a rental, was inherited or received by gift, is jointly owned, is being sold after divorce or the death of a spouse, or has a complicated improvement history.

Tax Planning Before Closing

Know the Potential Tax Before You Sell

Azalea City Tax & Accounting can review your estimated selling price, adjusted basis, capital improvements, occupancy history, prior rental or business use, depreciation, and potential exclusion before the transaction is complete.

Request a Tax Planning Consultation

Frequently Asked Questions About Taxes When Selling a Home

Do I pay tax on the entire amount I receive from selling my house?

No. Federal income tax is generally based on the taxable gain, not the gross sales proceeds. Adjusted basis, selling expenses, available exclusions, depreciation, and other adjustments determine the taxable result.

How much profit can I make on my home without paying federal capital gains tax?

A qualifying taxpayer may generally exclude up to $250,000 of gain, while qualifying married couples filing jointly may generally exclude up to $500,000. The ownership, use, prior-exclusion, and other applicable requirements must be satisfied.

Do I have to buy another house to avoid capital gains tax?

No. The current principal-residence exclusion is not generally conditioned on reinvesting the sale proceeds into another home. That concept reflects older tax law and is a common misconception.

Can renovations reduce my taxable gain?

Qualifying capital improvements may increase the property's adjusted basis and thereby reduce gain. Routine repairs and maintenance generally do not increase basis in the same manner. Documentation is important.

What if I rented the house before selling it?

Rental use can complicate the calculation. Depreciation may reduce basis, gain attributable to depreciation may not qualify for the home-sale exclusion, and periods of nonqualified use may affect the amount of gain that can be excluded.

What if I receive Form 1099-S but my entire gain is excluded?

The IRS generally requires the sale to be reported when Form 1099-S is issued, even if the gain is otherwise excludable. The reporting should show the transaction and properly reflect the exclusion.

Can I deduct a loss on the sale of my main home?

Generally, no. A loss on the sale of a personal-use principal residence is not deductible for federal income-tax purposes.

Do I need Form 8949 and Schedule D?

When the sale must be reported, Form 8949 may be used to report and reconcile the transaction, and the results generally flow to Schedule D. The exact reporting depends on the facts and the tax forms issued in connection with the sale.

Home Sale Tax Planning in Mobile, Alabama

Before You Sell the House, Know What the Sale Could Mean on Your Tax Return.

A large sales price does not automatically mean a large tax bill, but the details matter. Azalea City Tax & Accounting can help calculate your adjusted basis, evaluate the principal-residence exclusion, review prior rental or business use, and estimate the federal tax impact before or after closing.

Important: This article provides general educational information and is not individualized tax, legal, or real-estate advice. The tax treatment of a home sale depends on the property's basis, improvements, ownership and occupancy history, filing status, prior use of the home-sale exclusion, rental or business use, depreciation, selling expenses, tax forms issued at closing, and other facts. Federal and state tax rules can change. Review the transaction and the rules applicable to the year of sale before relying on a particular tax result.