Skip to content

Capital gains tax on a home sale: the exclusion

Capital gains tax on a home sale is the question sellers ask most and the one an agent is least qualified to answer. What can be described accurately is the shape of the rule: the IRS allows an exclusion of up to $250,000 of gain for a single filer and $500,000 on a joint return, subject to tests. What you actually owe is an accountant's calculation.

Every situation on this page comes down to a number: what the property is worth and what you would net. We will work both out from recent sales near you, at no cost.

By submitting you agree to our Privacy Policy and Terms of Use.

What the exclusion is

The IRS allows a qualifying seller to exclude up to $250,000 of gain on the sale of a main home.

On a joint return the figure is up to $500,000.

Those amounts come from IRS Topic 701, which is public and worth reading directly.

Excluded gain is not simply untaxed income. It is gain removed from the calculation altogether.

Gain above the exclusion is generally taxable, and how it is taxed depends on circumstances.

The figures are stable but the surrounding rules have detail, which is where an accountant earns their fee.

The two tests

The ownership test asks whether you owned the home for at least 24 months of the last 5 years before the sale.

The use test asks whether you used it as a residence for at least 24 months of the previous 5 years.

Both must be met, and they do not have to be the same 24 months.

The months also need not be consecutive, which matters for people who moved out and back.

On a joint return the tests apply in a particular way to each spouse, which is a detail worth checking.

These are the headline requirements rather than the whole rule, and exceptions exist.

How often you can use it

Generally you are not eligible if you excluded gain on another home sale in the two years before this one.

That stops the exclusion being used repeatedly on a sequence of quick sales.

It matters for people who move frequently, and for anyone who sold a previous home recently.

Partial exclusions can be available in some circumstances where the full tests are not met.

Those circumstances are defined and specific rather than a general fairness exception.

If you sold another home recently, raise it with your accountant before you sell this one.

Gain is not the same as profit

Gain is the sale price less your basis and less the costs of selling, not simply the difference between what you paid and what you sold for.

Basis starts at what you paid and is adjusted by things that happened during ownership.

Capital improvements generally increase basis, which reduces gain.

Certain credits, depreciation and other events can reduce basis, which increases gain.

Selling costs including brokerage compensation generally reduce the amount realised.

This is why the calculation is not something to do on the back of an envelope.

Records that matter

Your closing statement from when you bought, which establishes the starting point.

Invoices and permits for capital improvements made during ownership.

Records of any casualty losses, insurance proceeds or credits claimed.

Documentation of periods the property was rented or used for business.

Your closing statement from the sale, which the closing agent provides.

Sellers who kept improvement records routinely pay less than those who did not, simply because they can prove basis.

Where it gets complicated

Property that was a rental for part of the ownership period has its own treatment.

Depreciation claimed while it was a rental is generally accounted for separately from the exclusion.

Inherited property has a different basis rule entirely, which is covered in the hard situations cluster.

Property held in a trust or an entity follows the rules applicable to that holder.

Divorce, death of a spouse and periods of non-qualified use each have specific treatment.

Every one of these is a reason to ask an accountant before selling rather than at tax time.

Florida does not change the federal position

Florida has no state personal income tax, which is a genuine advantage for sellers here.

That does not affect the federal capital gains position, which applies wherever you live.

Sellers who live in another state may face that state's treatment, which is worth checking.

Foreign sellers face separate withholding requirements, covered in the FIRPTA guide in this cluster.

Property tax is a different subject entirely and is prorated at closing.

The absence of state income tax is frequently over-read as meaning no tax on a sale, which it does not.

Timing considerations

Whether you meet the tests can depend on when you sell, sometimes by a matter of weeks.

If you are close to a threshold, that is worth knowing before you list rather than after you close.

The two-year rule on repeat use of the exclusion is a date calculation, not a judgement call.

A sale that closes either side of a year end can land in a different tax year.

None of those are reasons to delay a sale by themselves, and all of them are worth raising early.

An accountant can tell you in one conversation whether timing matters in your case.

What we can give you

An accurate valuation from named comparable sales, which is the starting figure.

A written net sheet showing the sale price less every cost of selling.

The closing statement at the end, which your accountant will need.

A realistic timeline, so a date-sensitive question can be planned around.

What we will not give you is a number for what you will owe.

Any agent who tells you your tax position confidently is guessing with your money.

The order to do this in

Get a valuation and a net sheet so you know the likely sale price and proceeds.

Gather your purchase closing statement and your improvement records.

Take both to an accountant before you list, not after you have accepted an offer.

Ask specifically about the two tests, the two-year rule and any rental period.

Then make the selling decision with the tax position known rather than assumed.

Ask us for the valuation and net sheet and we will have them ready for that conversation.

This page explains how the money side of a Florida sale works so you can plan around it. It is not legal or tax advice. Tax on your sale belongs with an accountant, and the legal effect of your contract belongs with a Florida attorney. What we can give you is an accurate figure for what your home is worth and what you would net, which is the input both of those conversations need.

How much gain can I exclude on my home sale?
The IRS allows up to $250,000 of gain for a single filer and up to $500,000 on a joint return, subject to the ownership and use tests. Those figures are published in IRS Topic 701. What you actually owe depends on your basis and circumstances, which is an accountant's calculation.
What are the ownership and use tests?
You must have owned the home for at least 24 months of the last 5 years, and used it as a residence for at least 24 months of the previous 5 years. Both must be met, they need not be the same 24 months, and the months need not be consecutive.
Can I use the exclusion more than once?
Generally not within two years. You are usually not eligible if you excluded gain on another home sale during the two-year period before this sale. If you sold a previous home recently, raise it with your accountant before selling this one.
Is gain the same as my profit?
No. Gain is the sale price less your basis and less the costs of selling. Basis starts at what you paid and is adjusted during ownership, with capital improvements generally increasing it. That is why improvement records are worth keeping.
Does Florida tax my gain?
Florida has no state personal income tax, which is a real advantage. It does not change the federal position, which applies wherever you live. Sellers living in another state may face that state's treatment, and foreign sellers face separate withholding requirements.
What if the property was a rental for part of the time?
It has its own treatment, and depreciation claimed during the rental period is generally handled separately from the exclusion. This is one of the clearest cases for getting accountant advice before selling rather than at tax time.
What records should I gather?
Your purchase closing statement, invoices and permits for capital improvements, records of casualty losses or credits, documentation of any rental or business use, and the closing statement from this sale. Sellers who can prove basis routinely pay less.
Does the timing of my sale matter?
Sometimes by a matter of weeks, if you are close to meeting a test or to the two-year rule on repeat use. A closing either side of a year end also lands in a different tax year. An accountant can tell you in one conversation whether it matters for you.
Can you tell me what I will owe?
No, and no agent should. We can give you an accurate valuation, a written net sheet and the closing statement, which together are what your accountant needs to answer it. Anyone in real estate offering you a confident tax figure is guessing.
What if my gain is above the exclusion?
Gain above the exclusion is generally taxable, and how depends on your circumstances. Knowing roughly where you will land before you list is useful, because it occasionally changes the decision or the timing. That is a conversation to have early.

Tell us the situation and we will tell you what it is worth

Most of what makes a sale complicated is solvable once somebody has looked at the actual numbers. Onias Derilus is a licensed Florida broker and there is no cost to a conversation, whether you list this month or next year.

Areas We Cover

Show All Areas

More Florida cities

Palm Beach County ZIP codes

Communities