Get Your Free Capital Gains Tax Guide for Real Estate
Understanding Capital Gains and Real Estate Transactions When you sell real estate property, the difference between what you paid for it and what you sold it...
Understanding Capital Gains and Real Estate Transactions
When you sell real estate property, the difference between what you paid for it and what you sold it for is called a capital gain. If your home cost $300,000 and you sold it for $450,000, you have a $150,000 capital gain. This amount can be subject to federal income tax, and potentially state and local taxes as well.
Capital gains work differently than regular income. The Internal Revenue Service (IRS) divides capital gains into two categories: short-term and long-term. If you owned the property for one year or less before selling, any profit is considered a short-term capital gain. Short-term gains are taxed at the same rate as your ordinary income, which can range from 10% to 37% depending on your tax bracket. Long-term capital gains, from property owned longer than one year, receive more favorable tax treatment, with rates of 0%, 15%, or 20%.
Real estate capital gains differ from other investments because several exclusions and deductions may apply. For example, if you owned and lived in a home as your primary residence for at least two of the five years before sale, you may be able to exclude up to $250,000 in gains if you're single, or $500,000 if you're married filing jointly. This is known as the Section 121 exclusion and applies to home sales only, not investment properties.
Understanding these basics matters because they affect how much you owe in taxes. Many people don't realize they may reduce their taxable gains through various deductions and exclusions. The difference between paying taxes on the full sale price versus the actual capital gain can be thousands of dollars.
Takeaway: Capital gains from real estate sales are calculated as the difference between your purchase price and sale price, and the tax rate depends on how long you owned the property. Primary residences may qualify for partial or full exclusions of gains, making it important to understand which rules apply to your situation.
Primary Residence Exclusions and How They Work
One of the most significant tax benefits available to homeowners is the primary residence exclusion. This provision allows you to exclude a substantial portion of your capital gains from taxation when you sell your home. For single filers, you can exclude up to $250,000 in gains. For married couples filing jointly, the exclusion increases to $500,000. This means if you're a single homeowner and your gain is $180,000, you would pay zero federal capital gains tax on that sale.
To qualify for this exclusion, you must meet certain requirements. You must have owned the home for at least two of the five years immediately before the sale. You must have lived in the home as your principal residence for at least two of those same five years. Additionally, you cannot have used this exclusion on another home sale within the two years prior to the current sale. The ownership and use requirements do not need to be consecutive, and they do not need to overlap with each other, though they must fall within the same five-year window.
Consider this example: Sarah bought her house in 2016 for $200,000. She lived there until 2019, when she moved for work but kept the house as a rental. In 2024, she sold it for $520,000. She lived in the home for three years (2016-2019), which exceeds the two-year requirement. She owned it for eight years total, which exceeds the two-year ownership requirement. Both requirements are met within the five-year lookback period, so she can exclude $250,000 of her $320,000 gain, leaving $70,000 subject to capital gains tax.
The exclusion applies to married couples even if only one spouse meets the ownership requirement, as long as both meet the use requirement and neither has used the exclusion in the prior two years. This can be valuable for couples where one partner may have brought a property into the marriage.
Takeaway: Understanding the primary residence exclusion can save homeowners substantial tax liability. Track your ownership and occupancy dates carefully, and remember that partial years can count if you meet the requirements during the appropriate timeframe.
Investment Property Capital Gains and Tax Strategies
Investment properties—rental homes, vacation properties, or land held for appreciation—do not benefit from the primary residence exclusion. All capital gains from investment property sales are subject to capital gains tax. However, several strategies and deductions can reduce the amount of tax owed.
The cost basis of an investment property includes not only the original purchase price but also certain improvements and expenses. Improvements are permanent enhancements that add value or extend the property's useful life. Examples include a new roof, additions, new HVAC systems, or major renovations. These costs can be added to your basis. In contrast, maintenance and repairs—like painting, fixing gutters, or patching a roof—do not increase basis; they are deductible as operating expenses when incurred.
Depreciation is another significant factor for investment properties. The IRS allows you to deduct a portion of the property's value each year over a set period, typically 27.5 years for residential rental properties. This depreciation deduction reduces your taxable income year to year, but when you sell the property, you must "recapture" those deductions. The depreciation recapture is taxed at 25%, which is higher than the long-term capital gains rate. For example, if you deducted $50,000 in total depreciation over ten years of ownership, you would owe 25% tax on that $50,000, or $12,500, separate from the capital gains tax on your actual profit.
Some investors use a 1031 exchange to defer capital gains taxes. This IRS provision allows you to sell one investment property and reinvest the proceeds into another property of equal or greater value within specific timeframes, deferring the capital gains tax indefinitely. This strategy requires following strict rules about timing and property type, and it does not eliminate the tax—it delays it.
Takeaway: Investment property owners should carefully document all improvements, understand how depreciation affects their tax situation, and explore whether strategies like 1031 exchanges align with their long-term plans.
Calculating Your Actual Capital Gain
Many people calculate their capital gain too simply by subtracting their purchase price from their sale price. However, several adjustments can lower your taxable gain. Understanding these adjustments is essential for accurate tax planning.
Your basis in a property can include more than just the purchase price. If you inherited the property, you may receive a "stepped-up basis," meaning your basis becomes the property's fair market value on the date of the previous owner's death, not the original purchase price. If you received the property as a gift, your basis may be the donor's original cost. If you purchased the property, your basis includes the purchase price plus closing costs such as title insurance, attorney fees, and survey costs. It can also include certain prorated property taxes you paid at closing.
Sale expenses reduce your gain. These include real estate agent commissions, typically 5-6% of the sale price; attorney fees; title insurance; and transfer taxes. If your home sold for $400,000 and you paid $24,000 in agent commissions and $3,000 in other closing costs, your net proceeds are $373,000. Your actual gain is not measured against $400,000 but against your net proceeds after these legitimate sale expenses.
Improvements made during ownership increase your basis and reduce gain. The IRS distinguishes between capital improvements and repairs. An example: you spend $15,000 to replace the roof. This adds $15,000 to your basis. Later you spend $800 to repair damaged shingles. The repair is not capitalized; it was deductible when spent but does not affect the sale calculation.
For primary residences, certain costs related to the sale—such as improvements made shortly before sale—should be tracked separately. Documentation is crucial. Keep receipts, invoices, and contracts for any property improvements or closing costs for the purchase and sale.
Takeaway: Accurately calculating capital gain requires adjusting your original purchase price for closing costs, improvements, and legitimate sale expenses. Maintain detailed records of these items to support your tax calculations.
State and Local Tax Considerations for Real Estate Sales
Capital gains from real estate sales may be subject to state income tax in addition to federal tax. State rates vary significantly. Some
Related Guides
More guides on the way
Browse our full collection of free guides on topics that matter.
Browse All Guides →