Which Capital Gains are Exempt from Tax? – Don’t Make This Mistake + FAQs

Lana Dolyna, EA, CTC
Share this post

Confused about which capital gains are exempt from tax? You’re not alone. According to 2024 government estimates, tax breaks on home sales and inherited assets alone cost the U.S.

Treasury over $100 billion in one year, highlighting how many gains escape taxation. In this comprehensive guide, we’ll dive into exactly which capital gains are tax-exempt under U.S. federal law and how savvy investors take advantage of these rules.

💰 Tax-Free Gains Uncovered: Which Capital Gains Are Exempt?

Under U.S. federal law, certain capital gains can legally avoid taxation. Here’s a quick rundown of the major categories of capital gains that Uncle Sam won’t tax:

  • Primary Residence Sale (Section 121 Exclusion): Profit from selling your main home can be tax-free up to $250,000 (or $500,000 for a married couple) if you meet the ownership and residency requirements.
  • Inherited Assets (Stepped-Up Basis): When you inherit stocks, real estate, or other assets, their cost basis “steps up” to the value at the decedent’s death. This means all **appreciation that happened during the original owner’s life is not taxed. Any gain is effectively wiped out, so heirs often pay no capital gains tax if they sell the asset immediately after inheriting.
  • Retirement Accounts (Tax-Deferred or Tax-Free Growth): Capital gains inside tax-advantaged accounts—like 401(k)s, Traditional IRAs, Roth IRAs, and 529 college savings plans—are not taxed as they accrue. In a Roth IRA or 529 plan, those gains can be completely tax-free if you follow the rules; in a 401(k) or Traditional IRA, you defer tax on gains until you withdraw funds (and even then it’s taxed as ordinary income, not a capital gain).
  • Qualified Small Business Stock (QSBS) Exclusion: If you invest in a qualified small business (a C-corp that meets IRS requirements) and hold the stock for 5+ years, you may exclude 50% to 100% of the gain when selling. Section 1202 of the tax code allows up to $10 million in capital gains (or 10× your original investment) to be 100% tax-free for qualifying stock sales.
  • Like-Kind Exchanges (1031 Exchanges): Real estate investors can swap investment properties using an IRS 1031 exchange and defer capital gains tax. By reinvesting sale proceeds into a similar property, the gain isn’t recognized by the IRS at the time. No immediate tax is due – effectively, the tax on the profit is postponed indefinitely (and if you never sell for cash and hold until death, it may never be paid at all).
  • 0% Capital Gains Bracket: Even if none of the above special cases apply, some taxpayers owe 0% federal tax on their long-term capital gains simply by virtue of their income level. The IRS long-term capital gains tax rate is 0% for low-income ranges (for example, in 2023 a single filer with taxable income up to $44,625 pays no tax on long-term gains). That means certain investors in lower tax brackets enjoy capital gains that are effectively tax-free.

These are the primary avenues for tax-exempt capital gains at the federal level. Next, we’ll explore pitfalls to avoid and dive deeper into each scenario.

⚠️ Avoid These Common Capital Gains Exemption Mistakes

Even when tax law offers generous exclusions, taxpayers often slip up. Here are some common mistakes to avoid when claiming capital gains exemptions:

  • Missing the Home Sale Requirements: Simply selling a house doesn’t guarantee a tax break. To qualify for the $250k/$500k home sale exclusion, you must own and use the home as your primary residence for at least 2 out of the 5 years before sale. Mistake: Selling too soon or not meeting the residency rule – the IRS won’t allow the exclusion and your gain could be fully taxable.
  • Assuming All Home Sale Profit Is Tax-Free: Even if you do qualify, remember the exclusion caps. Mistake: Thinking all your profit is tax-exempt. If your gain exceeds $250k (single) or $500k (joint), the excess is taxable. For example, a married couple with a $600k gain can exclude $500k but still owes tax on $100k.
  • Forgetting the “Once Every Two Years” Rule: The home sale exclusion can generally only be claimed once every 2 years. Mistake: Trying to claim the exclusion on multiple home sales in a short period. The IRS will disallow it if you already took it in the past two years.
  • Not Keeping Basis Records for Inherited Assets: Inherited property gets a stepped-up basis, but you still need documentation of the date-of-death value. Mistake: Selling inherited assets without knowing their stepped-up basis – you could report a gain and pay tax when in fact much (or all) of it should be exempt. Always obtain an appraisal or value statement for inherited assets.
  • Confusing “Tax-Deferred” with “Tax-Free”: Strategies like 1031 exchanges or Traditional IRAs defer tax – they don’t eliminate it outright. Mistake: Believing you’ve gotten rid of the tax forever. If you eventually cash out a 1031 exchange without further exchanges, or withdraw from a traditional retirement account, tax will come due. Plan for that future liability (or use additional strategies to continue deferral).
  • Breaking 1031 Exchange Rules: Like-kind exchanges have strict timelines and property requirements. You generally must identify replacement property within 45 days and close the purchase within 180 days. Mistake: Missing deadlines or misusing funds between sale and purchase – that can disqualify the 1031, making your entire gain immediately taxable. Always use a qualified intermediary and follow IRS rules to the letter.
  • Selling Qualified Stock Too Early: For QSBS, you must hold the stock for at least 5 years to get the maximum exclusion. Mistake: Selling a qualified small business stock after, say, 4 years – you’d lose the 100% tax-free benefit and owe taxes (or at best qualify for a smaller 50% exclusion if it meets older rules). Patience pays off with QSBS.
  • Ignoring State Taxes: An exemption on your federal return doesn’t always carry over to your state taxes. Mistake: Assuming your state follows the federal rule. For instance, while the IRS won’t tax your home sale gain up to $500k, your state might have different rules or claw-back taxes (though most states do conform to the home exclusion). Also, states like Pennsylvania don’t recognize some federal deferrals like 1031 exchanges and will tax the gain at the state level. Always check your state’s tax treatment of capital gains.
  • Overlooking the 0% Bracket Cutoff: If you’re aiming for the 0% capital gains rate, be careful not to accidentally push your income over the threshold. Mistake: Realizing too large a gain such that it bumps part of your income into the 15% capital gains bracket. This can happen if you don’t account for all income sources. Plan sales to stay within the limit if you’re targeting zero tax.
  • Thinking Reinvestment Automatically Saves Tax: Many people assume if you reinvest proceeds (say, buy more stock or another house) you won’t pay tax. Mistake: There is no general “reinvestment” exemption. Except for specific provisions like 1031 exchanges or qualified rollover into opportunity funds, reinvesting your money elsewhere does NOT shield you from capital gains tax. The IRS cares that you sold and realized a gain, not what you did with the cash afterward.

By avoiding these pitfalls, you can fully benefit from the tax exemptions available and steer clear of IRS trouble. Next, let’s clarify some jargon that often confuses taxpayers.

📝 Key Tax Terms Explained: From Stepped-Up Basis to 1031 Exchange

Understanding the terminology is half the battle in mastering capital gains tax rules. Below are key tax terms related to capital gains exemptions, explained in plain English:

TermDefinition
Capital GainThe profit from selling an asset for more than its cost basis. If you bought stock for $1,000 and sold for $1,500, your capital gain is $500.
Cost BasisThe original value of an asset for tax purposes (usually the purchase price, plus commissions or improvements). Your gain = sale price minus cost basis.
Stepped-Up BasisA special rule for inherited assets: the heir’s cost basis is “stepped up” to the asset’s fair market value at the deceased’s date of death. This wipes out any unrealized gains that occurred during the original owner’s life, often resulting in little to no taxable gain if sold soon after inheritance.
Primary Residence Exclusion (Section 121)A provision that allows you to exclude up to $250,000 (single) or $500,000 (married) of capital gains on the sale of your main home, provided you owned and lived in it for at least 2 of the last 5 years.
Like-Kind Exchange (1031 Exchange)A tax-deferred swap of investment or business properties. If you reinvest sale proceeds into a “like-kind” property (e.g., real estate for real estate) following IRS rules, you don’t pay tax now on the gains. The tax is deferred until you sell the new property (or potentially eliminated if you continue exchanging until death).
Qualified Small Business Stock (QSBS)Stock in certain eligible small C-corporations (assets < $50M) that you’ve held for 5+ years. Under Section 1202, if the stock qualifies, you can exclude 50% to 100% of the capital gain when you sell, up to a $10 million gain (tax-free portion) per company.
Capital Gains Tax RatesLong-term capital gains (assets held >1 year) are taxed at preferential rates (0%, 15%, or 20% at federal level, depending on your income). Short-term gains (held ≤1 year) are taxed as ordinary income at your regular tax rate. These rates apply after considering any exclusions or special treatments above.
Tax-Deferred AccountAn investment account like a 401(k), Traditional IRA, or 403(b) where you don’t pay taxes immediately on contributions or investment gains. Taxes are deferred until withdrawal. Gains inside grow tax-free until you take the money out (at which point withdrawals are typically taxed as ordinary income).
Tax-Exempt AccountAn account where investment gains are never taxed if used for qualified purposes. Examples: Roth IRAs (post-tax contributions, but all future gains and withdrawals are tax-free if rules met) and 529 Education Plans (after-tax contributions, tax-free growth and withdrawals for qualified education expenses).
0% Capital Gains BracketThe income threshold below which long-term capital gains are taxed at 0% federally. For example, in 2025 a married couple with taxable income up to around $89,000 pays no federal tax on their long-term gains. It’s not a permanent exemption category, but rather a rate applied due to low income.

Familiarizing yourself with these terms will help you navigate the nuances of capital gains tax law as we explore specific examples next.

🏠 Real-World Examples: Tax-Exempt Capital Gains in Action

Nothing illustrates tax rules better than real-life scenarios. Below are detailed examples of how different capital gains can be exempt from tax, covering real estate, inheritance, retirement, and small business stock situations:

Example 1: Home Sweet Tax Break – Selling a House for Profit Without Tax

Scenario: Jane, a single homeowner, bought her house 10 years ago for $200,000. She lived there as her primary residence the entire time. This year, she sells the house for $470,000.

Outcome: Jane’s capital gain on the sale is $270,000 (selling price minus her $200k cost). Under the primary residence exclusion (Section 121), she can exclude up to $250,000 of that gain from federal taxes. This means $250k of her $270k profit is completely tax-free. She will only have to report and potentially pay long-term capital gains tax on the remaining $20,000. In practice, because Jane’s taxable income is modest, that $20k falls in the 0% capital gains bracket – so she ends up paying $0 tax on the sale of her home. Essentially, her entire home sale profit is tax-free, thanks to this exemption and her income level.

(If Jane were married, together they could exclude up to $500,000, potentially making the entire $270k gain tax-free outright. On the other hand, if Jane’s profit had been larger – say $600k – she would owe tax on the portion above $250k since the exclusion cap would be exceeded.)

Example 2: Inheritance Windfall – Big Gains, No Tax Bill for Heirs

Scenario: Marco inherits a portfolio of stocks from his grandmother. She originally paid $50,000 for these shares years ago. At the time of her death, the stocks were worth $300,000. A few months later, Marco sells all the inherited stock for $310,000 (the market went up a bit after he inherited).

Outcome: Thanks to the stepped-up basis rule, Marco’s cost basis in the inherited stock is not the $50k original price, but rather the $300,000 fair market value as of his grandmother’s date of death. When he sells for $310k, his taxable capital gain is only $10,000 ($310k – $300k). The $250,000 of appreciation that occurred during Grandma’s lifetime is never taxed – it disappeared for tax purposes due to the step-up. Marco will report a $10k long-term capital gain (inherited assets are treated as long-term regardless of holding period), and if Marco’s income is low enough, he might even pay 0% tax on that $10k gain.

In summary, the vast majority of the profit in those stocks ($260k of the $260k + $10k total increase from original $50k to $310k) completely avoids capital gains tax. The inheritance allowed a huge gain to go tax-free, a benefit that many wealthy families strategically use to pass on appreciated assets.

Example 3: Retirement Account Growth – Investments Flourish Tax-Free in an IRA

Scenario: Lisa invests $5,000 in a diversified stock fund inside her Roth IRA at age 30. Over the next 30 years, the investment grows in value to $50,000 due to capital gains and dividends being reinvested. At age 60, she sells the fund and withdraws the money.

Outcome: Inside the Roth IRA, Lisa’s investment generated $45,000 in capital gains ($50k value – $5k contributions). None of those gains were reported on any tax return as they accrued. When Lisa takes a qualified distribution at age 60 (meeting the 5-year and age requirements for Roth withdrawals), 100% of the withdrawal is tax-free – including all $45k of gain. She never pays a cent of tax on the profits from that investment. The Roth IRA provided a completely tax-exempt growth environment.

For comparison, had Lisa invested $5,000 in a regular taxable brokerage account and sold at $50,000, she would owe tax on $45,000 of gains (at long-term capital gains rates). By using a Roth, she saved potentially thousands in taxes. Even Traditional IRA/401(k) accounts, while not tax-free on withdrawal, would have allowed her to defer any capital gains taxes until pulling the money out, effectively giving decades of tax-deferred compounding.

Example 4: Startup Success – $5 Million Capital Gain, 100% Tax-Free (QSBS)

Scenario: Alex is an early employee at a qualified small business (a tech startup C-corp). In 2018, he received stock in the company worth $50,000. He holds the stock for over 5 years as the company grows. In 2024, a bigger company acquires the startup, and Alex’s shares are bought out for $5,050,000.

Outcome: Alex’s capital gain from the sale is a whopping $5,000,000 ($5.05M – $50k basis). However, because the stock meets the criteria of Qualified Small Business Stock (QSBS) and Alex held it for more than 5 years, he is eligible for the Section 1202 exclusion. Since his gain ($5M) is under the maximum $10 million allowed, 100% of that $5,000,000 gain is exempt from federal tax. Alex owes $0 in federal capital gains tax on the sale.

This is a massive tax savings – ordinarily, a $5M long-term gain might incur up to $1 million in federal tax (20% top rate). Thanks to QSBS rules, Alex keeps all $5 million profit. (Note: his state might tax some of it, depending on state law, but many states also follow the federal QSBS exemption or have their own breaks for small business investments.)

These examples show how, through various provisions, investors and ordinary individuals alike can reap large profits with little or no tax. But not all gains are treated equally – let’s compare scenarios where gains are taxable vs. not taxable side by side.

📊 Taxable vs. Non-Taxable Capital Gains: A Comparison

To further clarify which gains get taxed and which don’t, here’s a side-by-side comparison of different scenarios. This table highlights whether the gain would be taxable or tax-exempt, and why:

ScenarioTaxable or Tax-Free?Why
Sell primary residence for $300k profit (single homeowner, met 2-year residency)Mostly Tax-Free$250k excluded by primary home exemption; only $50k above limit would be taxed (and could be 0% rate if income low).
Sell a vacation home for $300k profit (not primary residence)Taxable 💸No exemption applies to second homes or vacation properties – the entire $300k gain is subject to capital gains tax.
Sell stock in a regular brokerage account for $10k gain (long-term)Taxable 💸No special provision – a typical investment sale. $10k gain is taxed at long-term capital gains rate (0%, 15%, or 20% depending on income).
Sell the same stock inside a Roth IRA for $10k gainTax-FreeOccurred inside a Roth IRA (tax-exempt account). No tax due on transactions inside the account, and qualified withdrawals are tax-free.
Inherit stock worth $500k (decedent’s basis was $100k), then sell immediately for $500kTax-FreeStepped-up basis rules set your basis to $500k; selling at $500k means no gain to report, hence no tax. All the previous $400k gain is effectively forgiven.
Sell investment property for $200k gain and buy another via 1031 exchangeTax-Free (Deferred) 🔄Proper like-kind exchange executed – no immediate recognition of the $200k gain. Tax is deferred, so currently no tax due.
Sell investment property for $200k gain and cash out (no 1031)Taxable 💸Gain is realized with no deferral – the $200k is subject to capital gains tax in the year of sale.
Sell Qualified Small Business Stock for $5M gain (held 5+ years)Tax-FreeQualifies for QSBS 100% exclusion (gain under $10M limit) – $0 federal tax on the $5M gain.
Sell publicly-traded stock for $5M gain (normal stock)Taxable 💸No special status – a $5M stock sale would face federal capital gains tax (15% or 20% rate for high-income, plus 3.8% NIIT possibly). No exclusion available (aside from using losses or charitable strategies).

📝 Key Takeaway: If you want to avoid capital gains tax, the context of the sale matters. Selling a personal residence or qualified small business stock can yield tax-free gains, whereas selling a rental property or ordinary investment usually triggers a tax bill unless you use a special strategy like a 1031 exchange or hold the asset in a tax-sheltered account. Always consider if your situation qualifies for an exemption before you sell – planning ahead can save you a substantial amount in taxes.

Next, we’ll examine how savvy investors leverage loopholes and strategies to further minimize or avoid capital gains taxes, often by structuring transactions in creative ways.

🤫 Insider Strategies: How Savvy Investors Avoid Capital Gains Tax

High-net-worth individuals and sharp investors often employ advanced strategies (a.k.a. “loopholes”) to minimize or eliminate capital gains tax. These tactics are legal and take advantage of nuances in the tax code:

  • “Buy, Borrow, Die” Strategy: This morbid-sounding mantra is a favorite of the ultra-wealthy. The idea: Buy assets and let them appreciate without selling (no sale, no taxable gain); Borrow against those assets if you need cash (loans aren’t taxable); and when you Die, your heirs get a stepped-up basis on those assets, erasing the deferred gains for income tax purposes. By never selling in life, the investor avoids capital gains tax entirely – they live off loans secured by their portfolio, and upon death the accumulated gains vanish for tax purposes, thanks to the step-up. It’s a cornerstone strategy for generational wealth building.
  • Swap Till You Drop (1031 Exchanges): Real estate investors can keep trading properties via 1031 exchanges repeatedly, deferring gains each time. For example, someone might start with a small rental, sell and 1031 exchange into a bigger property, and so on – continually deferring taxes on each swap. If they eventually die holding the last property, the heirs get a stepped-up basis, and those deferred gains are never taxed. This “swap till you drop” approach lets investors upgrade properties over a lifetime tax-free.
  • Tax-Loss Harvesting: Smart investors harvest losses to offset their gains. This means strategically selling some investments at a loss to negate the taxable gains from winners. For instance, realize a $10k loss to cancel out a $10k gain – resulting in no net taxable gain. They might even repurchase a similar investment later (mindful of the IRS wash-sale rule which disallows losses if you buy a substantially identical security within 30 days). Over time, consistent tax-loss harvesting can significantly reduce your capital gains tax bill, effectively making some gains tax-free by pairing them with losses.
  • Charitable Gifting of Appreciated Assets: Donating stocks or property that have gone up in value can be a win-win. If you give appreciated stock to a charity, you avoid the capital gains tax you’d owe if you sold it yourself, and you may get a fair market value tax deduction for the gift. In other words, you never pay tax on the gain, and the charity (being tax-exempt) won’t either. Wealthy individuals often donate high-growth stock to their charitable foundations or donor-advised funds to zero out the capital gains while supporting causes they care about.
  • Qualified Opportunity Zones: This is a newer (since 2017) tax incentive. Investors can reinvest capital gains into special Opportunity Zone Funds (which invest in designated economically distressed areas). By doing so, you can defer the original gain’s tax until 2026, reduce that gain by up to 10% (if invested by a certain date), and pay no tax on any new gains the Opportunity Zone investment earns if held for 10+ years. Essentially, you’re kicking the tax can down the road on the initial profit and potentially avoiding tax on a second round of gains entirely. This strategy requires careful compliance but can turn a taxable sale into an essentially tax-free reinvestment.
  • Using Tax-Exempt Wrappers: Beyond IRAs, there are other “wrappers” that shield investments from taxes. For example, permanent life insurance policies (like whole life or UL) build cash value that grows tax-deferred and can be accessed via loans tax-free, and the death benefit is tax-free. While not primarily an investment vehicle, some use these as tax-advantaged growth strategies. Another example: 529 plans and Health Savings Accounts (HSAs) allow specific-purpose investments (education and healthcare) to grow and be used tax-free for qualified expenses, effectively avoiding capital gains taxes on those funds.
  • State Tax Arbitrage: Investors in high-tax states may plan major asset sales around a change of residency. For instance, someone expecting a huge gain might move from a high-tax state like California to a no-tax state like Texas or Florida before selling – thereby avoiding state capital gains tax on that sale. (One must genuinely change residency and be mindful of each state’s residency rules to do this legally.) Some even move to Puerto Rico, which offers special tax programs that can virtually eliminate U.S. federal capital gains tax if you become a bona fide PR resident under Act 60. These relocation strategies are drastic but illustrate the lengths people will go to shield large gains from taxes.
  • Carried Interest (for Fund Managers): This one is specific to private equity and hedge fund managers, but it’s worth noting as a loophole: Carried interest is a share of investment profits that fund managers receive. Thanks to a quirk in tax law, those profits are often treated as long-term capital gains rather than ordinary income, meaning managers pay the lower capital gains rate (and defer until realization) on what is essentially compensation. While not a strategy an average investor can use, it’s a prominent example of how structuring income as capital gains (instead of salary) leads to huge tax savings. Attempts to close this loophole come up often in tax reform debates.

Each of these strategies exploits legal provisions to reduce or eliminate capital gains tax. They range from simple (harvest losses annually) to complex (move across the country or use sophisticated trusts). The common theme: with informed planning, it’s often possible to grow and transfer wealth while paying far less tax than one might expect.

However, always exercise caution – some strategies have strict rules or costs, and tax laws can change. It’s wise to consult tax professionals when implementing advanced tax avoidance techniques.

🌎 State-by-State Nuances: Capital Gains Tax Depends on Where You Live

While we’ve focused on federal law, state taxes on capital gains can vary widely. Your state of residence can mean the difference between paying an extra 0% or 13% on that gain. Here are a few notable examples illustrating how states handle capital gains:

  • California – High Taxes, No Extra Exemptions: California taxes capital gains as ordinary income at rates up to 13.3%, the highest state rate in the nation. It does not provide special capital gains exclusions beyond what federal law offers. This means even if your gain is tax-free federally (e.g. a primary home sale under $500k gain or QSBS), California generally follows suit on the exclusion if it starts with federal taxable income. But for other gains, Californians pay full freight. Example: A $100k long-term gain for a high earner in CA could incur $20k federal tax plus around $13k state tax. Ouch! Californians often employ tax planning (like relocating or 1031 exchanges) to mitigate this heavy state tax bite.
  • Florida & Texas – No State Capital Gains Tax at All: Florida and Texas are among the eight states with no personal income tax (others include Alaska, Nevada, South Dakota, Wyoming, and formerly Washington*). If you live in one of these states, you pay zero state tax on capital gains. A $1 million stock gain that might cost you $100k+ in California state tax would cost $0 in Florida. This is why these states are considered tax havens for investors. Many retirees choose to spend over half the year in Florida, not just for the sunshine but to establish residency and shield their investment gains from state tax. (Note: Washington State has no general income tax but does have a new capital gains excise tax on certain high earners—see below).
  • Wisconsin & South Carolina – Partial Exclusions: A few states give residents a break on long-term gains. For example, South Carolina allows you to exclude 44% of long-term capital gains from state taxable income. Wisconsin similarly lets residents deduct 30% of net long-term capital gains (or 60% for farm assets) from the gain before applying its flat income tax. So if you had a $10,000 long-term gain in Wisconsin, $3,000 is excluded and you’d only pay tax on $7,000 at the 5% state rate. These partial exclusions lower the effective state tax rate on investment income, encouraging investment.
  • New York – Follows Federal (Mostly): New York taxes capital gains as ordinary income (top rate ~10.9% in NYC combined). It generally respects federal exclusions like the home sale $250k/$500k and stepped-up basis. There aren’t unique NY-specific capital gains breaks (apart from some incentives for investing in New York-based small businesses or opportunity zones). So a New Yorker will pay federal tax (if applicable) and then state tax on any capital gain that remains in taxable income. High earners in NY face combined federal+state rates on gains that can exceed 30%.
  • Washington State – A Unique Case: Washington famously has no income tax, but in 2021 it enacted a targeted 7% tax on long-term capital gains above $250,000 for individuals (effective 2022). This tax is styled as an “excise tax” and applies mainly to sales of stocks, bonds, and other intangible assets by high earners. Notably, real estate sales are exempt from Washington’s capital gains tax, as are retirement accounts and small business stock sales that qualify for the federal QSBS exclusion. So if you sell a $1M Seattle home or cash out a startup in Washington, there’s no state tax on that gain. But if you sell $1M in stocks, Washington will take 7% of the gain (on top of federal taxes). This move by Washington shows how state approaches can evolve and target specific types of gains.

Important: Most states use your federal adjusted gross income (AGI) or taxable income as a starting point, so federal exclusions (like the home sale exclusion) typically flow through and reduce state taxable income as well. However, always check state-specific rules. For instance, Pennsylvania has no special rates for capital gains (flat tax ~3%), but it doesn’t allow certain federal deferrals, meaning you might owe PA tax on a 1031 exchange or installment sale even when federal tax is deferred. And some states (like New Jersey) don’t tax gains on certain in-state municipal bonds at the state level.

In summary, where you live can significantly impact your after-tax profit. High-tax states will tax your gains unless an exemption applies, while living in a no-tax state means any gain that’s federally exempt is completely tax-free to you, and even taxable federal gains face no additional state hit. This state-by-state variance is a key consideration, especially for large transactions – it can be worth planning moves or timing residency to save on state taxes for substantial capital gains.


Now that we’ve covered the gamut of federal rules, examples, strategies, and state nuances, let’s address some frequently asked questions about capital gains exemptions:

❓ FAQ: Most-Asked Questions on Tax-Exempt Capital Gains

Q: What types of capital gains are tax-exempt?
A: Home sale profits (within $250k single/$500k joint limits), inherited asset gains (due to stepped-up basis), investment growth inside tax-deferred or Roth accounts, and certain qualified investments (like small business stock) can be tax-exempt.

Q: Is profit from selling my house taxable?
A: Usually no, if it’s your primary residence and the gain is under $250k (single) or $500k (married) and you meet the 2-year residency rule. Only profit above those limits is taxed as capital gain.

Q: Do I pay capital gains tax on inherited property or stocks?
A: Generally, no. Inherited assets get a stepped-up basis to their value at the decedent’s death. This wipes out past gains. If you sell soon after inheriting at that same value, there’s no capital gain to tax.

Q: How can I avoid paying capital gains tax legally?
A: Use legal strategies: claim the primary home sale exclusion, hold investments in Roth IRAs/401(k)s, do 1031 exchanges for real estate, invest in qualified small business stock, or donate appreciated assets to charity. These methods can eliminate or shrink your tax bill.

Q: Which states have no capital gains tax?
A: States with no income tax (e.g. Florida, Texas, Alaska, Nevada, South Dakota, Tennessee, Wyoming, New Hampshire) have no state capital gains tax. Most other states do tax capital gains (often at the same rate as regular income).

Q: What is the 0% capital gains tax bracket?
A: It’s the income range where long-term capital gains are taxed at 0% federally. For example, in 2023 single filers up to ~$44,625 taxable income (or ~$89,250 for joint filers) pay 0% on long-term capital gains.

Q: Are capital gains in an IRA or 401(k) taxable?
A: No. Investments inside retirement accounts grow tax-deferred (Traditional IRA/401k) or tax-free (Roth). You pay no capital gains tax on trades within the account. Roth withdrawals are tax-free; traditional withdrawals are taxed as ordinary income, not as capital gains.

Q: Do I owe tax if I reinvest my capital gains?
A: Simply reinvesting doesn’t by itself avoid capital gains tax. If you sell an asset for a gain, that gain is taxable even if you use the money to buy something else right away. Only specific provisions like a 1031 exchange (for real estate) or rolling into an Opportunity Zone fund can defer or eliminate tax on a reinvested gain.

Q: What is a stepped-up basis in capital gains?
A:Stepped-up basis” resets an inherited asset’s tax basis to its market value at the previous owner’s death. It means any appreciation during their life is never taxed as capital gain. Heirs only face tax on growth after they inherit (if any).

Q: Are any capital gains completely tax-free?
A: Yes. Some gains are permanently tax-free: e.g. home sale profits within the $250k/$500k exclusion, gains on qualified small business stock (QSBS) up to $10 million, and gains on investments inside Roth IRAs or other tax-exempt accounts are never taxed.