Key Takeaways
- Capital gains tax applies when selling investments for more than their adjusted basis, influenced by holding periods.
- Short-term capital gains face higher ordinary income tax rates, while long-term gains benefit from lower rates of 0%, 15%, or 20%.
- Understanding marginal and effective tax rates helps investors manage their tax liabilities effectively over multiple years.
- Strategies to mitigate capital gains tax legally include holding investments longer and using tax-loss harvesting.
- Pathview Wealth Advisors offers integrated financial planning that includes tax strategies within broader investment management.
Pathview Wealth Advisors is an independent fee only firm that integrates CPA + CFP® professional investment management and tax planning. Understanding capital gains tax can help investors make informed decisions, reduce unnecessary tax drag, and preserve more of their wealth over time.
What Is Capital Gains Tax?
A capital gain occurs when you sell an investment for more than its adjusted tax basis. The basis generally starts with the purchase price, although reinvested dividends, commissions, and other adjustments may affect it.
Investors often ask, “what is capital gains tax?” In simple terms, it is the federal tax that may apply to profits from selling assets such as stocks, bonds, mutual funds, exchange-traded funds, and certain real estate investments.
However, the tax treatment depends on several factors, including your income, filing status, holding period, and other realized gains and losses.
Marginal and Effective Tax Rates
Before evaluating a potential sale, investors should understand two tax concepts.
Your marginal tax rate applies to your next dollar of taxable income. By contrast, your effective tax rate represents your total tax liability divided by taxable income.
Together, these rates provide context for multi-year tax-bracket management and income smoothing. A tax advisor can also help determine how realizing gains may interact with deductions, credits, Medicare premiums, and other income-based considerations.
Short-Term and Long-Term Capital Gains
The length of time you hold an investment directly affects its federal tax treatment.
Short Term Capital Gains Tax
The short term capital gains tax generally applies to investments held for less than one year. The IRS taxes net short-term gains at ordinary federal income-tax rates, which may exceed preferential long-term rates.
Long Term Capital Gains Tax
The long term capital gains tax generally applies when an investor holds an asset for more than one year. Most net long-term gains receive preferential federal rates of 0%, 15%, or 20%.
Therefore, the holding period can materially affect after-tax returns. Nevertheless, investors should also consider market risk, diversification, cash needs, and financial goals before delaying a sale solely for tax reasons.
2026 Capital Gains Tax Rate and Brackets
For tax year 2026, most net long-term gains and qualified dividends fall within the following capital gains tax brackets:
| Filing status | 0% rate | 15% rate | 20% rate |
|---|---|---|---|
| Married filing jointly | $0 to $98,900 | $98,901 to $613,700 | Over $613,700 |
| Married filing separately | $0 to $49,450 | $49,451 to $306,850 | Over $306,850 |
| Head of household | $0 to $66,200 | $66,201 to $579,600 | Over $579,600 |
| Single | $0 to $49,450 | $49,451 to $545,500 | Over $545,500 |
These thresholds apply to taxable income, not just the realized gain. Additionally, special rates may apply to collectibles, qualified small-business stock, and unrecaptured Section 1250 gain.
The 3.8% Net Investment Income Tax
Certain investors may also owe the 3.8% Net Investment Income Tax, or NIIT. The tax may apply when modified adjusted gross income exceeds:
- $250,000 for married couples filing jointly
- $125,000 for married individuals filing separately
- $200,000 for single and head-of-household filers
Consequently, an investor’s effective federal rate on a long-term gain may reach 23.8%. State income taxes may further increase the total cost.
How Capital Gains and Losses Are Netted
The IRS generally requires taxpayers to:
- Net long-term gains against long-term losses.
- Net short-term gains against short-term losses.
- Compare the resulting amounts.
- Offset the categories when one produces a gain and the other produces a loss.
For example, a $20,000 long-term gain and a $12,000 long-term loss generally produce an $8,000 net long-term gain.
If total losses exceed total gains, individuals may generally deduct up to $3,000 against ordinary income, or $1,500 when married filing separately. Taxpayers may generally carry unused losses forward indefinitely, and those losses retain their short-term or long-term tax character.

How to Avoid Capital Gains Tax Legally
People searching for how to avoid capital gains tax should focus on lawful tax planning strategies rather than viewing taxes in isolation. Depending on the investor’s circumstances, potential approaches may include:
- Holding investments for more than one year
- Spreading gains across multiple tax years
- Donating appreciated securities directly to qualified charities
- Using available capital-loss carryforwards
- Investing through tax-advantaged retirement accounts
- Coordinating gains with lower-income years
- Applying tax-loss harvesting to offset capital gains and reduce tax drag
These strategies may defer, reduce, or offset taxes, but they do not guarantee that an investor will eliminate them.
Tax-Loss Harvesting and Wash-Sale Rules
Tax-loss harvesting involves selling investments at a loss to offset realized gains. Although investors often harvest losses near year-end, opportunities may arise throughout the year.
However, the wash-sale rule may disallow a loss when an investor purchases the same or a substantially identical security within 30 days before or after the sale. Therefore, investors should coordinate trades across personal accounts, joint accounts, IRAs, and potentially a spouse’s accounts.
How Pathview Helps
Pathview provides comprehensive financial planning that integrates investments, tax, and cash flow. Our one-stop-shop integration of tax, planning, and investment services helps clients evaluate financial decisions within a broader, coordinated strategy.
Our advisors, traders, and CPA and CFP® professionals consider:
- Tax-loss harvesting opportunities
- Tax-aware asset location across taxable and tax-advantaged accounts
- A globally diversified, long-term asset allocation focus
- Household-level portfolio design across multiple accounts
- Capital-gain and loss-carryforward management
- Tax-aware rebalancing
- Multi-year tax-bracket management and income smoothing
This coordinated approach helps clients understand how each investment decision may affect their overall financial picture.
Final Thoughts
Tax rates, holding periods, netting rules, NIIT, and loss carryforwards can all influence investment results. Therefore, investors should evaluate transactions within a comprehensive financial and tax plan rather than making decisions based on taxes alone.
For a second opinion on your portfolio’s tax efficiency, contact Pathview Wealth Advisors in San Diego. We serve clients locally and nationally through coordinated fee only wealth management and tax-first planning.
Pathview Wealth Advisors is an independent fee only fiduciary firm. This article is for educational and informational purposes only and should not be construed as tax, legal, or investment advice. Tax laws and IRS rules may change, and individual circumstances vary. Consult with qualified tax and financial professionals before implementing any strategy.
Capital gains tax is a federal tax that may apply when you sell an investment or asset for more than its adjusted cost basis. Common assets subject to capital gains tax include stocks, bonds, mutual funds, ETFs, and certain real estate investments.
Capital gains are generally taxed based on how long you held the investment before selling it. Investments held for one year or less typically receive short-term capital gains treatment, while investments held longer than one year generally qualify for long-term capital gains rates.
Short-term capital gains apply to investments held for one year or less and are generally taxed at ordinary income tax rates. Long-term capital gains apply to investments held for more than one year and typically qualify for lower federal tax rates.
For most taxpayers, long-term capital gains tax rates are 0%, 15%, or 20%, depending on taxable income and filing status. Some investors may also owe the 3.8% Net Investment Income Tax.
Short-term capital gains are generally taxed at the same federal rates that apply to ordinary income. Your rate depends on your taxable income and tax filing status.
The amount of capital gains tax you may owe depends on your cost basis, selling price, holding period, taxable income, filing status, capital losses, and whether the Net Investment Income Tax applies.
Reinvesting the proceeds from a taxable investment sale generally does not eliminate the capital gain. The sale itself may create a taxable event even if you immediately purchase another investment.
Investors may reduce capital gains taxes by holding investments longer than one year, utilizing tax-loss harvesting, donating appreciated securities, using available loss carryforwards, coordinating gains across multiple tax years, and investing through tax-advantaged accounts when appropriate.
Tax-loss harvesting is a strategy that involves selling investments at a loss to offset realized capital gains. If losses exceed gains, taxpayers may generally deduct up to $3,000 against ordinary income annually and carry remaining losses forward to future years.
The wash-sale rule generally prevents investors from claiming a tax loss if they purchase the same or a substantially identical security within 30 days before or after the sale that generated the loss.
Yes. Capital losses generally offset capital gains dollar for dollar. If losses exceed gains, taxpayers may typically deduct up to $3,000 annually against ordinary income and carry forward unused losses indefinitely.
Yes. Unused capital losses can generally be carried forward indefinitely and used to offset future capital gains or eligible ordinary income.
The Net Investment Income Tax (NIIT) is an additional 3.8% federal tax that may apply to certain investment income when modified adjusted gross income exceeds IRS thresholds.
For 2026, NIIT may apply when modified adjusted gross income exceeds $250,000 for married couples filing jointly, $200,000 for single filers and heads of household, and $125,000 for married individuals filing separately.
Yes. Long-term capital gains rates are determined in part by your taxable income and filing status. Higher-income investors may qualify for a higher long-term capital gains rate and may also be subject to NIIT.
Yes. Retirees may owe capital gains tax when selling taxable investments. However, the amount depends on income, filing status, holding period, available losses, and other tax factors.
Yes. Capital gains generally increase taxable income and may affect tax brackets, Medicare premium surcharges, deductions, credits, and other income-based calculations.
Large capital gains can increase modified adjusted gross income, potentially triggering higher Medicare Part B and Part D premiums through Income-Related Monthly Adjustment Amount (IRMAA) surcharges.
Generally, no. Investment decisions should be based on your overall financial plan, diversification needs, risk tolerance, cash-flow requirements, and long-term goals rather than taxes alone.
The best time depends on your overall tax situation, income level, available loss carryforwards, future tax expectations, and investment goals. Coordinating gains and losses within a comprehensive tax strategy can improve after-tax outcomes.
A financial advisor working alongside a CPA can help identify tax-loss harvesting opportunities, manage capital gain timing, coordinate asset location strategies, evaluate charitable gifting options, and develop multi-year tax planning strategies designed to improve tax efficiency.
The most tax-efficient approach depends on your circumstances. Potential strategies may include spreading gains across multiple years, donating appreciated securities, harvesting losses, coordinating with lower-income years, or managing sales within a comprehensive tax plan.
It depends on your expected future income, tax bracket, retirement timeline, Medicare considerations, and overall financial plan. In some cases, delaying a sale until a lower-income year may reduce taxes.
Pathview Wealth Advisors integrates investment management, financial planning, and CPA-led tax planning to help clients evaluate tax-loss harvesting opportunities, coordinate gains and losses, manage asset location, perform tax-aware rebalancing, and implement multi-year tax planning strategies.
