Calculating Capital Gains for Long-term Growth

This article provides valuable insights and information.

Long-term investing is one of the most proven paths to wealth accumulation. By holding quality assets over years or decades, investors benefit from compounding growth, market recovery, and favorable tax treatment—especially when it comes to capital gains. Understanding how to calculate capital gains is not just a tax chore—it’s a core component of building and preserving long-term growth.

This guide breaks down capital gains calculation with precision, using real-world examples, specific numbers, and real ETF and stock references such as VTI, SCHD, VOO, JNJ, and KO. We’ll cover short-term vs. long-term capital gains, tax rates, step-by-step calculations, and strategies to minimize tax drag while maximizing after-tax returns.


What Are Capital Gains?

Capital gains are the profits realized when you sell an investment for more than its purchase price. If you bought a share of JNJ (Johnson & Johnson) for $100 and sold it five years later for $160, your capital gain is $60 per share.

There are two types of capital gains:

  • Short-term capital gains: On assets held for one year or less. These gains are taxed as ordinary income.
  • Long-term capital gains: On assets held for more than one year. These are taxed at lower, preferential rates.

The IRS uses the holding period to determine which category applies.


Long-Term Capital Gains Tax Rates (2026)

Long-term capital gains are taxed at 0%, 15%, or 20%, depending on your taxable income and filing status. The brackets for 2026 are:

Filing Status0% Rate (Up To)15% Rate (Up To)20% Rate (Above)
Single$49,450$545,500$545,501
Married Filing Jointly$98,900$613,700$613,701
Head of Household$66,200$579,600$579,601

Note: An additional 3.8% Net Investment Income Tax (NIIT) may apply for taxpayers with modified adjusted gross income (MAGI) above $200,000 (single) or $250,000 (married filing jointly).

These lower tax rates are a major incentive for long-term growth strategies. By holding investments past the one-year mark, investors can significantly reduce their tax burden.


Step-by-Step: How to Calculate Long-Term Capital Gains

The formula for calculating capital gains is straightforward:

Capital Gain = Sale Proceeds – Adjusted Cost Basis

Let’s define the terms:

  • Sale Proceeds: Total amount received from selling the asset, net of commissions.
  • Adjusted Cost Basis: Original purchase price plus any commissions, fees, or reinvested dividends that increase basis.

Example 1: Selling VOO After 5 Years

Assume you purchased 100 shares of VOO (Vanguard S&P 500 ETF) on January 15, 2019, at $280 per share, with a $10 commission.

  • Purchase Cost: (100 × $280) + $10 = $28,010
  • Sale Date: February 12, 2024 (over 5 years later)
  • Sale Price: $480 per share, net of $10 commission
  • Sale Proceeds: (100 × $480) – $10 = $47,990

Now calculate the gain:

$47,990 (proceeds) – $28,010 (basis) = $19,980 long-term capital gain

Since you held VOO for over a year, this qualifies for long-term capital gains treatment.

If your taxable income is $80,000 (single filer), you fall in the 15% long-term capital gains bracket.

Tax Owed = $19,980 × 15% = $2,997

Compare this to short-term treatment: if you’d sold within a year, the gain would be taxed as ordinary income. At a 22% marginal rate, tax would be $4,396—47% higher.


Real-World Example: Dividend Reinvestment and Cost Basis Adjustment

Dividend reinvestment increases your cost basis over time. Ignoring this can lead to overpaying taxes.

Example 2: SCHD with Reinvested Dividends

You buy 200 shares of SCHD (Schwab U.S. Dividend Equity ETF) on June 1, 2018, at $45/share with $10 commission.

  • Initial Cost Basis: (200 × $45) + $10 = $9,010

SCHD pays quarterly dividends. You reinvest them each quarter. Over 5 years, you receive and reinvest:

YearDividend/ShareReinvested SharesTotal Reinvested
2018$0.42 (Q3+Q4)3.73$168
2019$1.687.47$336
2020$1.727.56$344
2021$1.807.83$360
2022$1.888.05$376
2023$1.958.32$390

Total reinvested dividends: $1,974

Total additional shares acquired: ~42.96

Your adjusted cost basis now includes reinvested dividends:

$9,010 + $1,974 = $10,984

In January 2024, you sell all 242.96 shares at $72/share, net $15 commission.

  • Sale Proceeds: (242.96 × $72) – $15 = $17,480.12

Calculate Gain:

$17,480.12 – $10,984 = $6,496.12 long-term capital gain

Tax at 15%: $974.42

Without adjusting for reinvested dividends, you’d have incorrectly used $9,010 as basis, overstating gain by $1,974 and paying an extra $296 in taxes.


Comparing ETFs: VTI vs. VOO for Long-Term Growth

Let’s compare two popular broad-market ETFs: VTI and VOO.

MetricVTI (Vanguard Total Stock Market)VOO (Vanguard S&P 500)
Expense Ratio0.03%0.03%
Number of Holdings~4,000~500
10-Year CAGR (2014–2024)~11.2%~11.4%
Dividend Yield (2024)1.55%1.48%
Price (March 2024)$245.10$480.50

Suppose you invested $50,000 in each ETF on March 1, 2014.

VTI:

  • Shares Purchased: $50,000 / $60.50 ≈ 826.45 shares
  • Price on March 1, 2024: $245.10
  • Reinvested dividends: ~$28,000 (estimated)
  • Adjusted basis: $50,000 + $28,000 = $78,000
  • Sale proceeds: 826.45 × $245.10 ≈ $202,500
  • Capital gain: $202,500 – $78,000 = $124,500

VOO:

  • Shares Purchased: $50,000 / $160.20 ≈ 312.11 shares
  • Price on March 1, 2024: $480.50
  • Reinvested dividends: ~$22,500 (estimated)
  • Adjusted basis: $50,000 + $22,500 = $72,500
  • Sale proceeds: 312.11 × $480.50 ≈ $150,000
  • Capital gain: $150,000 – $72,500 = $77,500

Insight: Despite VTI’s broader diversification, VOO delivered higher price appreciation. However, VTI generated more reinvested dividends due to exposure to mid- and small-caps. Over 10 years, both delivered strong long-term growth, but capital gains—and thus tax liabilities—differ.

At a 15% tax rate:

  • VTI tax: $124,500 × 15% = $18,675
  • VOO tax: $77,500 × 15% = $11,625

While VTI created more wealth, it also creates a larger tax bill. Tax efficiency matters.


Case Study: Holding Blue-Chip Stocks for Decades

Long-term growth shines brightest with reliable dividend payers like JNJ and KO.

Example 3: JNJ Purchased in 2000

You bought 100 shares of Johnson & Johnson (JNJ) on January 3, 2000, at $58.00/share with $10 commission.

  • Initial basis: (100 × $58) + $10 = $5,810

JNJ paid dividends quarterly, all reinvested. Over 24 years, you reinvested approximately $22,400 in dividends, acquiring an additional ~380 shares.

Total shares owned in 2024: 480

JNJ share price on March 1, 2024: $160.50

Sale proceeds: 480 × $160.50 = $77,040

Adjusted cost basis: $5,810 + $22,400 = $28,210

Capital gain: $77,040 – $28,210 = $48,830

Held for over 24 years — long-term capital gain.

Tax at 15%: $7,324.50

Effective CAGR (including dividends reinvested): ~9.8%

Even after taxes, the after-tax gain is $41,505, nearly 7x your original investment.


Tax-Loss Harvesting: Offsetting Capital Gains

You can reduce or eliminate capital gains tax by selling losing positions.

Rule: Capital losses offset capital gains dollar for dollar.

Example:

  • Realized long-term gain on VOO: $19,980
  • You sell 100 shares of a losing tech stock bought at $100, now worth $60.
  • Loss: (100 × $100) – (100 × $60) = $4,000 loss

Net gain: $19,980 – $4,000 = $15,980

Tax at 15%: $2,397 (down from $2,997)

You can also deduct up to $3,000 of excess losses against ordinary income. Remaining losses carry forward indefinitely.


Strategies to Minimize Capital Gains Tax

1. Hold for Over One Year

Avoid short-term gains. Even a few weeks past the one-year mark can save thousands.

2. Use Tax-Advantaged Accounts

Hold growth assets in IRAs or 401(k)s. No capital gains tax on trades inside these accounts.

3. Donate Appreciated Stock

Give shares directly to charity. You avoid capital gains tax and get a deduction for fair market value.

Example: Donate $50,000 of VOO shares with $20,000 basis. You avoid $4,500 in capital gains tax (15%) and claim a $50,000 deduction.

4. Step-Up in Basis at Death

If you hold until death, heirs get a step-up in basis to the market value at death. This eliminates capital gains for inherited assets.

Example: You bought KO at $10/share in 1970. It’s worth $60/share at your death. Your heir’s basis is $60. No tax on the $50 gain.

5. Spread Sales Over Years

Avoid jumping into a higher tax bracket. Sell 50% of holdings this year, 50% next.


Capital Gains and Dividend Stocks: The Hidden Tax Drag

High-yield dividend ETFs like SCHD generate income but also create taxable events each time dividends are paid—even if reinvested.

ETFDividend Yield (2024)Annual Dividend on $100kTax on Dividends (15% bracket)
SCHD3.45%$3,450$517.50
VOO1.48%$1,480$222.00
VTI1.55%$1,550$232.50

While dividends support compounding, they create annual tax liabilities in taxable accounts. For pure long-term growth with minimal tax drag, low-turnover, low-dividend growth ETFs like VOO may be more efficient.


Frequently Asked Questions (FAQ)

Q1: How do I track cost basis for multiple purchases?

Use FIFO (First In, First Out) unless you specify another method (e.g., specific share identification). Brokerage platforms like Fidelity or Vanguard let you select which shares to sell. Always keep records.

Q2: Are mutual funds different from ETFs for capital gains?

Yes. Mutual funds can distribute capital gains annually, even if you didn’t sell. ETFs are more tax-efficient due to their structure. Example: In 2021, some mutual funds distributed large capital gains after selling pandemic winners.

Q3: What if I inherit stock?

You receive a step-up in basis to the market price on the date of death. If you sell soon after, gains are minimal or zero.

Q4: Do I pay capital gains tax if I reinvest the proceeds?

Yes. Selling triggers the tax event, regardless of reinvestment. Tax is on the gain, not the cash use.

Q5: Can I avoid capital gains tax entirely?

Not entirely, but you can minimize it:

  • Use tax-advantaged accounts
  • Donate appreciated stock
  • Time sales to stay in 0% capital gains bracket (e.g., retire early with low income)

Q6: What’s the wash sale rule?

If you sell a stock at a loss and buy a “substantially identical” one within 30 days, the loss is disallowed. This doesn’t apply to gains.


Final Thoughts: Capital Gains Are Part of the Growth Equation

Long-term growth isn’t just about picking winning stocks or ETFs. It’s about maximizing after-tax returns. Capital gains are inevitable when you sell, but smart planning can reduce their impact.

Key takeaways:

  • Hold investments over one year to qualify for lower long-term rates.
  • Track adjusted cost basis, including reinvested dividends.
  • Use tax-loss harvesting to offset gains.
  • Consider tax-advantaged accounts for high-growth assets.
  • Reinvest dividends wisely—growth compounds faster, but basis increases too.

Investors in VTI, SCHD, VOO, JNJ, or KO are building wealth that will one day be realized. The difference between a 15% and 20% tax rate on a $100,000 gain is $5,000. Over decades, these savings compound just like your portfolio.

Master capital gains calculation, and you master one of the most powerful tools in long-term investing.

    Calculating Capital Gains for Long-term Growth | Dividend Engines