Do you have to pay IRS taxes when you sell a house?

Asked by: Prof. Oswald Ullrich  |  Last update: May 23, 2026
Score: 4.1/5 (27 votes)

You may not have to pay IRS taxes when selling a home if it is your primary residence and you meet ownership/use tests. Single sellers can exclude up to $ 250 , 000 $ 2 5 0 , 0 0 0 in gains, while married couples can exclude up to $ 500 , 000 $ 5 0 0 , 0 0 0 . Taxes are only owed on profits exceeding these amounts or if the home was not your main residence.

Do I have to pay taxes on gains from selling my house in the IRS?

You generally don't pay taxes on the first $250,000 (or $500,000 married filing jointly) of profit (gain) from selling your primary home if you meet the IRS ownership and use tests (owned and lived in it for 2 of the last 5 years); otherwise, you'll owe capital gains tax on the profit above those amounts, calculated by your basis (cost + improvements) versus the sale price minus selling expenses.

Should I do my own taxes if I sold my house?

Reported sale

Taxpayers who don't qualify to exclude all of the taxable gain from their income must report the gain from the sale of their home when they file their tax return. Anyone who chooses not to claim the exclusion must report the taxable gain on their tax return.

How does the IRS know if you sell a house?

The IRS works hand-in-hand with real estate settlement agents, financial brokers, and lenders to ensure you do your part. After concluding a home sale, you will be sent a 1099-S form. This form will provide financial details of the profit you made from the sale of your home.

How much do I pay in taxes if I sell my house?

When selling a house, you usually pay capital gains tax on the profit, but can often exclude up to $250,000 (single) or $500,000 (married filing jointly) if you've lived there for 2 of the last 5 years. For profits above the exclusion, long-term gains (owned over a year) are taxed at 0%, 15%, or 20% based on income, while short-term gains (owned a year or less) are taxed at your ordinary income rate.

Watch Out For Capital Gains when Selling Your House

28 related questions found

How much capital gains do I pay on $100,000?

On a $100,000 capital gain, you'll likely pay 15% for long-term gains, resulting in about $15,000 in federal tax (plus potential state tax), but it could be 0% or 20% depending on your total taxable income and filing status, while short-term gains are taxed as ordinary income (potentially 22-24%). 

How much is capital gains tax on a $500,000 house?

When you sell your primary residence, $250,000 of capital gains (or $500,000 for a couple) are exempted from capital gains taxation. This is generally true only if you have owned and used your home as your main residence for at least two out of the five years prior to the sale.

What happens if you sell a house and don't buy another?

If you sell your home and decide not to buy immediately, you may still qualify for the capital gains tax exclusion if: The home was your primary residence. You meet the ownership and use tests. You haven't used the exclusion on another home in the last two years.

Is profit from selling a house considered income?

If your gain exceeds your exclusion amount, you have taxable income. File the following forms with your return: Federal Capital Gains and Losses, Schedule D (IRS Form 1040 or 1040-SR) California Capital Gain or Loss (Schedule D 540) (If there are differences between federal and state taxable amounts)

What is the 6 year rule?

If you use your former home to produce income (for example, you rent it out or make it available for rent), you can choose to treat it as your main residence for up to 6 years after you stop living in it. This is sometimes called the '6-year rule'. You can choose when to stop the period covered by your choice.

How long after selling a house do you pay capital gains tax?

To potentially exclude capital gains on your primary home sale, you generally must have owned it and lived in it as your main home for at least 2 out of the last 5 years before the sale (the "2-in-5-year rule"). This allows single filers to exclude up to $250,000 of gain, and married couples up to $500,000, with the exclusion available every two years, avoiding capital gains tax on that profit. 

What is the 3-3-3 rule in real estate?

The "3-3-3 rule" in real estate isn't a single guideline but refers to different strategies: for buyers, it's about financial readiness (3 months savings, 3 months reserves, 3 property comparisons) or a financial affordability check (30% income, 30% down, 3x income); for agents, it's a marketing habit (call 3, note 3, share 3) or prospecting (talking to everyone within 3 feet). There's also a developer rule (1/3 land, 1/3 build, 1/3 profit), though it's considered outdated by some.

Do you have to buy another house to avoid capital gains?

Buying another property does not automatically eliminate capital gains tax on a primary residence or investment property. Homeowners may qualify for the Section 121 Exclusion, which allows up to $250,000 in tax-free gains for single filers or $500,000 for married couples if residency requirements are met.

What is the lifetime capital gains exemption?

LCGE has an exemption limit for qualified farm and fishing property or qualified small business corporation shares of $1,250,000. This amount is indexed to inflation. With LCGE, you're allowed to subtract your taxable amount from your profits. Note that the LCGE is a cumulative lifetime limit.

How much capital gains do you have to pay on $100,000?

On a $100,000 capital gain, you'll likely pay 15% for long-term gains, resulting in about $15,000 in federal tax (plus potential state tax), but it could be 0% or 20% depending on your total taxable income and filing status, while short-term gains are taxed as ordinary income (potentially 22-24%). 

How long to live in a house before selling?

The five-year rule

This has to do with the amount of equity the average homeowner has built in their home after five years of possession, and it also takes into account the costs associated with selling a home (and, if applicable, with purchasing a new one).

What is the 20% rule for capital gains?

The 20% rule for capital gains refers to the highest federal tax rate for long-term capital gains, applying to higher income brackets when you sell investments (stocks, real estate) held for over a year, with lower rates of 0% and 15% for lower incomes, and even higher rates for special assets like collectibles. This rate kicks in for single filers earning over approximately $492,300 (2024) or $533,401 (2025), and higher for joint filers, making holding assets over a year a key tax strategy.

What salary do you need for a $400,000 house?

To comfortably afford a 400k mortgage, you'll likely need an annual income between $100,000 to $125,000, depending on your specific financial situation and the terms of your mortgage.

What are some red flags when selling?

Disorganized or Incomplete Financials

These signal a lack of sophistication and create uncertainty, which buyers translate into either a discounted purchase price or a hard pass. Solution: Engage a qualified CPA to clean up your financials and prepare quality of earnings materials, even informally.