MoatScopeMoatScope
← BlogOpen App
EducationFebruary 26, 2026·3 min read·By Claire Nakamura

What Is Capital Gains Tax? How Investment Profits Are Taxed

Capital gains tax applies when you sell an investment for a profit. Learn short-term vs. long-term rates, exemptions, and strategies to minimize your bill.


Capital gains tax is the tax you owe when you sell an investment for more than you paid for it. If you buy a stock at $50 and sell at $80, your $30 profit is a capital gain — and the IRS wants a share. How much depends on how long you held the investment: the difference between short-term and long-term capital gains rates can nearly double your tax bill, making holding period one of the most important (and controllable) variables in investment returns.

Short-Term vs. Long-Term Rates

Short-term capital gains apply to investments held for one year or less. They're taxed at your ordinary income tax rate — which can be as high as 37% for the highest earners. Long-term capital gains apply to investments held for more than one year. They're taxed at preferential rates: 0% (for taxable income below roughly $47,000 single / $94,000 married), 15% (for most taxpayers), or 20% (for taxable income above roughly $518,000 single / $583,000 married).

The gap is substantial. A $50,000 gain taxed at short-term rates (37%) costs $18,500 in taxes. The same gain taxed at long-term rates (15%) costs $7,500 — an $11,000 difference for simply holding 366 days instead of 365. This single distinction — holding for one year plus one day — is the easiest and most impactful tax optimization available to stock investors.

How to Minimize Capital Gains Taxes

Hold for the Long Term

The simplest strategy: don't sell within a year. Quality investing naturally minimizes capital gains taxes because its core discipline — buying quality businesses and holding for years — automatically qualifies all gains for the lower long-term rate. Frequent trading generates short-term gains taxed at the highest rates; patient holding generates long-term gains taxed at preferential rates.

Use Tax-Advantaged Accounts

Capital gains taxes don't apply inside 401(k)s, IRAs, and Roth IRAs. You can buy and sell within these accounts without any tax consequences until withdrawal. Maximize tax-advantaged account contributions before investing in taxable accounts — every dollar of gains sheltered from capital gains tax compounds more powerfully.

Turn this knowledge into action. MoatScope shows you which stocks have the widest moats and strongest fundamentals.
Try MoatScope →

Harvest Losses

Offset realized gains with realized losses from other positions. Net losses up to $3,000 per year can offset ordinary income. Excess losses carry forward indefinitely. Systematic loss harvesting can eliminate or defer capital gains taxes for years.

Donate Appreciated Stock

Donating appreciated stock to charity avoids capital gains entirely — you receive a tax deduction for the full market value without paying tax on the gain. If you planned to donate cash and separately sell appreciated stock, donating the stock instead saves the capital gains tax on both transactions.

The Net Investment Income Tax

High earners face an additional 3.8% net investment income tax (NIIT) on top of the standard capital gains rate — bringing the effective top rate to 23.8% for long-term gains and 40.8% for short-term gains. This surtax applies to individuals with modified adjusted gross income above $200,000 ($250,000 married). It makes tax-efficient investing even more valuable for higher-income investors.

Quality Investing as Tax Strategy

Quality investing is inherently tax-efficient. Long holding periods ensure long-term rates. Low portfolio turnover minimizes the frequency of taxable events. And the compounding of unrealized gains (gains you haven't sold) creates tax deferral — your money grows on the government's share of unrealized gains until you eventually sell. The longer you defer, the more you benefit from compounding on the deferred tax amount. One risk worth planning for: if your portfolio is heavily concentrated and highly appreciated, the capital gains tax itself becomes a barrier to proper diversification.

💡 MoatScope supports tax-efficient investing by identifying the quality businesses worth holding for years — the long holding periods that naturally qualify for lower long-term capital gains rates and maximize tax-deferred compounding.
Tags:capital gains taxinvestment taxeslong-term gainstax strategypersonal finance

CN
Claire Nakamura
Financial Statement Analysis
Claire breaks down balance sheets, income statements, and cash flow reports to help investors understand what the numbers really say. More articles by Claire

Related Posts

What Is a Tax Bracket? How Federal Income Tax Brackets Work
Education · 6 min read
What Is Social Security? How It Works for You
Education · 8 min read
What Is an HSA? The Best Tax-Advantaged Account
Education · 7 min read

Ready to find quality stocks?

MoatScope evaluates moats, quality, and fair value for 2,600+ stocks — turning the concepts you just learned into actionable insights.

Explore MoatScope — Free