Capital Gains & House Flipping Tax Calculator
Estimate your federal and state capital gains taxes when selling a primary residence, rental property, raw land, or use it as a comprehensive house flipping tax calculator for real estate investors across the United States.
Transaction Details
Tax Information
Calculation Results
*Estimates only. Does not include Net Investment Income Tax (NIIT) or depreciation recapture. Consult a CPA or tax professional — IRS rules can change and capital gains must be properly reported on Schedule D.
⚠ Considering a 1031 Exchange?
If you are selling an investment property (not a primary residence), you may be able to defer paying capital gains taxes by reinvesting the proceeds into a new "like-kind" property under Section 1031 of the IRS tax code.
Rules: You must identify the replacement property within 45 days and complete the purchase within 180 days. Consider hiring a Qualified Intermediary (QI).
ⓘ Section 121 Primary Residence Exclusion
If you have lived in the home as your primary residence for 2 of the last 5 years, the IRS allows you to exclude up to $250,000 (single) or $500,000 (married filing jointly) of capital gains from your taxable income!
How Capital Gains Tax Works
When you sell a real estate property for more than your adjusted basis, the profit is considered a capital gain. The tax you pay depends on how long you owned the property, your income, and whether it was your primary residence.
Short-Term vs Long-Term
Short-Term: Properties held for 1 year or less. Taxed at your ordinary income tax rates, which can be as high as 37%.
Long-Term: Properties held for more than 1 year. Taxed at favorable federal capital gains rates of 0%, 15%, or 20% depending on your income level.
Frequently Asked Questions
For 2026, the long-term capital gains tax rates remain at 0%, 15%, or 20%, depending on your taxable income and filing status. Most middle-income earners fall into the 15% bracket, while high earners pay 20%. Single filers typically hit the 15% bracket around $47,000 and the 20% bracket around $518,000, while married couples filing jointly see higher thresholds. Keep in mind that a 3.8% Net Investment Income Tax (NIIT) may also apply to higher incomes.
Short-term capital gains apply to properties held for one year or less. These gains are taxed at your ordinary income tax rates, which can range from 10% up to 37%. Because of this higher tax burden, many house flippers and investors try to hold properties for at least one year and a day to qualify for the more favorable long-term capital gains tax brackets.
Yes, you can use the Section 121 exclusion multiple times during your lifetime, but generally only once every two years. To qualify, you must have owned and lived in the home as your primary residence for at least 24 months out of the 5 years leading up to the sale. This allows serial homeowners to exclude up to $250,000 (single) or $500,000 (married) in gains repeatedly.
In most states, yes. Your state will tax the capital gain according to its own tax brackets. For example, California taxes capital gains as ordinary income, which can exceed 13.3%, while states like Texas, Florida, and Nevada have no state income tax, meaning you owe $0 at the state level. Always factor in state-level taxes when calculating your total ROI.
Section 1031 of the IRS code allows real estate investors to defer paying capital gains taxes when they sell an investment property and reinvest the proceeds into a "like-kind" property. You must identify a replacement property within 45 days and close within 180 days. This powerful tool helps investors preserve capital and scale their rental portfolios faster.
No, a 1031 Exchange is strictly for properties held for productive use in a trade, business, or for investment. A primary residence does not qualify. However, if you rent out a former primary residence for a sufficient period of time, it may eventually qualify for a 1031 Exchange, though specific IRS safe harbor rules apply.
Selling costs—such as real estate agent commissions, legal fees, title insurance, and advertising costs—are subtracted from your gross sale price to determine your amount realized. This effectively lowers your taxable gain. It is crucial to track all closing costs accurately to minimize your tax liability.
Your adjusted cost basis is the original purchase price of the property, plus certain buying expenses and the cost of major capital improvements (like a new roof or an addition), minus any depreciation you've claimed over the years. A higher adjusted cost basis means a lower taxable gain when you sell.
No, routine repairs (like fixing a leaky faucet, painting a room, or replacing a broken window) do not add to your property's cost basis and cannot be used to reduce capital gains. Only major capital improvements that add value, prolong the property's life, or adapt it to a new use can be added to your basis.
When you sell a rental property, the IRS requires you to pay taxes on the depreciation you claimed (or could have claimed) while you owned it. This is called depreciation recapture and is typically taxed at a maximum rate of 25%. This is calculated separately from your capital gains tax and cannot be offset by the Section 121 exclusion.
If you sell your primary residence at a loss, the IRS considers it a personal loss, and it is not tax-deductible. However, if you sell an investment property or rental property at a loss, you can typically use that capital loss to offset other capital gains, or even deduct up to $3,000 per year against ordinary income.
The Net Investment Income Tax is an additional 3.8% surcharge on investment income, which includes capital gains from real estate sales. It applies to individuals, estates, and trusts that have income above certain statutory threshold amounts (e.g., $200,000 for single filers and $250,000 for married couples filing jointly).
Yes, a married couple filing jointly can still claim the $500,000 Section 121 exclusion even if only one spouse is on the title. However, both spouses must have lived in the home as their primary residence for at least two of the five years preceding the sale. Only one spouse needs to meet the ownership test.
If you are forced to sell your primary residence before meeting the two-year requirement due to a change in employment, health reasons, or unforeseen circumstances, you may qualify for a partial Section 121 exclusion. The IRS allows you to exclude a prorated amount based on the time you actually lived in the home.
When you inherit property, it generally receives a "step-up in basis" to its fair market value on the date of the original owner's death. This means if you sell the property immediately, you will owe little to no capital gains tax. You only pay tax on the appreciation that occurs after you inherit the property.
Yes, foreign individuals and entities selling US real estate are subject to the Foreign Investment in Real Property Tax Act (FIRPTA). FIRPTA requires the buyer to withhold 15% of the gross sale price (not just the gain) and remit it to the IRS to ensure the foreign seller pays their capital gains tax obligations.
Investing in Qualified Opportunity Zones (QOZs) allows investors to defer capital gains taxes from a previous sale by reinvesting the gains into a QOZ fund. If the investment is held for at least 10 years, any new capital gains generated by the QOZ investment are completely tax-free, offering immense long-term ROI potential.
If your capital gain from the sale of a primary residence exceeds the Section 121 exclusion limits, or if you receive a Form 1099-S from the closing agent, you must report the sale on IRS Form 8949 and Schedule D of your Form 1040. For investment properties, you will also need Form 4797 for depreciation recapture.
No, your adjusted cost basis only includes what you paid for the property and the cost of capital improvements that you personally funded. You cannot add the cost of improvements made by the previous owner to your basis, as those were already factored into the purchase price you paid.
No, refinancing a property—even if you do a "cash-out refinance" to pull equity out of the home—is not a taxable event. The IRS considers the cash you receive from a loan as debt that must be repaid, not income. This makes cash-out refinancing a popular strategy for accessing equity without triggering capital gains.