Selling a rental property can create several tax consequences at once. The result depends on more than the difference between your purchase price and sale price. Your adjusted basis, depreciation history, selling expenses, passive-loss carryforwards, holding period, and California residency can all affect the calculation.
In general, capital gains tax on rental property starts with the amount realized from the sale minus the property’s adjusted basis. Improvements and certain capitalized costs may increase basis, while depreciation deductions generally reduce it. The resulting gain may then be divided among different tax treatments, including depreciation-related gain and capital gain. Federal and California rules do not always tax that result the same way. The IRS explains the basic amount-realized and adjusted-basis framework.
Before estimating the tax, reconstruct the property’s basis and sale proceeds carefully. That calculation provides the foundation for evaluating depreciation, passive losses, California treatment, and whether a qualifying deferral strategy may apply.
Contact Clear Peak Accounting to review your rental-property sale before closing.
How Is Capital Gains Tax on Rental Property Calculated?
The starting point is not the property’s original purchase price alone. For a rental-property sale, the gain or loss generally compares the amount realized with the property’s adjusted basis, as explained by the IRS. That calculation requires a careful reconstruction of what you paid, what you added, what you deducted, and what it cost to complete the sale.
Start with the amount realized
The amount realized is generally the sale proceeds, adjusted for transaction details such as selling expenses and certain liabilities connected with the transfer. Selling expenses can include costs that reduce the proceeds used in the gain calculation, such as qualifying commissions or other closing costs. The settlement statement and closing documents are important because the exact treatment depends on the nature of each item. A loan payoff may affect the cash you receive, but it is not automatically the same thing as a reduction in the property’s sale price for tax purposes.
Build the adjusted basis
Basis generally begins with the property’s cost. Certain acquisition-related costs may need to be capitalized rather than deducted immediately. Later capital improvements, such as qualifying work that adds value or extends the property’s useful life, generally increase basis. The IRS Publication 551 explains these basis concepts and the importance of separating improvements from ordinary repairs and other current expenses.
Depreciation is a major reason adjusted basis differs from the original purchase price. Depreciation deductions reduce basis, including deductions that were allowed or allowable under the applicable rules. Casualty-loss deductions may also reduce basis. This means a property can have a substantial taxable gain even when the owner’s cash profit appears smaller than expected. The depreciation history should be reconciled to the property’s tax returns and depreciation schedule before the sale is reported.
Formula and illustrative example
Basic calculation: Amount realized minus adjusted basis equals the gain or loss.
For illustration, assume a rental property has an amount realized after qualifying selling expenses and an adjusted basis after accounting for its original cost. Capitalized acquisition costs, improvements, and depreciation deductions. The resulting calculation is:
Amount realized – adjusted basis = calculated gain or loss
This is only the calculated gain, not a tax bill. The eventual federal and California tax consequences can depend on the holding period, depreciation-related rules, other gains and losses, passive-activity items, residency, and the owner’s overall taxable income. The calculation also does not determine whether a loss is deductible or whether a transaction qualifies for a deferral provision.
Keep invoices, closing statements, improvement records, depreciation schedules, prior returns, and records of casualty or other basis adjustments. The IRS states that taxpayers must maintain accurate records of items affecting basis so they can calculate depreciation and gain or loss correctly. A property-by-property review before closing can identify missing basis items and clarify which figures belong in the sale calculation.
What Happens to Depreciation When You Sell a Rental Property?
Depreciation affects the tax calculation even though it may not have required a cash payment in the year you claimed it. Each depreciation deduction generally reduces the property’s adjusted basis. Because gain or loss is measured by comparing the amount realized with adjusted basis, those deductions can increase the gain recognized when the property is sold. The IRS explains this basis adjustment in Publication 551.
That does not mean the entire gain is automatically taxed in one category. A rental-property sale may contain a depreciation-related component and a remaining gain component. The reporting and tax character depend on details such as the property’s use, holding period, depreciation history, improvements, selling expenses, and the owner’s broader tax position.
Why depreciation can change the gain
Suppose a rental property’s original basis is adjusted downward over time by depreciation deductions. Improvements and other qualifying capitalized costs may increase basis, while depreciation reduces it. At sale, the adjusted basis is compared with the amount realized, which may include the cash received and other transaction elements. A lower adjusted basis can therefore produce more total gain than a taxpayer might expect from comparing the sale price with the original purchase price.
The depreciation-related portion is generally addressed under the rules for depreciable real property held for more than one year. The IRS Form 4797 instructions identify this type of property as section 1250 property and direct taxpayers to the relevant Part III reporting. This is often described as depreciation recapture, although the exact tax treatment depends on the property and the depreciation claimed or allowable. An exact recapture rate should not be assumed without reviewing the current rules and the taxpayer’s facts.
Any gain that remains after accounting for the depreciation-related component may be treated under the applicable capital-gain rules. This is why calculating the rental property depreciation deductions and maintaining the depreciation schedule are important parts of estimating the tax consequences before closing.
Which forms report the sale?
The IRS states that a rental-property disposition may be reported on Form 4797 or Form 8949, depending on the purpose of the rental activity. Form 4797 is commonly relevant to property treated as business or trade property, including the section 1250 reporting described in its instructions. Form 8949 may apply when the activity is treated as an investment or capital-asset disposition. The correct form is not determined by the word “rental” alone.
Keep the purchase documents, settlement statements, invoices for improvements, depreciation schedules, records of casualty events, and documentation of selling expenses. The IRS says taxpayers must maintain accurate records of items affecting basis so they can compute depreciation and gain or loss. Missing records can make it harder to establish the correct adjusted basis and explain the allocation between depreciation-related gain and the remaining gain.
How Federal and California Taxes Differ on the Sale
The federal and California calculations begin with the same transaction, but they do not always apply the same tax treatment. For a California owner evaluating the capital gains tax on rental property, the holding period, adjusted basis, depreciation history, overall taxable income, and state-specific differences can all affect the result.
At the federal level, a gain is generally long-term when the property is held for more than one year. A property held for one year or less generally produces a short-term result. Net federal capital gains may qualify for rates lower than ordinary-income rates, and the applicable rate depends in part on overall taxable income. Some net capital gain may fall into a 0% federal rate range, while other income may be taxed at higher rates under the applicable rules. The IRS explanation of capital gains and losses provides the governing framework.
A rental disposition may also involve more than one category of gain. Depreciation deductions reduce the property’s adjusted basis, and the sale may require additional reporting under Form 4797 or Form 8949, depending on the rental activity’s purpose. That means a simple sale-price-minus-purchase-price calculation may not describe the full federal reporting picture.
| Issue | Federal treatment | California treatment |
|---|---|---|
| Holding period | More than one year is generally long-term; one year or less is generally short-term. | California generally follows federal concepts, but state differences can require a separate analysis. |
| Rate structure | Net capital gains may receive income-dependent federal rates, including a possible 0% rate for qualifying taxable-income ranges. | California has no separate lower capital-gains rate. Capital gains are taxed as ordinary income. |
| State reporting | Federal reporting may use Form 4797 or Form 8949, depending on the activity. | California Schedule D (540) is used only when California and federal gains or losses differ. |
| Closing withholding | Federal estimated-tax considerations remain separate from California real-estate withholding. | California withholding is generally a prepayment of tax due, not an additional tax on the sale. |
California generally conforms to the Internal Revenue Code as of January 1, 2025, but the California Schedule D instructions caution that continuing federal-state differences remain. California’s capital-gains explanation confirms that the state taxes capital gains as ordinary income. A high-income seller should therefore avoid assuming that a favorable federal capital-gain rate carries over to the California return. The state’s ordinary-income treatment can make the state liability materially different from the federal liability, depending on the owner’s facts.
Withholding at closing should be treated as a payment toward the seller’s California tax obligation. The FTB withholding guidance explains that qualifying sellers may be subject to withholding unless an exception applies. The amount withheld is not automatically the final tax, and it may be reconciled when the return is filed.
Finally, if the seller receives payments after the year of sale, California generally applies the installment method unless the seller elects not to use it. That affects when eligible gain is reported, but it does not turn an installment arrangement into an automatic tax elimination strategy. Review the contract, payment schedule, depreciation history, and federal-state differences before closing, because the timing and character of the gain can depend on all of them.
Can Suspended Passive Losses Reduce Tax After a Rental Sale?
Suspended passive losses can become important when you sell a rental property. But the tax result depends on what was sold, how the transaction was structured, and which limitations applied in prior years. Federal rules generally allow passive-activity losses only to the extent of passive-activity income. Losses that cannot be used are carried forward rather than lost, as explained by the IRS rental-property FAQ.
When federal losses may be released
Under the federal passive-activity rules, unused losses generally carry forward until they can offset passive income. They may also carry forward until you dispose of your entire interest in the activity in a fully taxable transaction. A qualifying sale of the entire rental activity may therefore allow previously suspended losses to be taken into account in the year of disposition. The release is not triggered simply because money changed hands. The transaction must be fully taxable, and the disposition must generally involve the taxpayer’s entire interest in that activity. Review the ownership structure carefully if the property is held through multiple interests, partnerships, or other entities.
This analysis also sits alongside the property’s basis and depreciation history. Depreciation deductions reduce adjusted basis, which can affect the gain recognized on the sale. Keeping a complete rental-property depreciation and deduction record can help reconcile prior returns with the final sale calculation. A suspended-loss review should also distinguish passive losses from capital losses, depreciation-related adjustments, and any loss limited under a separate rule.
California tracking is separate from the federal conclusion
California treats rental income and losses as passive activities for state purposes, even when federal classifications or participation facts differ. The California Franchise Tax Board states that rental income and losses are always considered passive in California. California Form 3801 is used to track passive activity limitations, including prior-year unallowed losses from rental real-estate activities. The relevant California Form 3801 and its instructions should be reviewed with the state return rather than assuming the federal worksheet can simply be copied.
For a California owner, the sale may affect both the federal passive-loss calculation and the state carryforward records. Differences can arise from California adjustments, prior-year amounts, and the way the property or ownership interest is reported. The transaction may also interact with the net investment income tax analysis, depending on the owner’s income and investment facts.
Do not overlook the at-risk limitation
Before treating a suspended loss as deductible, check the at-risk rules. The IRS explains that these rules limit losses from most activities to the taxpayer’s amount at risk. A loss can therefore remain unavailable even when the passive-activity rules appear to permit a deduction. Debt, guarantees, distributions, basis, ownership changes, and the exact terms of the sale may all matter. A rental sale does not automatically make every accumulated loss immediately usable. The full federal and California history should be reconciled before estimating the capital gains tax on rental property or the amount of loss available in the sale year.
Can You Defer Tax When You Sell a Rental Property?
A sale does not always require immediate recognition of every dollar of gain, but the available deferral rules are specific. For many rental-property owners, the primary possibility is a qualifying like-kind exchange under Section 1031. A 1031 exchange generally allows eligible gain or loss to go unrecognized when investment real property is exchanged for other qualifying real property. It defers the tax; it does not erase the underlying gain or make the property permanently tax-free.
Current Section 1031 rules apply to real property, not personal or intangible property. The property you give up and the replacement property must be held for investment or for productive use in a trade or business. Real property held primarily for sale does not qualify. That distinction matters for owners whose facts look more like property development or repeated resale than long-term rental investment. The IRS explains the real-property limitation and the held-for-sale exclusion in its Section 1031 tax information.
What can create taxable gain in an exchange?
An exchange can include more than the replacement real estate. If you receive cash or other non-like-kind property, often called “boot,” the gain may be recognized up to the amount of that property or money received. Debt changes, transaction expenses, and the relative values of the relinquished and replacement properties can affect the analysis. Do not assume that reinvesting sale proceeds automatically produces a fully deferred result. A qualifying exchange also cannot be used to recognize a loss.
Timing and transaction structure must be addressed before closing. Once a conventional sale has closed, it may be too late to redesign that transaction as an exchange. The owner generally needs to identify the exchange intent, coordinate with the qualified intermediary, and evaluate replacement-property requirements before transferring the relinquished property. Review the California 1031 exchange rules for a more detailed discussion of eligibility, deadlines, reporting, and California considerations.
An installment arrangement is a separate timing concept, not a substitute for Section 1031 eligibility. Under California’s general installment reporting rule. A gain sale with payments received after the year of sale is generally reported using the installment method unless the seller elects out. Whether that treatment applies depends on the sale documents, payment schedule, and the type of property and transaction. It also does not mean the gain disappears; it changes when eligible gain is reported.
Before accepting an offer, compare a taxable sale, a possible 1031 exchange, and any installment terms against your adjusted basis, prior depreciation, debt, passive losses, and California residency. The right choice depends on the property and the transaction as a whole, not simply on the expected sale price.
What Should You Review Before Closing?
A rental-property sale is easier to analyze when the tax records are assembled before the closing statement arrives. Start with the original purchase documents and identify the property’s initial basis. Add qualifying capital improvements and other costs that belong in basis, then subtract depreciation deductions and other required adjustments. The result is the adjusted basis used to measure gain or loss.
Build the disposition file
- Confirm the amount realized. Review the contract price, debt payoff, selling expenses, commissions, and other closing adjustments. Ask how each item affects the amount realized or is treated separately.
- Reconcile depreciation. Compare the depreciation schedule with the deductions actually claimed and the deductions that should have been claimed. Cost segregation, improvements, and changes in use can make this review more involved. Clear Peak’s rental property depreciation deductions article provides related background.
- Document improvements. Separate repairs from capital improvements and collect invoices, permits, settlement statements, and payment records. Improvements can increase basis, while routine expenses generally follow different rules.
- Check the holding period and ownership history. The federal character of the remaining gain depends in part on how long the asset was held. Review purchases, exchanges, inherited interests, partnership changes, and any conversion from personal to rental use.
- Locate suspended losses. Gather federal and California passive-loss carryforward schedules. A disposition of an entire interest in a fully taxable transaction may affect when suspended losses are used. But a partial sale, related-party transfer, or exchange can require a different analysis.
- Decide whether deferral is intended. If a 1031 exchange is being considered, the decision and intermediary coordination must occur before closing. A standard sale followed by a later purchase does not automatically become a like-kind exchange.
- Review California items. Consider California residency, the property’s location, state withholding, state passive-loss tracking, and whether a federal-state difference requires an adjustment. Withholding is generally a prepayment, not a second tax.
Finally, compare the projected federal and California results with estimated payments and cash available at closing. The useful question is not only “How much gain did the property produce?” It is also “Which part is depreciation-related, which part is capital gain. Which losses are available, and which reporting forms apply?” A pre-closing review can identify missing records while there is still time to correct the transaction plan.
Because the answer depends on the property, owner, records, and sale structure. Treat this checklist as a starting point for a transaction-specific review rather than a substitute for tax advice.
Discuss your rental-property sale with Clear Peak Accounting before closing.
Frequently Asked Questions
How do I avoid paying capital gains tax on a rental property?
You generally cannot erase tax simply by selling a rental property, but planning may change when or how much gain is recognized. A qualifying Section 1031 exchange can generally defer gain when investment real property is exchanged for like-kind real property, subject to strict eligibility and transaction requirements. It does not automatically eliminate tax, and cash or other non-like-kind property received can create recognized gain. See the IRS rules for like-kind exchanges.
How is the gain on a rental property sale calculated?
The basic calculation compares the amount realized from the sale with your adjusted basis. Basis generally starts with cost, increases for qualifying improvements, and decreases for depreciation deductions. Selling expenses and the property’s depreciation history can materially affect the calculation, so retain records supporting improvements, prior depreciation, and other basis adjustments. The IRS explanation of basis provides the governing recordkeeping framework.
Do suspended passive losses get released when I sell a rental property?
Often, federal passive losses carried forward may become deductible when you dispose of your entire interest in the activity in a fully taxable transaction. The result depends on the ownership structure, the type of disposition, and other loss limitations, including the at-risk rules. California separately treats rental income and losses as passive and tracks prior-year unallowed losses on Form 3801. Review both federal and state carryforward schedules before closing.
Does California tax rental-property capital gains differently?
Yes. California does not provide a lower capital-gains rate; it generally taxes capital gains as ordinary income. Federal treatment may distinguish short-term and long-term gains, while California adjustments can apply when state and federal calculations differ. California real-estate withholding at closing is generally a prepayment of tax due, not an additional tax on the sale. See the California FTB capital-gains information.
Ready to Discuss Your Rental-Property Sale?
A rental-property sale can involve adjusted basis, depreciation, passive losses, California treatment, and possible deferral choices. Reviewing those details before closing may help you understand which records and planning questions deserve attention. Contact Clear Peak Accounting to discuss your rental-property sale and tax-planning questions.
