How Does Selling a House and Buying Another Affect Capital Gains?

SellersTags:

By Carroll Harrod · Salt & Soil Realty Group

How Does Selling a House and Buying Another Affect Capital Gains?

A lot of homeowners still wonder whether buying another house changes the capital gains tax owed when they sell. In most everyday primary-residence sales, the answer is no: buying another home does not automatically defer or erase federal capital gains tax on the old home. What usually matters is whether the home you sold qualifies for the IRS home-sale exclusion under Section 121. IRS Topic 701, Sale of your home explains that eligible sellers may exclude up to $250,000 of gain if filing single, or up to $500,000 in many married-filing-jointly cases, when selling a main home and meeting the rules.

Salt & Soil Realty Group is a real estate brokerage, not a CPA firm, law firm, or tax preparer. This page is education, not tax advice. Ask a qualified tax professional how the rules apply to your sale, purchase, filing status, and records.

For related reads, see selling a house and capital gains tax, selling a house and tax implications, and selling a house and buying a new one. Carroll Harrod helps Jacksonville and Eastern North Carolina sellers plan the real estate side while their CPA handles the tax calculation.


Buying another home does not automatically defer capital gains today

Many sellers remember an older concept: selling one home and buying another of equal or greater value to postpone tax. That is not the current primary-residence rule. Today, the main question is whether the home you sold qualifies for the Section 121 exclusion, not whether you rolled proceeds into a replacement house.

You can sell a main home, exclude eligible gain if you qualify, and buy the next home as a separate life decision. But if your gain exceeds the exclusion, or the home does not qualify as your main home, buying another residence afterward does not by itself erase the taxable part.


Section 121: the ownership, use, and two-year lookback tests

For the full exclusion, IRS Topic 701 says you generally must have owned the home for at least two years and used it as your main home for at least two years during the five-year period ending on the sale date. You also generally cannot have used the exclusion on another home sale during the two-year period ending on the sale date.

That is why timing matters. If you are selling one home and buying another, do not assume the new purchase solves the tax issue. The sale of the old home stands on its own eligibility facts.


Main home vs. second home: only your primary residence gets the exclusion

The IRS Sale of residence - real estate tax tips page notes that if you have more than one home, you can exclude gain only from the sale of your main home. A vacation home, second home, inherited property used personally, or investment property may have a different result.

If you moved between homes, rented one out, or split time across multiple properties, document which property was your main home and when. Your next purchase does not convert a nonqualifying sale into a qualifying primary-residence exclusion.


Taxable gain depends on adjusted basis, not the price of your next house

Your gain is not simply sales price minus original purchase price, and it is not reduced just because your next house is expensive. IRS Publication 523, Selling Your Home explains the worksheets and concepts sellers use to determine basis, adjusted basis, amount realized, and gain.

Major capital improvements may increase basis; selling expenses may reduce amount realized; some events may reduce basis. Keep purchase statements, closing disclosures, permits, improvement invoices, and receipts for major projects. Those records matter more to the tax calculation than whether the replacement home costs more or less.


Rental, Airbnb, or home-office use can create taxable depreciation gain

If the old home was partly used as a rental, short-term rental, or business property, the math can get harder. IRS guidance in Publication 523 explains that gain tied to depreciation allowed or allowable for business or rental use after May 6, 1997 generally cannot be excluded under the main-home exclusion rules.

That means you might qualify for the home-sale exclusion on one part of the gain while still owing tax on a depreciation-related portion. Buying another home afterward does not eliminate that depreciation issue.


1031 exchanges are for qualifying investment or business property, not normal home swaps

Some sellers confuse primary-residence sales with like-kind exchanges. IRS Sales, trades, exchanges guidance discusses exchanges that can postpone gain by shifting basis into replacement property, but that is generally about qualifying business or investment real estate, not simply selling your personal residence and buying another home to live in.

For most homeowners, Section 121 is the key rule. A 1031 exchange is a separate, technical strategy that belongs in a CPA or qualified intermediary conversation when investment property is involved.


North Carolina sellers: federal AGI usually drives the state starting point

For North Carolina sellers, state tax often starts with the federal answer. NCDOR says federal adjusted gross income is the starting point for the N.C. return. If taxable gain from the home sale flows into federal AGI, it may affect the North Carolina return too, subject to state rules and adjustments.

NCDOR's Tax Rate Schedules page states that the individual income tax rate is 4.25% for taxable years beginning in 2025 and 3.99% for taxable years after 2025, with possible future rate changes based on statutory triggers.


Seller checklist before you sell one house and buy another

Before listing, gather your purchase records, closing documents, improvement invoices, rental or home-office records, depreciation history, and expected selling-cost estimates. Ask your CPA whether you meet the ownership and use tests, whether you used the exclusion recently, whether any part of the property was not main-home use, and whether North Carolina reporting or tax treatment changes the plan.

Carroll Harrod helps sellers think through pricing, timing, and move logistics so the sale process supports the next purchase. Your CPA or tax preparer should handle the tax conclusion before closing day creates surprises.

Frequently Asked Questions

1. Do I avoid capital gains tax if I buy another house right after I sell mine?

Usually no. Buying another house does not automatically defer or eliminate gain on the home you sold. The main question is whether you qualify for the Section 121 home-sale exclusion.

Eligible sellers may exclude up to $250,000 of gain if filing single, or up to $500,000 in many married-filing-jointly cases, if they meet the IRS ownership, use, and recent-exclusion rules.

Generally, you must have owned the home for at least two years and used it as your main home for at least two years during the five-year period ending on the sale date, and you generally cannot have used the exclusion on another sale in the prior two years.

Not by itself. Depreciation allowed or allowable for business or rental use can create taxable gain that the main-home exclusion does not erase.

North Carolina starts with federal adjusted gross income, so taxable gain at the federal level can affect the North Carolina return. State rates and rules should be confirmed for the tax year of sale.

Ready to Plant Roots in Coastal Carolina?

Whether you're PCSing to Camp Lejeune, seeking your coastal retirement dream, or building an investment portfolio, Salt & Soil Realty Group is your trusted partner in Jacksonville, NC real estate.

Start Your Journey