I Sold My Rental and Owed $23,000 in Capital Gains Tax I Did Not Expect
I bought a rental property for $185,000 in 2018 and sold it for $268,000 in 2025. The $83,000 gain triggered a $23,400 capital gains tax bill. Here is how I misunderstood the tax and what I wish I had done differently.
The closing statement arrived by email on a Wednesday afternoon. I scanned it swiftly, looking for the bottom line. The sale price was $268,000. After commissions, closing costs, and the remaining mortgage balance, my net proceeds were $71,200. I felt rich. Then my accountant called and said, "Don't spend that money. You owe the IRS $23,400."
I had owned the rental property for seven years. I snagged it in 2018 for $185,000 — a two-bedroom duplex in Indianapolis that I found on Zillow while scrolling at 11 PM on a Tuesday. The down payment was $37,000, and the mortgage was $148,000 at 4.5%. For seven years, I collected $1,650 per month in rent, paid the mortgage, paid the property manager, and reported the income on my tax return. The property was profitable. The sale was sposed to be the payoff. Instead, it was the bill.
the $83,000 gain I did not calculate
Capital gains tax is levied on the difference between what you paid for an asset and what you sold it for. My purchase price was $185,000. My sale price was $268,000. The difference is $83,000. But I had also made $14,200 in capital improvements — a new roof in 2020, a furnace replacement in 2022. These adjust the cost basis upward.
Adjusted basis: $185,000 plus $14,200 equals $199,200. Gain: $268,000 minus $199,200 equals $68,800. That is what I owed tax on.
My W-2 income was $92,000. Combined with the $68,800 gain, my total taxable income was $160,800. That placed me in the 15% capital gains bracket for 2025.
The math: $68,800 times 15% equals $10,320. Add the state capital gains tax — Indiana charges a flat 3.23% — and the state tax was $2,222. Total: $12,542. Not $23,400.
So where did the extra number come from?
the depreciation recapture I forgot about
When you own a rental property, the IRS allows you to depreciate the building over 27.5 years. This reduces your taxable rental income each year. I had been claiming $5,272 per year in depreciation.
Over seven years, I had claimed $36,904 in total depreciation. This reduced my rental income each year. But when I sold, the IRS required me to "recapture" that depreciation. The recaptured depreciation is taxed at 25%, regardless of your bracket.
The recapture tax: $36,904 times 25% equals $9,226. Add that to the $10,320 in capital gains tax and $2,222 in state tax. Total: $21,768. Still not $23,400.
My accountant clarified the remaining gap. I had also claimed the Section 199A deduction on my rental income, which reduced my taxable income. The IRS recaptures a portion upon sale. The recapture amount added $1,632 to my bill.
Grand total: $23,400. The number was correct. I just had not understood all the components.
the tax strategy I wish I had used
The 1031 exchange. I had heard of it. A friend cited it in 2023. A 1031 exchange allows you to defer capital gains tax by reinvesting the proceeds into a "like-kind" property within 180 days.
I did not do a 1031 exchange cuz I did not want another rental property. I wanted to sell, take the money, and invest in index funds. My financial advisor had been telling me for two years that the stock market offered better risk-adjusted returns.
But the tax cost was $23,400. If I had done a 1031 exchange, that tax would be deferred. The $23,400 would have stayed invested, compounding. Instead, I paid it to the IRS and invested the remaining $47,800 in an index fund.
The opportunity cost: $23,400 invested in the S&P 500 at 10% for ten years would grow to approximately $60,600. That is what I gave up by paying the tax now.
I did not do the exchange because I was tired of being a landlord. The tenant turnover, the midnight repair calls, the property manager who charged 8% and still let the lawn grow to six inches. I wanted out. The $23,400 was the price of exit.
the tenant who delayed my sale by four months
The original plan was to sell in March 2025. The tenant, Angela, had a lease expiring in February. I gave ninety days' notice. She asked for an extension. I said no. She asked again. I said no again. She exercised her right to a thirty-day extension under Indiana law.
The closing was scheduled for April 15. Angela's extension pushed availability into April. The buyer's lender wanted an occupancy inspection. She was not out until April 28. The closing was rescheduled for May 12.
The delay cost me $6,600 in mortgage payments, taxes, and insurance. The buyer demanded a $3,000 price reduction. Total cost of the delay: $9,600.
I could have avoided this with a cash-for-keys deal — paying Angela one month's rent ($1,650) to leave early. The math was obvious. I did not offer because I was stubborn. I wanted her to honor her lease terms. She did. It cost me $9,600.
the depreciation deduction I should have tracked more carefully
Each year, my accountant filed a Schedule E for my rental property. I trusted her to calculate depreciation correctly. I did not review the Schedule E til the year of the sale.
My accountant had been calculating depreciation on a building value of $150,000. The correct value, based on the county assessor's split, was $148,000. The $2,000 difference, multiplied by seven years, meant over-depreciation of approximately $509 per year, or $3,563 total.
This over-depreciation increased my recapture tax. Instead of recapturing $36,904, I should have recaptured $33,341. The difference in recapture tax at 25% was $891. My accountant caught the error before filing my 2025 return and adjusted the amount. The corrected total tax was $22,509. Still painful, but $891 less.
The lesson: review your Schedule E every year. Do not wait til the sale. The depreciation number on that form is what the IRS will use for recapture. If it is wrong, you overpay.
what I did with the remaining money
After paying $23,400 in tax, I had $47,800 in net proceeds. I invested $40,000 in a three-fund portfolio thru a low-cost brokerage. The remaining $7,800 went into my emergency fund.
The index fund has returned 11.2% since May. The $40,000 is now worth $44,480. The rental property, if I had kept it, would have generated approximately $11,400 in net rent over the same period, minus $6,660 in mortgage interest, for a net of $4,740.
The stock portfolio gained $4,480. The rental would have gained $4,740. The rental would have performed slightly better. But the stock portfolio required zero tenant management, zero midnight calls, zero four-month delays.
The $23,400 tax was the cost of converting a rental into a stock portfolio. I would make the same decision again. But I would do the 1031 exchange first, defer the tax, buy a replacement property, and sell that one later. The tax deferral strategy is the one piece I would change.
Angela moved into a condo two miles from the duplex. She sent me a text on closing day: "Congrats on the sale. The new owners seem nice." I did not respond. There was nothing to say that the $23,400 had not already said for me.
the numbers I keep in a notebook
I maintain a notebook with every financial transaction related to the rental property. Purchase price, closing costs, annual mortgage statements, repair receipts, property tax bills, insurance premiums, management fees, and the final sale closing statement.
The notebook is a lined composition book, the same kind I use for grocery lists. It sits on a shelf next to my tax returns. Every quarter, I update the running totals. Every year, I reconcile the numbers against my tax return. Every time I think about buying another rental property, I open the notebook and read the $23,400 page.
The page is not theatrical. It is a single line in blue ink: "Federal + state tax on sale: $23,400." Below it, in modest letters: "Could have been deferred with 1031 exchange." Below that: "Lesson learned."
The notebook does not generate returns. It does not compound. It does not appreciate in value. It sits on a shelf and reminds me that every financial decision has a tax consequence, and every tax consequence has a number, and every number has a story. The story of the $23,400 is written in blue ink on page forty-seven. I read it frequently. I do not need to read it twice to remember.