Plan Before the Property Sale
Selling property can trigger more than one tax question. The result may depend on your adjusted basis, how the property was used, depreciation claimed, how long you owned it, and your income in the year of sale. A gain is generally measured by comparing the amount realized with adjusted basis, but real estate can involve special rules beyond that basic calculation (IRS guidance on capital gains and losses).
Tax planning is most useful before you sign a sale contract or receive proceeds. That gives you time to check whether a home-sale exclusion may apply, whether a qualifying exchange is possible, and whether purchase, improvement, depreciation, and selling-cost records support your basis. For owners managing these details alongside business finances, BestFiler pairs CPA-led tax planning with ongoing accounting and forward-looking cash-flow guidance.
This article focuses on federal tax principles, not a final estimate for any one transaction. State rules and individual circumstances can change the outcome, so confirm current law and your options with a qualified tax professional before committing to a sale.
Calculate the Gain Before Estimating Tax

To answer “How is capital gains tax on real estate calculated?”, start by separating the property’s gain from the tax that may ultimately be due. The basic calculation compares the amount realized with the property’s adjusted basis. Amount realized generally means the sale proceeds after eligible selling expenses; subtract adjusted basis from that figure to find a gain or loss. The IRS capital gains guidance explains this calculation for real estate held for personal or investment purposes.
Adjusted basis generally begins with the property’s cost and changes when applicable items are added or subtracted. Qualifying capital improvements, such as a substantial renovation, may increase basis. Depreciation allowed or allowable on rental or business property generally reduces it, which can increase the calculated gain. Routine repairs do not automatically count as improvements, so owners should preserve invoices and confirm how each cost is treated.
The gain calculation is not the same as the taxable amount. A qualifying principal-residence sale may benefit from an exclusion, while a properly structured exchange may defer recognition of gain. Depreciation-related rules can also affect how part of a gain is taxed. The IRS outlines home-sale exclusion requirements in Publication 523, but those rules do not generally apply to investment or commercial property.
Real estate held for personal or investment purposes is generally treated as a capital asset, though the property’s use and transaction details can change the result. BestFiler’s CPA-led tax planning can review basis records, depreciation, and sale costs alongside the owner’s broader tax position, helping estimate the taxable gain before a deal closes.
Holding Period and Income Shape the Rate
How do holding period and income affect the tax rate on a real estate gain? A holding period of one year or less generally means short-term treatment, with the gain taxed at ordinary income rates. Property held for more than one year generally qualifies for long-term treatment, though that does not mean every part of the gain receives the same rate. The IRS rules on capital gains and losses explain how holding period and income affect federal treatment.
For tax years beginning in 2025, most individuals’ net capital gains may be taxed at 0%, 15%, or 20%, depending on taxable income and filing status. These rates are not universal: thresholds can change, and a taxpayer’s overall result depends on the type of gain and other facts. Owners should confirm the rules for the tax year of the sale rather than treating a rate estimate as fixed.
Rental-property depreciation can also affect the calculation. Some gain attributable to prior depreciation may be treated as unrecaptured Section 1250 gain, which can be taxed at a maximum federal rate of 25%. The amount and tax treatment depend on the property and taxpayer, so the standard long-term capital-gains rates may not describe the entire gain.
Some taxpayers may also owe the 3.8% net investment income tax, and state tax treatment varies. A practical review should consider holding period, taxable income, filing status, depreciation, and applicable state rules together. BestFiler’s CPA-led tax planning can incorporate property transactions into a broader review of an owner’s tax position and cash flow.
Build the Basis and Expense File
What expenses and improvements can affect the taxable gain on a real estate sale?
Eligible selling expenses can reduce the amount realized, while qualifying capital improvements can increase adjusted basis. The distinction matters: a documented improvement may reduce the gain reported, but an ordinary repair generally does not.
Keep purchase documents, settlement statements, invoices for improvements, depreciation schedules, and sale records together. Additions, a new roof, and substantial remodeling may qualify as basis increases. Routine maintenance usually does not, unless it is part of an extensive remodeling or restoration project. Commissions and certain closing costs may count as selling expenses. Paying off a mortgage is not a selling expense that reduces the gain.
For rental or business property, depreciation allowed or allowable generally reduces basis and may receive separate tax treatment when the property is sold. The IRS guidance on selling a home also recommends keeping basis records until three years after the due date of the return for the year of sale.
A CPA-led review can help separate capital improvements from repairs and identify costs that qualify. BestFiler’s tax planning services use a forward-looking approach, which can help owners organize records before a transaction rather than reconstructing them at filing time.
Check Eligibility for the Home Sale Exclusion
Can I exclude capital gains when I sell my primary residence? Often, yes. An eligible seller may exclude up to $250,000 of gain, or up to $500,000 for eligible married taxpayers filing jointly, under the federal home-sale exclusion. The IRS home-sale exclusion rules set out the general eligibility tests and limits.
Usually, you must have owned the home for at least 24 months and used it as your main home for at least 24 months during the five years before the sale. Those periods do not have to be the same. For a joint return, either spouse may meet the ownership test, but both spouses must meet the use test to claim the full joint exclusion.
A seller generally cannot use the exclusion if they claimed it for another home sale within the previous two years. Exceptions may apply, including qualifying circumstances that support a partial exclusion. The detailed rules in IRS Publication 523 also address eligibility and special cases, so confirm the applicable requirements before relying on the exclusion.
Rental or business use can change the calculation. Depreciation allowed or allowable for periods after May 6, 1997, cannot be excluded, even when other gain qualifies. If a property includes a separate rental or business portion, the seller may need to allocate the basis and proceeds between that portion and the residence.
For owners of mixed-use property, a CPA-led review can help connect occupancy and depreciation records with the sale calculation. BestFiler’s fixed-monthly tax-planning engagement includes forward-looking guidance, which can help owners assess these details before closing rather than treating them as a filing-time surprise.
Reinvestment Alone Does Not Defer Tax
Does buying another home eliminate capital gains tax on the home I sold? No. Using the proceeds to purchase a different home does not, by itself, erase or defer tax on the sale. The sale and purchase are generally separate transactions for tax purposes.
A qualifying main-home sale may be eligible for the Section 121 exclusion, which can exclude some or all of the gain if the ownership, residence, and other requirements are met. This exclusion depends on the seller’s eligibility, not on whether the proceeds are reinvested. The IRS home-sale exclusion rules describe the tests and reporting requirements.
A Section 1031 exchange is different: it can defer gain when qualifying investment or business real estate is exchanged for like-kind replacement real estate. It is not a general rollover rule for a personal residence. The American Bar Association’s Section 1031 guidance explains that an exchange requires qualifying property and advance transaction structure.
Reporting still matters even when an exclusion may leave no taxable gain. If the seller receives Form 1099-S, the home sale generally must be reported; taxable gain also needs to be reported. BestFiler’s CPA-led tax compliance and planning work can help owners review the sale’s treatment and records before filing, rather than assuming a replacement purchase settles the tax question.
Use a Section 1031 Exchange Carefully

A Section 1031 exchange may defer gain when real property held for investment or productive use in a trade or business is exchanged for like-kind real property. “Like-kind” generally refers to the property’s nature or character, not an identical type: qualifying investment property may differ in use or quality from its replacement. Personal-use property and property held primarily for sale generally do not qualify. The American Bar Association’s Section 1031 guidance explains the exchange rules and their practical limits.
An exchange defers tax rather than automatically eliminating it. The replacement property generally carries forward the relinquished property’s basis, so deferred gain may be recognized when that property is later sold without another qualifying exchange. Owners should consider the future tax effect alongside the immediate benefit of keeping proceeds invested.
What are the main rules for a Section 1031 exchange of real estate?
A deferred exchange must be arranged before the sale closes. The taxpayer generally must identify replacement property within 45 days after transferring the relinquished property and complete the exchange within 180 days, or by the due date of the tax return for that year if earlier. These deadlines are strict, so the timing should be checked before signing or closing.
An accommodator, often called a qualified intermediary, typically holds the sale proceeds and applies them toward the replacement property. The taxpayer generally cannot receive or control those funds during the exchange. Selling for cash and then independently buying another property does not qualify simply because the proceeds are reinvested.
Because eligibility, timing, proceeds, and replacement-property basis all affect the result, owners should model the transaction before committing. BestFiler’s CPA-led tax planning combines compliance work with forward-looking tax and cash-flow planning, helping real-estate businesses assess an exchange as part of their broader financial decisions.
Confirm the Property Qualifies for Exchange
Before treating a property sale as a potential Section 1031 exchange, confirm that both the property and its use meet the rules. The label on a deed or listing is not enough: the owner’s purpose and the property’s actual use matter.
Which properties are not eligible for a Section 1031 exchange?
A personal residence and property held primarily for sale, such as a developer’s or dealer’s inventory, generally do not qualify. The property must be held for investment or for productive use in a trade or business. An investment property’s purpose and rental history may therefore need careful review, as the American Bar Association’s Section 1031 guidance explains.
Stocks, bonds, notes, securities, and partnership interests are not qualifying real property. U.S. real estate also cannot be exchanged for foreign real estate under the like-kind rules. If a property has both personal and business or investment uses, the qualifying portion may require separate analysis rather than assuming the whole property is eligible.
For owners with rental or business property, BestFiler’s CPA-led tax planning can review property use alongside basis, depreciation, and transaction records before a sale. That forward-looking review helps distinguish an exchange candidate from a property whose use or ownership structure calls for another tax approach.
Match Timing and Reporting to the Sale
When do you owe capital gains tax after selling real estate? A taxable sale is generally reported for the tax year in which it closes, and any resulting tax is generally due by the deadline for that year’s return. If the gain increases your tax bill, estimated payments may be needed to avoid interest or penalties. The timing and amount depend on the seller’s full tax situation, so check current IRS guidance and applicable payment rules.
For many capital transactions, sellers report details on Form 8949 and summarize gains or losses on Schedule D. A property with business or rental use may involve additional reporting, including Form 4797 for some amounts. Follow the IRS instructions that apply to the property and transaction, rather than assuming one form covers every portion.
An installment sale may allow eligible gain to be reported as payments arrive, but depreciation recapture generally has separate timing rules. A seller financing the buyer should review those rules before agreeing to payment terms. The IRS explains home-sale reporting and installment treatment in Publication 523; its guidance also notes that taxable gains may require estimated tax payments.
BestFiler’s subscription-based, CPA-led tax planning services can help owners coordinate transaction records, reporting obligations, and cash-flow planning before closing. That review can clarify whether installment treatment or another qualifying arrangement changes the timing of recognized gain, without treating a change in timing as automatic tax savings.
Coordinate Tactics Before Signing

How can property owners legally reduce or defer capital gains tax on real estate? Start by confirming the property’s adjusted basis and documenting eligible improvements and selling costs. Depending on the facts, an eligible main-home exclusion may reduce taxable gain, a properly structured Section 1031 exchange may defer gain on qualifying investment or business property, and installment reporting may spread recognition when the sale qualifies.
These options are not interchangeable. The home-sale exclusion has specific ownership and residence tests, while a Section 1031 exchange applies to qualifying investment or business real estate, not a personal residence. Review the IRS home-sale guidance and Section 1031 exchange rules before assuming a strategy fits.
Property-use history, depreciation, state tax treatment, transaction timing, and cash-flow needs can all affect the result. An installment sale may defer some gain, but it does not automatically remove tax, and a loss on personal-use property generally is not deductible. Keep the sale, replacement purchase, and tax payment schedule in view together.
Before signing a sale contract or taking control of proceeds, gather purchase and improvement records, depreciation schedules, closing documents, and details of any business or rental use. A CPA-led adviser such as BestFiler can coordinate bookkeeping, tax compliance, and forward-looking cash-flow planning through a fixed-monthly engagement, while assessing options without promising a particular tax result.
Make the Tax Plan Part of the Deal
A sound estimate of tax on a property sale depends on more than the expected price. Property use, ownership period, adjusted basis, documented improvements, depreciation, and the transaction structure can all affect the result.
Before closing, review the facts and current federal and state rules with a qualified tax professional, particularly if you are considering a home-sale exclusion, a Section 1031 exchange, or seller financing. The IRS explains that home-sale eligibility and reporting depend on specific circumstances, while an exchange has separate requirements. IRS Publication 523 and the Section 1031 exchange overview offer starting points, not a substitute for advice on your transaction.
BestFiler’s CPA-led tax planning and fixed-monthly engagement model can help owners bring records and tax decisions into a forward-looking review, rather than treating them as closing-day tasks. An early, well-documented review can clarify likely exposure and help you weigh sale timing and how to use the proceeds.



















































