You cannot avoid capital gains tax entirely, but you can reduce what you owe through specific strategies
Capital gains tax is the tax on profit when you sell property for more than you paid for it. The IRS requires you to report this gain, but several legal methods exist to lower the amount you owe or push the tax to a later year. The most common strategies involve holding the property long enough to may have access to for lower rates, using your primary residence exemption, or timing the sale strategically around your income for that year.
The key distinction is between short-term capital gains (property held one year or less) and long-term capital gains (property held more than one year). Long-term gains are taxed at lower federal rates — 0%, 15%, or 20% depending on your income — while short-term gains are taxed as ordinary income, which can be much higher. straightforward waiting to sell can cut your tax bill significantly.
Key Takeaways
- Long-term capital gains rates (0%, 15%, or 20%) are lower than short-term rates, so holding property over one year before selling reduces your tax burden.
- If the property is your primary residence, you can exclude up to $250,000 of gain ($500,000 if married filing jointly) if you meet the ownership and use tests.
- Timing your sale to keep your total income below certain thresholds can move you into a lower capital gains bracket or even the 0% rate.
- A 1031 exchange lets you reinvest sale proceeds into another property and defer capital gains tax, though the rules are strict and timing is tight.
- Charitable donations of appreciated property and installment sales are less common but can reduce your tax in specific situations.
How the primary residence exemption works
If you sell your main home, you can exclude $250,000 of profit from capital gains tax ($500,000 if you are married and file jointly). This is one of the largest tax breaks available and requires no special filing — you straightforward report the sale on your tax return and claim the exclusion.
To may have access to, you must have owned the home and lived in it as your primary residence for at least two of the five years before the sale. The two years do not have to be consecutive. If you owned it for four years but lived there for only one, you do not may have access to. If you owned it for two years and lived there for two years, you do may have access to, even if you moved out in year three and rented it out.
You can use this exemption once every two years. If you sold a home and claimed the exemption in 2022, you cannot claim it again until 2024. If your profit exceeds the exemption amount, you owe capital gains tax on the excess.
Holding the property long enough to may have access to for lower rates
The difference between short-term and long-term capital gains rates is substantial. Short-term gains are taxed at your ordinary income tax rate, which ranges from 10% to 37% federally. Long-term gains are taxed at 0%, 15%, or 20% depending on your total income for the year.
To may have access to for long-term rates, you must hold the property for more than one year before selling. "More than one year" means you need to own it for at least 366 days. If you bought on January 1 and sold on January 1 of the next year, that is exactly one year and does not may have access to. If you sell on January 2, it qualifies.
For investment properties or rental homes, this holding period is often the simplest way to reduce your tax. If you can delay the sale by a few months to cross the one-year mark, you may save thousands in taxes.
Using income timing to stay in the 0% capital gains bracket
The 0% long-term capital gains rate applies to single filers with taxable income up to $47,025 and married filers with taxable income up to $94,050 (these amounts adjust yearly for inflation). If your total income for the year — including wages, retirement distributions, and capital gains — stays below these thresholds, your long-term capital gains are taxed at 0%.
This strategy works best if you have a year with unusually low income, such as a year you took unpaid leave, retired mid-year, or had a business loss. You can time your property sale to that year and potentially owe zero federal capital gains tax on the profit.
For example, if you are single and your wages for the year are $30,000, you have roughly $17,000 of room before hitting the 0% bracket limit. If you sell a rental property with a $15,000 gain that year, your total income is $45,000 and the entire gain is taxed at 0%. If you sold the same property in a year when you earned $60,000 in wages, much or all of the gain would be taxed at 15% or 20%.
How a 1031 exchange defers capital gains tax
A 1031 exchange is a transaction where you sell one investment property and reinvest the proceeds into another property of equal or greater value. When done correctly, you owe no capital gains tax on the sale. The tax is deferred until you eventually sell the replacement property without doing another 1031 exchange.
The rules are strict. You have 45 days from the sale to identify the replacement property and 180 days to close on it. The replacement property must be of "like-kind," which for real estate means any real property — a rental house, apartment building, commercial space, or raw land all may have access to. You cannot exchange real estate for personal property like a car or boat.
You must use a may have access to intermediary — a third party who holds the sale proceeds and handles the purchase — to avoid touching the money yourself. If you receive the funds directly, even briefly, the exchange fails and you owe the tax when ready. The intermediary fees typically range from $500 to $1,500 depending on the complexity.
A 1031 exchange does not eliminate the tax; it postpones it. If you eventually sell the replacement property for a gain and do not do another 1031 exchange, you will owe capital gains tax then. However, if you hold the property until death, your heirs receive a "step-up in basis" and the accumulated gains are never taxed.
Donating appreciated property to charity
If you own property that has increased significantly in value, you can donate it to a may have access to charity and deduct the full fair market value on your tax return — without paying capital gains tax on the appreciation. This works for real estate, stocks, and other assets.
For example, if you bought a rental property for $100,000 and it is now worth $300,000, you could donate it to a land trust or other may have access to charity. You would deduct $300,000 on your tax return (subject to deduction limits based on your income), and you would owe zero capital gains tax on the $200,000 gain. The charity receives the property and can sell it or hold it.
This strategy makes sense only if you itemize deductions on your tax return. If you take the standard deduction, the charitable deduction provides no tax benefit. You also need a may have access to appraiser to document the property's fair market value, which costs $300 to $1,000 or more.
Selling on an installment plan to spread gains across years
An installment sale is when you sell property and the buyer pays you over time in multiple payments rather than a lump sum. You report the gain proportionally as you receive each payment, which can spread your taxable gain across multiple years and potentially keep you in lower tax brackets.
For example, if you sell a property with a $60,000 gain and the buyer pays you $20,000 per year for three years, you report $20,000 of gain each year instead of $60,000 in year one. This can keep your income lower in each individual year and reduce the amount taxed at higher rates.
Installment sales require a promissory note, and you must charge interest at the IRS minimum rate (which changes quarterly). The buyer typically needs to may have access to for a loan or have substantial savings, since they are financing the purchase through you rather than a bank. This method is less common than others because it requires the buyer to agree and creates ongoing payment risk for the seller.
Frequently Asked Questions
Can I avoid capital gains tax by gifting the property to family instead of selling it?
Gifting avoids capital gains tax at the time of the gift, but the recipient inherits your cost basis. If they later sell the property, they owe capital gains tax on the entire gain from your original purchase price. The only exception is if you hold the property until death — your heirs receive a step-up in basis and can sell it with little or no tax.
What if I sell my home at a loss instead of a gain?
Capital losses on personal residences cannot be deducted. If you sell your primary home for less than you paid, you cannot use that loss to offset other income or gains. For investment properties, capital losses can offset capital gains and up to $3,000 of ordinary income per year.
Do state capital gains taxes exist, and can I reduce them the same way?
Most states do not have a separate capital gains tax, but a few do, including California, New York, and Washington. The federal strategies described here (long-term holding, primary residence exemption, 1031 exchanges) generally reduce state tax as well, though state rules vary. Check your state's tax authority website for specifics.
If I rent out my primary residence after I move, do I lose the exemption?
You can still claim the exemption if you owned and lived in the home for two of the five years before the sale, even if you rented it out for part of that time. However, if you rented it out for more than two years before selling, you may owe depreciation recapture tax on the rental portion of the gain, which is taxed at 25% federally.
Do I need to report the sale to the IRS even if my gain is small?
Yes. You must report the sale on Form 8949 and Schedule D of your tax return, even if the gain is small or zero. The IRS receives a copy of the closing statement from your title company, so unreported sales are typically caught during processing.