What Is Capital Gains Tax and How Do You Legally Pay Less?

What Is Capital Gains Tax and How Do You Legally Pay Less?

If you've ever sold a stock, a house, or even some cryptocurrency and made a profit, the IRS wants a cut. That cut is called capital gains tax — and how much you owe depends on factors most people don't think about until it's too late.

Here's what capital gains tax actually is, how the rates work, and the legal moves you can make to keep more of what you earned.

What Capital Gains Tax Is

A capital gain is the profit you make when you sell an asset for more than you paid for it. The asset can be a stock, a bond, real estate, a mutual fund, crypto, or even collectibles. The gain is the difference between what you paid (called your cost basis) and what you sold it for.

You don't owe capital gains tax just because an asset went up in value. You owe it when you sell — when the gain is "realized."

Short-Term vs. Long-Term: The Rate That Changes Everything

The IRS splits capital gains into two categories based on how long you held the asset before selling.

Short-term capital gains apply when you sell an asset you've held for one year or less. These gains are taxed as ordinary income — the same rate as your salary. Depending on your bracket, that could be anywhere from 10% to 37%.

Long-term capital gains apply when you've held the asset for more than one year. These rates are significantly lower: 0%, 15%, or 20%, depending on your taxable income.

For 2024, the long-term capital gains rates break down like this for single filers:

  • 0% on gains if your taxable income is $47,025 or below
  • 15% if your taxable income is between $47,026 and $518,900
  • 20% if your taxable income is above $518,900

For married filing jointly, the 0% threshold is $94,050.

This single distinction — short-term vs. long-term — is often the most important tax decision an investor makes.

The Net Investment Income Tax

High earners face an additional 3.8% tax on investment income called the Net Investment Income Tax (NIIT). It applies if your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). This means the effective top rate on long-term gains can reach 23.8% — not 20%.

How Capital Gains Tax Works on a Home Sale

Real estate gets a special exemption. If you've lived in your home as your primary residence for at least two of the last five years, you can exclude up to $250,000 of gain from taxation — $500,000 if married filing jointly.

So if you bought a house for $300,000 and sold it for $600,000, a married couple could exclude the entire $300,000 gain and owe nothing. That exclusion doesn't apply to investment properties or second homes.

Legal Ways to Pay Less Capital Gains Tax

Hold for more than a year. The simplest and most powerful move. Waiting past the one-year mark drops your rate from ordinary income rates to the preferential long-term rate. On a $50,000 gain, the difference between a 24% short-term rate and a 15% long-term rate is $4,500.

Use tax-loss harvesting. If you have investments sitting at a loss, you can sell them to offset gains elsewhere. A $10,000 loss cancels out a $10,000 gain, reducing your tax bill to zero on that amount. You can also deduct up to $3,000 of net losses against ordinary income each year, with the rest carried forward.

Invest through tax-advantaged accounts. Gains inside a traditional 401(k) or IRA aren't taxed until withdrawal. Gains inside a Roth IRA are never taxed at all, as long as you follow the withdrawal rules. Putting your highest-growth assets inside these accounts keeps them out of the capital gains calculation entirely.

Time your sales around your income. If you're in a year with unusually low income — a career transition, early retirement, or a sabbatical — your taxable income might fall below the 0% capital gains threshold. That means you could sell appreciated assets and owe nothing. This strategy is called capital gains harvesting.

Give appreciated assets to charity. If you donate stock that has gone up in value directly to a charity instead of selling it first, you avoid capital gains tax entirely and get a deduction for the full market value. You never pay tax on the gain, and neither does the charity.

Pass assets to heirs. Assets passed through an estate receive a "stepped-up" basis — meaning the cost basis resets to the market value at the time of death. A stock bought for $10 and worth $100 at death has a basis of $100 for the heir. If they sell immediately, there's no capital gain at all. This is one of the most significant — and legal — ways generational wealth avoids capital gains tax.

What Capital Gains Tax Doesn't Apply To

Your primary residence (up to the exclusion limits above), retirement account withdrawals (taxed as ordinary income, not capital gains), and assets held inside tax-deferred accounts are all outside the capital gains calculation while they remain invested.

The Bottom Line

Capital gains tax is not optional, but it is manageable. The two biggest levers are how long you hold an asset and what kind of account it's held in. Get those right, and you can legally reduce what you owe without complex strategies or aggressive planning.

Comments

Popular posts from this blog

Why the Stock Market Feels Rigged Against Your Retirement

The Oil War Is Coming for Your Wallet—Here’s How to Fight Back

Global Tensions Are Cooling and Your Gas Bill Might Actually Drop—For Now