Start with the federal home-sale exclusion
For a qualifying main home, the IRS says you may be able to exclude up to $250,000 of gain, or up to $500,000 on a joint return. Generally, you must have owned the home for at least 24 months and used it as your main home for at least 24 months during the five years before the sale. For a joint return, both spouses generally must satisfy the use test, while either spouse may satisfy the ownership test. The exclusion is not automatic: a prior home-sale exclusion within the preceding two years, rental or business use, depreciation, inherited property, divorce transfers, and other special facts can change the result. Review IRS Topic 701 and Publication 523.
Estimate the gain carefully
The IRS worksheet starts with the sale price, subtracts eligible selling expenses (such as commission and certain legal or advertising costs), and compares the result with total basis. Basis generally starts with what you paid, may include qualifying purchase closing costs, and can increase for capital improvements that remain part of the home. Ordinary repairs and maintenance generally do not increase basis. Keep settlement statements, invoices, permits, and improvement records; a tax professional can determine which items qualify. A mortgage payoff affects cash you receive, but it is not itself a reduction of the tax gain.
Hypothetical illustration—not a prediction or tax calculation: Assume a married couple files jointly, owns and occupies a Lancaster home for ten years, paid $300,000, and has $50,000 of documented qualifying improvements. Assume a $800,000 sale price and $48,000 of selling expenses. Amount realized is $752,000 ($800,000 − $48,000); estimated gain before any other adjustments is $402,000 ($752,000 − $350,000 basis). If all eligibility requirements are met and no special rule applies, that amount is below the $500,000 maximum exclusion. This does not establish that no tax is due: basis adjustments, depreciation, prior exclusions, filing details, Form 1099-S reporting, and other facts matter.
California and your next step
California generally conforms to the federal principal-residence exclusion, but California has no special lower capital-gains rate; taxable capital gains are generally taxed as ordinary income. See the California FTB home-sale guidance and capital-gains guidance. Rules and forms can change.
For a Palmdale, Lancaster, Santa Clarita, Quartz Hill, or Agua Dulce sale, a REALTOR can help organize a market-based pricing and estimated-net-proceeds discussion, but cannot determine your tax liability. Ask a CPA or enrolled agent to review your records before relying on an estimate. Do not treat this guide as a promise of savings, approval, rate, or proceeds.
Practical checklist
- Locate your purchase settlement statement and prior improvement invoices.
- Separate improvements from routine repairs and maintenance.
- Estimate commissions and other selling costs separately from your mortgage payoff.
- Ask a tax professional whether you qualify, must report the sale, or have depreciation or rental-use adjustments.
Education only: Sam Urban is a California REALTOR, not a mortgage loan originator or tax adviser. This article does not provide tax, legal, lending, or financial advice.