{"id":548,"date":"2026-07-02T01:11:25","date_gmt":"2026-07-02T05:11:25","guid":{"rendered":"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-investment-property\/"},"modified":"2026-07-11T00:28:34","modified_gmt":"2026-07-11T04:28:34","slug":"avoid-capital-gains-tax-on-investment-property","status":"publish","type":"post","link":"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/","title":{"rendered":"Avoid Capital Gains Tax on Investment Property (2026)"},"content":{"rendered":"<p>You sell a rental property you bought for $280,000 back in 2017. The closing price is $450,000. You&#8217;re thrilled \u2014 until your CPA calls. After accounting for depreciation recapture on the $29,000 you claimed over the years, your taxable gain is closer to $199,000. At the 15% long-term rate plus the 3.8% Net Investment Income Tax, you&#8217;re staring down a federal bill north of $37,000 \u2014 and that&#8217;s before your state takes its cut. That $51,000+ combined tax hit isn&#8217;t a worst-case scenario. It&#8217;s routine. The good news: the IRS gives investors several completely legal paths to reduce or even eliminate that bill.<\/p>\n<p><strong>The most common ways to avoid capital gains tax on investment property are:<\/strong> 1031 exchanges (defer indefinitely), converting to primary residence (Section 121 exclusion up to $500K), Opportunity Zone investing (eliminate tax on new gains after 10 years), installment sales (spread gain across years), harvesting capital losses, increasing your cost basis, and the stepped-up basis at death.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#How_Capital_Gains_Tax_Works_When_You_Sell_an_Investment_Property\" >How Capital Gains Tax Works When You Sell an Investment Property<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#Short-Term_vs_Long-Term_Rates\" >Short-Term vs. Long-Term Rates<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#Depreciation_Recapture\" >Depreciation Recapture<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#Net_Investment_Income_Tax_NIIT\" >Net Investment Income Tax (NIIT)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#State_Taxes\" >State Taxes<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#7_Legal_Ways_to_Avoid_Capital_Gains_Tax_on_Investment_Property\" >7 Legal Ways to Avoid Capital Gains Tax on Investment Property<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#1_The_1031_Exchange_Defer_Indefinitely\" >1. The 1031 Exchange: Defer Indefinitely<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#2_Primary_Residence_Conversion_The_Section_121_Exclusion\" >2. Primary Residence Conversion: The Section 121 Exclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#3_Opportunity_Zones_Invest_Gains_Eliminate_Future_Tax\" >3. Opportunity Zones: Invest Gains, Eliminate Future Tax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#4_Installment_Sale_Spread_the_Gain_Stay_in_Lower_Brackets\" >4. Installment Sale: Spread the Gain, Stay in Lower Brackets<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#5_Harvest_Capital_Losses_Offset_Gains_with_Losers\" >5. Harvest Capital Losses: Offset Gains with Losers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#6_Increase_Your_Cost_Basis_Document_Every_Improvement\" >6. Increase Your Cost Basis: Document Every Improvement<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#7_Die_With_It_The_Stepped-Up_Basis_Strategy\" >7. Die With It: The Stepped-Up Basis Strategy<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#Worked_Example_170000_Gain_Three_Strategies_Compared\" >Worked Example: $170,000 Gain, Three Strategies Compared<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#Common_Mistakes_That_Trigger_Unnecessary_Tax\" >Common Mistakes That Trigger Unnecessary Tax<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#Mistake_1_Forgetting_to_Track_Capital_Improvements\" >Mistake 1: Forgetting to Track Capital Improvements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#Mistake_2_Missing_the_1031_Identification_Deadline\" >Mistake 2: Missing the 1031 Identification Deadline<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#Mistake_3_Assuming_the_Primary_Residence_Exclusion_Fully_Applies\" >Mistake 3: Assuming the Primary Residence Exclusion Fully Applies<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#Mistake_4_Selling_in_a_High-Income_Year\" >Mistake 4: Selling in a High-Income Year<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#Best_Strategy_to_Avoid_Capital_Gains_Tax_on_Investment_Property_by_Situation\" >Best Strategy to Avoid Capital Gains Tax on Investment Property by Situation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-on-investment-property\/#Frequently_Asked_Questions\" >Frequently Asked Questions<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_Capital_Gains_Tax_Works_When_You_Sell_an_Investment_Property\"><\/span>How Capital Gains Tax Works When You Sell an Investment Property<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before you can avoid capital gains tax on investment property, you have to understand exactly what you&#8217;re paying and why.<\/p>\n<p>When you sell an investment property, you&#8217;re potentially on the hook for three separate layers of federal tax \u2014 plus state tax on top.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Short-Term_vs_Long-Term_Rates\"><\/span>Short-Term vs. Long-Term Rates<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If you held the property for one year or less, the gain is short-term and taxed as ordinary income. In 2026, that means rates up to 37% for high earners. Hold it longer than a year and you qualify for long-term capital gains rates: 0%, 15%, or 20% depending on your taxable income.<\/p>\n<p>For 2026, the long-term thresholds look like this:<\/p>\n<table>\n<thead>\n<tr>\n<th>Filing Status<\/th>\n<th>0% Rate<\/th>\n<th>15% Rate<\/th>\n<th>20% Rate<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Single<\/td>\n<td>Up to $48,350<\/td>\n<td>$48,351\u2013$533,400<\/td>\n<td>Over $533,400<\/td>\n<\/tr>\n<tr>\n<td>Married Filing Jointly<\/td>\n<td>Up to $96,700<\/td>\n<td>$96,701\u2013$600,050<\/td>\n<td>Over $600,050<\/td>\n<\/tr>\n<tr>\n<td>Head of Household<\/td>\n<td>Up to $64,750<\/td>\n<td>$64,751\u2013$566,700<\/td>\n<td>Over $566,700<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>Projected 2026 thresholds based on IRS inflation adjustments. Verify current brackets at <a href=\"https:\/\/www.irs.gov\/newsroom\/irs-provides-tax-inflation-adjustments\" target=\"_blank\" rel=\"noopener\">IRS.gov<\/a>.<\/em><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Depreciation_Recapture\"><\/span>Depreciation Recapture<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>This one surprises a lot of investors. Every year you owned the rental, you likely deducted depreciation \u2014 the IRS lets you write off residential property over 27.5 years. When you sell, the IRS wants that money back. The recaptured depreciation is taxed at a flat 25% rate (called Section 1250 unrecaptured gain), regardless of your tax bracket.<\/p>\n<p>On a $280,000 property held for seven years, you might have claimed roughly $71,270 in total depreciation ($280,000 \u00f7 27.5 \u00d7 7). That&#8217;s $17,818 in depreciation recapture tax alone, at the 25% rate \u2014 before you even touch the appreciation gain. You can learn more about how this works in our <a href=\"https:\/\/arvcalc.com\/blog\/real-estate-depreciation-calculator\/\">depreciation guide<\/a>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Net_Investment_Income_Tax_NIIT\"><\/span>Net Investment Income Tax (NIIT)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), an additional 3.8% NIIT applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold. For a high-earning couple in the example above, that&#8217;s another $7,562 on the $199,000 gain.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"State_Taxes\"><\/span>State Taxes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>States vary wildly. California taxes capital gains as ordinary income \u2014 rates up to 13.3%. Texas and Florida have no state income tax. Most states fall somewhere in between. According to the <a href=\"https:\/\/taxfoundation.org\/data\/all\/state\/state-capital-gains-tax\/\" target=\"_blank\" rel=\"noopener\">Tax Foundation<\/a>, the average top state capital gains rate is around 5.5%. On a $170,000 gain, that&#8217;s another $9,350 out of your pocket if you&#8217;re in an average-tax state.<\/p>\n<p>Understanding these layers is the first step to figuring out how to avoid capital gains tax on investment property. The <a href=\"https:\/\/arvcalc.com\/capital-gains-tax-calculator\">Capital Gains Tax Calculator<\/a> handles all three federal layers plus state tax simultaneously, so you get your real number before you sign anything.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"7_Legal_Ways_to_Avoid_Capital_Gains_Tax_on_Investment_Property\"><\/span>7 Legal Ways to Avoid Capital Gains Tax on Investment Property<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"1_The_1031_Exchange_Defer_Indefinitely\"><\/span>1. The 1031 Exchange: Defer Indefinitely<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The 1031 exchange is the most popular way to avoid capital gains tax on investment property. It&#8217;s the gold standard for real estate investors who want to keep building wealth without handing a chunk to the IRS every time they sell. Under <a href=\"https:\/\/www.irs.gov\/businesses\/small-businesses-self-employed\/like-kind-exchanges-real-estate-tax-tips\" target=\"_blank\" rel=\"noopener\">IRC Section 1031<\/a>, you can sell an investment property and roll all the proceeds into a &#8220;like-kind&#8221; replacement property without recognizing the gain. The tax is deferred \u2014 not forgiven \u2014 but many investors chain 1031 exchanges their entire careers and never pay the deferred tax during their lifetime.<\/p>\n<p>The rules are strict. You have <strong>45 days from closing<\/strong> to identify your replacement property in writing, and you must close on it within <strong>180 days<\/strong> of your sale. Miss either deadline by a single day and the exchange collapses \u2014 your entire gain becomes taxable immediately. The replacement property must be equal to or greater in value than the property you sold, and you can&#8217;t touch the sale proceeds directly; they must go through a qualified intermediary.<\/p>\n<p>What counts as &#8220;like-kind&#8221;? Broader than most people expect. You can swap a single-family rental for a commercial strip mall, a duplex for raw land, or a small apartment building for a net-lease retail property. Personal residences don&#8217;t qualify. Neither do properties you flip for sale in the ordinary course of business.<\/p>\n<p>Run the numbers on your specific deal with the <a href=\"https:\/\/arvcalc.com\/1031-exchange-calculator\">1031 Exchange Calculator<\/a>, and read our full <a href=\"https:\/\/arvcalc.com\/blog\/1031-exchange-real-estate-guide\/\">1031 exchange guide<\/a> before you start the process. Timelines are covered in detail in our <a href=\"https:\/\/arvcalc.com\/blog\/1031-exchange-timeline\/\">1031 timeline article<\/a>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_Primary_Residence_Conversion_The_Section_121_Exclusion\"><\/span>2. Primary Residence Conversion: The Section 121 Exclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Under <a href=\"https:\/\/www.irs.gov\/taxtopics\/tc701\" target=\"_blank\" rel=\"noopener\">IRC Section 121<\/a>, if you sell a home that was your primary residence for at least two of the last five years, you can exclude up to $250,000 of gain (single filers) or $500,000 (married filing jointly) from federal tax. For many investors, that&#8217;s a tax-free sale.<\/p>\n<p>This is another proven way to avoid capital gains tax on investment property: convert it into your primary residence. Move in, live there for at least two years, then sell. You&#8217;ll still owe depreciation recapture on any depreciation you claimed while it was a rental \u2014 that portion isn&#8217;t excluded by Section 121 \u2014 but the appreciation gain can be fully or largely sheltered.<\/p>\n<p>There&#8217;s a post-2008 wrinkle you need to know. A 2008 law added a &#8220;non-qualified use&#8221; rule: any time the property was used as a rental after January 1, 2009 is considered non-qualified use. The portion of the gain that corresponds to non-qualified use periods doesn&#8217;t qualify for the Section 121 exclusion. If you rented it for five years and then lived in it for two years, roughly 71% (5 out of 7 years) of the gain is non-qualified and still taxable. The strategy still cuts your bill, but it&#8217;s not a free pass on the full gain for long-term rentals.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Opportunity_Zones_Invest_Gains_Eliminate_Future_Tax\"><\/span>3. Opportunity Zones: Invest Gains, Eliminate Future Tax<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Opportunity Zones offer a third way to avoid capital gains tax on investment property. QOZ funds were created by the Tax Cuts and Jobs Act of 2017. The deal: you sell an investment property, realize a capital gain, and then roll that gain into a Qualified Opportunity Zone Fund within 180 days. If you hold the QOZ investment for at least 10 years, any appreciation on the new investment is entirely excluded from federal capital gains tax.<\/p>\n<p>Say you rolled $170,000 in gain into a QOZ fund. That fund&#8217;s investment grows to $400,000 over 12 years. The $230,000 of growth is completely tax-free at the federal level. The original $170,000 deferred gain does eventually come due, but with smart planning around the timing, you can manage that hit.<\/p>\n<p>According to <a href=\"https:\/\/www.investopedia.com\/terms\/q\/qualified-opportunity-zone.asp\" target=\"_blank\" rel=\"noopener\">Investopedia<\/a>, as of 2024 there are over 8,700 designated Opportunity Zones across all 50 states and U.S. territories. Not all funds are created equal \u2014 due diligence on the underlying real estate project matters enormously here.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Installment_Sale_Spread_the_Gain_Stay_in_Lower_Brackets\"><\/span>4. Installment Sale: Spread the Gain, Stay in Lower Brackets<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>An installment sale is a less-known way to avoid capital gains tax on investment property \u2014 or at least reduce the rate you pay. Instead of collecting all your proceeds at closing, you act as the bank. The buyer pays you in installments over multiple years. Under IRS rules, you only recognize gain as you receive payments, which means you can spread a large gain across several years and potentially keep yourself in the 15% \u2014 or even 0% \u2014 long-term capital gains bracket each year instead of getting bumped to 20% plus NIIT from one large lump-sum recognition.<\/p>\n<p>On a $170,000 gain, recognizing it all at once could push a married couple from the 15% bracket into the 20% bracket, triggering NIIT on a portion as well. Spread that same $170,000 over five years at $34,000 per year and they may stay comfortably in the 15% bracket \u2014 or even lower \u2014 every year.<\/p>\n<p>Depreciation recapture must be recognized in full in year one of an installment sale \u2014 you can&#8217;t spread that portion.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Harvest_Capital_Losses_Offset_Gains_with_Losers\"><\/span>5. Harvest Capital Losses: Offset Gains with Losers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Loss harvesting is another practical way to avoid capital gains tax on investment property. Tax-loss harvesting isn&#8217;t just for stock portfolios. If you have investment properties or securities sitting at a loss, selling them in the same tax year as your profitable sale lets you offset gains dollar for dollar. Short-term losses offset short-term gains first, then long-term gains. Long-term losses offset long-term gains first, then short-term gains.<\/p>\n<p>If your losses exceed your gains, you can deduct up to $3,000 of the excess against ordinary income and carry the rest forward indefinitely to future years. Investors with diversified portfolios that include underperforming stocks, REITs, or secondary properties often have more loss-harvesting capacity than they realize.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_Increase_Your_Cost_Basis_Document_Every_Improvement\"><\/span>6. Increase Your Cost Basis: Document Every Improvement<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Your taxable gain is the difference between your net selling price and your adjusted cost basis. Every dollar you legitimately add to your cost basis is a dollar that isn&#8217;t taxed. Capital improvements \u2014 as opposed to routine repairs \u2014 increase your basis.<\/p>\n<p>A new roof on a rental adds to basis. A new HVAC system adds to basis. A kitchen renovation adds to basis. Replacing a broken faucet? That&#8217;s a repair, not an improvement, and it doesn&#8217;t affect basis.<\/p>\n<p>If you bought a property for $280,000 and spent $45,000 on a roof replacement, new windows, and a kitchen gut rehab over the years, your basis is $325,000 before depreciation adjustments. That alone reduces your taxable gain by $45,000 \u2014 which at a combined 18.8% federal rate (15% + 3.8% NIIT) saves you $8,460 in federal tax.<\/p>\n<p>The documentation requirements are real. Keep every contractor invoice, permit, and receipt. If you want to avoid capital gains tax on investment property, this is the easiest step \u2014 it costs nothing but a filing habit. The IRS will accept contemporaneous records; it won&#8217;t accept your memory of what things cost.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_Die_With_It_The_Stepped-Up_Basis_Strategy\"><\/span>7. Die With It: The Stepped-Up Basis Strategy<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The ultimate way to avoid capital gains tax on investment property? Don&#8217;t sell it during your lifetime. This sounds morbid, but it&#8217;s also the most powerful capital gains elimination tool in the tax code. When you die holding an appreciated asset, your heirs receive a &#8220;stepped-up&#8221; basis equal to the fair market value at the date of your death. The entire lifetime of capital gains simply disappears.<\/p>\n<p>If you bought a property for $200,000, it&#8217;s worth $800,000 when you die, and your heirs inherit it, their basis is $800,000. They could sell it the next day for $800,000 and owe zero capital gains tax on the $600,000 appreciation you built over your lifetime.<\/p>\n<p>This strategy works best as a complement to others, not a standalone plan. Holding a property indefinitely has carrying costs and operational demands. It&#8217;s most rational for properties that generate strong cash flow \u2014 use the <a href=\"https:\/\/arvcalc.com\/property-cash-flow-calculator\">Cash Flow Calculator<\/a> to confirm your deal earns its keep while you hold it.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Worked_Example_170000_Gain_Three_Strategies_Compared\"><\/span>Worked Example: $170,000 Gain, Three Strategies Compared<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Theory is one thing \u2014 let&#8217;s see what happens when you actually try to avoid capital gains tax on investment property with real numbers. Take one investor \u2014 call her Maria \u2014 and run the same scenario three ways.<\/p>\n<p><strong>The Setup:<\/strong> Maria is married, filing jointly. Her and her husband&#8217;s taxable income before this sale is $180,000. She sells a rental property with the following figures:<\/p>\n<ul>\n<li>Original purchase price: $280,000<\/li>\n<li>Capital improvements added to basis: $30,000<\/li>\n<li>Total depreciation claimed over 8 years: $81,455 ($280,000 \u00f7 27.5 \u00d7 8)<\/li>\n<li>Adjusted cost basis: $228,545 ($280,000 + $30,000 \u2212 $81,455)<\/li>\n<li>Net sale price: $450,000<\/li>\n<li>Total gain: $221,455<\/li>\n<li>Depreciation recapture portion: $81,455 (taxed at 25%)<\/li>\n<li>Long-term appreciation gain: $140,000 (taxed at capital gains rates)<\/li>\n<\/ul>\n<table>\n<thead>\n<tr>\n<th>Tax Component<\/th>\n<th>Do Nothing<\/th>\n<th>1031 Exchange<\/th>\n<th>Installment Sale (5 yrs)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Depreciation Recapture (25%)<\/td>\n<td>$20,364<\/td>\n<td>$0 (deferred)<\/td>\n<td>$20,364 (Year 1)<\/td>\n<\/tr>\n<tr>\n<td>Appreciation Gain (15%)<\/td>\n<td>$21,000<\/td>\n<td>$0 (deferred)<\/td>\n<td>$4,200\/yr \u00d7 5 = $21,000<\/td>\n<\/tr>\n<tr>\n<td>State Tax (5%)<\/td>\n<td>$11,073<\/td>\n<td>$0 (deferred)<\/td>\n<td>~$2,215\/yr \u00d7 5 = $11,073<\/td>\n<\/tr>\n<tr>\n<td><strong>Total Tax Year 1<\/strong><\/td>\n<td><strong>$52,437<\/strong><\/td>\n<td><strong>$0<\/strong><\/td>\n<td><strong>$31,779<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>Total Tax Over Time<\/strong><\/td>\n<td><strong>$52,437<\/strong><\/td>\n<td><strong>$0 until next sale<\/strong><\/td>\n<td><strong>$52,437 (spread out)<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The 1031 exchange eliminates the immediate hit entirely. Maria takes the full $450,000 in equity, rolls it into a replacement property, and continues building her portfolio with no tax event. Read our <a href=\"https:\/\/arvcalc.com\/blog\/capital-gains-tax-calculator-guide\/\">capital gains tax guide<\/a> for more detail on how basis rolls over in exchange scenarios.<\/p>\n<p>Now add a loss-harvesting twist: say Maria also holds a stock position down $40,000. She sells it the same year. That $40,000 long-term loss offsets $40,000 of her $140,000 appreciation gain. Federal capital gains tax on that portion drops from $21,000 to $15,000, saving $6,000 in federal tax alone.<\/p>\n<p>These are the most effective ways to avoid capital gains tax on investment property \u2014 and in most cases, combining two or more strategies yields even better results. Use the <a href=\"https:\/\/arvcalc.com\/blog\/avoid-capital-gains-tax-real-estate\/\">general CGT strategies guide<\/a> to explore which combination makes sense for your situation, and model your holding period return with the <a href=\"https:\/\/arvcalc.com\/rental-property-calculator\">Rental Property Calculator<\/a>.<\/p>\n<div style=\"background: #eff6ff; border: 2px solid #bfdbfe; border-radius: 12px; padding: 20px; margin: 24px 0; text-align: center;\">\n<p style=\"font-size: 18px; font-weight: bold; color: #1e3a5f; margin-bottom: 8px;\">Run Your Exact Numbers<\/p>\n<p style=\"font-size: 14px; color: #475569; margin-bottom: 12px;\">See exactly how much you&#8217;d owe \u2014 or save \u2014 on your specific deal.<\/p>\n<p><a href=\"https:\/\/arvcalc.com\/capital-gains-tax-calculator\" style=\"display: inline-block; background: #f59e0b; color: #1e3a5f; font-weight: bold; padding: 12px 24px; border-radius: 8px; text-decoration: none;\">Capital Gains Tax Calculator \u2192<\/a><\/p>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"Common_Mistakes_That_Trigger_Unnecessary_Tax\"><\/span>Common Mistakes That Trigger Unnecessary Tax<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Even investors who know how to avoid capital gains tax on investment property often trip up on execution. Here are the four costliest errors.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Mistake_1_Forgetting_to_Track_Capital_Improvements\"><\/span>Mistake 1: Forgetting to Track Capital Improvements<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Most rental property owners are diligent about tracking deductible repairs. Far fewer keep rigorous records of capital improvements. When they sell, their CPA can only work with what they have \u2014 and underdocumented improvements mean an understated cost basis and an overstated gain. A $25,000 HVAC system installed in 2019 that you can&#8217;t prove with an invoice is $25,000 of unnecessary taxable gain. Start a &#8220;capital improvements&#8221; folder for every property you own.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Mistake_2_Missing_the_1031_Identification_Deadline\"><\/span>Mistake 2: Missing the 1031 Identification Deadline<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Investors who decide to do a 1031 exchange after closing \u2014 rather than before \u2014 often find themselves scrambling and missing the 45-day identification window. Once you&#8217;ve closed the sale, the clock starts. You don&#8217;t get an extension for a slow market, a difficult search, or a deal that falls through. Set up your qualified intermediary before you sign the sale contract. Identify two or three replacement properties so you have backup options. Our <a href=\"https:\/\/arvcalc.com\/blog\/1031-exchange-timeline\/\">1031 timeline article<\/a> walks through every critical date.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Mistake_3_Assuming_the_Primary_Residence_Exclusion_Fully_Applies\"><\/span>Mistake 3: Assuming the Primary Residence Exclusion Fully Applies<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The post-2008 non-qualified use rule catches people who convert rental properties to their primary residence expecting a full Section 121 exclusion. If you rented the property for several years before moving in, a proportional share of your gain remains taxable regardless of how long you live there. Run the math with your CPA before you move in, not after you sell.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Mistake_4_Selling_in_a_High-Income_Year\"><\/span>Mistake 4: Selling in a High-Income Year<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Investment property sales don&#8217;t have to happen in the year you decide to sell. If you know you&#8217;ll have a large W-2 bonus or business sale, it might be worth delaying to avoid stacking gains on top of already-elevated income. Crossing from the 15% to 20% bracket costs 5 extra percentage points on your capital gain \u2014 plus potential 3.8% NIIT exposure. On a $170,000 gain, that&#8217;s $13,260 in extra federal tax just from timing. Check your <a href=\"https:\/\/arvcalc.com\/cap-rate-calculator\">Cap Rate Calculator<\/a> figures \u2014 if the property still earns a strong cap rate, a one-year hold might cost less than a rushed sale in a bad income year.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Best_Strategy_to_Avoid_Capital_Gains_Tax_on_Investment_Property_by_Situation\"><\/span>Best Strategy to Avoid Capital Gains Tax on Investment Property by Situation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<table>\n<thead>\n<tr>\n<th>Your Situation<\/th>\n<th>Best Strategy<\/th>\n<th>Tax Saved<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Want to stay in real estate<\/td>\n<td>1031 Exchange<\/td>\n<td>100% deferred<\/td>\n<\/tr>\n<tr>\n<td>Ready to move into the property<\/td>\n<td>Primary Residence Conversion<\/td>\n<td>Up to $500K excluded<\/td>\n<\/tr>\n<tr>\n<td>High-income year, can wait<\/td>\n<td>Installment Sale<\/td>\n<td>5-9% bracket reduction<\/td>\n<\/tr>\n<tr>\n<td>Have losing investments<\/td>\n<td>Loss Harvesting<\/td>\n<td>Dollar-for-dollar offset<\/td>\n<\/tr>\n<tr>\n<td>Building generational wealth<\/td>\n<td>Stepped-Up Basis (hold + estate plan)<\/td>\n<td>100% eliminated at death<\/td>\n<\/tr>\n<tr>\n<td>Want tax-free growth on new gains<\/td>\n<td>Opportunity Zone<\/td>\n<td>100% on new appreciation (10yr+)<\/td>\n<\/tr>\n<tr>\n<td>Did renovations without tracking<\/td>\n<td>Reconstruct Cost Basis<\/td>\n<td>Varies ($5K-$50K+)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Most investors who successfully avoid capital gains tax on investment property combine two or more of these strategies. A common pairing: 1031 exchange into a property you eventually convert to your primary residence, sheltering both the deferred gain and the new appreciation.<\/p>\n<p><em><strong>Disclaimer:<\/strong> This article is for educational purposes only and does not constitute tax, legal, or financial advice. Tax laws change frequently. Consult a licensed CPA or tax attorney before making decisions based on any information in this article.<\/em><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions\"><\/span>Frequently Asked Questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<div class=\"schema-faq-section\" itemscope itemtype=\"https:\/\/schema.org\/FAQPage\">\n<div class=\"schema-faq-question\" itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<strong itemprop=\"name\">Can you completely avoid capital gains tax on investment property?<\/strong><\/p>\n<div class=\"schema-faq-answer\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<p itemprop=\"text\">Yes, in some cases. A 1031 exchange lets you defer the tax indefinitely \u2014 and if you continue doing exchanges until death, your heirs receive a stepped-up basis and the deferred gain disappears entirely. Opportunity Zone investments can eliminate tax on new appreciation after a 10-year hold. The right approach depends on your income, your plans for the proceeds, and how long you intend to stay in real estate investing.<\/p>\n<\/div>\n<\/div>\n<div class=\"schema-faq-question\" itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<strong itemprop=\"name\">How much is capital gains tax on investment property in 2026?<\/strong><\/p>\n<div class=\"schema-faq-answer\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<p itemprop=\"text\">If you&#8217;re trying to avoid capital gains tax on investment property, it helps to know the rates you&#8217;re up against. For long-term gains (property held over one year), federal rates are 0%, 15%, or 20% depending on your total taxable income. Depreciation recapture is taxed separately at a flat 25%. If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married), an additional 3.8% Net Investment Income Tax applies. State taxes vary from 0% (Texas, Florida) to over 13% (California). Total combined rates frequently reach 25\u201335% for mid-to-high-income investors.<\/p>\n<\/div>\n<\/div>\n<div class=\"schema-faq-question\" itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<strong itemprop=\"name\">What is the 1031 exchange 45-day rule?<\/strong><\/p>\n<div class=\"schema-faq-answer\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<p itemprop=\"text\">After closing on the sale of your relinquished property, you have exactly 45 calendar days to identify your replacement property or properties in writing to your qualified intermediary. You can identify up to three properties regardless of their value, or more properties if their combined value doesn&#8217;t exceed 200% of the value of the property you sold. Missing this deadline collapses the exchange and makes the full gain immediately taxable.<\/p>\n<\/div>\n<\/div>\n<div class=\"schema-faq-question\" itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<strong itemprop=\"name\">Does converting a rental to a primary residence eliminate capital gains tax?<\/strong><\/p>\n<div class=\"schema-faq-answer\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<p itemprop=\"text\">Converting a rental to your primary residence can help you avoid capital gains tax on investment property, but it doesn&#8217;t necessarily eliminate the full bill. The Section 121 exclusion ($250,000 single \/ $500,000 married) applies to the portion of gain from &#8220;qualified use&#8221; periods \u2014 meaning time when the property was your primary residence. Periods of rental use after January 1, 2009 are treated as &#8220;non-qualified&#8221; and the proportional gain doesn&#8217;t qualify for the exclusion. Depreciation recapture is also never excluded under Section 121 \u2014 it&#8217;s always taxable at 25%.<\/p>\n<\/div>\n<\/div>\n<div class=\"schema-faq-question\" itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<strong itemprop=\"name\">What counts as a capital improvement vs. a repair for tax purposes?<\/strong><\/p>\n<div class=\"schema-faq-answer\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<p itemprop=\"text\">A capital improvement adds value, extends the useful life, or adapts the property to a new use. A repair simply restores the property to its current condition. Replacing an entire roof is an improvement. Patching a few shingles is a repair. A new HVAC system is an improvement. Recharging refrigerant is a repair. The IRS uses a &#8220;betterment, restoration, or adaptation&#8221; test. Improvements must be capitalized and added to basis; repairs are deducted in the year paid.<\/p>\n<\/div>\n<\/div>\n<div class=\"schema-faq-question\" itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<strong itemprop=\"name\">Can an installment sale reduce my total capital gains tax bill?<\/strong><\/p>\n<div class=\"schema-faq-answer\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<p itemprop=\"text\">Possibly. An installment sale spreads the gain over multiple years, which can keep your income in a lower capital gains bracket each year. It doesn&#8217;t reduce the tax if all income falls in the same bracket either way, but it can eliminate or reduce NIIT exposure if spreading the income keeps your MAGI below the $250,000 threshold. Note that depreciation recapture must be recognized in full in year one regardless of the installment structure.<\/p>\n<\/div>\n<\/div>\n<div class=\"schema-faq-question\" itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<strong itemprop=\"name\">What is the stepped-up basis rule and is it still available in 2026?<\/strong><\/p>\n<div class=\"schema-faq-answer\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<p itemprop=\"text\">The stepped-up basis rule means that when an asset is inherited, the heir&#8217;s cost basis is reset to the fair market value on the date of the original owner&#8217;s death. All capital gains that accrued during the original owner&#8217;s lifetime are permanently excluded from taxation. As of 2026, this rule remains in effect under current U.S. tax law. Congress has proposed limiting or repealing it in several legislative cycles, so investors relying heavily on this strategy should work with an estate attorney.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>You sell a rental property you bought for $280,000 back in 2017. The closing price is $450,000. You&#8217;re thrilled \u2014 until your CPA calls. After accounting for depreciation recapture on&#8230;<\/p>\n","protected":false},"author":0,"featured_media":549,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-548","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-real-estate-investing"],"_links":{"self":[{"href":"https:\/\/arvcalc.com\/blog\/wp-json\/wp\/v2\/posts\/548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arvcalc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arvcalc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/arvcalc.com\/blog\/wp-json\/wp\/v2\/comments?post=548"}],"version-history":[{"count":4,"href":"https:\/\/arvcalc.com\/blog\/wp-json\/wp\/v2\/posts\/548\/revisions"}],"predecessor-version":[{"id":591,"href":"https:\/\/arvcalc.com\/blog\/wp-json\/wp\/v2\/posts\/548\/revisions\/591"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arvcalc.com\/blog\/wp-json\/wp\/v2\/media\/549"}],"wp:attachment":[{"href":"https:\/\/arvcalc.com\/blog\/wp-json\/wp\/v2\/media?parent=548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arvcalc.com\/blog\/wp-json\/wp\/v2\/categories?post=548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arvcalc.com\/blog\/wp-json\/wp\/v2\/tags?post=548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}