How is capital gains calculated on sale of rental property

Determining the gain or loss on rental property is more complicated than for your residence. Certain expenditures made over the years increase basis, while deductions and credit reduce basis. The key to an accurate calculation is to keep careful receipts and tax records for your property until it's sold. Capital gains on rentals are fully taxable; there is no exclusion such as that for capital gains on residential real estate unless you used the home as your main residence for a certain period of time.

  1. Start with basis of the property. This is the original purchase price. Calculate the adjusted basis by adding the cost of improvements you paid for; this includes any expenditures that increase the value of the property -- for instance, the cost of a new roof, an addition, new landscaping, insulation or appliances. You should have receipts for all such payments; if you don't, consult your tax returns for prior years to determine the amounts.

  2. Add in any closing costs and legal fees you paid, including title transfer, documentation, and any property tax the original seller did not cover. Do not include costs of financing or appraisals.

  3. Subtract out depreciation claimed in prior years for the property and improvements. There should be a record for depreciation on your tax returns, including a figure for accumulated depreciation. The Internal Revenue Service allows landlords to write off depreciation against rental income, but the bill comes due when you sell the property.

  4. Subtract any tax credits, energy conservation subsidies or exclusions received for the property. Also subtract any casualty or loss deductions or reimbursements received from insurance.

  5. Subtract the resulting adjusted basis from the selling price of the property. If you sell the property for $500,000 and had an adjusted basis of $350,000, you have $150,000 in capital gains.

  6. Report the sale of the rental property on Schedule D of Form 1040 in the year you sell the property. Also file Form 4797 (Sales of Business Property) if you claimed deprecation at any time on the property.

Investing in rental properties can supply investors with steady revenue streams that cover the mortgage while supplying some extra profits each month. When such properties are ultimately sold, investors stand to enjoy substantial windfalls. But these selling events can trigger significant long-term capital gains tax liabilities.

Case in point: That tax rate is 15% if you're married filing jointly with taxable income between $80,000 and $496,600. If your taxable income is $496,600 or more, the capital gains rate increases to 20%. 

For a married couple filing jointly with a taxable income of $280,000 and capital gains of $100,000, taxes on the profits from the sale of a rental property would amount to $15,000. Fortunately, there are ways of minimizing this capital gains tax bite. This article explains three of the most effective methods.

Key Takeaways

  • Selling rental properties can earn investors immense profits but may result in significant capital gains tax burdens.
  • The capital gains tax rate is 15% if you're married filing jointly with taxable income between $80,000 and $496,600.
  • There are various methods of reducing capital gains tax, including tax-loss harvesting, using Section 1031 of the tax code, and converting your rental property into your primary place of residence.

Offset Gains With Losses

  • What it is: Tax-loss harvesting
  • Who it’s for:Anyone with capital losses in a given tax year
  • What you get:The ability to subtract those losses from the capital gains realized from a rental property sale

Tax-loss harvesting describes the process of reducing tax exposure when selling a rental property by pairing the gains from the sale with the loss from another investment. This can be a tax planning strategy if an investor is holding an investment that has lost value (an unrealized loss) and decides to sell the asset at a loss in the same year as the gain on rental property sale (a realized loss). Although this tax-minimizing tactic primarily serves to offset gains from stock investments, more folks are now applying it to rental real estate property sales.

For example, assume an investor made $50,000 from the sale of a rental apartment in the current year. They also have an unrealized loss of $75,000 in the stock market. The investor can choose to sell off a portion of their stocks to realize a $50,000 loss in order to fully offset the $50,000 in capital gains.

Take Advantage of Section 1031 of the Tax Code

  • What it is: IRS Section 1031 “like-kind” exchange
  • Who it’s for:Anyone who can reinvest the proceeds of rental property sales in new real estate
  • What you get:The ability to defer some or all taxes on the capital gain

Real estate investors can defer paying capital gains taxes using Section 1031 of the tax code, which lets them sell a rental property while purchasing a like-kind property and pay taxes only after the exchange is made. Legally speaking, the term like-kind is broadly defined. An investor need not swap out one condo for another or trade one business for another. As long as both properties in question are income-generating rental units, they're fair game.

But timing is key with this method because investors have just 45 days from the date of a property sale to identify potential replacement properties, which they must formally close on within 180 days. And if a tax return is due (with extensions) before that 180-day period, investors must close even sooner. Those who miss the deadline must pay full capital gains taxes on the sale of the original rental property.

Leverage Section 121: Primary Residence Exclusion

  • What it is:Conversion of rental property into a primary residence
  • Who it’s for:Anyone able to convert a rental property into their primary residence
  • What you get: The ability to exclude as much as $500,000 in capital gains from taxes

Selling a home you live in is more tax beneficial than unloading a rental property for a profit. IRS Section 121 allows people to exclude up to $250,000 of the profits from the sale of their primary residence if they're single and up to $500,000 if they're married filing jointly. To qualify, investors must have lived in their property as their primary residence for two out of the five years immediately preceding the sale. The years as a personal residence do not have to be consecutive. For this reason, some investors choose to convert rental properties into their primary residences.

The deduction amount depends on how long the property was used as a rental versus its use as a primary residence. Additionally, a taxpayer may not exclude the portion of the gain that was previously attributable to a depreciation deduction. This is known as depreciation recapture, which is specific to rental properties, and the amount previously taken as a depreciation deduction is taxed at a recapture rate of 25%.

Rental property sale FAQs

What Happens to Depreciation When You Sell a Rental Property?

Any depreciation claimed on previous tax returns for this property must be recaptured when you sell the property. Consult with your tax advisor to get an estimate of how much you will have to pay.

What Deductions Can I Claim When I Sell a Rental Property?

There are several deductions that can be claimed specifically when you sell a rental property including transaction costs of the sale such as realtor commissions, title fees, advertising fees, etc. Consult with a tax professional to see what specific deductions you are eligible to claim.

Can I Avoid Capital Gains Tax on an Inherited Rental Property?

Yes. You can avoid paying capital gains tax on an inherited rental property through any of the three methods listed above. Additionally, you benefit by inheriting it on a stepped-up basis, meaning that you only pay on any gains over fair market value from the date of inheritance, not the original purchase price of the property.

If Jane buys a property for $250,000 in 2000 and sells it for $600,000 in 2021, she will pay capital gains on the increase from $250,000 to $600,000. In other words, she will pay tax on $350,000 of income at the favorable capital gain rate because she held the property for more than one year. Additionally, she will owe a 3.8% net investment tax on the $350,000 of income because her income is more than $200,000 as a single filer, according to Gail Rosen, a CPA in Martinsville, N.J. 


If Jane dies before the property is sold, the current law states that her husband, John, inherits the property at the fair market value on the date of Jane’s death, Rosen points out. If the property does not appreciate, when John sells the property, his basis in the property would be the same as the sales price, and he would not have any profit. “If the property appreciated to $620,000 when John sells, he would pay tax on $20,000 at favorable capital gains rate since inherited property is considered long-term property,” Rosen says.

The Bottom Line

Capital gains taxes can take a sizable chunk of profits from your rental property sales to the tune of 15% or 20% of your take. Fortunately, capital gains tax avoidance and deferment strategies can help ease that burden. As always, consult a tax professional for advice that is specific to your own rental-property situation.

How do I figure the cost basis of a rental property?

Cost Basis of a Rental Property The cost basis of the rental property consists of the amount you paid for the property, including any expenses related to the sale, transfer and title fees. It also includes the cost of any improvements you made beyond the initial purchase.

What is the capital gains tax rate for 2022 on real estate?

In 2021 and 2022, the capital gains tax rate is 0%, 15% or 20% on most assets held for longer than a year. Capital gains taxes on assets held for a year or less correspond to ordinary income tax brackets: 10%, 12%, 22%, 24%, 32%, 35% or 37%.

What can I deduct from capital gains on rental property?

What Deductions Can I Take as an Owner of Rental Property? If you receive rental income from the rental of a dwelling unit, there are certain rental expenses you may deduct on your tax return. These expenses may include mortgage interest, property tax, operating expenses, depreciation, and repairs.

What is the capital gains tax on $50 000?

Long-term capital gains tax rates for the 2022 tax year However, they'll pay 15 percent on capital gains if their income is $40,401 to $445,850. Above that income level, the rate jumps to 20 percent. In 2022, individual filers won't pay any capital gains tax if their total taxable income is $41,675 or less.