Skip to main content

FinanceFirst financial glossary

What is Capital Gains?

A direct definition, followed by examples, comparisons, related concepts, and the sources that support the explanation.

Written by , Founder and Editor, FinanceFirst

Definition

In one sentence about Capital Gains

A capital gain is the profit earned when you sell an asset (stock, bond, real estate, or other investment) for more than its purchase price, known as the cost basis. Capital gains are classified as short-term (held one year or less, taxed as ordinary income) or long-term (held more than one year, taxed at preferential rates of 0%, 15%, or 20%).

01

Why Capital Gains Matter

Capital gains are one of the primary ways investors build wealth and are central to investment planning and tax strategy. Every time you sell a profitable investment, you realize a capital gain that is subject to taxation. The distinction between short-term and long-term gains is critical because it can nearly double your tax rate on the same profit. For instance, a single filer earning $100,000 in ordinary income would pay 24% on short-term gains but only 15% on long-term gains. On a $10,000 profit, that is $2,400 vs. $1,500 in taxes, a $900 difference just from holding the investment for one additional day beyond the one-year mark. Capital gains also affect decisions about portfolio rebalancing, asset location (which accounts to hold certain investments in), and retirement withdrawal strategies.

02

Real-World Example: Calculating Capital Gains

An investor makes three stock transactions during the year. Here is how each gain or loss is calculated and classified:

Real-World Example: Calculating Capital Gains for Capital Gains
InvestmentPurchase PriceSale PriceHolding PeriodGain/LossClassification
Stock A (100 shares)$5,000$8,00014 months+$3,000Long-term gain
Stock B (50 shares)$3,000$4,5008 months+$1,500Short-term gain
Stock C (200 shares)$10,000$7,0003 years-$3,000Long-term loss
Net result$18,000$19,500N/A+$1,500 netNet after loss offsets
03

Capital Gains Calculation Formula

The basic formula and key terms for calculating capital gains:

Capital Gains Calculation Formula for Capital Gains
ComponentDefinitionExample
Sale price (proceeds)The amount you receive when selling the asset$8,000
Cost basisOriginal purchase price plus commissions and fees$5,050 ($5,000 + $50 fee)
Capital gainSale price minus cost basis$2,950
Adjusted basisCost basis adjusted for improvements, splits, or reinvested dividendsVaries by asset
Net capital gainTotal gains minus total losses for the yearUsed for final tax calculation
04

When Capital Gains Apply

Capital gains are triggered in many common financial scenarios:

  • Selling stocks, bonds, ETFs, or mutual fund shares at a profit in a taxable brokerage account
  • Selling real estate, including rental property, vacation homes, or land (primary residence exclusion may apply for gains up to $250,000/$500,000)
  • Receiving capital gain distributions from mutual funds, even if you did not sell any shares yourself
  • Selling cryptocurrency, which the IRS classifies as property subject to capital gains rules
  • Selling collectibles (art, coins, wine) at a profit, taxed at a maximum rate of 28%
  • Capital gains do NOT apply inside tax-advantaged accounts (401(k), IRA, Roth IRA) until distributions are taken, and Roth accounts are tax-free
05

Common Capital Gains Mistakes

These errors frequently cost investors money:

  • Not tracking cost basis across purchases: If you bought shares of the same stock at different prices, your cost basis depends on which shares you sell. Use the specific identification method to sell higher-cost shares first and minimize gains
  • Triggering short-term gains by selling too early: Holding an investment for 366 days instead of 365 can cut your tax rate from as high as 37% to as low as 0%. Check holding periods before selling
  • Ignoring the wash-sale rule: If you sell an investment at a loss and buy the same or substantially identical security within 30 days before or after the sale, the loss is disallowed for tax purposes
  • Forgetting about mutual fund capital gain distributions: Mutual funds distribute realized gains to shareholders annually, creating a tax liability even if you reinvest the distribution. Consider tax-efficient index funds or ETFs
  • Not using capital losses strategically: Losses can offset gains dollar for dollar, and up to $3,000 in net losses can be deducted against ordinary income each year. Unused losses carry forward indefinitely

Side-by-side

Short-Term vs. Long-Term Capital Gains

Short-Term vs. Long-Term Capital Gains comparison
FeatureShort-Term Capital GainsLong-Term Capital Gains
Holding periodOne year or lessMore than one year
Tax rateOrdinary income rate (10%-37%)Preferential rate (0%, 15%, or 20%)
Rate for $100K single filer24%15%
Net Investment Income TaxAdditional 3.8% if MAGI > $200KAdditional 3.8% if MAGI > $200K
Best strategyAvoid when possible by holding longerPreferred for tax efficiency

Key distinction: The one-year dividing line is the single most important date in investment tax planning. One extra day of holding can save thousands in taxes.

In short

Capital gains are the profit from selling investments and are taxed based on how long you held the asset. Hold investments for more than one year to qualify for lower long-term rates. Use capital losses to offset gains, and take advantage of the 0% rate if your income qualifies. Track your cost basis carefully and consider tax-efficient fund choices to minimize annual capital gain distributions.

Put the concept in context

Tools and guides for the next question

Common questions

Frequently asked questions

Do I owe capital gains tax if I reinvest the money?

Yes. Capital gains tax is triggered by the sale of an asset at a profit, regardless of whether you reinvest the proceeds into another investment. The only way to defer capital gains is by using strategies like 1031 exchanges (for real estate) or holding investments inside tax-advantaged accounts.

How do capital losses offset gains?

Capital losses first offset gains of the same type (short-term losses offset short-term gains, long-term losses offset long-term gains). Any remaining losses then offset the other type. If you still have net losses after all offsets, up to $3,000 can be deducted against ordinary income each year, with unused losses carrying forward to future years indefinitely.

What is the 0% capital gains rate?

For 2025, single filers with taxable income up to $48,350 (or married filing jointly up to $96,700) pay 0% on long-term capital gains. This means some investors can sell profitable investments with no federal capital gains tax at all. This rate is particularly useful in early retirement years when other income may be low.

Are dividends taxed as capital gains?

Qualified dividends (from most U.S. stocks held for at least 61 days) are taxed at the same preferential rates as long-term capital gains (0%, 15%, or 20%). Nonqualified dividends (from REITs, money market funds, or short-term holdings) are taxed at ordinary income rates.

Does selling my home trigger capital gains?

Potentially. However, the primary residence exclusion allows single filers to exclude up to $250,000 in gains and married filers to exclude up to $500,000, provided you have owned and lived in the home for at least two of the last five years. Gains above these thresholds are taxed as capital gains.

Evidence you can inspect

Sources and further reading

Use these links to check the underlying definition, rule, dataset, or consumer guidance. External pages can change after publication.

  1. 01IRS: Topic No. 409 Capital Gains and Lossesirs.gov (opens in a new tab)
  2. 02IRS: Publication 550 - Investment Income and Expensesirs.gov (opens in a new tab)
  3. 03SEC: Investor.gov - Capital Gainsinvestor.gov (opens in a new tab)