What to Know About Capital Gains Taxes Before Selling Investments

What to Know About Capital Gains Taxes Before Selling Investments

August 19, 2026

Selling an investment can be an important part of managing your financial plan, whether you are rebalancing a portfolio, raising cash, or adjusting your investments as your goals change. But before selling, it is important to understand that the transaction may have tax consequences.

One of the most common considerations is capital gains tax. Understanding how capital gains work can help you have a more informed conversation with your financial and tax professionals before making an investment decision.

What Is a Capital Gain?

A capital gain generally occurs when you sell an investment for more than you paid for it.

For example, suppose you purchased an investment for $10,000 and later sold it for $14,000. The difference of $4,000 is generally considered a capital gain, before accounting for factors such as transaction costs and other adjustments.

If you sell an investment for less than you paid, you may instead have a capital loss.

Capital gains and losses can apply to a variety of investments, including stocks, bonds, mutual funds, and exchange-traded funds (ETFs).

Short-Term vs. Long-Term Capital Gains

One of the most important factors in determining how a capital gain may be taxed is how long you held the investment.

Generally, investments held for one year or less before being sold are considered short-term, while investments held for more than one year are considered long-term.

For many taxpayers, long-term capital gains are taxed at rates that are lower than ordinary income tax rates. Short-term capital gains are generally taxed as ordinary income.

The tax treatment can depend on your individual circumstances, including your taxable income and filing status. Because tax laws can change, it is important to review your situation with a qualified tax professional.

Don't Forget About Capital Losses

Not every investment sale results in a gain. If you sell an investment for less than your adjusted cost basis, you may have a capital loss.

Capital losses may potentially be used to offset capital gains. Under certain circumstances, taxpayers may also be able to deduct a limited amount of net capital losses against ordinary income and carry unused losses forward to future tax years.

The rules surrounding capital losses can be complex, so it is important to understand how they may apply to your particular tax situation.

What Is Cost Basis?

Before selling an investment, it can be helpful to understand its cost basis.

Cost basis is generally the amount you paid for an investment, adjusted for certain events that may affect the investment's value for tax purposes.

For example, factors such as reinvested dividends, stock splits, or certain corporate actions can affect the calculation of cost basis.

Knowing your cost basis can help you estimate whether a sale could result in a capital gain or loss. Your brokerage or investment account statements may provide cost-basis information, but it is important to review the information carefully and consult a tax professional if you have questions.

Consider the Tax Impact Before You Sell

The potential tax consequences of selling an investment are one factor you may want to consider as part of an overall financial decision.

Before placing a sell order, you may want to consider:

  • How long have you owned the investment? This can affect whether the gain is considered short-term or long-term.
  • What is your cost basis? Understanding your basis can help you estimate the potential gain or loss.
  • What is your overall tax situation? Your income and filing status can affect the tax treatment of capital gains.
  • Do you have other capital gains or losses? Other transactions during the year may affect your overall tax liability.
  • Does the investment sale fit your broader financial plan? Taxes are one consideration, but investment decisions should also take into account your goals, risk tolerance, time horizon, and overall portfolio.

Taxes Are Only One Piece of the Decision

It can be tempting to focus solely on avoiding taxes when deciding whether to sell an investment. However, taxes are just one consideration in an investment decision.

Holding an investment solely because selling it could result in a taxable gain may not always align with your broader financial objectives. On the other hand, selling an investment may create a tax liability that should be considered as part of your overall financial plan.

Working with your financial professional and tax professional can help you better understand the potential implications before making a decision.

A Little Planning Can Go a Long Way

Capital gains taxes do not necessarily mean that selling an investment is a bad decision. Instead, understanding the potential tax consequences can help you make more informed decisions.

Before selling an investment, take the time to review your cost basis, holding period, potential gains or losses, and overall financial circumstances. A thoughtful approach can help ensure that tax considerations are incorporated into your broader financial strategy.