Capital Gains Tax Calculator


What will your capital gains tax bill be if you sell?

Capital Gains Calculator

What Will You Owe When You Sell?

Estimate your taxable gain, your tax bill and how much cash you'll walk away with after decades of appreciation.

The sale

What you've put in

Selling costs

Taxes

This calculator gives estimates for planning only and isn't tax or legal advice. Tax rules and your personal situation can change the result, so review your numbers with a CPA or tax advisor before you make decisions.


This calculator provides an estimate for planning purposes only. Your actual tax depends on your full income picture, how your home is titled, your records of improvements, and the federal and California tax rules in effect the year you sell. Talk with your CPA, tax advisor, or estate planning attorney before making a decision.

If you bought your California home decades ago, there's a good chance it's now worth several times what you paid. That's wonderful news right up until you start thinking about selling, because the first question almost every longtime homeowner I work with in Silicon Valley asks me is some version of "How much of this am I going to lose to taxes?" This free capital gains tax calculator gives you a realistic ballpark in about a minute. It shows your total gain, how much of it the home sale exclusion shelters, what you might owe, and how much cash you could actually walk away with at closing.

I built this tool because I've watched too many people put off a move they really wanted, or avoid one entirely, because they assumed the tax bill would be enormous. Sometimes it is big, but often it's a lot smaller than people fear once you add up improvements, selling costs and the exclusion. Plug in your numbers above, then keep reading for a plain English explanation of how capital gains tax works on a home sale, a few real world examples from the Santa Clara County market, and the planning moves that can save families a lot of money.

How to Use This Capital Gains Tax Calculator

Start with what you expect to sell for and anything you still owe on the home, including a HELOC. Next, enter what you originally paid plus the buying costs you had at the time, and add up the capital improvements you've made over the years, like a remodel, an addition, a new roof or solar. Then fill in your selling costs, choose the $250,000 or $500,000 exclusion depending on how you file, and set an estimated tax rate. The calculator does the rest, showing your adjusted cost basis, your taxable gain, an estimated tax bill and your cash at closing both before and after taxes.

How Capital Gains Tax Works When You Sell a Home

Your capital gain is the difference between what you net from the sale and your adjusted cost basis. The amount you net is the sale price minus your selling costs, such as commissions, escrow and title fees, transfer taxes, and the staging, painting and repairs you did to get the home ready. Your adjusted cost basis starts with the original purchase price and buying costs, then goes up by every dollar you've spent on capital improvements. Repairs and routine upkeep don't count, but a kitchen remodel, a new HVAC system, a pool, or an ADU all do.

Here's the thing I tell every seller. Your mortgage payoff has nothing to do with your tax bill. People often assume that if they refinanced and pulled cash out, they owe less tax, or that a paid off home means a bigger tax bill. Neither is true. The loan only affects how much cash lands in your pocket, which is why the calculator shows your gain and your cash at closing as two separate numbers.

Accurate Home Price Data Is Just a Click Away!

Silicon Valley real estate sales data

Live MLS Data

What Are Homes Actually Selling For Right Now?

Median price, days on market, and how many homes are selling over asking, pulled straight from current MLS data for your neighborhood.

See the Live Sales Data →

The $250,000 and $500,000 Home Sale Exclusion

Section 121 of the tax code lets you exclude up to $250,000 of gain on the sale of your primary residence, or up to $500,000 if you're married and file jointly. For a lot of homeowners around the country that wipes out the whole gain. In the Bay Area, where a home bought in the 1980s or 1990s can easily carry a $1.5 million or $2 million gain, the exclusion helps a lot but usually doesn't cover everything. Here's how you qualify.

  • Ownership test: You owned the home for at least two of the five years before the sale.
  • Use test: You lived in it as your main home for at least two of those five years. The two years don't have to be in a row.
  • Frequency: You generally haven't used the exclusion on another home sale in the prior two years.
  • Married couples: For the full $500,000, either spouse can meet the ownership test, but both must meet the use test and you must file jointly.
  • Partial exclusion: If you have to sell early because of a job change, a health issue or another unforeseen circumstance, you may still qualify for a prorated portion.

Example: A Longtime Owner in Los Gatos

Say a married couple bought their Los Gatos home in 1990 for $400,000 and put $150,000 into a remodel and a new roof over the years. That gives them an adjusted basis of $550,000. They sell for $2,800,000 and spend about $140,000 on commissions, prep and closing costs, so they net $2,660,000. Their gain is $2,110,000. After the $500,000 exclusion, $1,610,000 is taxable. Between federal capital gains tax, the 3.8% net investment income tax, and California income tax, their combined bill could easily land north of $450,000. That's real money, and it's exactly why I like to sit down with sellers and their CPA well before we list, because good records and good timing can move that number.

Example: A Surviving Spouse in Campbell

Now picture a couple who bought in Campbell in 1985 for $300,000 and held the home as community property. When her husband passes away, the home is worth $2,000,000. Because California is a community property state, both halves of the home typically get a new basis equal to the value on the date of death, so her basis jumps from $300,000 to about $2,000,000. If she sells a year later for $2,050,000 and pays $100,000 in selling costs, she has no taxable gain at all. And if there had been a gain, a surviving spouse who sells within two years of the death and hasn't remarried can still use the full $500,000 exclusion. How the home was titled makes a huge difference here, which is one of many reasons to have your estate planning attorney review your deed.

Federal and California Capital Gains Tax Rates

Once you know your taxable gain, the rate you pay depends on your total income for the year and where you live. For a home you've owned more than a year, here's what applies.

  • Federal long-term capital gains: 0%, 15% or 20%, depending on your taxable income. For 2026, the 20% rate kicks in above roughly $545,500 for single filers and $613,700 for married couples filing jointly. A large home sale gain can push you into the top bracket for that year even if your normal income is modest.
  • Net investment income tax: An extra 3.8% on the taxable portion of your gain when your modified adjusted gross income is above $200,000 for single filers or $250,000 for joint filers.
  • California income tax: California doesn't have a lower rate for capital gains. Your gain is taxed as ordinary income at rates up to 12.3%, plus an additional 1% on taxable income over $1 million.
  • Short-term gains: If you owned the home for a year or less, the gain is taxed at your ordinary federal income tax rates instead.

That's why the calculator lets you set your own rate. For many Silicon Valley sellers with a large gain, a combined rate somewhere around 30% to 37% on the taxable portion is a reasonable starting estimate, but your CPA can give you a much sharper number.

Ways to Lower Capital Gains Tax on a Home Sale

This is the section I spend the most time on with older adults who are thinking about moving and their families. Most of these strategies are simple, but they have to be planned before the sale, not after.

  • Dig up your improvement records. Every documented capital improvement raises your basis and lowers your gain. Old permits, contractor invoices, bank statements and even photos can help your CPA rebuild the history.
  • Count every selling cost. Commissions, staging, pre-sale repairs, escrow and title fees and transfer taxes all reduce your gain.
  • Understand the step-up in basis. When a home passes to heirs at death, its basis generally resets to the market value on the date of death. For some families, holding the home rather than selling during your lifetime can erase decades of gain. For others, the need for cash or care makes selling the right call. This is a conversation to have with your estate planning attorney.
  • Be careful about gifting the house. If you give your home to your kids while you're alive, they take over your original basis, and they could face a much larger tax bill when they sell than if they had inherited it.
  • Know the assisted living rule. If you become physically or mentally unable to care for yourself and move into a licensed care facility, the time you spend there can count toward the two-year use test, as long as you lived in the home for at least one year during the five years before the sale.
  • Watch the two-year window after a spouse passes. A surviving spouse can generally still claim the $500,000 exclusion if the home sells within two years of the death.
  • Look at timing. Selling in a year when your other income is lower, or coordinating the sale with other gains and losses, can sometimes lower your bracket.
  • Rentals play by different rules. A former home you've converted to a rental may qualify for a 1031 exchange, but depreciation you took is taxed separately, so bring your CPA in early.

If you're ready to downsize, remember that capital gains tax is only one part of the math. The purchase price of your next home, your property tax base, moving costs and the value of a single level home that lets you stay independent longer all belong in the same conversation.

Cover of the free Smart Seller Playbook for longtime Bay Area homeowners

Free 19-Page Playbook

The Longtime Homeowner's Playbook for Selling Smart

The three mistakes that cost sellers six figures, the tax moves that can save you a fortune, and 10 questions to ask any REALTOR® before you hire one.

No spam. Unsubscribe anytime.

Example: Inheriting a Home in San Jose

Mom bought her Willow Glen home in 1978 for $95,000, and it's worth $1,800,000 when she passes away. Her adult children inherit the home with a stepped-up basis of $1,800,000. Eight months later they sell for $1,850,000 and pay about $95,000 in selling costs, which leaves them with no taxable gain. If Mom had deeded the house to them a few years earlier as a gift, they would have kept her $95,000 basis and faced a taxable gain of more than $1.6 million. Same house, same family, and a completely different tax outcome.

For families in the Bay Area, where so many longtime homes carry huge gains, these details matter a lot. I've seen the same questions come up whether the home is in San Jose, Campbell or over the hill in Santa Cruz, and the families who plan ahead almost always come out ahead.

Frequently Asked Questions About Capital Gains Tax on a Home Sale

How much is capital gains tax on a home sale in California?

It depends on your gain after the exclusion and your total income. You'll owe federal capital gains tax at 0%, 15% or 20%, possibly the 3.8% net investment income tax, and California income tax at your regular rate, which can reach 13.3% at the top. Many Silicon Valley sellers with large gains end up paying somewhere in the range of 30% to 37% combined on the taxable portion.

Do I have to pay capital gains tax if I buy another house?

Yes, in most cases. The old rule that let you roll your gain into a new home ended in 1997. Today you get the $250,000 or $500,000 exclusion instead, and buying a replacement home doesn't change your tax on the gain above that amount.

Is there a capital gains exemption for people over 55?

Not anymore. The one-time $125,000 exclusion for sellers 55 and older was replaced by the current Section 121 exclusion in 1997. Older homeowners do have other valuable tools, though, like the step-up in basis for heirs and the assisted living rule that can help you keep the exclusion after moving into care.

What counts as a capital improvement?

Anything that adds value, extends the life of the home or adapts it to a new use. Additions, remodels, a new roof, windows, solar, landscaping, an ADU, and accessibility upgrades like a walk-in shower or a ramp generally count. Painting a room or fixing a leak usually doesn't, unless it's part of a larger remodel.

Does my mortgage balance affect my capital gains tax?

No. Your gain is based on the sale price, your selling costs and your adjusted basis. Your loan payoff only affects how much cash you receive at closing.

Does California withhold taxes when I sell my home?

California generally requires escrow to withhold 3 1/3% of the sale price unless you qualify for an exemption, and selling your principal residence is one of the most common exemptions. You'll certify this on California Form 593 during escrow, so it's worth reviewing with your escrow officer and CPA ahead of time.

Is my inherited home subject to capital gains tax?

Only on the growth after the date of death. Because the basis usually steps up to the market value when the owner passes away, heirs who sell fairly quickly often owe little or nothing. The longer you hold the home and the more it appreciates, the larger that new gain becomes.

Thinking About Selling? Let's Run Your Real Numbers

I've spent more than 23 years helping longtime Silicon Valley homeowners and their families figure out what comes next. As a Seasoned Living Strategist with SRES and CSA designations, I work side by side with my clients' CPAs, financial planners and estate attorneys so that the tax piece of a move is planned for instead of discovered at closing.

If this calculator raised more questions than it answered, that's a good sign you're thinking about the right things. You can also run the numbers on selling with my home sale calculator. Reach out and I'll walk through your situation with you, no pressure and no obligation.

Disclaimer: This page is for general informational purposes only and isn't tax, legal or financial advice. Tax laws change and every situation is different, so please talk with your CPA, tax advisor or estate planning attorney before making any decisions about selling or transferring your home.

Free Seller Strategy Session

Before we talk money,let's talk about you.

The biggest financial wins in a move happen long before a home hits the market, and they start with understanding your situation. In 30 minutes we'll talk through what's changing, who's involved, and what you need this move to do for you, then map out a plan that gets you there with a clear financial advantage.

Book My Strategy Session →
Book a Seller Strategy Session with Seb Frey

Work With Sebastian

"I help Long-Time Bay Area Homeowners make their next move their best one yet."
-Seb Frey, REALTOR®

Let's connect