Capital gains happen when you sell something for more than you paid for it. That "something" could be a stock, rental property, cryptocurrency, collectible art, or almost any asset. The difference between what you paid (your cost basis) and what you sold it for (the sale price) is your gain. When you cash in on that gain, the IRS wants a piece of it through capital gains tax.
Learn About Credit One Bank Pre-Approval Codes →
The tax doesn't come due on the day you buy. It comes due when you actually sell and realize the profit. This matters because you could hold an investment for decades, watch it grow substantially, and only owe taxes when you decide to convert it to cash. That timing element is where strategy comes in.
The federal government taxes capital gains at different rates depending on how long you held the asset. If you owned it for one year or less, the IRS treats your gain as ordinary income—meaning it gets taxed at your normal income tax rate, which could be 10%, 12%, 22%, 24%, 32%, 35%, or 37% depending on your income bracket. But if you held the asset for more than one year, you get access to long-term capital gains rates: 0%, 15%, or 20%. That difference can mean thousands of dollars in taxes on a single investment sale.
States add their own capital gains taxes on top of the federal tax. Some states charge nothing; others charge rates between 5% and 13%. A few states (like California, New York, and Oregon) tax capital gains like regular income, while others (like Washington) have specific capital gains taxes aimed at wealthy investors.
Takeaway: Understanding whether your gains are short-term or long-term is the foundation of everything else. Your holding period determines your tax rate more than almost anything else.
This distinction is so important that it deserves its own section. The difference between short-term and long-term capital gains rates can swing your tax bill by 50% or more on the same dollar amount of profit.
Get Your Free Unemployment Insurance Status Guide →
Let's use a real example. You buy 100 shares of a company stock at $50 per share for a total of $5,000. Eight months later, it's worth $100 per share. You could sell it and have a $5,000 gain. At your current tax bracket (say, 22%), you'd owe federal income tax of $1,100 on that gain as a short-term capital gain. If you waited four more months to hit the one-year mark and sold at the same $100 price, you'd owe only $750 as a long-term capital gain (at the 15% rate). By waiting just four months, you saved $350 in federal tax alone.
The IRS measures your holding period from the date you bought the asset until the date you sold it, counting both the purchase and sale dates. If you bought on March 15 and sold on March 16 of the following year, you've held it over one year and qualify for long-term treatment. If you sold on March 14, you haven't.
The long-term capital gains brackets of 0%, 15%, and 20% apply based on your total taxable income, not just the gains themselves. In 2024, a single filer can have up to roughly $47,000 in long-term capital gains before moving into the 15% bracket, and roughly $518,000 before hitting the 20% bracket. These numbers adjust yearly with inflation. This creates planning opportunities—you might be able to bunch multiple asset sales in one year, or spread them across years, depending on your overall income situation.
Takeaway: Holding an investment just past the one-year mark often means more than timing the market perfectly. The tax savings can be substantial enough to make waiting worth it, even if the asset price stays flat.
This strategy sounds complicated but works on a simple principle: losses cancel out gains for tax purposes. If you sell an investment at a loss, you can use that loss to reduce the taxable gains from your other investments. When losses exceed gains, you can even deduct up to $3,000 of the excess loss against your regular income in a single year, with any remaining losses carried forward to future years.
Understanding Credit and Lending: A Free Financial Guide →
Here's how this plays out in reality. Suppose you own two stocks: Stock A that you bought at $10,000 and sold for $15,000 (a $5,000 gain) and Stock B that you bought at $8,000 and is now worth $5,000 (a $3,000 loss on paper). If you sell Stock B at its current price, that $3,000 loss washes out $3,000 of your $5,000 gain, leaving you with only $2,000 in taxable capital gains instead of $5,000. At a 15% tax rate, that's $300 in taxes you didn't have to pay.
The catch is that you need actual losses to work with, and you have to realize them by selling. You can't just look at your brokerage account and count unrealized losses. The loss only counts for taxes once you've sold the position. Many investors naturally accumulate some losing investments over time—a stock that underperformed, a rental property that became a headache, cryptocurrency that crashed. Tax-loss harvesting turns those real-world losses into actual tax deductions.
One rule to watch: the wash sale rule. If you sell an investment at a loss, you can't buy the same investment (or a substantially identical one) within 30 days before or after the sale, or the IRS will disallow the loss deduction. The clock runs 30 days before and 30 days after your sale date. If you want to stay invested in a similar asset, you can buy a similar (but not identical) security during that window—like switching from one tech ETF to a different tech ETF—then switch back later if you want.
Takeaway: End-of-year reviews of your investment portfolio can reveal losing positions worth selling for their tax value, not their investment value. This strategy works best when paired with disciplined rebalancing.
When you sell an investment matters not just for whether you hit the one-year holding period, but also for which tax year the gain lands in. This is especially useful if your income varies from year to year.
Free Guide to Canceling Your Insurance Policy →
Consider someone who typically earns $100,000 annually but takes a sabbatical year where they earn only $30,000. If they're planning to sell appreciated assets, that low-income year is valuable. In 2024, a single filer can have up to roughly $47,000 in long-term capital gains while staying in the 15% bracket. In a year where you only earn $30,000, selling $17,000 of long-term capital gains might push you only slightly into the 15% bracket, whereas selling the same amount in your normal $100,000 income year would be fully taxed at 15%. The difference might seem small, but on larger portfolios it adds up.
This strategy also applies to major life changes. If you're switching jobs and will have a gap in income, that gap year might be perfect for realizing gains. If you're retiring and your income drops, your retirement's first few years might offer lower tax rates on capital gains. Some people plan large asset sales to happen in the year they retire, specifically because their income is lower that year.
The opposite strategy works too: if you know you're having an unusually high-income year, you might defer selling appreciated assets to the following year when your income returns to normal. A freelancer with a windfall project, a business owner with a big sale, or someone with a one-time bonus might benefit from pushing their investment sales into the next calendar year.
State taxes compound this strategy. If you're moving between states, the timing of your sale matters. Some people time their investment sales to happen after they've moved to a no-capital-gains-tax state, avoiding state taxes entirely on the gains. However, this only works if you've actually established residency in the new state; you can't just claim to be moving.
Takeaway: Major income changes (retirement, career transition, sabb
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.