How long should you own a house before selling?
There is no single money answer for how long to own a house before selling, but owning and using it for at least 24 months in the last 5 years can matter for the federal home sale tax exclusion. Selling sooner can still make sense if your equity covers selling costs, your mortgage has no costly prepayment term, and your reason fits a partial IRS exclusion.
Key facts
- IRS Publication 523 says you meet the ownership requirement if you owned the home for at least 24 months out of the last 5 years before the closing date.
- IRS Publication 523 says a partial exclusion can apply when the main reason for selling is a change in workplace location, a health issue, or an unforeseeable event.
- IRS Publication 544 says if you hold a capital asset 1 year or less, the gain or loss from its disposition is generally short term.
- The CFPB says a prepayment penalty is a fee that some lenders charge if you pay off all or part of your mortgage early.
Selling in Indiana, Ohio, Wisconsin, Tennessee or Georgia? Get a written cash offer in 24 hours, no obligation.
Get my cash offerThe useful answer is a money answer
The useful question is not only how many months have passed since you bought the home. It is how the sale affects taxes, loan payoff terms, and selling costs. A recent sale can be fine on paper but still leave less money than expected if these items are not counted.
IRS Publication 523 says to figure your "amount realized" as sale price minus selling expenses. That is why selling costs matter more when you have not owned the house long. If you still have a loan, compare the sale math with your payoff and any prepayment term before you judge the result.
Use the holding period as a checklist. Look at the home sale exclusion, short term versus long term capital gain treatment, state transfer or recordation charges, and the mortgage. If timing is part of the pressure, it can also help to read about how long it takes to sell a house.
The 2 out of 5 years rule for the home sale exclusion
The main homeowner tax rule is the federal home sale exclusion in IRS Publication 523. IRS Publication 523 says you meet the ownership requirement if you owned the home for at least 24 months out of the last 5 years before the closing date. IRS Publication 523 says you meet the residence requirement if you owned the home and used it as your residence for at least 24 months of the previous 5 years.
The two tests are why people call this the 2 out of 5 years rule. It is not only about when you bought the house. It is also about whether you used it as your residence during enough of that period.
A partial exclusion may help when plans changed
If you do not meet the full eligibility test, do not stop the review there. IRS Publication 523 says you may still qualify for a partial exclusion of gain if you do not meet the Eligibility Test. That can matter when a recent buyer needs to sell before the 24 month mark.
IRS Publication 523 says a partial exclusion can apply when the main reason for the sale was a change in workplace location, a health issue, or an unforeseeable event. For a recent buyer, the reason for the sale is part of the IRS question, not just the purchase date. Do not assume a short ownership period ends the tax review.
Short term and long term capital gain timing
Capital gain holding period is a separate IRS timing rule. IRS Publication 544 says where you report a capital gain or loss depends on how long you own the asset before you sell or exchange it. IRS Publication 544 says the time you own an asset before disposing of it is the holding period.
IRS Publication 544 says if you hold a capital asset 1 year or less, the gain or loss from its disposition is generally short term. IRS Publication 544 says if you hold a capital asset longer than 1 year, the gain or loss from its disposition is generally long term. It does not give one simple answer for every homeowner because the home sale exclusion and the gain holding period are different rules.
IRS Publication 544 says that to figure if you held property longer than 1 year, start counting on the day following the day you acquired the property, and the day you disposed of the property is part of your holding period. That counting rule can matter if you are close to the 1 year line. A sale after a few months may be treated differently from a sale after more than 1 year.
Selling costs can use up equity from a short hold
Selling costs are part of the holding period question because they reduce the sale math. IRS Publication 523 says transfer taxes, stamp taxes, and other taxes, fees, and charges paid by the seller are not a tax deduction, but can be treated as selling expenses. For a broader cost list, see how much it costs to sell a house.
Transfer and recordation charges differ by state. The table below lists official charges for Indiana and Ohio that can belong in a quick resale estimate. These are not market predictions. They are closing math items to include before deciding whether the short hold works.
| State | Official charge to include in the sale estimate |
|---|---|
| Indiana | Indiana Code § 6-1.1-5.5-4 specifies that a person filing a Sales Disclosure Form must pay a fee of $20 to the county auditor. |
| Ohio | Ohio law sets an auditor fee of one dollar, or ten cents for each one hundred dollars or fraction of one hundred dollars, whichever is greater, for receiving statements of value and administering section 319.202. Ohio law also says a county may levy a real property transfer tax at a rate not to exceed thirty cents per hundred dollars, and the tax is levied upon the grantor named in the deed. |
Read your mortgage for prepayment terms
Your loan can change the timing answer. The CFPB says a prepayment penalty is a fee that some lenders charge if you pay off all or part of your mortgage early. The CFPB says that if you have a prepayment penalty, you would have agreed to it when you closed on your home.
The CFPB says a prepayment penalty typically applies if you pay off the entire mortgage balance because you sold or refinanced within a specific number of years, usually three or five years. The CFPB says in some cases, a prepayment penalty could apply if you pay off a large amount of your mortgage all at once. If you are selling with a loan still on the property, selling a house with a mortgage is a separate payoff issue from the tax holding period.
Frequently asked questions
How long to own a house before selling for tax reasons?
For the main federal home sale exclusion, IRS Publication 523 uses 24 months of ownership and 24 months of residence in the last 5 years before the sale. Selling earlier does not end the review because IRS Publication 523 also allows a possible partial exclusion for a workplace change, health issue, or unforeseeable event.
Do I have to own my home for 2 years before I sell?
The 2 year mark is mainly a federal home sale exclusion issue. IRS Publication 523 uses 24 months of ownership and 24 months of residence in the last 5 years for the ownership and residence requirements.
What happens if I sell after less than 1 year?
IRS Publication 544 says if you hold a capital asset 1 year or less, the gain or loss from its disposition is generally short term. You should also check selling expenses, state transfer charges, and any mortgage prepayment penalty.
Can I get a partial home sale exclusion if I moved for work?
IRS Publication 523 says a partial exclusion can apply when the main reason for the sale was a change in workplace location. It also lists a health issue or an unforeseeable event as possible reasons.
Will my mortgage charge me for selling early?
The CFPB says some lenders charge a prepayment penalty if you pay off all or part of a mortgage early. If your loan has one, the CFPB says you would have agreed to it when you closed on your home.
Should I sell now or rent it out?
Compare the tax timing, state transfer charges, mortgage terms, and the cost of another sale. If you want to compare keeping the property with selling, read should I sell or rent my house.
Sources
Checked against each source on November 3, 2026. This page is general information, not legal or tax advice.
- IRS Publication 523 (Internal Revenue Service)
- IRS Publication 544 (Internal Revenue Service)
- What is a prepayment penalty? (Consumer Financial Protection Bureau)
- Sales Disclosure Form Overview (Indiana Department of Local Government Finance)
- Ohio Rev. Code 319.54 (Ohio Laws / Ohio Legislative Service Commission)
- Ohio Rev. Code 322.02 (Ohio Laws / Ohio Legislative Service Commission)
Related seller questions
- How much does it cost to sell a house?
- Can you sell a house with a mortgage?
- Should I sell or rent my house?
- How long does it take to sell a house?
