Selling a House Before 2 Years: Tax Rules in California
You can generally sell a house before two years, including soon after buying it. There is no separate federal tax penalty just for selling early, but your gain, holding period, and eligibility for the home-sale exclusion determine whether you owe capital gains tax.
The two-year mark matters for taxes, not as a general ban on selling. Before accepting an offer, check any property-specific resale restrictions, your mortgage payoff, and how much you would keep after selling costs.
What Selling Before Two Years Changes
Sellers often expect an IRS fine for an early sale, but there is no separate early-sale charge. You may owe tax only if the sale creates a taxable gain after adjusted basis, eligible selling expenses, and any available exclusion are considered.
The main-home exclusion is explained in IRS Topic 701. A qualifying taxpayer may exclude up to $250,000 of gain, while certain married couples filing jointly may exclude up to $500,000 if the ownership, use, and prior-sale tests are met.
Missing the full two-year test does not automatically make the entire sale price or gain taxable. There may be no gain after basis and selling costs, and some sellers qualify for a partial exclusion because of work, health, or an unforeseen event.
A tax preparer should calculate the actual result before you choose a closing date. If you received homebuyer assistance or a federal mortgage subsidy, ask whether selling also triggers repayment or recapture of that benefit.
How Soon Can You Sell a House After Buying It?
For an ordinary California home purchase, you can generally resell once you own the property; California Civil Code Section 1044 permits property transfers subject to its exceptions. Your deed, purchase agreement, mortgage, or homebuyer-assistance program may have conditions or repayment obligations that need to be checked before you commit to a sale.
Being allowed to sell does not mean every buyer can finance the purchase immediately. If you bought recently, ask about the buyer’s loan program before agreeing to the contract dates.
The FHA 90-Day Resale Restriction
Under HUD’s FHA resale rules, a property resold 90 days or fewer after the seller acquired it is generally ineligible for an FHA-insured mortgage, subject to exceptions. HUD measures this from the seller’s acquisition of legal ownership to the date all parties sign the resale contract, not the buyer’s closing date.
This restricts the new buyer’s FHA financing; it is not a tax penalty or a blanket ban on selling to a cash buyer. Have the buyer’s lender confirm eligibility and any applicable exception before you sign, rather than assuming a later closing will solve the problem.
Work Out What You’ll Keep After the Sale
If you bought only a few months ago, a higher resale price may still leave you short of recovering what you spent. Include your original purchase costs, any work you paid for, and the costs of selling the house when comparing your options.
For the cash you would receive at closing, start with the sale price and subtract your share of selling costs, buyer credits, mortgage payoff, other debts paid through the sale, and closing adjustments. Ask for an itemized seller’s net estimate instead of relying on the offer price alone.
Request a dated mortgage payoff quote from your servicer; the balance on your monthly statement may not include interest through closing or unpaid fees. Check whether your loan has a prepayment penalty rather than assuming every mortgage does.
For example, a $500,000 sale minus $25,000 in seller costs and adjustments and a $460,000 mortgage payoff leaves $15,000 before any income tax. This is a hypothetical cash-at-closing calculation, not a profit calculation or a standard fee estimate.
Taxable gain uses a different calculation: sale price minus eligible selling expenses and adjusted tax basis, followed by any available exclusion. Paying off the mortgage does not itself reduce that gain, so a small check at closing does not necessarily mean a small tax bill.
For a home you purchased, basis generally starts with the purchase price, plus eligible acquisition costs and qualifying improvements, then changes for items such as depreciation. It is not your down payment or the amount still owed on the loan.
If you can afford to wait, compare any potential tax savings with the extra interest, insurance, taxes, HOA dues, and upkeep you would pay while holding the house. Waiting for an anniversary is not automatically the cheaper choice.
The Rate Changes Depending on How Long You’ve Owned It
The IRS does not tax every early sale the same way. A gain is generally long-term only when the property was held for more than one year; a holding period of one year or less is generally short-term.
One Year or Less: Ordinary Income Rates
A net short-term capital gain is taxed at ordinary federal income-tax rates. The exact rate depends on the tax year, filing status, taxable income, and other items on the return.
IRS Topic 409 explains the short- and long-term distinction.
More Than One Year but Under Two: Long-Term Rates
When a nonexcluded gain is long-term, federal rates are generally 0%, 15%, or 20% depending on taxable income, with special rates for some types of gain. The income thresholds change by tax year, so use the current IRS capital-gains guidance or ask a tax professional to apply the correct year.
If a closing date is near the one-year holding threshold, ask a CPA to verify the acquisition date, sale date, and tax effect before changing the contract. Do not move a closing based on a rough month count.
What the 5-Year Rule Actually Means
Sellers sometimes bring up the “5-year rule” when they mean the Section 121 tests explained in IRS Publication 523. During the five years before the sale, the taxpayer generally must own the home for at least 24 months and use it as a main home for at least 24 months, and those periods do not have to be identical.
The two years do not have to be consecutive. The use test counts the periods when the property was actually your main home within the five-year window.
A work or health-related absence does not automatically count as residence time, though a qualifying work, health, or unforeseen event may support a partial exclusion when the full test is not met.
For a married couple filing jointly to claim up to $500,000, either spouse must meet the ownership test, both spouses must meet the use test, and neither spouse can be disqualified by claiming another home-sale exclusion during the prior two-year period. If those joint-return rules are not met, one or both spouses may still qualify for a smaller exclusion.
Do You Have to Buy Another House After Selling to Avoid the Tax?
You do not have to buy another home to qualify for the home-sale exclusion. The old replacement-home rollover rule was replaced in 1997, so buying again is not what determines whether your gain is excluded.
Under the current exclusion system, there’s no requirement tied to what you do with the proceeds after closing. Sellers who qualify keep it whether they buy another home afterward or put the money somewhere else entirely.
Some investors use a Section 1031 exchange to defer gain when qualifying business or investment real property is exchanged for other qualifying real property, often through a qualified intermediary. Under the IRS deferred-exchange rules, the replacement property generally must be identified within 45 days and received within 180 days after the transfer or by the tax-return due date, including extensions, if earlier.
For a planned deferred exchange, arrange the structure with an exchange professional before closing. Receiving the sale proceeds yourself can prevent the transaction from qualifying, and missing an applicable identification or receipt deadline generally means the gain cannot be deferred under Section 1031.
The Partial Exclusion: When Life Doesn’t Wait for Two Years
A qualifying divorce-related sale, work move, or health issue can make a partial exclusion available even when you haven’t reached two years. Publication 523 explains the qualifying circumstances and how to calculate the reduced limit.
IRS safe harbors include certain work-related moves, health reasons, and unforeseeable events. For the work safe harbor, the new workplace generally must be at least 50 miles farther from the home than the old workplace was, or the new job must be at least 50 miles from the home when there was no prior workplace.
Health reasons and unforeseen events can also qualify. Publication 523 lists examples such as a casualty, condemnation, death of a qualifying household member, divorce or legal separation, multiple births from one pregnancy, unemployment eligibility, or a qualifying employment change that makes basic living expenses unaffordable.
Other facts and circumstances may qualify even when no safe harbor fits. A CPA can confirm the rule and documentation for the actual situation.
A partial exclusion is calculated using the shortest qualifying period among ownership, use, and time since the last home-sale exclusion, divided by two years. For example, a qualifying single filer with a 12-month numerator may receive up to half of the normal $250,000 exclusion.
The actual excluded amount cannot exceed the gain.
A Sale We Closed in Fallbrook
Fox Bridge Court, Fallbrook
In August 2016, a seller contacted us about a condo on Fox Bridge Court in Fallbrook after the property had just been deeded into her name. She was relocating and wanted to sell quickly.
We bought the Fallbrook property for $340,000 and closed on September 6, 2016.
An early sale and eligibility for a tax exclusion are separate questions. Being able to close quickly does not, by itself, tell you whether the gain qualifies for an exclusion.
Rental and Inherited Homes Have Different Rules
An heir’s Section 121 ownership and use periods are separate: ownership generally begins when the heir acquires the property, while use begins when the heir actually occupies it as a main home. Separately, inherited property is treated as long-term for capital-gain holding-period purposes under IRC § 1223(9), regardless of how long the heir personally held it.
Sellers sometimes ask whether a rental they’ve been holding for 18 months qualifies under the same two-year standard as a primary residence. A property held only as a rental generally does not qualify for the main-home exclusion just because you have owned it for two years.
For property that is not inherited, a capital gain is generally long-term only when the property was held for more than one year. If the home was rented, depreciation and periods of nonqualified use can affect the taxable amount even when some gain qualifies for an exclusion; our guide to calculating capital gain on a rental property explains those additional calculations.
How California Taxes an Early Home Sale
California does not offer a lower tax rate just because a gain is long-term. The Franchise Tax Board taxes capital gains as ordinary income, so reaching one year does not create a preferential state rate.
California generally follows the main-home gain exclusion. Reaching the ownership and use requirements can therefore affect the state result, even though California does not distinguish short- and long-term gains through separate rates.
Selling Before 2 Years: Common Questions
Is there a penalty for selling a house before two years?
No separate federal penalty applies just because you sell early. You may owe tax on a gain, but the result depends on adjusted basis, selling expenses, holding period, the full Section 121 exclusion, and any available partial exclusion.
Do you have to buy another house after selling to avoid the tax?
No. That rollover rule ended in 1997, and today the home-sale exclusion is not tied to what you do with the proceeds.
A qualifying like-kind exchange is a separate rule for investment or business real property, with a 45-day identification period and a receipt deadline that is generally 180 days after transfer or the tax-return due date, including extensions, if earlier. It does not replace Section 121 for an ordinary principal-residence sale.
Are inherited properties taxed as long-term?
Yes. Under IRC Section 1223(9), inherited property is treated as long-term for capital-gain holding-period purposes no matter how long the heir has held it.
Basis is generally the property’s fair market value at the date of death, subject to exceptions and elections. A CPA should calculate the basis rather than assume the taxable gain will be small.
How does California tax the gain?
California does not provide the same preferential long-term capital-gains rates used on the federal return. Capital gain is generally included in California taxable income and taxed under the applicable state brackets.
Use the current-year FTB rules and a tax professional to determine the actual California treatment.
Who qualifies for the partial exclusion?
Sellers whose main reason for the early sale is a qualifying work move, health issue, or unforeseen event may qualify. IRS Publication 523 lists safe harbors and a facts-and-circumstances test.
The calculation uses the shortest qualifying period among ownership, use, and time since the last exclusion, so a CPA should calculate the allowable amount.
If You’re Facing an Early Sale in Southern California
Before deciding, bring your purchase settlement statement, improvement records, ownership and move-in dates, and expected selling costs to your tax preparer. Include any rental history and homebuyer-assistance paperwork so the estimate covers more than the two-year test.
If a cash sale would help with your move, we buy houses across Orange, Los Angeles, Riverside, San Bernardino, and San Diego counties. Call (951) 331-3844 or request a cash offer so you can compare it with listing the property and waiting.
About the Author
Andrea Van Soest is a licensed real estate agent (California DRE #01505854) and co-founder of SoCal Home Buyers alongside her husband Doug Van Soest. She handles rehab project management, property listings, and the systems infrastructure for the team.
Together, Doug and Andrea have completed over 400 transactions across Southern California since 2008.
