Calculate Federal And State Tax On Sale Of Rental Property

Calculate Federal and State Tax on Sale of Rental Property

Estimate capital gains tax, depreciation recapture, optional Net Investment Income Tax, and state income tax when you sell an investment or rental property. This calculator is designed for quick planning and educational use before you review your numbers with a tax professional.

Rental Property Tax Calculator

Gross contract sales price.
Commissions, title, transfer, legal, staging, and similar costs.
Your original acquisition cost.
Additions that increase basis, not repairs.
Total depreciation allowed or allowable.
Select the rate that applies to your taxable income situation.
Enter your estimated state income tax rate as a percent.
Used for educational context and display.
NIIT can apply to investment gains for higher income households.

Estimated Results

Enter your numbers and click Calculate Taxes to see your estimated federal and state taxes.
This estimate assumes a taxable sale of rental property held long term. It does not replace a CPA, enrolled agent, or tax attorney review.

Expert Guide: How to Calculate Federal and State Tax on Sale of Rental Property

When you sell a rental property, the tax bill is often more complex than many owners expect. You are not simply paying one flat capital gains rate. In many cases, a rental property sale can trigger several layers of tax: long-term capital gains tax, depreciation recapture tax, Net Investment Income Tax, and state income tax. If you have owned the property for years and claimed depreciation annually, the gap between your original purchase price and your tax basis may be much larger than it looks on paper. That is why investors, landlords, and heirs managing a stepped-up or carryover basis situation should understand the mechanics before putting a property on the market.

The basic calculation starts with your amount realized and your adjusted basis. Your amount realized is usually the sale price minus selling expenses such as commissions, title fees, transfer taxes, and certain legal or closing costs. Your adjusted basis generally begins with what you paid for the property, then increases by capital improvements and decreases by depreciation allowed or allowable. Once you compare the amount realized with the adjusted basis, you determine whether you have a gain or a loss. For a profitable sale, the total gain is then separated into different tax categories.

Core formula: Taxable gain = (Sale price – Selling costs) – (Purchase price + Capital improvements – Accumulated depreciation)

Step 1: Determine the amount realized on the sale

The first number to calculate is the amount realized. This is not necessarily the same as the contract sales price. Investors frequently forget that transaction costs can reduce taxable gain. If you sell a rental home for $650,000 and pay $39,000 in broker commissions and other qualifying selling costs, your amount realized is $611,000. That lower number is what you compare with basis, not the full sale price.

  • Include real estate commissions
  • Include title and escrow charges tied to the sale
  • Include transfer taxes and recording fees if they are seller costs
  • Include certain legal fees directly connected to the sale
  • Do not include mortgage payoff as a selling cost for gain calculation purposes

Step 2: Calculate your adjusted basis

Your adjusted basis is the tax value of the property at the time of sale. Start with the original purchase cost, then add capital improvements such as a new roof, structural addition, major remodel, HVAC replacement, or other projects that materially improve or extend the life of the property. Next, subtract depreciation. This is the step that surprises many landlords. Even if you did not actively claim depreciation, the IRS can often treat depreciation as allowable, which means your basis may still be reduced for tax purposes.

For example, assume you bought a rental property for $320,000, later added $45,000 of qualifying improvements, and claimed $70,000 of depreciation. Your adjusted basis is:

  1. $320,000 purchase price
  2. + $45,000 improvements
  3. – $70,000 depreciation
  4. = $295,000 adjusted basis

If the amount realized is $611,000, then your total taxable gain is $316,000. That gain may be taxed in more than one bucket.

Step 3: Separate depreciation recapture from the remaining capital gain

Depreciation recapture is one of the most important concepts in a rental property sale. The portion of your gain attributable to prior depreciation is often taxed at a federal rate of up to 25%. This is commonly called Section 1250 gain treatment for residential rental real estate. In practical terms, the recapture portion is usually the lesser of your total gain or your accumulated depreciation. If your gain exceeds total depreciation claimed, then all depreciation may be recaptured. If your gain is smaller than total depreciation, recapture is limited to the gain.

Using the example above, if your total gain is $316,000 and accumulated depreciation is $70,000, then up to $70,000 is typically subject to the federal 25% recapture rate. The remaining $246,000 may then qualify for the applicable long-term capital gains rate, often 0%, 15%, or 20%, depending on taxable income.

Step 4: Apply the long-term federal capital gains rate

After separating depreciation recapture, the balance of gain is generally taxed at the federal long-term capital gains rate if the property was held for more than one year. For many taxpayers, that rate is 15%, but higher-income households may pay 20%, while some lower-income households may fall into the 0% bracket. Because this depends on broader taxable income, the calculator above lets you choose the capital gains rate directly rather than trying to guess your full tax profile.

Federal tax component Typical rate What it generally applies to
Depreciation recapture Up to 25% Gain attributable to prior depreciation deductions
Long-term capital gains 0%, 15%, or 20% Remaining gain after recapture portion
Net Investment Income Tax 3.8% May apply to investment income for higher earners

Step 5: Consider Net Investment Income Tax

The Net Investment Income Tax, often abbreviated NIIT, can add another 3.8% to some or all of the gain for taxpayers above certain income thresholds. This is especially relevant for successful investors, dual-income households, and owners selling highly appreciated property after many years of rental use. The NIIT calculation can be technical because it depends on modified adjusted gross income and net investment income limitations, but for planning purposes, many taxpayers estimate 3.8% of taxable gain if they believe they are above the threshold.

The calculator includes a checkbox that lets you include or exclude a simple NIIT estimate. It is intentionally conservative for planning purposes, but your actual tax return may require a more detailed review.

Step 6: Estimate your state tax

State taxation is where the result can vary dramatically. Some states, such as Florida and Texas, generally do not impose a state income tax on individuals. Others, such as California, can tax the gain at relatively high ordinary income rates rather than a special lower capital gains rate. Because every state has different rules, deductions, rates, and conformity choices, the calculator uses a user-entered estimated state tax rate. That approach gives you flexibility when comparing sale scenarios across different states.

State example Top individual income tax rate Planning takeaway for rental sales
California 13.3% No preferential state capital gains rate, so state impact can be significant
New York 10.9% state rate, local rates may also matter Combined state and local exposure can materially increase total tax
Florida 0% individual state income tax Federal taxes may dominate because there is generally no state income tax
Texas 0% individual state income tax No state income tax on individuals, but federal tax still applies

These rates are broad reference points for planning and can change. Local taxes, residency rules, nonresident filing obligations, and apportionment issues may also affect the final result.

What real statistics tell investors

Real estate taxes are not just a theoretical exercise. Government data and academic research consistently show that housing values, ownership duration, and transaction size can create large appreciation over time. According to the Federal Housing Finance Agency House Price Index, many U.S. markets experienced substantial cumulative home price growth over the past decade, which means long-held rental properties may carry meaningful unrealized gains. At the same time, the Internal Revenue Service continues to publish annual guidance on capital gains, depreciation recapture, and reporting obligations, reminding investors that basis tracking is essential. In practice, the biggest errors often come from poor records on improvements, overlooked depreciation schedules, and misunderstanding the difference between repairs and capital improvements.

Common mistakes when estimating tax on the sale of rental property

  • Ignoring depreciation recapture: Owners often estimate only long-term capital gains tax and miss the 25% recapture component.
  • Using original cost instead of adjusted basis: Basis should reflect improvements and depreciation.
  • Forgetting selling costs: Qualified selling expenses can reduce gain.
  • Assuming the state tax rate is zero: This may be true in some states, but not in many others.
  • Confusing repairs with improvements: Routine maintenance usually does not increase basis.
  • Skipping NIIT analysis: High-income taxpayers can face a meaningful additional federal layer.

How a 1031 exchange changes the picture

If you complete a valid Section 1031 like-kind exchange, you may defer recognition of gain rather than paying the full tax immediately. This is one reason many investors exchange one rental asset for another rather than selling outright. However, timing rules, identification rules, replacement property requirements, and boot considerations are strict. A failed exchange can unexpectedly trigger the very tax bill an investor hoped to avoid. For that reason, anyone considering an exchange should work with a qualified intermediary and a tax advisor early in the process, not after the sale contract is signed.

Can the home sale exclusion help?

Sometimes. The Section 121 home sale exclusion can apply in limited cases if the property was converted from rental use to a principal residence and all eligibility rules are met. But there are important restrictions, including ownership and use tests, treatment of nonqualified use, and depreciation recapture that usually remains taxable. This is an area where broad internet advice can be misleading, because many fact patterns that look similar have very different outcomes under the tax code.

Records you should gather before listing a rental property

  1. Closing statement from the original purchase
  2. Depreciation schedules from prior tax returns
  3. Receipts and contracts for capital improvements
  4. Estimated seller closing costs and commission schedule
  5. Any prior casualty, insurance, or basis adjustment documentation
  6. State residency and filing records if the property is out of state

Having these records early can improve your pricing decisions. Many owners focus only on what they can sell for, but net after-tax proceeds often matter more. A property that appears profitable on a gross basis may produce a much smaller net gain after federal recapture, capital gains tax, NIIT, and state tax are layered together.

Authority sources for deeper research

For official and academic background, review these sources:

Bottom line

To calculate federal and state tax on sale of rental property, you need more than the sale price and purchase price. You need the adjusted basis, the depreciation history, the selling costs, the expected federal capital gains bracket, a recapture estimate, and your state tax assumptions. The calculator on this page is designed to make that framework easy to use. It can help you compare listing strategies, estimate after-tax proceeds, and decide whether you should sell, refinance, hold, or explore a 1031 exchange. For a final decision involving a large gain, inherited property, mixed personal and rental use, installment sales, passive loss carryforwards, or multi-state residency issues, a tailored review with a CPA or tax attorney remains the smartest next step.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top