https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_6b6808265c38ef7a00ad6ea9d32f28fb9ef5c218d973e15b6fb7a98075049905fbe80287fd3a4f9869b47c03e55fbcdf2bd196a2b9e1311f2f4e1fb9a2ddfbc0.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_922512f1190a16325d87476bb7709223403a61af8d8b674a20887a4cc44d362663751c0cc696e2ca57f0e7dbd9ae6337bf117e5ac7fddf891e5b9c4d8093d436.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_2e2fdeda787f6f2832d173b2033a93214725518d33a72da2e5523b369e5bf9460ca572fb70bb106b1f6068bd84aa66b53f3c1d909da3e43d04aff03791b31bf4.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_d8a197268661aba3e45403d8e074a898b60d042377de687411be8eb7045d6478c55d33a1bcb2a151572b6cba71ae82f5069ebec68f063a9cfe40ba9fc29b8936.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_6c15968bfbe454239d93e7cad93410bdb3739d1fb0b376540c0e6431c7d45b25fb241f7d1ddbc832c9ec27f26850affd8db8d8f5ebd05810e08033e74f51ae13.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_a73866e4b95d068840ac3332f81bfa818a7a54e3cfdcc8aa53a5b21ef173ebdf6765ed52cd83b17297862b49c79b116048ea4c5c4f03fad91d9ecc0197601cbb.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_1e7154e54aae28ff4c7119b1a29fa83e8c294ed9f6aa4e361f6cb07c7c4e72c6544d2cc5f03ba3051ca5ba272b21e9a364e97fb2df0cb679eff469a17b49c299.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_f7aa71235028aa417e05d887211bd74bdae707d09ff0c4cd36f45afed8876e731b968ebb5ee4169c86f9813f6a8d970c549a3f1d4c1db1e032fd1c992608c97f.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_4c7ad718a4461e7650d3d57673740da4bfe9e0da595895b323d5c1570af70ecbad49ea7345f8ea79b5d180f90b8016bbc7e4b5e139ef9ef77da79d13b8e45cfd.js
Saturday | Oct 25, 2025
  • About Us
  • Our Approach
  • Our Team
  • Our Perspective
  • Media Coverage
  • Contact Us
GovFacts
  • Explainers
  • Analyses
  • History
  • Debates
  • Agencies
  • Disability Services
  • Veterans Benefits
  • Family and Child Services
  • Constitutional Law
  • Student Aid
  • Unemployment Benefits
  • National Security
  • Public Safety
  • Civil Rights
  • Legislation
Font ResizerAa
GovFactsGovFacts
Search
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Agency > Internal Revenue Service > Tax Implications When Selling Your Home
Internal Revenue Service

Tax Implications When Selling Your Home

GovFacts
Last updated: Jul 01, 2025 5:08 AM
GovFacts
SHARE

Last updated 4 months ago. Our resources are updated regularly but please keep in mind that links, programs, policies, and contact information do change.

Contents
  • Can You Exclude the Profit From Your Home Sale?
  • Calculating Your Gain or Loss
  • Special Situations and Exceptions to the Rules
  • Reporting Your Home Sale to the IRS
  • Selling a Second Home, Vacation Home, or Investment Property
  • State Income Tax Considerations
  • Record Keeping: Your Key to Substantiating Your Tax Position

Selling a home represents a significant financial milestone for many Americans. Beyond the emotional aspects, the sale involves substantial sums of money and carries important federal tax implications. Understanding these tax rules is crucial for homeowners navigating the selling process.

A key provision in the U.S. tax code offers a significant benefit: the potential to exclude a large amount of profit, known as capital gain, from federal income tax when selling a main home. This benefit, often referred to as the Section 121 exclusion or the home sale exclusion, can save homeowners thousands of dollars in taxes. Eligibility hinges on meeting specific requirements related to ownership and residency.

This guide provides clear, accessible information to help homeowners understand the federal tax rules surrounding the sale of their home. The information is primarily based on guidance from the Internal Revenue Service (IRS), particularly IRS Publication 523, “Selling Your Home”, which provides comprehensive details and worksheets. Familiarity with these rules empowers homeowners to make informed decisions and meet their tax obligations correctly.

Can You Exclude the Profit From Your Home Sale?

The Capital Gains Exclusion (Section 121)

When a homeowner sells their main home for more than their “adjusted basis” (generally, the purchase price plus certain costs and qualifying improvements, discussed later), the profit constitutes a capital gain. Under Section 121 of the Internal Revenue Code, eligible taxpayers can exclude a substantial portion of this gain from their gross income, meaning they won’t pay federal income tax on the excluded amount. This exclusion is a significant tax benefit designed to support homeownership. Qualification primarily depends on meeting specific ownership and use tests related to the property.

The Ownership Test

To qualify for the exclusion, a taxpayer must meet the ownership test. This requires owning the home for at least two full years (24 months or 730 days) during the 5-year period ending on the date the home is sold (typically the closing date). These two years of ownership do not need to be continuous; ownership over any two years within the five-year look-back period satisfies the test.

For married couples filing a joint tax return, a key flexibility exists: only one spouse needs to meet the 2-year ownership requirement for the couple to potentially qualify for the exclusion.

The Use Test

Alongside ownership, the use test must also be met. This requires the taxpayer to have lived in the property as their main home for at least two full years (24 months or 730 days) during the same 5-year period ending on the sale date. Similar to the ownership test, the two years of use do not have to be continuous.

Short or temporary absences, such as vacations or seasonal stays elsewhere, generally count as periods of use, even if the home was rented out during those brief periods. The 2-year ownership period and the 2-year use period do not need to occur at the exact same time, but both tests must be satisfied within the 5-year window ending on the sale date.

For married couples filing jointly seeking the maximum $500,000 exclusion, the use test requirement is stricter than the ownership test: both spouses must generally meet the 2-year use requirement individually. Exceptions to this rule apply in specific circumstances, such as the death of a spouse or certain situations involving divorce, which are discussed later.

Defining Your “Main Home”

The Section 121 exclusion applies only to the sale of a taxpayer’s principal residence, also referred to by the IRS as the “main home”. An individual can only have one main home at any given time. If a taxpayer owns and lives in only one home, that property is considered their main home.

However, if a taxpayer owns or lives in more than one home (e.g., a primary residence and a vacation home), determining which property qualifies as the main home requires applying a “facts and circumstances” test. While the most important factor is where the taxpayer spends the majority of their time, the IRS considers several other elements:

The address listed on official documents and records, including:

  • U.S. Postal Service address
  • Voter registration card
  • Federal and state tax returns
  • Driver’s license or car registration

The proximity of the home to:

  • The taxpayer’s place of employment
  • The taxpayer’s banking institutions
  • Residences of family members
  • Recreational clubs or religious organizations the taxpayer belongs to

The more of these factors that align with a particular property, the stronger the case that it is the taxpayer’s main home. Various types of dwellings can qualify as a main home, including a traditional single-family house, a condominium unit, a cooperative apartment, a mobile home, or even a houseboat, provided they meet the main home criteria.

Correctly identifying the main home is crucial, especially for individuals owning multiple properties. Because the substantial tax exclusion is tied specifically to the main home, applying the “facts and circumstances” test accurately is essential. Misclassifying a property, such as attempting to claim the exclusion for a vacation home that doesn’t meet the primary residence criteria despite significant time spent there, could lead the IRS to disallow the exclusion upon review, resulting in unexpected tax liability on the entire gain.

Exclusion Limits: $250,000 (Single) / $500,000 (Married Filing Jointly)

The tax code sets generous limits on the amount of gain that can be excluded from income. For eligible single taxpayers, or married taxpayers filing separate returns, the maximum exclusion is $250,000 of gain. For eligible married couples filing a joint return, this amount doubles to a maximum exclusion of $500,000, provided the necessary requirements (including the use test for both spouses, generally) are met.

Consider these examples:

  • An unmarried individual buys a home for $300,000 (adjusted basis) and sells it five years later for $500,000, realizing a gain of $200,000. They owned and lived in the home as their main residence for the entire five years. Since the $200,000 gain is less than the $250,000 exclusion limit, the entire profit is tax-free.
  • A married couple filing jointly buys a home for $400,000 (adjusted basis) and sells it ten years later for $1,000,000, realizing a gain of $600,000. They both owned and lived in the home as their main residence for the entire period. They can exclude the first $500,000 of the gain. The remaining $100,000 ($600,000 gain – $500,000 exclusion) is a taxable long-term capital gain.

The Look-Back Rule: Only One Exclusion Every Two Years

To prevent abuse of the home sale exclusion, the tax code includes a “look-back” rule. Generally, a taxpayer cannot claim the exclusion if they already excluded gain from the sale of another main home within the 2-year period ending on the date of the current home’s sale. This limitation ensures the benefit is primarily for homeowners selling their main residence under normal circumstances, rather than for rapid, serial home flipping aimed at generating tax-free profits.

Summary Table: Home Sale Exclusion Tests and Limits

The core requirements for the maximum Section 121 exclusion can be summarized as follows:

Test / ElementRequirementLimit / AmountSpecial Notes for Married Filing Jointly
Ownership TestOwned home for ≥ 2 years (24 months / 730 days) in the 5-year period ending on sale date.N/AOnly one spouse needs to meet this test.
Use TestLived in home as main home for ≥ 2 years (24 months / 730 days) in the 5-year period ending on sale date.N/ABoth spouses generally must meet this test individually for the full $500,000 exclusion.
Look-Back RuleDid not exclude gain from another home sale within the 2-year period ending on the current sale date.N/AApplies to the couple jointly.
Exclusion LimitMaximum gain excludable from income.$250,000 (Single)<br>$500,000 (Married Filing Jointly, if eligible).

(Note: Exceptions apply for partial exclusions, divorce, death, military service, etc., discussed later.)

Calculating Your Gain or Loss

Why Calculation Matters

Determining the exact financial gain or loss from a home sale is essential, even if the homeowner anticipates that any gain will be fully covered by the exclusion. Accurate calculation confirms eligibility for the exclusion, establishes whether any portion of the gain is taxable, and is necessary if the sale must be reported to the IRS. This calculation hinges on two critical figures: the “amount realized” from the sale and the “adjusted basis” of the home.

Step 1: Determine the Amount Realized

The amount realized represents the total value received for the home, minus the costs directly associated with selling it. It is calculated as:

Amount Realized = Selling Price – Selling Expenses

  • Selling Price: This typically includes the cash received, the value of any other property or notes received from the buyer, and any existing mortgage or other debts on the property that the buyer assumes or pays off as part of the transaction.
  • Selling Expenses: These are costs incurred to sell the home, which reduce the amount realized. Common examples include:
    • Real estate broker’s commissions
    • Title insurance costs (seller’s policy)
    • Legal fees related specifically to the sale
    • Advertising costs
    • Escrow fees
    • Certain home staging costs may also qualify.

Step 2: Determine Your Basis (What You Paid)

Basis represents the homeowner’s investment in the property for tax purposes. For a home that was purchased, the starting point is usually its cost.

Cost Basis = Purchase Price + Certain Purchase-Related Costs

  • Purchase Price: The amount paid for the home. If the purchase was financed with a mortgage, the mortgage proceeds are included in the cost basis.
  • Purchase-Related Costs (Included in Basis): Certain settlement fees and closing costs paid at the time of purchase are added to the basis. These include:
    • Abstract fees (abstract of title fees)
    • Charges for installing utility services
    • Legal fees (including title search, preparation of the sales contract and deed)
    • Recording fees
    • Surveys
    • Transfer or stamp taxes
    • Owner’s title insurance
    • Any amounts the seller owed that the buyer agreed to pay (like back taxes, interest, recording fees, or sales commissions owed by the seller).

Costs Generally Not Included in Basis: Costs associated with obtaining a mortgage loan are typically not added to the home’s basis. Examples include lender’s appraisal fees, credit report fees, mortgage insurance premiums, loan assumption fees, and points (loan origination fees). While points paid on a loan to purchase a main home might be deductible as interest in the year paid under certain conditions, they are generally not added to the home’s basis. Fees for refinancing a mortgage are also not added to basis. Additionally, prorated items settled at closing, such as property taxes or homeowner’s insurance premiums for the period the buyer owns the home, are not part of the basis.

Step 3: Calculate Your Adjusted Basis

The initial basis of the home changes over the period of ownership due to various events. This modified basis is called the “adjusted basis”. It is crucial for calculating gain or loss upon sale.

Adjusted Basis = Original Basis + Increases – Decreases

Increases to Basis (Capital Improvements): The cost of capital improvements made to the home increases its basis. A capital improvement is defined as work that adds substantial value to the home, significantly prolongs its useful life, or adapts it to new uses. This is distinct from routine repairs or maintenance (like fixing a leak or painting a room), the costs of which are not added to basis. Examples of qualifying capital improvements include:

  • Additions (bedrooms, bathrooms, decks, garages, porches)
  • Landscaping, new driveway, walkway, fence, retaining wall, swimming pool
  • New roof, new siding, storm windows/doors
  • Central air conditioning, furnace, heating system, duct work, central vacuum
  • Significant plumbing or electrical wiring upgrades
  • Kitchen or bathroom remodeling
  • Built-in appliances, new flooring, wall-to-wall carpeting
  • Insulation, security system, water heater, septic system
  • Energy-efficient improvements (e.g., solar panels; note that related tax credits may require a basis reduction)
  • Special assessments paid for local improvements like streets or sidewalks
  • Costs to restore property after a casualty (e.g., fire, storm)

Decreases to Basis: Certain events or deductions reduce the home’s basis. Common decreases include:

  • Insurance reimbursements received for casualty losses
  • Deductible casualty losses related to the home that were not covered by insurance
  • Depreciation deductions claimed or allowable for periods after May 6, 1997, if the home was used for business or rental purposes
  • Residential energy credits claimed for certain improvements
  • Payments received for granting an easement or right-of-way
  • Gain postponed from the sale of a previous home under the rules in effect before May 7, 1997 (often called “rollover” gain)
  • Exclusion from income for canceled qualified principal residence indebtedness

Accurately calculating the adjusted basis is fundamental for determining the true gain on a home sale. Failure to distinguish capital improvements, which increase basis, from simple repairs, which do not, can lead to an understated basis. Similarly, neglecting to account for decreases like depreciation can lead to an overstated basis. The most significant challenge often lies in tracking and documenting capital improvements over many years of ownership. Without proper records (receipts, contracts, etc.), homeowners cannot substantiate these basis increases to the IRS. Consequently, the calculated gain on the sale might be inflated, potentially pushing the gain over the exclusion limit or increasing the taxable portion unnecessarily, leading to higher tax payments than legally required. Meticulous, long-term record-keeping is therefore not just advisable, but economically critical.

Table: Common Basis Adjustments

To assist homeowners in identifying potential adjustments, here are common examples:

Increases to Basis (Examples)Decreases to Basis (Examples)
Cost of additions (bedrooms, bathrooms, decks, garages)Depreciation allowed or allowable for business/rental use (after 5/6/97)
Kitchen or bathroom remodelingInsurance reimbursements for casualty losses
New roof or sidingDeductible casualty losses not covered by insurance
New central AC, heating system, furnace, water heaterResidential energy credits claimed
Landscaping, new driveway, walkway, fence, retaining wall, poolPayments received for granting an easement
Significant plumbing or wiring upgradesGain postponed (“rolled over”) from pre-May 7, 1997 home sales
Finishing a basement or atticExclusion of canceled qualified principal residence debt
Built-in appliances, new flooring, wall-to-wall carpeting
Insulation, security system, septic system
Special assessments for local improvements (streets, sidewalks)
Costs to restore property after casualty damage
Certain settlement costs from purchase (legal fees, title search, surveys, recording fees, owner’s title insurance, utility installation)

(Refer to IRS Publication 523 and Publication 551 for more comprehensive lists and details.)

Step 4: Figure Your Gain or Loss

Once the amount realized and the adjusted basis are determined, the gain or loss is calculated simply:

Gain or Loss = Amount Realized – Adjusted Basis

  • Gain: If the amount realized is greater than the adjusted basis, the difference is a capital gain. This gain is potentially eligible for the Section 121 exclusion if the property was the taxpayer’s main home and other requirements are met.
  • Loss: If the amount realized is less than the adjusted basis, the difference is a capital loss.

Important Note: Losses on Personal Residences Are Not Deductible

A critical point for homeowners is that if the sale of a main home results in a loss (selling for less than the adjusted basis), this loss is considered a personal loss and is not deductible on the federal tax return. Tax deductions are generally only allowed for losses on property used in a trade or business or for investment purposes, or for certain casualty losses, not for losses on personal-use assets like a primary residence.

Special Situations and Exceptions to the Rules

The standard home sale exclusion rules based on the 2-out-of-5-year ownership and use tests have several important exceptions and modifications designed to address specific life circumstances.

Reduced Exclusion: Selling Before Meeting the 2-Year Rules

Homeowners who sell their main home before meeting the full 2-year ownership and use requirements, or who sell within two years of claiming an exclusion on a previous home sale, might still qualify for a partial or reduced exclusion. This relief is available if the primary reason for the sale falls into one of three categories: a change in place of employment, health reasons, or certain unforeseen circumstances.

The amount of the reduced exclusion is calculated by prorating the maximum exclusion ($250,000 for single, $500,000 for married filing jointly). The proration factor is determined by the fraction of the 2-year period (24 months or 730 days) that the homeowner did meet the ownership and use requirements, or the time elapsed since the last exclusion was claimed, whichever period is shorter. For example, if a single taxpayer owned and lived in their home for 15 months before selling primarily due to a qualifying job change, their maximum reduced exclusion would be $250,000 multiplied by (15 months / 24 months), which equals $156,250.

To qualify for a reduced exclusion, the sale must be primarily due to one of the following reasons:

Change in Place of Employment: The move must be related to starting a new job or a transfer. The new primary work location must be at least 50 miles farther from the home sold than the old work location was. If there was no previous work location, the new job must be at least 50 miles from the home. This applies if the employment change affects the taxpayer, their spouse, a co-owner, or another resident of the home.

Health Reasons: The move must be primarily to obtain, provide, or facilitate the diagnosis, cure, mitigation, or treatment of a disease, illness, or injury for the taxpayer or a qualifying family member. Alternatively, a move qualifies if a physician recommends a change in residence due to a health problem. The definition of a “family member” is broad, including parents, children, siblings, grandparents, grandchildren, in-laws, uncles, aunts, nephews, and nieces. A move solely for general health benefits does not qualify. This reason applies if the health issue affects the taxpayer, their spouse, a co-owner, or another resident of the home.

Unforeseen Circumstances: The IRS provides a list of specific events that automatically qualify as unforeseen circumstances if they occurred during the period of ownership and use. These include:

  • Involuntary conversion of the home (destruction, condemnation)
  • Damage to the home from a natural or man-made disaster or terrorism (qualifies even if no casualty loss deduction was taken)
  • Death of the taxpayer, spouse, co-owner, or resident
  • Divorce or legal separation
  • Giving birth to two or more children from a single pregnancy (multiple births)
  • Becoming eligible for unemployment compensation
  • A change in employment status resulting in the inability to pay basic household living expenses.

Other events may qualify based on specific facts and circumstances if the taxpayer can demonstrate the event was not reasonably foreseeable when the home was acquired, occurred during ownership and use, and was the primary reason for the sale.

These exceptions provide necessary flexibility for homeowners facing unexpected life changes. However, eligibility requires demonstrating that the qualifying event was the primary reason for the sale. This often necessitates careful documentation related to the specific event (e.g., job offer letters specifying location, doctor’s recommendation for a move, divorce decrees, casualty loss reports) to substantiate the claim for a partial exclusion. Understanding the precise definitions, like the 50-mile rule for employment or the scope of qualifying family members for health reasons, is crucial for correctly applying these relief provisions.

Rules for Separated or Divorced Taxpayers

Divorce and separation introduce specific considerations for the home sale exclusion:

Property Transfers: When a home is transferred between spouses or former spouses as part of a divorce settlement (incident to divorce), it is generally not treated as a taxable sale or exchange. No gain or loss is recognized by the transferring spouse. The spouse receiving the property takes over the transferring spouse’s existing tax basis in the home. An exception exists if the transfer is to a nonresident alien spouse, which may trigger gain or loss recognition.

Meeting the Ownership Test: If a taxpayer receives ownership of the home through a divorce settlement, they can count any period their former spouse owned the home towards satisfying their own 2-year ownership requirement.

Meeting the Use Test: If a divorce or separation agreement grants one spouse the right to live in the home (as their main home), the spouse who moves out but retains ownership (solely or jointly) can still count the days the resident ex-spouse lives there towards their own 2-year use requirement. This allows the non-occupant spouse to potentially qualify for the exclusion upon a later sale.

Exclusion Amount: When a jointly owned home is sold after a divorce, each former spouse reports their share of the gain or loss. If they individually meet the ownership and use tests (potentially using the special rules above), each can generally exclude up to $250,000 of their respective share of the gain.

Rules for Surviving Spouses

The death of a spouse also triggers special rules affecting the home sale exclusion:

Meeting Ownership and Use Tests: If a surviving spouse sells the main home and has not remarried before the date of the sale, they can include any time the deceased spouse owned and lived in the home (even periods before the marriage or times the survivor was not present) to meet the 2-year ownership and use tests.

Increased Exclusion Amount ($500,000): An unmarried surviving spouse may qualify for the higher $500,000 exclusion limit (instead of the standard $250,000 single filer limit) if the sale occurs no later than two years after the date of the spouse’s death, and all the following conditions are met:

  • The surviving spouse has not remarried before the sale date.
  • The couple met the requirements for the $500,000 exclusion (considering combined ownership and use time) immediately before the spouse’s death.
  • Neither the survivor nor the deceased spouse had excluded gain from another home sale within the two years prior to the current home’s sale date.

Basis Adjustment (“Step-Up”): When a homeowner inherits property, or inherits a deceased spouse’s share of jointly owned property, the tax basis of that inherited portion is often adjusted (“stepped up” or “stepped down”) to its fair market value on the date of the owner’s death. This step-up in basis can significantly reduce or even eliminate the capital gain calculated upon a later sale. The specifics depend on ownership structure (sole ownership, joint tenancy, community property) and state law. Homeowners in this situation should consult IRS Publication 551, Basis of Assets or a tax professional.

Rules for Military, Foreign Service, Intelligence, and Peace Corps Personnel

Recognizing the unique circumstances of service members and certain government employees frequently relocated, the tax code provides a special rule allowing them to suspend the 5-year test period for ownership and use.

Suspension of the 5-Year Test Period: Eligible individuals on “qualified official extended duty” can elect to suspend the running of the 5-year look-back period for ownership and use for the time they are serving on such duty. The suspension period cannot exceed 10 years. This means the 5-year period effectively stops running during the qualifying duty, making it possible to meet the 2-year residency requirement even if absent from the home for extended periods due to service commitments. The total look-back period (5 years plus suspension) cannot exceed 15 years.

Purpose: This provision prevents service members from losing the valuable home sale exclusion simply because their duty assignments prevent them from physically residing in their owned home for two of the preceding five years.

Qualified Official Extended Duty: This is defined as being ordered or called to active duty for more than 90 days or for an indefinite period, and serving at a duty station that is at least 50 miles from the main home OR residing in government-provided housing under government orders.

Eligible Personnel: This rule applies to:

  • Members of the Uniformed Services (Army, Navy, Air Force, Marine Corps, Space Force, Coast Guard, and commissioned corps of NOAA and Public Health Service)
  • Members of the Foreign Service (certain officers and personnel)
  • Employees of the Intelligence Community (as defined broadly by statute)
  • Employees, enrolled volunteers, or volunteer leaders of the Peace Corps serving outside the U.S.

Limitations: The election to suspend the 5-year period can only apply to one property at a time. The maximum suspension is 10 years.

References: Detailed rules and examples can be found in IRS Publication 523 and IRS Publication 3, Armed Forces’ Tax Guide.

Home Used for Business or Rental Purposes

When a property sold was used partly for business (e.g., home office) or as a rental property, specific rules apply, particularly concerning depreciation.

Allocation of Gain and Basis:

Use Within Living Area: If the business or rental use occurred within the home’s living space (e.g., a rented spare bedroom, an office in a den), the homeowner generally does not need to allocate the selling price or basis between the personal use part and the business/rental part. The entire property is typically treated as the main home for exclusion purposes, subject to depreciation recapture (see below). The sale of the business/rental part does not need to be reported separately on Form 4797, Sales of Business Property.

Use Separate from Living Area: If the business or rental use was in a part of the property separate from the main living area (e.g., a separate apartment unit in a multi-family dwelling where the owner lives in another unit, a detached studio used solely for business), the homeowner generally must allocate the basis and amount realized between the portion used as a home and the portion used for business or rental. The gain or loss on the separate business/rental portion must be calculated and reported on Form 4797. The Section 121 exclusion generally cannot be claimed for the gain allocated to this separate business/rental portion unless the taxpayer also met the 2-year use test for that specific part as their residence, which is uncommon.

Depreciation Recapture (Unrecaptured Section 1250 Gain): This is a critical and often overlooked aspect. Even if the gain on the sale of the main home qualifies for the Section 121 exclusion, any depreciation deductions that were allowed or allowable for the business or rental use of the home after May 6, 1997, cannot be excluded. This means the portion of the gain attributable to these depreciation deductions must be “recaptured” and included in income.

Tax Treatment: This recaptured depreciation is typically taxed as “unrecaptured Section 1250 gain” at a maximum federal rate of 25%, which can be higher than the standard long-term capital gains rates (0%, 15%, or 20%). The exact reporting mechanism (Form 4797 or Schedule D) depends on whether allocation was required.

“Allowed or Allowable” is Key: The recapture rule applies to depreciation the taxpayer was entitled to claim (“allowable”), even if they failed to actually claim the deduction on their past tax returns. The IRS requires the taxpayer to reduce their basis by the amount of depreciation that should have been claimed when calculating the gain, and the corresponding gain portion is subject to recapture. This acts as a trap for homeowners who used part of their home for business or rental but neglected to claim depreciation, as they may face unexpected tax liability upon sale. Understanding this rule is vital for anyone who has ever used their home for income-producing activities.

Nonqualified Use: Periods after December 31, 2008, during which the property was not used as the taxpayer’s (or spouse’s/former spouse’s) main home are considered periods of “nonqualified use”. This includes time the property was used exclusively as a rental property or a vacation home. Gain realized on the sale that is allocable to periods of nonqualified use generally cannot be excluded under Section 121, even if the taxpayer meets the 2-out-of-5-year tests based on other periods. The amount of non-excludable gain is typically calculated based on the ratio of nonqualified use time to the total time the property was owned. Exceptions exist for periods before 2009, periods of temporary absence (due to health, employment changes, etc.), periods after the last date the home was used as a main residence, and periods of suspension for military/qualified service.

Reporting Your Home Sale to the IRS

Understanding when and how to report a home sale on a federal tax return is essential for compliance.

Do You Need to Report the Sale?

The requirement to report depends on whether the gain is fully excludable and whether Form 1099-S was issued.

No Reporting Generally Required If: A homeowner generally does not need to report the sale of their main home on their tax return if all of the gain qualifies for the Section 121 exclusion. This means the calculated gain is less than or equal to the applicable $250,000 or $500,000 limit, and the homeowner meets all other eligibility requirements.

Reporting Is Mandatory If: A homeowner must report the sale on their tax return, typically using Form 8949 and Schedule D, if either of the following conditions applies:

  • Taxable Gain Exists: The calculated gain exceeds the maximum exclusion amount ($250,000/$500,000), or the homeowner chooses not to claim the exclusion for strategic reasons. The portion of the gain that cannot be excluded is taxable.
  • Form 1099-S Received: The homeowner receives Form 1099-S, Proceeds From Real Estate Transactions, from the settlement agent.

The requirement to report simply because a Form 1099-S was issued is a frequent point of confusion. The IRS receives a copy of this form, which reports the gross proceeds of the sale. If the transaction isn’t reported on the taxpayer’s return, the IRS systems may flag a discrepancy, potentially leading to automated notices or inquiries about the unreported proceeds. Therefore, even if the entire gain is excludable and no tax is due, receiving a Form 1099-S triggers a reporting requirement to reconcile the information and formally claim the exclusion on the tax return, thereby preventing potential compliance issues.

Form 1099-S, Proceeds From Real Estate Transactions

Form 1099-S is an information return used to report the sale or exchange of real estate to the seller and the IRS. It is typically prepared and filed by the person responsible for closing the transaction, such as the settlement agent, title company, or closing attorney. Key information includes the date of sale (Box 1) and the gross proceeds (Box 2). Gross proceeds generally represent the total cash received without reduction for selling expenses.

In some cases, particularly for lower-priced homes where the gain is clearly fully excludable, the settlement agent may not be required to issue a Form 1099-S if they receive certain certifications from the seller attesting to their eligibility for the full exclusion. However, if a Form 1099-S is issued, the reporting requirement applies regardless of whether tax is owed.

Using Form 8949, Sales and Other Dispositions of Capital Assets

When a home sale must be reported, Form 8949 is the primary form used to detail the transaction. Its purpose is to report the specifics of capital asset sales and reconcile the amounts reported on information returns like Form 1099-S with the figures used on the tax return.

Reporting Process: The sale of a main home held for more than one year is reported in Part II (Long-Term Transactions). Taxpayers typically check Box F at the top of Part II, indicating that Form 1099-S was received showing the proceeds, but basis was not reported to the IRS (which is standard for home sales).

Key Columns: The form requires entering:

  • (a) Description of property (e.g., “Main Home – 123 Main St”)
  • (b) Date acquired
  • (c) Date sold (from Form 1099-S, Box 1, if received)
  • (d) Proceeds (Sales Price) (must match Form 1099-S, Box 2, if received)
  • (e) Cost or Other Basis (Adjusted Basis)
  • (f) Code(s) indicating any adjustments
  • (g) Amount of adjustment
  • (h) Gain or (Loss) [(d) + (g) – (e)]

Claiming the Exclusion (Code “H”): To claim the home sale exclusion on Form 8949, the taxpayer enters code “H” in column (f). Some instructions may specify using “EH”. The amount of the gain being excluded is then entered as a negative number (in parentheses) in column (g). This adjustment effectively subtracts the excluded gain, leaving only the taxable portion (if any) or zero in column (h).

Using Schedule D (Form 1040), Capital Gains and Losses

Schedule D serves as the summary form for all capital gains and losses reported on Form 8949. The subtotals from the different parts and categories of Form 8949 are transferred to the corresponding lines on Schedule D. Schedule D then calculates the taxpayer’s overall net short-term and long-term capital gain or loss for the year. The final net capital gain or deductible loss figure from Schedule D is then carried over to the main Form 1040 or 1040-SR. For a home sale where the gain is fully excluded using Code H on Form 8949, the transaction will contribute $0 to the net gain calculated on Schedule D.

Selling a Second Home, Vacation Home, or Investment Property

The tax rules for selling properties that are not a taxpayer’s main home differ significantly from those for a principal residence.

Home Sale Exclusion Generally Doesn’t Apply

The valuable Section 121 exclusion, allowing up to $250,000 or $500,000 of gain to be tax-free, is specifically linked to the sale of a taxpayer’s main home. This exclusion generally does not apply to the sale of other types of real estate, such as:

  • Second homes
  • Vacation homes
  • Investment properties (including rental properties not used as a main residence).

To qualify for the exclusion, a property must meet both the ownership test and the use test as a principal residence. Properties used primarily for recreation or investment typically fail the use test. Consequently, any profit realized from selling these non-primary residences is generally fully subject to capital gains tax. This distinction is critical for owners of multiple properties, as the tax outcome for selling a second home can be vastly different from selling a main home. Anticipating potential tax liability on gains from non-primary residences is essential for financial planning.

Calculating and Taxing Gains

The method for calculating gain on the sale of a second home or investment property is the same as for a main home: Gain = Amount Realized – Adjusted Basis. It remains crucial to accurately determine the adjusted basis by accounting for the original purchase price, relevant closing costs, and the cost of capital improvements, while subtracting any applicable decreases like depreciation claimed on rental properties.

However, the tax treatment of the resulting gain differs significantly because the Section 121 exclusion is unavailable:

Holding Period Matters: The applicable tax rate depends critically on how long the property was owned (the holding period).

  • Short-Term Capital Gain: If the property was owned for one year or less, the gain is considered short-term. Short-term capital gains are taxed at the taxpayer’s ordinary income tax rates, which are the same rates applied to wages, salaries, and other ordinary income (ranging up to 37% depending on the tax bracket).
  • Long-Term Capital Gain: If the property was owned for more than one year, the gain is considered long-term. Long-term capital gains are generally taxed at preferential rates, which are lower than ordinary income rates for most taxpayers. These rates are typically 0%, 15%, or 20%, depending on the taxpayer’s overall taxable income and filing status.

Depreciation Recapture: If the property was used as a rental and depreciation deductions were taken (or were allowable), the portion of the gain attributable to that depreciation must be recaptured. This “unrecaptured Section 1250 gain” is taxed at a maximum rate of 25%, separate from the standard long-term capital gains rates.

Net Investment Income Tax (NIIT): Taxpayers with investment income and modified adjusted gross income above certain thresholds may also be subject to an additional 3.8% Net Investment Income Tax on their capital gains, including gains from the sale of second homes or investment properties.

Table: Federal Long-Term Capital Gains Tax Rates (2024 Tax Year)

The following table shows the federal income thresholds for the long-term capital gains tax rates for the 2024 tax year (taxes filed in 2025). Note that state taxes and the 3.8% NIIT may also apply.

Filing Status0% Rate Taxable Income15% Rate Taxable Income20% Rate Taxable Income
SingleUp to $47,025$47,026 to $518,900Over $518,900
Married Filing Jointly / QSSUp to $94,050$94,051 to $583,750Over $583,750
Married Filing SeparatelyUp to $47,025$47,026 to $291,850Over $291,850
Head of HouseholdUp to $63,000$63,001 to $551,350Over $551,350

Potential Strategies

While the Section 121 exclusion generally doesn’t apply directly to second homes or investment properties, certain strategies might help manage the tax impact, although they often involve complexity and require careful planning:

Convert to Primary Residence: If feasible, moving into a second home or vacation home and using it as a main residence for at least two years before selling could potentially qualify the sale for the Section 121 exclusion (subject to rules regarding nonqualified use gain).

Section 1031 Exchange (Investment Properties): For properties held for investment (like rentals), a Section 1031 like-kind exchange allows deferral of capital gains tax if the proceeds are reinvested into another similar investment property according to strict IRS rules and timelines. This does not apply to personal-use second homes or vacation homes. Details are in IRS Publication 544, Sales and Other Dispositions of Assets.

Consulting with a tax professional is highly recommended before pursuing these strategies.

State Income Tax Considerations

Federal vs. State Rules May Differ

This guide focuses exclusively on federal income tax rules as administered by the IRS. It is crucial for homeowners to understand that state income tax laws regarding the taxation of home sale gains can differ significantly from federal rules.

While many states use federal adjusted gross income or taxable income as a starting point for state tax calculations, they often have their own specific adjustments, deductions, credits, and tax rates. Some states may fully conform to the federal Section 121 exclusion, meaning if the gain is excluded federally, it is also excluded for state purposes. However, other states may:

  • Offer a smaller exclusion amount than the federal $250,000/$500,000.
  • Have different ownership or residency requirements for their exclusion.
  • Not offer any exclusion for home sale gains, taxing the entire gain.
  • Tax capital gains at different rates than federal rates.

Taxpayers cannot assume that qualifying for the federal exclusion automatically exempts their home sale gain from state income tax. The tax treatment must be verified separately under the laws of the relevant state(s) – typically the state where the property is located and potentially the state where the taxpayer resides. Ignoring state tax rules based on federal outcomes could lead to incorrect state tax filings and potential underpayment penalties.

Importance of Checking Your State’s Specific Tax Laws

Given the potential for variation, homeowners must research the specific tax laws of the state(s) relevant to their home sale. The most reliable source of information is the official website of the state’s Department of Revenue or Taxation agency. Consulting with a qualified tax professional who is knowledgeable about the specific state’s tax laws is also strongly recommended to ensure accurate reporting and compliance for both federal and state purposes.

Record Keeping: Your Key to Substantiating Your Tax Position

Why Records Are Crucial

Maintaining thorough and organized records is arguably one of the most important aspects of managing the tax implications of homeownership and sale. Accurate records are essential for several reasons:

  • Substantiating Basis: They provide the necessary proof of the home’s original cost and the cost of subsequent capital improvements, which are needed to calculate the adjusted basis accurately.
  • Calculating Gain/Loss: Precise basis figures are required to determine the correct amount of capital gain or loss upon sale.
  • Supporting the Exclusion: Records help document that the ownership and use tests for the Section 121 exclusion have been met. They are also vital if claiming a partial exclusion due to specific circumstances (work, health, unforeseen events).
  • Avoiding Overpayment of Tax: By accurately tracking basis increases from improvements, homeowners can minimize their calculated gain, potentially reducing or eliminating their tax liability. Without records, taxpayers may end up paying tax on appreciation that should have been offset by improvement costs.

The IRS explicitly requires taxpayers to keep records sufficient to establish the basis of property.

What Records to Keep

Homeowners should retain a comprehensive file of documents related to their home’s purchase, ownership, improvement, and sale. Key records include:

Purchase Documents:

  • Closing statements (HUD-1, Closing Disclosure, or similar settlement sheets) from the purchase.
  • Original purchase contract.
  • Proof of payment for settlement costs that were added to the basis (e.g., title insurance, recording fees, surveys, legal fees for title work).

Improvement Records:

  • Receipts, invoices, cancelled checks, and contracts for all capital improvements (not routine repairs). This includes additions, remodels, new systems (roof, HVAC), landscaping, etc.
  • Building permits related to improvements.
  • Documentation for any energy credits received that might affect basis.

Sale Documents:

  • Closing statement from the sale.
  • Form 1099-S, Proceeds From Real Estate Transactions (if received).
  • Receipts and documentation for selling expenses (e.g., real estate commission agreement, advertising bills, legal fees for sale).

Proof of Occupancy (Use Test):

  • Records demonstrating the property was the main home during the required periods, such as utility bills, bank statements, voter registration, driver’s license showing the address, and copies of tax returns filed from that address.

Special Circumstances Documentation:

  • If claiming exceptions or a partial exclusion: relevant documents like military orders, doctor’s notes, job relocation letters, divorce decrees, death certificates, etc.

Depreciation Records:

  • If the home was ever used for business or rental: detailed records of the depreciation deductions claimed or allowable for each year.

How Long to Keep Records

The standard IRS recommendation for keeping general tax records is three years from the date the return was filed or the due date, whichever is later. However, records related to the basis of property, especially a home, need to be kept for much longer.

Rule: Homeowners should keep all records that establish their basis (purchase documents, improvement receipts) for as long as they own the home, plus at least three years after they file the tax return for the year in which the home is sold.

Rollover Gain Consideration: If a homeowner deferred gain from a home sale prior to May 7, 1997, under the old “rollover” rules, the basis of that previous home affects the basis of the current home. Records for those earlier homes must also be retained.

Best Practice: Given the long-term nature of homeownership and the importance of basis records, it is highly recommended to keep these documents indefinitely. Storing them securely, perhaps in a safe deposit box or as digital copies in multiple secure locations (cloud storage, external hard drive), is advisable to prevent loss or destruction over time.

General guidance on recordkeeping for individuals can also be found in IRS Publication 552, Recordkeeping for Individuals.

Our articles make government information more accessible. Please consult a qualified professional for financial, legal, or health advice specific to your circumstances.

TAGGED:Find Public RecordsProperty and LandTaxesUnemployment BenefitsVeterans Benefits
ByGovFacts
Follow:
This article was created and edited using a mix of AI and human review. Learn more about our article development and editing process.We appreciate feedback from readers like you. If you want to suggest new topics or if you spot something that needs fixing, please contact us.
Previous Article How to Get Your Tax Transcript
Next Article Maximizing Your IRA Contributions
Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

An Independent Team to Decode Government

GovFacts is a nonpartisan site focused on making government concepts and policies easier to understand — and government programs easier to access.

Our articles are referenced by trusted think tanks and publications including Brookings, CNN, Forbes, Fox News, The Hill, and USA Today.

You Might Also Like

How Should Palantir Be Regulated?

By
GovFacts

How to Find and Access Experimental Treatments

By
GovFacts

Medicaid Delivery Systems: Understanding Fee-for-Service vs. Managed Care

By
GovFacts

The Voting Rights Act of 1965: A Nation’s Struggle for the Ballot

By
GovFacts
GovFacts

About Us

GovFacts is a nonpartisan site focused on making government concepts and policies easier to understand — and government programs easier to access.

Read More
  • About Us
  • Our Approach
  • Our Team
  • Our Perspective
  • Media Coverage
  • Contact Us
Explore Content
  • Explainers
  • Analyses
  • History
  • Debates
  • Agencies
© 2025 Something Better, Inc.
  • Privacy Policy
  • Terms of Use
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_c36195ae0d2a04331c3e650e31a0f6e4fff06d2c32d49607014d11690dd2a626b5b34a15494efee174387949bb8c636a02114de3496c29e5e59371c9674b93c4.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_b5fb5df2a220f64f8fa7daae2a42e5682c5d17b9bae13cef72067688f1d85759fd46d8ca267458a27c6009707e5bbe131a1bea5f7ed5aa4704f694c87e019da9.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_3cfad96bb6dad9fbce00a02bc8a81b5d57e1b8221710ca55fdb28d4cdb8a6f123b1953fb0139cc56584b9fc988f6a3f6aac2abd227bf6e3e9ab474b450b65dc4.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_4458382d74eba191df909d19e864d122a9284a5c3e794fa246b4d1526a0c3011b26913c1cc79124c7bfccf7970234bfa41b06b869dbcd5290baa382d023c1769.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_2edc41a5ecdaa0d675ab677672eae1b23fc821dab7455eed21650289aaeddd9797b346371fd6d21fc9d3f753641d7c48a525d8f13cfdb5a70aacf686fd5c4774.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_cb301737f513542e85e9caced976b9f41b7e48bf2ff03c82835b8b2c857538c60ff625c4023f97277b443bc4ed7a5650b669226fca822b503b9acb49fac0f650.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_2fbfefe4f89b034f811865cbe66bd53b56765b1174f788ee833a34bd054a768f013248336745eed473377e281e9ac983bb4bfbc89512140b46dac203f9a2f77b.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_63ae122912a40a1687de4661414d210e0761dc399af325b78e3cedc0311d2db90fcb00af5df9d28ab82ea769049754a288452ce556f4a1ea9a5f9e900943d97e.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_d57da9abfef16337e5bc44c4fc6488de258896ce8a4d42e1b53467f701a60ad499eb48d8ae790779e6b4b29bd016713138cd7ba352bce5724e2d3fe05d638b27.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_851dcea59510a12dd72c8391a9ea6ffa96bcbe0f009037d7a0b6e27bae63a494709b6eee912b5ed8d25605fbb767a885f543915996f8a8aff34395992e3332dc.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_fc5ba98ac2cfa8f69226aecf3b23651e8a80dc0ada281d7fe9c056ce5642573e61ee9d079fc3cd9ffa37ba9ea4f5da1bcdf6ea211a419dcb9f84f5181fb09b2c.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_9646384e65d09bf00cb20365f43e06dd41e7428e3fc6cc2737f4e69b50f006ebb25bd24a566fcd9faec2f0dcb24404e25d57ba7b8c6aba61797a29c515ad5144.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_b08639ea07cfc34c1f7c15568b0781d39f6fa166c03aabcb5d5cece25667e8d6ddbf02809e03e04b51709f1b0b0cf884c1c46bab4aff1117f0820a26d6a7f183.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_e9468f1251dcfbb83cb14e35315cdd34355a895f09c684acd193733bbffda9cba9a12cd13fff4db53ba7c00e513375512ebe7dd24108524cbdedf6f861883a69.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_84b468de22634404405e52cda2844d626b4d47054739971d677f0e63fd683dcca100550419b945391236846df54b65fb43ee4d6e7f7692eb0d414584e2594108.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_3825edebc1f5c82942edc4f39a8eaaf557422dffed97c04ddb7f2e9c2a620de006444b742d0fdc26b65e2a73bfe955bb86868bff67341211419f5951f926f612.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_c72a395533d84dddb52c778baf2389151e15e1fdee129fe0a02fa4a21932b08b9382e1eca839ceaa39a654d52275966968805058f10e8ad53f83d5e457070ae4.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_77799323eee0cf72c7962b5e20605ad33f9b4641754adbffda297af19aa59a9ca43f8ff264bc505753d8dd0feb8ca9a10e2775ae7dc0ed115b4ebf5af5807e71.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_b8e5c1f1b6863e3f2720d3e2a375b58ddfebe629843d7784bfdd46892d2e9156d2b7b36b315d9a69b14765962e05985079e9068e97e788538229367feb41871b.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_a0132b5349e390fcbc88194f29208abd52ae5778d0b9ee89cbaba5158311913b24d49058efd8a4a89f1e0e96c5a686ce0b4292c84cffa6cf7aa3ff62dbcdb810.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_9f709ba0e499448dca639d2106b85da218ce89fae6243c89f6dfbc34637355868a0b9eee85ec98469fd6efc6b3bf3ef1373171ca8172c46cc011ab1cfaa3355c.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_e160d763a4f70685b1567f8bb9310ebafbfb287714d222473b68095f562dbe3fc5f27f07f84a015c93e07857056a8efe3691bf4ceb43e7f99c34e97f4ab1c02a.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_2033e7ef24f8c1195926608622cf3fe9da673a07a215600bde63bd8cd770e2d931e5d54c9d39e2f114c37dfed4ae30ebaaeae0da367cad5a940cd4907d48d1df.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_e533615cfbc72323ab94011f036c0f23e3a28fd5e0f25b258f19998771c9e9f2efa15c88f5d7c8bd31057dacc2548df93c707837ac644d4775f06f01d4790e1a.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_56c6fc6a85e501800f5f9fbf6e7d879c4f99c9345f2e86b445960acc644ee32520beef369c54c7db5362405b89b12e530d8cc73407285e1929d2d9e796ae447b.js
https://govfacts.org/wp-content/cache/breeze-minification/js/breeze_2d64a068595dce3912303c9c3c1708f6d20ca93f4f07306dbc04c3bf14ea919b534c3f9aba0487a2f84707cece9e07690fbb41bab9fa035594ffdb7659bb16ea.js