Capital Gains Tax When You Sell Your San Diego Home: How the $250,000 and $500,000 Exclusion Works

by Trevor Landress

Under federal tax rules, many people who sell their main home can leave out up to $250,000 of the gain from their income, or up to $500,000 if they file a joint return with a spouse, as long as they meet the ownership and use tests. San Diego homes have gone up in value for years, so a lot of sellers wonder whether they will owe tax. This guide explains the basics in plain English, shows a labeled example of how the gain is figured and lists the questions to bring to a tax professional.

Important notice: This guide is general education about a federal tax rule. It is not tax or legal advice. I am a REALTOR®, not a CPA, enrolled agent or tax attorney. Tax laws change and depend on your facts, and the examples below are made-up numbers, not a prediction of your tax bill. Before you decide how to price, time or report the sale of your home, talk with a qualified tax professional.

The short answer

  • You may exclude up to $250,000 of gain, or $500,000 on a joint return, when you sell your main home.
  • You generally need to have owned and used the home as your main home for at least 2 of the 5 years before the sale.
  • Your gain is not just the price minus what you paid. Costs of selling and certain improvements change the math.
  • If you cannot exclude all of the gain, you must report the sale, so talk to a tax professional.

The basic rule

The Internal Revenue Service explains that if you have a capital gain from selling your main home, you may qualify to exclude up to $250,000 of that gain from your income. If you file a joint return with your spouse, the exclusion can be up to $500,000. Publication 523, Selling Your Home, has the full rules and worksheets.

This is a federal rule. State rules are separate, and your situation may include details that change the answer, so this guide is a starting point and not tax advice.

The tests you need to meet

  • Ownership test: You owned the home for at least 2 years (24 months) during the 5 years before the sale.
  • Use test: You used the home as your main home for at least 2 years during that same 5-year period.
  • Different periods are allowed: The two years for ownership and use do not have to be the same two years.
  • Recent exclusion: Generally, you cannot use the exclusion if you excluded the gain from the sale of another home during the 2 years before this sale.
  • Joint return: For the $500,000 amount, either spouse can meet the ownership test, but both must meet the use test.

There are special rules for some people, such as those on qualified official extended duty in the military, Foreign Service or intelligence community. Those rules can suspend the 5-year test period. Ask a tax professional how they apply to you.

How the gain is figured

Many sellers think the gain is the sale price minus what they paid. It is usually a little different. In general, the gain is the amount you realize from the sale minus your adjusted basis. The amount realized is the price minus selling costs. The adjusted basis is what you paid, plus certain improvements.

Here is a labeled hypothetical, with made-up numbers, to show the idea and not to calculate your tax.

Hypothetical item Amount
Sale price $1,200,000
Selling costs $60,000
Amount realized $1,140,000
Original purchase price $600,000
Qualifying improvements $60,000
Adjusted basis $660,000
Gain $480,000

If the seller is single and meets the tests, the exclusion is up to $250,000, leaving $230,000 of gain that may be taxable. If a married couple files jointly and both meet the tests, the exclusion is up to $500,000, which is more than the $480,000 gain, so no gain would be left in this example. The tax rate on any remaining gain depends on income and other factors, so a tax professional should figure it out.

To see what selling costs look like, read what it costs to sell a home in San Diego. For a full picture of what you walk away with, see net proceeds from selling a home.

Records to gather

  1. Your original closing statement from when you bought the home.
  2. Receipts for major improvements, such as a new roof, an addition or a kitchen remodel.
  3. Your estimated closing statement from escrow when you sell.
  4. Proof of when you lived in the home as your main residence.
  5. Any records from a prior home sale in the last 2 years.

When you may have to report the sale

The IRS states that you must report the sale if you cannot exclude all of your capital gain from income. When reporting is required, the forms typically include Schedule D and Form 8949. If your gain is fully excluded, you may not have to report it, but there can be exceptions, such as when you receive a Form 1099-S. Your tax preparer can confirm what applies.

If you plan to buy another home with your sale proceeds, I cover the timing questions in selling and buying at the same time.

This is not a guarantee

Tax rules change, and the right answer depends on your facts, such as how long you lived in the home, rental use, home office use and your filing status. This guide cannot predict your tax bill.

My advice for San Diego sellers

  1. Count your ownership and use time before you list, not after you accept an offer.
  2. Collect your purchase closing statement and improvement receipts now.
  3. Run a rough gain estimate with a tax professional while you are still planning.
  4. Do not rely on a friend's tax story. Your facts may be different.
  5. If you plan to sell soon after buying, check the 2-year rule before you set your timeline.

Call or text me at (619) 402-4614 or send me a message.

Call or text (619) 402-4614Contact Trevor Landress

Related guides

Frequently asked questions

Do I have to pay capital gains tax when I sell my house?

Not always. Many sellers can exclude up to $250,000 of gain, or $500,000 on a joint return, if they meet the ownership and use tests. Any gain above the exclusion may be taxable.

What is the 2 out of 5 year rule?

It means you generally must have owned and used the home as your main home for at least 2 years during the 5 years before the sale.

Do home improvements lower my gain?

Qualifying improvements can raise your adjusted basis, which can lower your gain. Routine repairs usually do not count. Ask a tax professional what applies.

Do I have to report my home sale to the IRS?

You must report it if you cannot exclude all of the gain from income. If the gain is fully excluded, you may not need to, though there can be exceptions.

Where can I find the official rules?

The IRS explains the rule in Topic No. 701 and Publication 523, Selling Your Home.

About the author

Trevor Landress is a San Diego REALTOR® with Coldwell Banker West (DRE# 02126901). He was born and raised in San Diego and has been licensed since 2021.

Trevor is part of the Campbell Group, a three-generation real estate team, and he and the Campbell Group consistently rank as a top producing team at Coldwell Banker West each month.

He helps homeowners sell, guides first-time buyers through the home buying process and assists investors with their next acquisition. His work includes negotiating offers, analyzing market trends, building pricing strategies and running marketing campaigns for his listings. He serves clients across San Diego County, from coastal communities like La Jolla, Del Mar and Carlsbad to neighborhoods inland.

He writes these guides to help San Diego buyers and sellers navigate an ever-changing market. To talk through your plans, call or text (619) 402-4614 or contact Trevor Landress.

How I help San Diego home buyers

I walk buyers through each step, from getting pre-approved and touring homes to writing offers, reviewing inspections and getting to the closing table. I explain the numbers in plain English so you know what you are agreeing to before you sign.

How I help San Diego home sellers

I help sellers price their home from recent sold comparables, plan prep and photos, review every offer beyond the price, and keep the sale on track through inspection, appraisal and closing.

Rules and official pages

GET MORE INFORMATION

Name
Phone*
Message