How to Calculate Capital Gain on Rental Property

How to Calculate Capital Gain on a Rental Property

The basic formula: gain equals amount realized minus adjusted basis. Amount realized generally starts with the sale price and accounts for qualifying selling expenses and other consideration; adjusted basis generally starts with cost, adds qualifying capital improvements, and subtracts depreciation allowed or allowable.

For residential rental real estate held more than a year and depreciated straight-line, recognized gain may include unrecaptured Section 1250 gain subject to a maximum federal rate of 25%, plus remaining Section 1231 gain that may receive long-term capital-gain treatment.

California includes taxable gain in state taxable income and does not provide a separate lower rate for long-term capital gain.

The part commonly missed in a first estimate is the reduction to basis for depreciation allowed or allowable. On a long-held rental, that adjustment can move the basis well below the original purchase price.

Do not assume all of the gain uses one rate. The return may include Section 1231 treatment, unrecaptured Section 1250 gain, ordinary recapture for certain assets or depreciation, net investment income tax, and California income tax.

The Numbers That Go Into the Calculation

Start the adjusted-basis calculation with the original cost allocated between land and depreciable improvements. Add qualifying acquisition costs and capital improvements, then subtract depreciation allowed or allowable and any other required reductions.

For a long-held rental, collect the original settlement statement, depreciation schedules, invoices for capital improvements, casualty or insurance records, prior Form 3115 adjustments, and the sale closing statement. A remembered project is not a reliable basis adjustment without records supporting what was done and when it was placed in service.

Amount realized is not always identical to the cash wire. It generally includes money and the fair market value of property received plus qualifying liabilities the buyer assumes, reduced by qualifying selling expenses such as brokerage commissions and certain title or escrow charges incurred to complete the sale.

Only after amount realized and adjusted basis are supported should the gain be separated into its federal categories and added to the seller’s complete federal and California return.

How Depreciation Lowers Your Adjusted Basis

Land is not depreciable. A purchase that includes both land and buildings must allocate cost between them using their relative fair market values when acquired.

There is no dependable statewide land percentage. If separate fair market values are not otherwise available, IRS Publication 551 says assessed values can be used as an allocation method. Residential rental buildings placed in service under the general current MACRS rule are generally depreciated over 27.5 years using the applicable convention, while land is excluded.

As a simplified illustration, $160,000 of depreciable building basis divided by 27.5 years is about $5,818 per full year before applying the placed-in-service convention or later improvements. Twenty full-year equivalents would be about $116,364, but an actual schedule must use the correct convention, dates, improvements, and prior returns.

A sale for $450,000 does not by itself establish a $350,000 gain on a property originally bought for $200,000. The calculation still requires the land allocation, qualifying acquisition costs, improvements, depreciation allowed or allowable, other basis adjustments, liabilities, and selling expenses.

IRS Publication 527 explains residential-rental depreciation, including depreciable basis and the exclusion of land.

The allocation method should be documented and consistently applied. An appraisal near the acquisition date may provide stronger evidence than assessed values when the assessment does not reflect the relative fair market values of land and improvements.

Depreciation Recapture: The Part That Changes the Bill

A rental sale should not be calculated by applying one long-term capital-gain rate to the entire difference between purchase price and sale price.

For typical residential rental real estate depreciated straight-line and held more than a year, the depreciation-related portion of recognized gain is generally unrecaptured Section 1250 gain subject to a maximum 25% federal rate. That is a ceiling, not an automatic 25% tax, and it cannot exceed the applicable recognized gain.

The remaining net Section 1231 gain may receive long-term capital-gain treatment, but the applicable rate depends on the taxpayer’s full taxable-income calculation.

The long-term rate is 0 percent while taxable income stays under $49,450 for single filers or $98,900 for joint filers, 15 percent through the middle band, and 20 percent only once income passes $545,500 for single filers or $613,700 for joint filers, so what lands depends on the full taxable income picture for the year.

Long holding periods can create a substantial depreciation-related component because basis is reduced by depreciation allowed or allowable throughout the rental period.

The Section 121 exclusion does not apply merely because an individual owns the rental. The seller generally must have owned and used the property as a main home for at least two years during the five-year period before sale, subject to the rule’s separate tests and exceptions. A property used only as a rental does not satisfy the main-home use test.

A former main home converted to a rental has a more complicated Section 121 analysis than a property used only as a rental. IRS Publication 523 requires separate checks for the ownership-and-use tests, prior exclusions, nonqualified use, and depreciation that cannot be excluded.

Rental time after the owner’s last use of the property as a main home is generally excluded from nonqualified use when it falls within the five-year period ending on the sale date. The seller may still qualify for Section 121 after moving out and renting the home, but gain attributable to depreciation allowed or allowable after May 6, 1997, cannot be excluded.

That means a simple ratio of rental years to total ownership years is not enough to calculate the exclusion. The order of personal and rental use, the sale date, depreciation, and the other Publication 523 requirements all matter.

IRS Topic 409 explains the federal capital-gain framework. Other income and deductions on the return determine how much gain falls in each bracket.

California’s Additional Layer

California does not provide a separate lower long-term capital-gain rate. Taxable gain is included in state taxable income, and the actual marginal rate depends on the seller’s complete California return and any California basis differences.

The California Franchise Tax Board explains that California taxes capital gain as ordinary income and does not provide the federal preferential long-term rate. Include the state calculation when comparing sale years or offers.

Federal gain categories and California taxable income therefore need to be modeled separately from the same transaction records.

The 3.8% net investment income tax can also apply to the lesser of net investment income or the excess of modified adjusted gross income over the applicable threshold. The thresholds are $200,000 for single or head-of-household filers, $250,000 for married filing jointly, and $125,000 for married filing separately.

The IRS covers the NIIT rules in Topic 559. Whether rental-property gain is included and how much NIIT applies depends on the taxpayer’s participation, gain, other investment income, and modified adjusted gross income.

Model the federal, NIIT, and California calculations together before choosing a closing year; they use related transaction data but do not apply the same rates or adjustments.

Running the Capital Gains Calculation on a Typical Sale

The following example is illustrative, not a tax estimate. It shows the gain categories before applying the seller’s filing status, taxable income, prior Section 1231 history, passive losses, NIIT exposure, and California return.

A property bought for $280,000 where a supported allocation puts roughly 25 percent in land leaves around $210,000 in depreciable building basis. Dividing that building basis by 27.5 years produces about $7,636 per full-year equivalent before applying the placed-in-service convention or accounting for later improvements.

Using 18 full-year equivalents solely to keep the illustration readable, those deductions total about $137,455. Adding $35,000 in capital improvements to the original $280,000 cost and subtracting that depreciation produces an adjusted basis of about $177,545.

On a $550,000 sale with roughly $33,000 in qualifying selling expenses, the illustrative amount realized is $517,000. Subtracting the approximately $177,545 adjusted basis produces a gain of about $339,455.

That $339,455 does not all move through at the same federal rate. Assuming no ordinary Section 1250 recapture from depreciation beyond straight-line, the depreciation-related portion can be unrecaptured Section 1250 gain subject to a maximum 25 percent rate, while the remaining net Section 1231 gain may reach Schedule D as long-term capital gain.

This example establishes the gain components, not the final tax bill. The federal amount depends on taxable income, filing status, prior Section 1231 losses, NIIT exposure, and other return items, while the California amount depends on the seller’s actual state taxable-income bracket.

The useful result from the example is the approximately $339,455 estimated gain and its potential tax categories, not a universal tax total. A CPA needs the complete federal and California return before attaching rates to those categories.

A Documented Temecula Sale and the Records a Tax Calculation Would Need

Corte Almeria, Temecula

We closed on Corte Almeria in Temecula in December 2023 for $475,000. Our deal file shows a 1999 purchase for $167,500, a planned retirement, a home already purchased in Ohio, and a close date coordinated with that retirement.

Those facts do not establish that the property was a rental or reveal the seller’s adjusted basis, depreciation, or tax liability. A reliable gain calculation would require the seller’s closing records, improvement history, use of the property, and any depreciation schedules.

The deal is still useful as a recordkeeping example: two owners with the same purchase and sale prices can have different taxable gains because their improvements, selling expenses, depreciation, casualty adjustments, and property use differ.

Our transaction record supports the price and timing details, not a private tax-return result. That distinction matters: a closing price cannot be turned into a defensible tax estimate without the taxpayer’s records.

Form 4797 and Form 8949 on a Rental Sale Return

Form 4797 reports the disposition of business or rental property. The form determines the Section 1231 and any ordinary-recapture treatment, while Schedule D and its tax worksheet account for the applicable long-term and unrecaptured Section 1250 gain calculations.

Form 8949 generally reports capital-asset transactions such as securities, not the disposition of depreciable rental real estate reported through Form 4797. The rental sale’s applicable results carry into Schedule D from the Form 4797 process.

Do not infer the reporting lines from the closing statement alone. The return may also require the unrecaptured Section 1250 gain worksheet, Form 8960 for NIIT, Form 8824 for a like-kind exchange, or Form 6252 for an installment sale.

How the Rental Sale Shows Up on the Return

What I walk sellers through on the mechanics is that the rental sale generally runs through Form 4797 before the relevant long-term gain reaches Schedule D. Part III accounts for depreciation and any ordinary-income recapture required by the statute, but straight-line depreciation on residential rental real estate held more than a year is generally reflected through the unrecaptured Section 1250 gain calculation rather than automatically becoming ordinary income.

The return can include ordinary recapture for certain depreciation or property components, unrecaptured Section 1250 gain subject to a maximum 25 percent rate, and remaining long-term gain. The labels and amounts depend on the property, depreciation method, prior Section 1231 history, and the recognized gain.

Suspended passive losses are calculated separately. Publication 925 says they are generally released when the taxpayer disposes of the entire interest in the passive activity in a fully taxable transaction to an unrelated person, subject to grouping, installment-sale, at-risk, and other rules.

The final form flow depends on the recognized gain, depreciation method, property components, prior Section 1231 history, and the seller’s other transactions for the year.

Options to Consider Before You Close

1031 exchange

A properly structured Section 1031 exchange can defer eligible recognized gain when qualifying real property held for investment or business use is exchanged for qualifying replacement real property. It is a deferral, not a permanent exclusion, and cash or other non-like-kind property can trigger current gain.

A deferred exchange must avoid the seller’s actual or constructive receipt of the proceeds, so the qualified-intermediary structure is ordinarily established before the relinquished property closes. Replacement property must be identified within 45 days and received by the earlier of 180 days after the transfer or the due date, including extensions, of the return for the sale year. The exchange is reported on Form 8824.

A qualified intermediary is a common safe-harbor structure for a deferred exchange because it prevents the seller from receiving the proceeds directly between closings. The exchange documents and intermediary should be in place before the relinquished property closes.

Installment sale

An installment sale can spread recognition of eligible gain across the years principal payments are received. It does not defer every component: interest is ordinary income, any applicable depreciation recapture income is generally reported in the year of sale, and related-party or dealer rules can restrict installment treatment.

The tradeoff is that the seller is carrying the note and depending on the buyer to make payments, which introduces credit risk and ongoing interest income that flows back through the return each year.

The guide to selling a rental property in Southern California covers the operational side of tenant, condition, and escrow decisions that sit alongside the tax calculation.

If amount realized falls below adjusted basis, the guide to selling a rental property at a loss explains the separate Section 1231, passive-loss, related-party, and at-risk issues.

Calculating Capital Gain on a Rental Property: Common Questions

How do you calculate capital gain on a rental property?

Start with the amount realized, subtract the adjusted basis, and account for qualifying selling expenses in the calculation. For residential rental real estate depreciated straight-line and held more than a year, the depreciation-related gain is generally unrecaptured Section 1250 gain subject to a maximum 25 percent rate, while the remaining net Section 1231 gain may receive long-term capital-gain treatment.

How is depreciation-related gain taxed?

Depreciation allowed or allowable reduces adjusted basis. For a typical long-held residential rental depreciated straight-line, the depreciation-related portion of recognized long-term gain is generally unrecaptured Section 1250 gain subject to a maximum federal rate of 25%, not an automatic 25% tax and not automatically ordinary recapture. Other property components or depreciation methods can produce ordinary recapture.

How is a rental sale taxed in California?

California does not provide a separate lower rate for long-term capital gain. Taxable gain is included in California taxable income and taxed under the state’s ordinary rate schedule, which currently reaches 13.3% at the highest bracket. The actual state tax depends on the complete return, including California basis adjustments and available losses.

Can I avoid capital gains tax with a 1031 exchange?

A properly structured 1031 exchange may defer eligible gain on qualifying investment or business real property. The replacement must be identified within 45 days and received by the earlier of 180 days or the due date, including extensions, of the return for the sale year. A qualified intermediary is commonly used before closing to avoid actual or constructive receipt of the proceeds, and the exchange is reported on Form 8824.

Which tax forms report a rental property sale?

A rental sale generally runs through Form 4797, with the resulting Section 1231 and unrecaptured Section 1250 amounts carried into the applicable Schedule D calculations. Ordinary-income recapture can apply in some circumstances, but accumulated straight-line depreciation on residential rental real estate is not automatically all ordinary income.

Talk to a CPA Before You Commit to Any Timeline

This framework identifies the inputs, but the tax owed depends on the seller’s complete federal and California returns for the year, not the property sale in isolation.

The rate that applies to each piece of the gain is specific to your income level, filing status, and depreciation history, and a general estimate from an article won’t get close enough to drive a real decision.

Have a CPA model the net after federal tax, California tax, NIIT, suspended losses, and transaction costs before locking in a price or close date when the result could affect the decision.

For a completed sale, gather the depreciation schedules, basis records, improvement invoices, closing statement, and passive-loss carryforwards before the CPA meeting. Form 4797 and the related calculations build from those records.

A sale to a family member below fair market value can trigger separate bargain-sale, gift, basis, and related-party rules. The breakdown of tax implications when selling below market value covers those differences.

I’m Doug Van Soest, and my wife Andrea Van Soest, CA DRE #01505854 and I have been buying rental properties directly from landlords across Southern California since 2008.

We buy for cash, I’ll say that now, and that shapes which part of the calculation I end up spending the most time on with sellers.

Together, Andrea and I have closed over 400 transactions across Southern California, including rental properties in Riverside, Orange County, San Diego, Los Angeles, and San Bernardino counties. If you want a written offer and a net sheet to take to your CPA as a starting point for the comparison, reach us at (951) 331-3844 or through the cash offer page.

Similar Posts