How to Calculate Gain or Loss on Sale of Property in 2025

Homeowners selling their main home can exclude up to $250,000 ($500,000 joint) in capital gains if they meet IRS ownership and use tests. Proper documentation, understanding exclusions, and reporting sales on Schedule D are essential to avoid taxes and comply with regulations for 2025.

VisaVerge.com
Key takeaways

Homeowners may exclude up to $250,000 ($500,000 joint) gain if ownership and use tests are met within five years.
Record documents like purchase contracts, improvements, depreciation, and selling expenses to support exclusion claims.
Report all sales on Schedule D (Form 1040), even if gain is excluded or loss isn’t deductible.

When selling property in the United States 🇺🇸, understanding how to calculate the gain or loss, what tax rules apply, and what documentation is required is essential. Whether you are a homeowner, a recent immigrant, or someone with a more complex situation involving business or rental use, knowing the requirements can help you avoid costly mistakes. This guide provides a thorough overview of who qualifies for the main home exclusion, detailed eligibility criteria with real-world examples, required documentation with official links, a step-by-step application process, and practical tips for meeting all requirements.

Who Qualifies for the Main Home Exclusion?

How to Calculate Gain or Loss on Sale of Property in 2025
How to Calculate Gain or Loss on Sale of Property in 2025

The main home exclusion is a special tax rule that allows many homeowners to exclude up to $250,000 of gain ($500,000 for married couples filing jointly) from their income when they sell their main home. To qualify, you must meet both the ownership and use tests:

  • Ownership Test: You must have owned the home for at least two years during the five-year period ending on the date of sale.
  • Use Test: You must have lived in the home as your main home for at least two years during the same five-year period.

Both tests do not need to be met at the same time, but both must be satisfied within the five-year window before the sale. If you are married and filing jointly, at least one spouse must meet the ownership test, and both must meet the use test.

Example 1:
Maria bought a house in 2020 and lived there until 2024. She sells the house in 2025. She meets both the ownership and use tests, so she may qualify for the exclusion.

Example 2:
John bought a house in 2019 but rented it out until 2023. He moved in and lived there from 2023 to 2025. He only meets the use test for two years but not the ownership test for two years as his main home, so he may not qualify for the full exclusion.

Detailed Eligibility Criteria

To claim the main home exclusion, you must meet these requirements:

Main Home Exclusion Eligibility Requirements

Key criteria to qualify for the main home exclusion when selling property

1

Ownership and Use Test

Must have owned and lived in the home as your main home for at least two out of the last five years before the sale.

2

Frequency of Exclusion

Cannot claim the exclusion if you have already claimed it for another home sold within the last two years.

3

Special Circumstances

May qualify for a reduced exclusion if you had to sell your home because of work, health, or an unforeseen event.

4

Business or Rental Use

If part of the home was used for business or rented out, you may have to pay tax on the gain related to that part.

5

Non-Qualifying Sales

Cannot claim the exclusion if the home was acquired through a like-kind exchange within the last five years.

1. Ownership and Use:
– You must have owned and lived in the home as your main home for at least two out of the last five years before the sale.
– The two years do not have to be continuous or immediately before the sale.

2. Frequency of Exclusion:
– You cannot claim the exclusion if you have already claimed it for another home sold within the last two years.

3. Special Circumstances:
– If you had to sell your home because of work, health, or an unforeseen event, you may qualify for a reduced exclusion even if you did not meet the two-year rule. The reduced exclusion is based on the portion of the two years you did meet.

4. Business or Rental Use:
– If you used part of your home for business or rented it out, you may have to pay tax on the gain related to that part. The exclusion only applies to the part used as your main home.

5. Non-Qualifying Sales:
– If you acquired the home through a like-kind exchange (also called a 1031 exchange) within the last five years, you cannot claim the exclusion.
– If you are subject to expatriate tax rules, you may not qualify.

6. Reporting Requirements:
– Even if your entire gain is excluded, you may still need to report the sale on your tax return using Schedule D (Form 1040).

Required Documentation

To support your claim for the main home exclusion and to calculate your gain or loss, you should keep the following documents:

  • Purchase Documents: Closing statement, purchase contract, and proof of payment.
  • Improvement Records: Receipts and contracts for home improvements (not repairs).
  • Depreciation Records: If you claimed depreciation for business or rental use.
  • Selling Documents: Closing statement from the sale, proof of selling expenses (commissions, legal fees, advertising, loan charges).
  • Proof of Residency: Utility bills, driver’s license, voter registration, or tax returns showing your address.
  • Previous Sale Records: If you claimed the exclusion in the past two years.

For official forms and instructions, refer to Schedule D (Form 1040) and IRS Publication 523, Selling Your Home.

Application Process Overview

Step 1: Calculate Adjusted Basis
– Start with the purchase price of your home.
– Add the cost of improvements (such as adding a room, new roof, or remodeling).
– Subtract any depreciation claimed for business or rental use.

Step 2: Calculate Amount Realized
– Take the selling price of your home.
– Subtract selling expenses, including commissions, advertising fees, legal fees, and loan charges paid by you as the seller.

Step 3: Calculate Gain or Loss
– Subtract the adjusted basis from the amount realized.
Gain or Loss = Amount Realized – Adjusted Basis
– If the result is positive, you have a gain. If negative, you have a loss.

Step 4: Apply Main Home Exclusion
– If you qualify, exclude up to $250,000 ($500,000 for married filing jointly) of gain.
– If you do not meet the full two-year rule but qualify for a reduced exclusion, calculate the allowed amount based on the time you owned and lived in the home.

Step 5: Determine Taxable Gain
– Subtract the exclusion from your gain. Any remaining gain is taxable.
– If your gain is less than the exclusion, you owe no tax on the sale of your main home.

Step 6: Report the Sale
– Use Schedule D (Form 1040) to report the sale, even if your gain is excluded or your loss is not deductible.

Step 7: Pay Any Taxes Owed
– If you have taxable gain, apply the correct capital gains tax rate based on how long you owned the home and your income.

Practical Tips for Meeting Requirements

  • Keep Good Records: Save all documents related to the purchase, improvement, and sale of your home. This will help you prove your adjusted basis and selling expenses.
  • Understand What Counts as an Improvement: Only improvements that add value or extend the life of your home count toward your adjusted basis. Repairs and maintenance do not.
  • Track Business or Rental Use: If you used part of your home for business or rented it out, keep clear records. You may need to separate the gain or loss for that part.
  • Plan for Taxes: If your gain will exceed the exclusion, estimate your tax liability using online calculators or consult a tax professional.
  • Report Even Non-Taxable Sales: The IRS requires you to report the sale of your main home on Schedule D, even if you do not owe tax.
  • Consult IRS Publications: For detailed examples and worksheets, use IRS Publication 523.

Examples and Case Studies

Case Study 1: Full Exclusion
Sarah and Mike, a married couple, bought their home for $300,000 in 2018. They spent $50,000 on improvements. They sold the home in 2025 for $600,000, paying $30,000 in selling expenses.

  • Adjusted Basis: $300,000 + $50,000 = $350,000
  • Amount Realized: $600,000 – $30,000 = $570,000
  • Gain: $570,000 – $350,000 = $220,000

Because their gain is less than $500,000, they can exclude the entire amount and owe no tax.

Case Study 2: Partial Exclusion
Anna owned her home for 18 months before selling due to a job transfer. She qualifies for a reduced exclusion.

  • Maximum exclusion for single filers: $250,000
  • Fraction of two years: 18/24 = 0.75
  • Allowed exclusion: $250,000 x 0.75 = $187,500

If her gain is $200,000, she can exclude $187,500 and pay tax on $12,500.

Case Study 3: Loss on Sale
David bought his home for $400,000, spent $20,000 on improvements, and sold it for $380,000, paying $10,000 in selling expenses.

  • Adjusted Basis: $400,000 + $20,000 = $420,000
  • Amount Realized: $380,000 – $10,000 = $370,000
  • Loss: $370,000 – $420,000 = –$50,000

David cannot deduct this loss because losses on the sale of a main home are not deductible.

Case Study 4: Business Use
Priya used 20% of her home as a home office. When she sells, she must pay tax on the gain related to the office portion, and only the remaining 80% may qualify for the exclusion.

Capital Gains Tax Rates for 2025

  • Long-term capital gains (owned more than one year): 0%, 15%, or 20% depending on your income and filing status.
  • Short-term capital gains (owned one year or less): taxed at your regular income tax rate.
  • Net Investment Income Tax (NIIT): An extra 3.8% may apply to high-income earners.

For the most current tax brackets and rates, check the IRS official capital gains tax page.

Recent Policy Updates

  • The $250,000/$500,000 exclusion limits remain unchanged for 2025.
  • Capital gains tax brackets have been adjusted for inflation.
  • The IRS stresses the importance of accurate reporting, even if the gain is excluded or the loss is not deductible.
  • Selling expenses, including loan charges paid by the seller, continue to reduce the amount realized.

Common Concerns and Mistakes

⚠️

Important

Failing to report the sale of your home on Schedule D, even if no tax is owed, can lead to IRS penalties. Ensure you complete this step to avoid complications.
  • Not Reporting the Sale: Even if you owe no tax, you may still need to report the sale on your tax return.
  • Missing Documentation: Without proof of improvements or selling expenses, you may pay more tax than necessary.
  • Confusing Repairs with Improvements: Only improvements add to your basis; repairs do not.
  • Overlooking Business or Rental Use: Special rules apply, and you may owe tax on part of the gain.

According to analysis by VisaVerge.com, many taxpayers miss out on savings or face IRS questions because they do not keep good records or misunderstand the difference between gain and loss on the sale of property.

Where to Find More Help

Actionable Takeaways

  • Document everything related to your home purchase, improvements, and sale.
  • Check your eligibility for the main home exclusion before selling.
  • Use official IRS forms and instructions to report your sale.
  • Consult a tax professional if your situation involves business use, rental, inheritance, or other complexities.
  • Stay updated on tax law changes by visiting the IRS official website.

By following these steps and keeping thorough records, you can accurately calculate your gain or loss, claim the main home exclusion if eligible, and avoid common pitfalls when selling property in the United States 🇺🇸.

Learn Today

Main Home Exclusion → A tax rule allowing homeowners to exclude up to $250,000 gain ($500,000 joint) on main home sales.
Adjusted Basis → The original purchase price plus improvements minus depreciation used to calculate capital gain or loss.
Schedule D (Form 1040) → IRS tax form used to report capital gains and losses from property sales.
Ownership Test → Requirement to own the home for at least two years during the five years before sale.
Use Test → Requirement to use the home as your main residence for at least two years before selling.

This Article in a Nutshell

Selling a home in the U.S. offers tax benefits like the main home exclusion. Meeting ownership, use, and documentation requirements is crucial to avoid taxes. Understanding eligibility, capital gains calculations, and proper reporting ensures you maximize savings and comply with IRS rules while preventing costly mistakes on property sales.
— By VisaVerge.com

Share This Article
Sai Sankar is a law postgraduate with over 30 years of extensive experience in various domains of taxation, including direct and indirect taxes. With a rich background spanning consultancy, litigation, and policy interpretation, he brings depth and clarity to complex legal matters. Now a contributing writer for Visa Verge, Sai Sankar leverages his legal acumen to simplify immigration and tax-related issues for a global audience.
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments