
What's in this deep dive
- What capital gains tax actually taxes
- Short-term versus long-term: the line that decides your rate
- The short-term capital gains rates: your ordinary income brackets
- The long-term capital gains rates: 0, 15, and 20 percent
- The income thresholds for the 0, 15, and 20 percent long-term rates
- How the one-year holding period is counted
- Calculating your gain: cost basis, proceeds, and the subtraction that matters
- Reinvested dividends and the cost-basis trap
- Capital losses and how they offset gains
- The ordinary-income offset and carrying a loss forward
- The net investment income surtax on capital gains
- State capital gains taxes: the layer federal numbers ignore
- Capital gains inside tax-advantaged accounts
- The home-sale exclusion wrinkle
- Mutual fund and ETF capital gains distributions
- Wash sales and tax-loss harvesting, kept general
- The effective rate: where one dollar of a long-term gain goes
- A worked example: one investor, three incomes
- Common capital-gains-tax mistakes
- How this ties into your broader tax picture
- The bottom line
Short answer: Capital gains tax depends almost entirely on one fact: how long you held the asset. Sell within one year and the gain is short-term, taxed at your regular income rate, commonly 10 to 37 percent. Hold more than one year and the gain is long-term, taxed at 0, 15, or 20 percent based on your income. The same dollar of profit can face a very different bill depending only on the calendar, which is why the holding period is the single most consequential date in this entire topic.
Capital gains tax sounds like it should have one number attached to it, but it does not, because the tax code asks a question before it asks anything else: how long did you own this. That single question sorts every gain into one of two very different tax treatments, and the gap between them is often larger than the gap between owning the winning stock and the losing one. A trade held for eleven months and a trade held for thirteen months can produce an identical dollar profit and a dramatically different tax bill, purely on timing.
This deep dive works the whole mechanism: what counts as a capital gain in the first place, the short-term rates that mirror your paycheck’s tax brackets, the long-term rates of 0, 15, and 20 percent and the income thresholds that gate them, exactly how the one-year holding period is counted, how to calculate the gain itself from cost basis and proceeds, how losses offset gains, and the account, state, and home-sale wrinkles that change the final number. It sits alongside our breakdown of how dividend income is taxed, which covers the sibling question of payouts rather than sales. Bring your own numbers to the companion below or our calculator as you read. Every rate, threshold, and dollar figure here is illustrative, not a filing instruction, and not tax advice.
Key takeaways
- Capital gains tax turns on one fact: the holding period. One year or less is short-term, taxed at your regular income rate; more than one year is long-term, taxed at 0, 15, or 20 percent.
- The gap between the two treatments is the whole game. The same illustrative $10,000 gain can owe roughly $2,400 short-term at a 24 percent ordinary rate, or about $1,500 long-term at 15 percent.
- Long-term gains get a real 0 percent band, gated by your total taxable income and filing status, the same mechanism that shelters qualified dividends.
- Capital losses offset capital gains first, then up to a commonly cited limit of ordinary income, with any excess carried forward to future years.
- Account location changes everything: gains inside a traditional IRA or 401(k) are deferred, gains inside a Roth are never taxed, and only a taxable brokerage account faces the rules in this article.
What capital gains tax actually taxes
A capital gain is the profit you realize when you sell an asset for more than you paid for it, and the tax only applies to that profit, never to the full sale price. Sell a stock you bought for $4,000 for $9,000 and the capital gain is the $5,000 difference, not the $9,000 you received. This distinction matters because a surprising number of people worry about the tax on their total proceeds when the actual taxable amount is only the gain layered on top of what they already owned.
The tax applies broadly across the assets most investors hold: individual stocks, mutual funds, exchange-traded funds, bonds, real estate beyond a primary residence, cryptocurrency held as an investment, and other investment property. It does not apply until you actually sell, which is the reason an unsold position with a large paper gain owes nothing yet; the tax event is the sale, not the appreciation sitting unrealized on a statement. That single rule, no tax until a sale, is also what makes the timing decisions in this article possible to control in the first place.
This is also why a brokerage statement showing an account up sharply for the year does not, by itself, mean a tax bill is coming. A portfolio can double in value on paper and generate zero capital gains tax for the year if nothing inside it was sold. The tax only arrives the moment a position is converted from a holding into cash or into a different asset, which is the sale itself. Investors who confuse a rising balance with a taxable event sometimes sell earlier than necessary just to lock in a gain they were never required to realize yet, which is one more reason understanding the mechanism matters before acting on it.
Crypto and other newer asset types generally follow the same short-term versus long-term mechanism described in this article when held as an investment rather than used in a transaction, though the record-keeping burden is often heavier, since every trade, swap, or disposal can be its own taxable event with its own cost basis to track. The core logic, gain equals proceeds minus basis, and the holding period decides the rate, still applies; what differs is how much harder the bookkeeping becomes without a single consolidated statement doing the tracking for you the way a traditional brokerage does.
Short-term versus long-term: the line that decides your rate
Every capital gain gets sorted into one of two buckets the instant you sell, and the sort is based entirely on how long you owned the asset. A short-term capital gain comes from an asset held for one year or less. A long-term capital gain comes from an asset held for more than one year. Nothing else about the asset, not its type, not its size, not how it gained value, affects which bucket it falls into.
The reason this single distinction carries so much weight is that the two buckets are taxed on completely different schedules. Short-term gains ride the same tax ladder that taxes your paycheck, which climbs considerably higher at the top. Long-term gains ride a separate, friendlier ladder capped at 20 percent, with a 0 percent band at the bottom that short-term gains never get. An illustrative $10,000 gain taxed at a 24 percent ordinary rate short-term costs $2,400; the identical $10,000 gain taxed at 15 percent long-term costs $1,500, a $900 difference created by nothing except patience.
The short-term capital gains rates: your ordinary income brackets
Short-term capital gains have no dedicated rate table of their own. They are simply added to your other taxable income for the year and taxed at whatever marginal rate that total income reaches, the identical ladder used for wages, self-employment income, and ordinary dividends. If your top bracket is 22 percent, a short-term gain is taxed at 22 percent; if your income is high enough to reach the 35 percent bracket, the short-term gain is taxed at 35 percent on the portion that falls in that band.
This is the least forgiving part of the whole topic, because there is no 0 percent band waiting at the bottom and no cap anywhere near 20 percent. A trader who buys and sells frequently, never holding past the one-year line, pays the full ordinary rate on every winning trade, year after year, with none of the relief the long-term schedule offers. The short-term brackets commonly cited run from around 10 percent at the lowest incomes up to 37 percent at the highest, with several bands in between, and they are the exact same brackets that would tax an equivalent raise at your job.
The long-term capital gains rates: 0, 15, and 20 percent
Clear the one-year line and the picture changes entirely. Long-term capital gains are taxed on a separate, three-rung schedule: 0, 15, or 20 percent, based on your total taxable income and filing status. The chart below shows the three rungs as rates, and like the dividend tax schedule it mirrors, the top rung is meant to be empty.
Same $10,000 gain, taxed two ways
Illustrative federal tax in dollars: short-term at an illustrative 24 percent ordinary bracket versus long-term at the 15 percent band. Bar width scales to the larger figure.
Identical $10,000 gain, identical investor, the only difference is a date on the calendar. Clearing the one-year holding period here is worth $900 of illustrative federal tax, before any state tax is added.
Read the long-term rungs the way the code intends them. The 0 percent band covers lower incomes and is explained in the next section. The 15 percent band is the wide middle that captures most investing households with ordinary jobs and a brokerage account, so if that describes you, 15 percent is the likely rate on a long-term gain. The 20 percent band only engages at high income, illustratively above the mid-$500,000s of taxable income for a single filer, so most readers will never see it.
The income thresholds for the 0, 15, and 20 percent long-term rates
The 0 percent long-term rate is real, and it works the same way the 0 percent qualified dividend rate does: it is not a fixed dollar allowance on your gain, it is a ceiling on your total taxable income, with your other income counted first. Illustratively, and using round numbers because the exact figures adjust for inflation most years, the ceiling for the 0 percent band sits near $48,000 of taxable income for a single filer and near $96,000 for a married couple filing jointly, with head of household landing between the two.
The practical mechanics mirror the stacking rule covered in our note on dividend income tax: your ordinary income fills the lower part of the ladder first, and only the portion of your long-term gain that still lands below the threshold is taxed at 0 percent. A retiree with modest other income can realize a meaningful long-term gain at 0 percent federal tax; the same retiree, once other income climbs past the threshold, pays 15 percent on the identical gain. The 20 percent band sits much further up the ladder and applies only once taxable income clears a second, higher threshold, illustratively in the mid-$500,000s for a single filer and roughly double that for a married couple filing jointly.
How the one-year holding period is counted
Because the entire short-term versus long-term distinction rests on a single date, it is worth being precise about how that date is counted. The clock starts the day after you acquire the asset, not the day of purchase itself, and it runs until the day you sell. To reach long-term status you generally need to have held the asset for more than one year, which means the exact one-year anniversary of your purchase is not sufficient on its own; you need at least one additional day beyond it.
Selling even a single day too early reclassifies the entire gain as short-term, with no partial credit for the eleven months and twenty-nine days you did hold it. This is a trap worth watching for deliberately around any sale near the anniversary of a purchase, especially for a large position where the rate difference could be thousands of dollars. Most brokerages display the acquisition date and flag whether a lot is short-term or long-term directly on your account, and checking that flag before confirming a sale costs nothing and can save a great deal.
Calculating your gain: cost basis, proceeds, and the subtraction that matters
The capital gain itself is simply your proceeds from the sale minus your cost basis, and getting the cost basis right is where most calculation mistakes happen. Cost basis starts as what you originally paid for the asset, including any commissions or fees at purchase, but it is not necessarily frozen there. Reinvested dividends, additional purchases at different prices, stock splits, and certain corporate actions can all adjust your basis over the life of the position.
If you bought shares in several separate purchases at different prices, known as multiple lots, you may also be able to choose which specific lot you are selling when you place a sell order, which can meaningfully change both the size of the gain and whether it qualifies as short-term or long-term. Selling the highest-cost lot first generally produces a smaller taxable gain than selling the lowest-cost lot, and selling an older lot can be the difference between short-term and long-term treatment entirely. Your brokerage statement should report your cost basis, but it is worth confirming it against your own records, especially for older positions.
Work a small illustrative example to see the subtraction in practice. Suppose you bought 100 shares at $40 each, paying a $10 commission, for a total cost basis of $4,010. Years later you sell all 100 shares at $90 each, receiving $9,000 before a $10 selling commission, for net proceeds of $8,990. The capital gain is $8,990 minus $4,010, or $4,980, and that $4,980 figure, not the $9,000 sale price and not the $8,990 in proceeds, is the number that gets sorted into the short-term or long-term bucket and taxed. Commissions and fees on both ends of the trade quietly reduce the taxable gain, which is one small reason keeping the trade confirmations is worth the minor hassle.
Reinvested dividends and the cost-basis trap
A specific cost-basis mistake deserves its own mention because it is common and expensive: forgetting that reinvested dividends raise your cost basis. Every time a dividend is automatically reinvested into more shares rather than paid out in cash, you are effectively buying more shares with money that was already taxed as dividend income in that year. Those reinvested dollars become part of your cost basis.
Our deep dive on whether reinvested dividends are taxed twice covers this in full, but the short version matters here directly: an investor who forgets to add reinvested dividends into their cost basis overstates their gain when they eventually sell, and ends up paying capital gains tax on money that was already taxed once as dividend income the year it was reinvested. This is one of the most common and entirely avoidable overpayments in the whole capital gains picture, and it grows larger the longer a position has been automatically reinvesting.
Capital losses and how they offset gains
Not every sale produces a gain, and the tax code lets realized losses work in your favor. Capital losses are first matched against capital gains of the same type: short-term losses offset short-term gains, and long-term losses offset long-term gains. If you have more losses than gains within a category, the leftover loss can then offset gains in the other category, so a large long-term loss can reduce a short-term gain and vice versa.
This matching matters for the rate you ultimately pay, because offsetting a short-term gain, taxed at your higher ordinary rate, is generally more valuable per dollar of loss than offsetting a long-term gain already taxed at the lower schedule. Tax-aware investors sometimes deliberately realize losses to offset gains that would otherwise be taxed at the higher short-term rate, a practice our note on tax-loss harvesting covers in depth, including the wash-sale rule that can disallow a loss if you repurchase a substantially identical asset too soon, explained fully in our piece on what a wash sale is.
The ordinary-income offset and carrying a loss forward
If your total capital losses for the year exceed your total capital gains, the excess does not simply vanish. A commonly cited rule allows a portion of that excess loss, often cited around $3,000 for most filers, to offset ordinary income like wages in the same year, directly lowering your taxable income rather than just your investment income. Any loss beyond that annual limit is not lost either; it carries forward to future tax years, where it can offset future gains or, again, a portion of ordinary income, for as long as it takes to use it up.
This carryforward feature is genuinely valuable in a down market, because a large realized loss in one bad year can shelter gains for several years afterward. The exact limit and the mechanics of carrying a loss forward are specific tax-code provisions that are worth confirming for the current year rather than assumed, especially since the figure has stayed fixed in nominal terms for a long stretch even as other thresholds have risen with inflation, which quietly shrinks its real value over time.
The net investment income surtax on capital gains
Above the regular capital gains schedule sits a separate charge for higher earners: the net investment income tax, an additional 3.8 percent surtax that can apply to capital gains, dividends, and interest once your income crosses a threshold, illustratively around $200,000 for a single filer and $250,000 for a married couple filing jointly. The surtax stacks on top of whatever capital gains rate already applies rather than replacing it.
So a high earner paying the 15 percent long-term rate can face an effective 18.8 percent once the surtax applies, and someone already at the 20 percent long-term band can reach 23.8 percent. Because these thresholds are not indexed to inflation the way the regular capital gains brackets are, more households drift into range over time even without a real increase in income. It is an edge case for most readers building a modest portfolio, but a real cost for anyone realizing a large gain, such as from selling a concentrated stock position or an investment property.
State capital gains taxes: the layer federal numbers ignore
Everything discussed to this point is federal, and the federal 0, 15, and 20 percent long-term rates apply only to your federal return. States set their own rules entirely, and many of them tax capital gains as ordinary income with no special long-term rate at all, meaning a gain taxed at a friendly 0 percent federally can still owe a real state tax bill.
The range across states is wide. A handful of states charge no personal income tax whatsoever, so residents there keep the entire federal-after amount, while high-tax states can add several percentage points on top of the federal bill, sometimes approaching double digits on their own. Two investors with identical federal situations and identical gains can therefore keep meaningfully different amounts purely based on where they live, which is why any serious comparison of after-tax outcomes needs to include the state layer rather than stopping at the federal numbers alone.
Residency itself can also be more involved than it sounds, since states have their own rules for determining who counts as a resident for tax purposes, and moving during the same year a large gain is realized can raise questions about which state has the right to tax it. Someone planning a large, discretionary sale, such as liquidating a concentrated position built up over a career, sometimes times the sale around a planned relocation for exactly this reason, though the rules governing residency changes are specific enough, and consequential enough, that this is squarely a situation for a tax professional rather than a do-it-yourself calculation.
Capital gains inside tax-advantaged accounts
The account holding an asset can make the entire capital gains discussion irrelevant, and this is one of the most powerful levers an investor controls. Inside a traditional 401(k) or traditional IRA, buying and selling generates no capital gains tax while the money remains in the account; you can trade as often as you like with zero tax consequence from the sales themselves, and the eventual withdrawal is taxed as ordinary income regardless of how the growth was earned.
Inside a Roth IRA or Roth 401(k), the shelter goes further still: qualified withdrawals in retirement are not taxed at all, meaning capital gains earned and realized inside the account over decades are never taxed on the way out either. Only a standard taxable brokerage account is subject to the short-term and long-term rules covered in this article, which is a strong reason many investors deliberately place their most actively traded or highest-growth holdings inside a sheltered account, discussed in our breakdown of Roth IRA versus 401(k).
The home-sale exclusion wrinkle
Real estate, specifically a primary home, carries a notable exception worth flagging even though it sits slightly outside the core stock-and-fund focus of this article. Selling a home you have lived in can trigger capital gains tax, but a well known exclusion can shelter a meaningful portion of the gain for homeowners who meet ownership and residency tests, commonly requiring the home to have been your primary residence for at least two of the five years before the sale.
The exclusion amount differs by filing status, and the specifics around partial exclusions for a shortened ownership period, mixed business and personal use, or a prior exclusion claimed on another home within a certain number of years, are detailed enough that this article will not attempt to state exact figures. What matters for the general framework is that a primary home sale is not automatically taxed the same way a stock sale is, and the exclusion can eliminate the tax on a home sale entirely for many ordinary homeowners, which is worth confirming with a tax professional before and after a sale rather than assumed.
Mutual fund and ETF capital gains distributions
A capital gain can also reach you without you selling anything at all, which surprises many fund investors the first time it happens. Mutual funds, and less commonly exchange-traded funds, periodically distribute realized capital gains from trading done inside the fund to all shareholders, even those who never sold a single share of the fund itself. These distributions are typically split into short-term and long-term portions and taxed accordingly, exactly as if you had made the trades yourself.
Our comparison of index funds versus mutual funds touches on why index-style funds, which trade less internally, tend to generate smaller capital gains distributions than actively managed funds that buy and sell more frequently inside the portfolio. The practical takeaway is that a fund held in a taxable account can create a tax bill in a year you did not sell anything, purely from the fund’s own internal trading, which is one more reason the account and the specific fund both matter to your eventual tax outcome.
Wash sales and tax-loss harvesting, kept general
Investors managing capital gains deliberately sometimes realize losses to offset gains elsewhere in the portfolio, a practice generally called tax-loss harvesting. This article keeps the technique at the level of general principle, because its fit depends entirely on your specific holdings and situation, and the full mechanics live in our dedicated piece on how to do tax-loss harvesting.
The one rule worth flagging here is the wash-sale rule, which can disallow a loss for tax purposes if you buy a substantially identical asset within a window around the sale, commonly understood as 30 days before or after. Triggering it does not destroy the loss permanently in most cases; it typically defers the loss by adding it to the cost basis of the replacement shares, but it does prevent you from claiming it in the year you intended. Our explainer on what a wash sale is walks through exactly how the window and the disallowance work.
The effective rate: where one dollar of a long-term gain goes
The bracket you are nominally in is rarely the rate you actually pay, because your gain can straddle bands and your state adds its own layer on top. Your effective rate on a gain is the total tax divided by the gain itself, and it is almost always a blend rather than a single clean number. The chart below traces one illustrative long-term gain dollar to its final destination.
Where one dollar of a long-term gain goes, illustrative mid-income case
A long-term gain taxed at 15 percent federal plus an illustrative 4 percent state. Segments sum to 100.
This dollar assumes the whole gain sits in the 15 percent federal band and a state that taxes it at 4 percent. Shift some of the gain into the 0 percent room, or sell in a no-income-tax state, and the kept slice grows toward the full dollar.
Compare that kept slice against the short-term alternative from the earlier chart: at a 24 percent ordinary rate with the same illustrative 4 percent state tax, the kept share falls closer to 72 cents on the dollar instead of 81. The nine-cent gap, repeated across a meaningful gain, is the entire financial case for clearing the one-year line whenever a sale can reasonably wait that long. Run your own rate, income, and state assumption through the calculator attached to this article to see your own kept share.
A worked example: one investor, three incomes
Nothing makes the mechanism concrete like watching one gain meet three different lives. Take a single filer who realizes a $24,000 long-term capital gain in a taxable account, with an illustrative 0 percent ceiling near $48,000 of taxable income. Hold the gain fixed and change only the investor’s other income.
In the low-income case, other income is $25,000. Combined with the gain, total taxable income is $49,000, just over the $48,000 ceiling, so $23,000 of the gain fits under the 0 percent band and only $1,000 is taxed at 15 percent, for an illustrative federal bill of $150. In the middle case, other income is $44,000, leaving only $4,000 of room under the ceiling; so $4,000 is taxed at 0 percent and $20,000 at 15 percent, an illustrative $3,000 federal bill. In the high case, other income is $260,000, which uses up all the 0 percent room and crosses the net investment income surtax threshold; the full $24,000 is taxed at 15 percent plus the 3.8 percent surtax, an illustrative $4,512, an effective rate near 18.8 percent.
Three lives, one gain: $150, $3,000, and $4,512 of federal tax on the identical $24,000. Nothing about the investment changed in any of the three cases; what moved was the room left beneath the threshold before the gain arrived. Run your own three scenarios through the calculator by holding your gain steady and sliding the other-income input.
Common capital-gains-tax mistakes
The recurring errors, collected here for prevention rather than autopsy.
- Selling just before the one-year mark. A sale even a day short of the long-term line reclassifies the entire gain as short-term, often at a materially higher rate, for no benefit beyond a few impatient days.
- Forgetting reinvested dividends raise cost basis. Omitting them overstates the gain and taxes money that was already taxed once as dividend income the year it reinvested.
- Ignoring account location. Actively traded positions sitting in a taxable account generate the exact tax this article describes; the same trading inside a sheltered account would not.
- Not matching losses to the right category. Short-term losses are generally more valuable against short-term gains first, since the rate they offset is higher; haphazard matching can waste that value.
- Triggering a wash sale by accident. Repurchasing a substantially identical holding too soon after a loss, including inside a different account in the same household, can disallow the loss you intended to claim.
- Planning federal-only. Many states tax capital gains as ordinary income regardless of the federal long-term rate, so a 0 percent federal gain is not always a 0 percent gain overall.
- Assuming a home sale is automatically tax-free. The home-sale exclusion has real ownership and residency conditions, and large gains or partial years can still owe tax even with the exclusion applied.
Each of these mistakes comes from treating one piece of the mechanism as the whole picture, and every one is avoidable with a close look at the actual dates and numbers involved.
How this ties into your broader tax picture
This article’s mechanism connects directly to the dividend side of the same question covered in our piece on how dividend income is taxed: both use the identical 0, 15, and 20 percent long-term schedule, both are gated by the same kind of income threshold, and both stack on top of your ordinary income the same way. An investor who understands one understands most of the other, since the two are really the same brackets applied to two different kinds of investment income.
It also connects to the account-sequencing framework in our comparison of a Roth IRA versus a 401(k): where you hold an asset decides whether this entire article even applies to a given sale. A portfolio built with tax location in mind, active trading and high-turnover holdings sheltered, long-term buy-and-hold positions in taxable accounts, tends to generate a smaller capital gains tax bill than an identical portfolio assembled without thinking about where each piece sits. The arithmetic in this piece is the reason that placement decision is worth making deliberately rather than by accident.
The bottom line
Capital gains tax is really two different tax systems wearing one name, and the holding period is the switch between them. Hold an asset one year or less and the gain rides your regular income tax ladder, with rates that can reach into the thirties and no 0 percent band at the bottom. Hold it more than one year and the gain drops onto the friendlier long-term schedule of 0, 15, or 20 percent, the same structure that shelters qualified dividends. Layer on losses that can offset gains and a limited amount of ordinary income, the net investment income surtax at high incomes, state taxes the federal numbers ignore, the account wrapper that can erase the question entirely, and a home-sale exclusion that works differently from everything else, and the effective rate on a given sale can land anywhere from zero to the high twenties. The investors who keep the most of a gain are rarely the ones who timed the market best; they are the ones who knew which bucket their sale would fall into before they placed the order. All of it is illustrative arithmetic, and all of it deserves a professional’s eyes before it touches a real return.
Dividora publishes independent analysis for readers who prefer to check the math themselves, and this piece is precisely that: education, not tax, financial, or investment advice, and not a recommendation of any security, fund, account type, or strategy. Every rate, bracket, threshold, and dollar figure here is an illustrative planning device drawn from commonly cited structures, not a statement of current-year law; tax thresholds adjust most years, state rules vary widely, and individual circumstances differ enough that general figures can mislead. Nothing above accounts for your specific deductions, credits, residency, prior transactions, or filing details. Before acting on any of it, put your own numbers and the current-year rules in front of a qualified tax professional and let them tell you where your situation departs from the illustration.
Frequently asked questions
What is the difference between short-term and long-term capital gains tax?
Short-term capital gains come from an asset held one year or less and are taxed at your regular income tax rate, the same ladder that taxes wages. Long-term capital gains come from an asset held more than one year and are taxed at the lower 0, 15, or 20 percent rates. The gap between the two can be large: an illustrative gain taxed at a 24 percent ordinary rate short-term costs far more than the same gain taxed at 15 percent long-term. The only thing that changes the outcome is how long you held the asset before selling, not what the asset is or how much it gained.
What are the long-term capital gains tax rates?
Long-term capital gains are taxed at 0, 15, or 20 percent, using brackets based on your total taxable income and filing status rather than a flat rate. As an illustrative example, a single filer with taxable income under roughly $48,000 can have long-term gains taxed at 0 percent, a wide middle band is taxed at 15 percent, and only high incomes, illustratively above the mid-$500,000s for a single filer, reach the 20 percent rate. These thresholds are indexed to inflation and adjust most years, so treat any specific number as illustrative and confirm the current figures before relying on them.
What are the short-term capital gains tax rates?
Short-term capital gains have no rate schedule of their own. They are added to your other income and taxed at your regular marginal income tax rate, the same brackets that tax a paycheck, which commonly run from around 10 percent to 37 percent depending on total income. There is no 0 percent band for short-term gains the way there is for long-term gains. A gain that would be taxed at 15 percent if held long-term can be taxed at double that rate or more if sold too soon, which is the entire reason the holding period matters so much.
How is the holding period for capital gains counted?
The holding period starts the day after you acquire the asset and ends on the day you sell it. To qualify for long-term treatment, you generally need to have held the asset for more than one year, meaning the one-year anniversary of the purchase is not enough on its own; you need at least one additional day past it. Selling even a single day short of that mark reclassifies the entire gain as short-term, taxed at your regular income rate instead of the lower long-term brackets. Brokerages typically track and report this for you, but it is worth confirming on your own statement before a sale near the line.
How do capital losses offset capital gains?
Capital losses are first matched against capital gains of the same type, short-term losses against short-term gains and long-term losses against long-term gains, and any leftover loss in one category can offset gains in the other. If losses exceed all your gains for the year, a commonly cited limit allows a portion of the excess, often cited around $3,000, to offset ordinary income like wages, with any remainder carried forward to future tax years. The exact limit and carryforward mechanics are set by the tax code and worth confirming for the current year rather than assumed from memory.
Do you pay capital gains tax on investments in a 401(k) or IRA?
Inside a traditional 401(k) or traditional IRA, buying and selling investments triggers no capital gains tax at all while the money stays in the account; everything is deferred until you withdraw, at which point withdrawals are taxed as ordinary income regardless of whether the growth came from gains, dividends, or interest. Inside a Roth IRA or Roth 401(k), qualified withdrawals in retirement are not taxed at all, including any capital gains earned along the way. Only in a regular taxable brokerage account do the short-term and long-term capital gains rules discussed in this article actually apply.
Is there a capital gains tax on selling a primary home?
Selling a primary home can trigger capital gains tax, but a well known exclusion can shelter a meaningful portion of the gain for homeowners who meet ownership and residency tests, commonly requiring you to have owned and lived in the home as your primary residence for at least two of the five years before the sale. The exclusion amount differs by filing status and the exact rules around partial exclusions, business use, and prior claims are detailed enough that a specific sale is worth running past a tax professional rather than assuming the exclusion automatically applies in full.
Do you pay state tax on capital gains?
In most states, yes. The federal 0, 15, and 20 percent long-term rates apply only to your federal return; states set their own rules, and many tax capital gains as ordinary income with no special long-term rate at all. A handful of states charge no personal income tax, so residents there owe nothing at the state level, while high-tax states can add several percentage points on top of the federal bill. Because state treatment varies so widely, the federal math in this article is only part of the real number you would owe.
Get a compounding breakdown by email
Tell us about your portfolio and what you want it to do, and we will email you a breakdown of how it compounds at different contribution rates and returns. We are not an advisor, a broker or an RIA, we do not manage money, and we will not pass your details to anyone.
