Legal Strategies to Reduce or Avoid Capital Gains Tax on Real Estate

Photo by CHUTTERSNAP on Unsplash
Understanding Capital Gains Tax on Real Estate
Capital gains tax is a federal tax imposed on the profit made from selling real estate or other investments. When you sell a property for more than you paid, the profit is considered a capital gain and is subject to taxation. The tax rate depends on your income and how long you held the property. If you owned the property for over a year, you may be subject to long-term capital gains rates, typically ranging from 0% to 20% federally, with some states imposing their own additional taxes [1] . Understanding how to reduce or defer this tax can help you retain more of your earnings.
1. Qualify for the Home Sale Exclusion (Section 121 Exclusion)
The IRS offers a significant tax break for homeowners selling their primary residence . Under Section 121, you may exclude up to $250,000 of capital gains from taxation if you are single, or up to $500,000 if married and filing jointly. To qualify, you must meet both the ownership and use tests:
- Ownership Test: You must have owned the home for at least two out of the five years preceding the sale.
- Use Test: The home must have been your principal residence for at least two out of those five years.
These two years do not need to be consecutive. For example, if you lived in the house for one year, rented it out for three, and lived in it again for another year, you may still qualify. However, you cannot claim this exclusion more than once every two years [1] [2] .
Practical Example: If you bought your home for $300,000 and sold it for $600,000 after living in it for at least two years, you could potentially exclude the entire $300,000 gain if you meet the IRS requirements.
Partial Exclusion: If you are forced to sell your home due to unforeseen circumstances-such as a job change, health issue, or certain other qualifying events-the IRS allows a prorated exclusion, even if you have not met the full two-year threshold [1] .
2. Increase Your Cost Basis Through Documented Expenses
Capital gains tax is calculated based on your cost basis : the original purchase price plus improvements and certain costs. Increasing your cost basis reduces your taxable gain. Eligible additions include documented home improvements (such as adding a room, new roof, kitchen remodel), as well as closing costs and fees associated with purchasing and selling the home [2] .
Step-by-Step Guidance:
- Keep thorough records of all substantial improvements to your property. Minor repairs or routine maintenance typically do not qualify.
- Include purchase costs (title fees, legal fees, and certain settlement charges) and eligible selling costs (real estate commissions, advertising costs, and legal fees for the sale).
-
At the time of sale, calculate your adjusted basis:
Original purchase price + documented improvements + purchase/sale costs
. - Subtract this adjusted basis from your sale price to determine your capital gain.
For instance, if you purchased a home for $200,000, spent $50,000 on qualifying improvements, and paid $10,000 in closing costs, your new basis is $260,000. If you sell for $350,000, your gain is $90,000 instead of $150,000.
Potential Challenges: You must retain documentation for all improvements and expenses. If you cannot provide proof, the IRS may disallow your increased basis.
3. Use a 1031 Exchange for Investment Properties
For investment property owners , the IRS allows you to defer capital gains through a 1031 exchange . This provision lets you sell an investment property and reinvest the proceeds into another “like-kind” property without paying capital gains tax immediately. The key requirements for a 1031 exchange include:
- You must identify a replacement property within 45 days of the sale.
- The transaction must be completed (closed) within 180 days.
- Funds must be handled by a qualified intermediary-not directly by you.
This strategy is especially useful for investors wanting to upgrade, diversify, or consolidate their real estate holdings. For example, an investor who sells a rental property and reinvests the proceeds into a new commercial property can defer taxes on the gain until they eventually sell without reinvesting [3] [4] .
Step-by-Step Instructions:
- Consult a tax advisor or real estate attorney experienced in 1031 exchanges.
- Hire a qualified intermediary to facilitate the transaction and hold the proceeds.
- Identify your replacement (like-kind) property in writing within 45 days.
- Close on the new property within 180 days of the original sale.
Potential Challenges: The rules are strict-missing deadlines or improperly handling proceeds can disqualify the exchange, resulting in immediate taxation. Always work with experienced professionals to ensure compliance.
4. Consider Installment Sales and Other Deferral Tactics
If you sell your property and receive payments over time, you may be able to spread your capital gains tax liability over several years using the installment sale method . This approach allows you to report a portion of the gain each year as you receive payments, potentially keeping you in a lower tax bracket annually.
How It Works: Sell your property and receive at least one payment after the tax year of sale. Report the gain proportionally as payments are received.
Potential Benefits: Managing your income over multiple years can reduce your overall tax liability, especially if it prevents you from moving into a higher tax bracket.
Challenges: This approach does not eliminate capital gains tax, but spreads it out. The buyer must be reliable, and you may need to secure the transaction with a deed of trust or similar mechanism. Consult a tax professional to determine if this is right for you.
5. Explore Special Exceptions and Exemptions
The IRS provides exceptions for certain circumstances that may allow for a partial exclusion of capital gains, even if you don’t meet the full requirements. Common qualifying reasons include:
- Change in employment
- Health-related move
- Unforeseen circumstances (such as divorce or disaster)
For these situations, the IRS may allow a prorated exclusion based on the time you lived in the home. For example, if you lived in the property for one year out of the required two, you might be allowed to exclude 50% of the standard exclusion amount [1] .
How to Access: To determine if you qualify, consult IRS Publication 523 (Selling Your Home) or speak with a tax professional familiar with real estate transactions.

Photo by Tierra Mallorca on Unsplash
6. State and Local Tax Considerations
Many states impose their own capital gains tax in addition to federal tax. Each state has different rules and rates. Before selling property, check with your state’s Department of Revenue or a qualified tax advisor to understand your obligations. Some states offer special provisions for seniors, farmers, or specific types of real estate transactions.
Action Steps: Search for your state’s official Department of Revenue website and review their real estate capital gains guidance. If you need further help, consider contacting a local CPA or real estate attorney.
Summary and Key Takeaways
Reducing or avoiding capital gains tax on real estate is possible with proper planning and documentation. The most common and effective approaches include:
- Utilizing the IRS home sale exclusion for your primary residence
- Increasing your cost basis with home improvements and expenses
- Deferring taxes through a 1031 exchange for investment properties
- Spreading tax liability with installment sales
- Seeking partial exclusions for special circumstances
Each approach has specific requirements and potential challenges. To ensure compliance and maximize your tax savings, always consult with a qualified tax advisor, CPA, or real estate attorney before making decisions. If you are interested in pursuing any of these strategies, you can begin by:
- Gathering all documentation on your property purchase, improvements, and sale
- Reviewing IRS guidelines for real estate sales (see IRS Publication 523)
- Contacting a local real estate tax professional for personalized advice
By taking these steps, you can significantly reduce your tax burden and make the most of your real estate investments.
References
- [1] Rocket Mortgage (2025). How to Avoid Capital Gains Taxes on Real Estate.
- [2] LSL CPAs (2024). 4 Ways to Reduce Capital Gains on the Sale of Your Home.
- [3] Brighton Jones (2025). Seven Ways To Reduce Capital Gains Tax on Real Estate.
- [4] CunninghamLegal (2025). How to Avoid and Defer Capital Gains Tax (Legally!).