Selling a rental condo, investment property, or other real estate can create a tax bill that differs from the cash shown on your closing statement.
Contact Clear Peak Accounting for individualized California tax planning before you sell.
For a California physician or another high-income W-2 professional, the result may depend on adjusted basis, depreciation, holding period, federal income, and California treatment.
Quick answer: Capital gains tax on real estate is generally based on the amount realized from a sale minus the property’s adjusted basis and eligible selling costs. The final result may include long-term capital gain, depreciation-related gain, California income tax, and possibly the 3.8% Net Investment Income Tax. Your records and broader income picture matter.
The most useful planning work happens before the sale is final. The sections below explain the calculation, the rules that can change it, and the records a physician should assemble before signing a contract.
How Capital Gains Tax on Real Estate Is Calculated in California
For a rental or investment property, estimate the gain by subtracting adjusted basis from the amount realized. Adjusted basis generally starts with cost, increases for qualifying improvements, and decreases for depreciation. Selling expenses can reduce the amount realized. California then applies its own income-tax treatment to the result.
The basic calculation is a starting point, not a complete tax projection. The IRS describes basis and gain rules in Publication 551. A simplified framework is:
- Amount realized: the sale proceeds after eligible selling expenses and relevant transaction adjustments.
- Adjusted basis: the property’s tax basis after cost, improvements, depreciation, and other applicable adjustments.
- Total gain: the amount realized minus adjusted basis.
For an illustration, suppose a physician buys a rental property, makes documented capital improvements, and claims depreciation over several years. Before other adjustments, the adjusted basis is the original cost plus qualifying improvements minus depreciation. If the property later sells, eligible selling expenses reduce the amount realized, and the difference between that amount and adjusted basis is the starting gain estimate.
This example does not calculate the owner’s final liability. The gain may have more than one tax character, and the taxpayer’s filing status, wages, other income, ownership structure, and prior transactions may change the result. Keep the settlement statements, invoices, depreciation schedules, and prior returns together instead of relying only on the final closing statement.
For federal purposes, property held for more than one year is generally treated as long-term property, while property held for one year or less is generally short-term. The IRS explains the holding-period framework in Tax Topic 409. California generally taxes capital gains as ordinary income rather than using a separate lower state capital-gains rate. That means a large sale can land on top of substantial physician compensation. Clear Peak’s California tax rate resource for high-income professionals provides related context. For a broader state-level overview, see the firm’s California capital gains tax explanation.
What Does Adjusted Basis Include for an Investment Property?
Adjusted basis is the tax amount used to measure gain. It usually begins with the property’s cost, adds qualifying improvements and certain capitalized acquisition costs, and subtracts depreciation and other required adjustments. A reliable basis review separates capital improvements from ordinary repairs and preserves the records supporting every adjustment.
Start with purchase and acquisition records
Begin with the original purchase agreement, closing disclosure, settlement statement, and records showing how the property was acquired. Certain acquisition costs may be capitalized, while other costs are treated separately. If the property was inherited, gifted, refinanced, or placed into an entity, do not assume the original purchase price tells the whole story.
Add qualifying improvements
Capital improvements can increase basis when they add value, adapt the property to a new use, or extend its useful life. A major roof replacement, new HVAC system, or substantial renovation may require different treatment from routine maintenance. Preserve invoices and a short description of what each project changed. Do not place every repair, utility bill, insurance payment, or management fee into the basis spreadsheet automatically.
Subtract depreciation and selling expenses
Depreciation allowed or allowable generally reduces basis, even when an owner failed to claim the full amount that could have been claimed. Selling commissions, transfer taxes, and other eligible sale expenses generally reduce the amount realized. The IRS explains property-sale adjustments in Publication 544.
For a physician with several years of rental ownership, request the depreciation schedules from each prior return and reconcile them to the property’s tax records. A missing year or an incorrect improvement date can materially change the projected gain. If a property was converted from personal use to rental use, examine the conversion records separately.

How Does Depreciation Recapture Affect the Sale?
Depreciation can reduce taxable rental income while you own a property, but it also lowers adjusted basis. When you sell, the gain connected with prior depreciation may receive separate recapture treatment, while the remaining gain may follow long-term capital-gain rules. The two amounts should be modeled separately.
Consider a rental property with an original basis and accumulated depreciation adjustments. Ignoring other changes, the adjusted basis is the original basis reduced by depreciation. If the net amount realized exceeds that adjusted basis, the preliminary gain is larger than an estimate based only on the original purchase price might suggest.
The preliminary gain is not necessarily taxed at one rate. For a depreciated building, the portion associated with depreciation may be treated as unrecaptured Section 1250 gain under federal rules. Other property or ownership structures can involve different recapture rules. The exact answer depends on the asset, depreciation method, prior returns, and facts surrounding the sale.
This distinction matters for a California physician because W-2 wages can already place the taxpayer in a high marginal bracket. A sale can also increase the amount of investment income considered for the federal Net Investment Income Tax. Clear Peak’s explanation of the tax on investment income for California physicians provides related planning context.
Do not estimate the tax reserve by applying one percentage to the sale price. Build a schedule that identifies total gain, depreciation-related gain, remaining gain, estimated federal tax, California tax, and any applicable investment-income tax. The schedule should also show selling expenses, debt payoff, and cash that will remain available after closing. Property owners can also review Clear Peak’s California property management accounting resource for recordkeeping context.
Can the Primary-Residence Exclusion Apply to a Real Estate Sale?
Section 121 may exclude some gain from the sale of a qualifying principal residence, but it is not a general exclusion for rental or investment property. The owner must satisfy ownership and principal-residence use tests. Prior rental use, depreciation, and nonqualified use can reduce or limit the exclusion.
The IRS explains the home-sale exclusion in Tax Topic 701. An eligible taxpayer may qualify for an exclusion subject to the ownership, use, filing-status, and other applicable requirements and exceptions. The exclusion should be calculated from the owner’s records rather than assumed from the sale price.
| Property situation | Potential treatment | Question to resolve |
|---|---|---|
| Principal residence | Section 121 may exclude some gain if the ownership and use requirements are met. | Did the owner use the home as a principal residence for the required period? |
| Rental or investment property | Gain, depreciation, and holding-period rules generally apply. Section 121 does not automatically apply. | Was the property ever a principal residence, and what depreciation was claimed? |
A physician who lived in a property before renting it should document the move-in date, conversion date, rental periods, and depreciation claimed. The exclusion may be limited when the property has periods of nonqualified use. California generally follows the federal home-sale exclusion framework, but the state return still needs to reflect the facts and federal reporting. Clear Peak’s related resource on capital gains on a California home sale covers the residence-focused analysis.
When Can a 1031 Exchange Defer Real Estate Tax?
A 1031 exchange may defer recognition of gain when qualifying investment or business real property is exchanged for other qualifying real property. It must be structured before the seller receives the proceeds. A qualified intermediary, strict identification deadlines, and careful treatment of cash or debt are central to the analysis.
A 1031 exchange generally does not erase gain. Instead, a qualifying transaction can defer recognition by carrying tax attributes into replacement property. The IRS provides the federal framework in the Form 8824 instructions. The following questions should be addressed before the sale closes:
- Are both properties held for investment or business use? Personal residences and property held primarily for resale may not qualify under the same rules as investment real property.
- Was a qualified intermediary engaged before closing? The seller generally should not take control of the proceeds. Finding an intermediary after receiving the money can be too late.
- Can the identification and replacement deadlines be met? The replacement property must be identified and acquired within strict periods. Confirm the dates with the intermediary as soon as the sale is contemplated.
- Will cash, non-like-kind property, or debt changes create taxable boot? Reinvesting proceeds alone does not guarantee complete deferral. The values, liabilities, and cash received affect the calculation.
- Does the exchange fit the overall plan? Deferral can reduce current tax, but it may also reduce liquidity and carry tax attributes into the replacement property.
Review Clear Peak’s discussion of California 1031 exchange rules before signing a purchase or sale agreement. Investors who want deeper operational context can also review the firm’s 1031 exchange bookkeeping resource. An exchange is a transaction-planning decision, not a post-closing filing adjustment.
Could the Net Investment Income Tax Apply to a Real Estate Gain?
The federal Net Investment Income Tax is 3.8% and can apply to certain investment income when modified adjusted gross income exceeds the applicable threshold. A real estate gain may be included, depending on the activity and facts. W-2 wages, filing status, and other investment income must be reviewed together.
The Net Investment Income Tax is separate from regular federal income tax. The IRS describes the tax and its thresholds at IRS.gov. A physician’s salary does not itself become net investment income, but it can contribute to the income level used to determine whether the tax applies to investment income.
Run the NIIT analysis with the projected sale, not after the return is prepared. Consider the property’s rental activity, passive or nonpassive treatment, other investment income, filing status, and the size and character of the gain. The answer may differ between a property held as a passive investment and one connected to a qualifying active business.
California does not impose a separate state NIIT that mirrors the federal 3.8% tax. However, California income tax generally applies to capital gains as ordinary income. A California physician should therefore model both the federal investment-income exposure and the state income-tax effect rather than treating the 3.8% figure as the entire tax cost.
What Should a California Physician Do Before Closing?
Before closing, calculate the estimated gain from primary records, reconcile depreciation, and separate federal and California treatment. Test Section 121 or 1031 possibilities, and reserve cash for expected tax and transaction obligations. The earlier these questions are addressed, the more planning options remain available.
Build a pre-closing file
- Original purchase and closing documents.
- Invoices and descriptions for capital improvements.
- Depreciation schedules and prior tax returns.
- Current listing agreement, estimated closing statement, and selling expenses.
- Loan payoff information and ownership documents.
- Residence, rental, and conversion dates if the property was ever a home.
Model the full income picture
Place the projected gain beside W-2 wages, bonuses, moonlighting income, retirement distributions, and other investment income for the sale year. Then estimate the federal result, depreciation-related amount, California income tax, and possible NIIT separately. A calculation that ignores the physician’s broader income can understate the tax reserve. Clear Peak’s California real estate tax planning resource provides an additional planning perspective.
Before making a commitment, compare the after-tax cash from a taxable sale with the liquidity and timing consequences of a qualifying exchange. A 1031 exchange may defer recognition, but it can also require reinvestment on a compressed schedule. Use the individual tax planning service page to learn how Clear Peak frames year-round planning for complex tax situations.
Protect liquidity after the sale
Reserve cash for estimated taxes, debt payoff, repairs, replacement-property costs, and other obligations. Do not commit every dollar of net proceeds to a new investment before the tax analysis is complete. If the property is owned through an entity or jointly, coordinate the individual and entity-level reporting questions before closing.
Capital gains tax on real estate is fact-specific. The best estimate is built from records and tested against the taxpayer’s complete federal and California profile, not guessed from the sale price.
Ask Clear Peak Accounting to review your California real estate sale before closing.
Frequently Asked Questions
Is capital gains tax on real estate based on the sale price?
No. The starting point is generally the amount realized minus adjusted basis. Selling expenses, improvements, depreciation, ownership history, and other facts can change the result. The sale price alone is not a reliable estimate of taxable gain.
Does California have a separate lower capital-gains tax rate?
California generally taxes capital gains as ordinary income rather than applying a separate lower state capital-gains rate. The state effect should be modeled with the taxpayer’s other California income, including wages and other income for the sale year.
Does depreciation increase tax when rental property is sold?
Depreciation generally reduces adjusted basis, which can increase the total gain. The portion connected to depreciation may receive separate federal recapture treatment. Review prior depreciation schedules rather than estimating the result from purchase and sale prices.
Can a 1031 exchange eliminate the tax on a rental property sale?
A qualifying 1031 exchange generally defers recognition rather than eliminating gain. The transaction must meet property, intermediary, identification, replacement, and proceeds requirements. Engage the qualified intermediary before closing and review the structure with a tax adviser.
What records should a physician keep before selling investment real estate?
Keep purchase and closing documents, improvement invoices, depreciation schedules, prior returns, estimated selling expenses, loan information, and any residence or conversion records. These documents support adjusted basis and help separate regular gain, depreciation-related gain, California tax, and possible NIIT.
Contact Clear Peak Accounting to plan the tax impact of your California real estate sale.
