
What's in this walkthrough
- What capital gains tax actually taxes
- The one-year line: short-term versus long-term
- How short-term capital gains tax is calculated
- How long-term capital gains tax is calculated
- Where that $1,800 actually goes
- Why the rate gap exists at all
- How your total income decides your long-term rate
- Short-term versus long-term: a side-by-side comparison
- A worked example: one investor, two sale dates
- Can you actually avoid capital gains tax
- Capital gains tax and your other income
- How capital losses offset gains
- The wash sale rule: a harvesting pitfall
- Picking which shares you sell: specific identification versus default methods
- Fund distributions: capital gains tax without selling anything yourself
- The step-up in basis on inherited investments
- State taxes on capital gains
- When holding longer isn’t actually worth it
- Capital gains versus qualified dividends: a common mix-up
- Estimated taxes after a large, unplanned gain
- Common mistakes with capital gains tax
- Using the calculator to compare your own sale
- Keeping your own records straight
- The bottom line
Short answer: How long you hold an investment before selling decides which capital gains tax rate applies. Sell within a year or less and the gain is generally taxed as ordinary income, at your regular marginal rate. Hold for more than a year and the gain is generally taxed at separate, commonly lower long-term capital gains rates. The same gain, taxed two different ways, purely based on the calendar.
Capital gains tax confuses people less because the concept is complicated and more because the same word, gain, hides two genuinely different tax outcomes depending on a single fact: how long you held the investment before selling it. A 20,000 dollar profit on a stock sold after eleven months and the identical 20,000 dollar profit on the same stock sold after thirteen months can land on very different tax bills, even though nothing about the investment itself changed in those two extra months.
This walkthrough works through both sides of that distinction: how short-term and long-term capital gains are each calculated, why the holding period is the single variable that decides which applies, what the rate gap actually costs or saves on a real number, and the honest limits of what timing alone can fix. Every rate and dollar figure here is illustrative, built to show the shape of the calculation, since actual tax brackets and rates are set by current law and change over time, so confirm the present figures before filing. Put your own gain and rates into the calculator as you read to see your own numbers.
Key takeaways
- Short-term capital gains, from an investment held a year or less, are taxed as ordinary income at your regular marginal tax rate, with no separate preferential rate.
- Long-term capital gains, from an investment held more than a year, are taxed at a separate, commonly lower schedule of rates.
- The holding period threshold is strict: selling on or before the one-year anniversary of the purchase generally still counts as short-term.
- The tax is triggered by a realized sale, not by an unrealized gain sitting on a statement while you continue to hold the investment.
- Timing a sale to cross from short-term to long-term treatment is one of the few capital gains decisions entirely within your own control.
What capital gains tax actually taxes
Capital gains tax applies to the profit from selling an investment for more than you paid for it, not to the investment’s value while you continue to hold it. The gain itself is calculated the same way regardless of how long you held the position: the sale price minus your cost basis, generally what you originally paid plus certain adjustments. What changes based on timing is not the size of the gain, only the rate the tax code applies to it.
This distinction between a realized and an unrealized gain matters more than it first appears. A portfolio that has grown substantially on paper has not yet triggered any capital gains tax, however large that paper gain looks on a statement, because nothing has been sold. The tax event, and the holding-period clock that decides which rate applies, both begin only on the day you actually sell.
The one-year line: short-term versus long-term
The entire distinction this walkthrough covers turns on a single comparison: the date you bought the investment against the date you sold it. Hold for a year or less and the gain is generally classified as short-term. Hold for more than a year, meaning the holding period has to exceed 365 days, not simply reach it, and the gain is generally classified as long-term. Selling on the exact one-year anniversary of the purchase generally still counts as short-term, which catches people out who estimate the date rather than checking it precisely.
That single date comparison is the whole mechanism. It does not matter how the investment performed along the way, whether you added to the position partway through, or how large the eventual gain turned out to be. What matters for rate purposes is only the number of days between the purchase date of the specific shares or units being sold and the sale date.
How short-term capital gains tax is calculated
A short-term gain gets no special treatment. It is simply added to your other ordinary income for the year, such as wages, and taxed at your regular marginal income tax rate, following the same bracket structure that applies to a paycheck. There is no separate, preferential schedule for a short-term capital gain, which is the reason short-term rates are commonly higher than long-term rates for the same taxpayer: they are, structurally, just ordinary income tax under a different label.
On an illustrative 20,000 dollar short-term gain taxed at a 24 percent marginal rate, the tax owed is about 4,800 dollars, leaving roughly 15,200 dollars after tax. The marginal rate that applies depends on your total taxable income for the year, including the gain itself, which can sometimes push a large gain partly into a higher bracket than your regular income alone would reach.
How long-term capital gains tax is calculated
A long-term gain is taxed using a separate schedule of rates, commonly lower than ordinary income tax rates, with the specific rate tier depending on your total taxable income for the year rather than being a single flat number for everyone. On the identical illustrative 20,000 dollar gain, a long-term rate of 15 percent produces a tax bill of about 3,000 dollars, leaving roughly 17,000 dollars after tax, compared with about 15,200 dollars after tax on the same gain taxed short-term at 24 percent.
An illustrative $20,000 gain, taxed short-term versus long-term
At an illustrative 24 percent short-term marginal rate versus a 15 percent long-term rate. Illustrative only, confirm current rates before filing.
On this illustrative $20,000 gain, the long-term rate costs about $1,800 less than the short-term rate, a saving of 37.5 percent against the short-term tax bill, purely from the holding period crossing the one-year line.
That roughly 1,800 dollar gap exists for one reason only: the calendar. Nothing about the investment, the amount invested, or the eventual gain changed between the short-term and long-term versions of this example. Only the number of days held before selling did.
Where that $1,800 actually goes
It helps to see the same comparison as a simple split of the original 20,000 dollar gain between what is kept and what is paid in tax, under each treatment.
An illustrative $20,000 gain, kept versus paid in tax, by holding period
Short-term at an illustrative 24 percent rate versus long-term at an illustrative 15 percent rate. Each bar sums to the full $20,000 gain.
The gain itself is identical in both bars. Only the tax rate, driven entirely by the holding period, decides how the same $20,000 splits between what you keep and what you pay.
Nine percentage points of rate difference, 24 percent against 15 percent in this illustration, translate directly into nine percentage points more of the gain kept, which is the whole case for paying attention to the holding period before selling a position that is close to the one-year line.
Why the rate gap exists at all
The policy reasoning behind taxing long-term gains at a lower rate than short-term gains is generally framed around encouraging longer holding periods and patient, long-term investment over frequent short-term trading. Whatever the merits of that reasoning, the practical effect for an individual investor is the same regardless of the justification: the tax code rewards waiting, at least past the one-year line, and penalizes selling early relative to selling after that point.
This is also why short-term capital gains are sometimes described as having no special rate at all rather than having a high rate. They are not taxed punitively; they are simply taxed exactly like a paycheck would be, which happens to be a higher rate than the separate long-term schedule for most taxpayers at most income levels.
How your total income decides your long-term rate
Long-term capital gains rates are tiered based on your total taxable income for the year, which includes the gain itself alongside your other income, rather than being a single flat rate for every taxpayer. This means the same size of gain can land in a different long-term rate tier depending on what else is happening in your tax year, such as a particularly high-income year from a bonus or a business sale, or a particularly low-income year from reduced work or retirement.
This income sensitivity is also why some long-term planning strategies focus on timing a sale for a year when total income happens to be lower, such as a gap year between jobs or an early year of retirement before other income sources begin, rather than purely on crossing the one-year holding threshold. Both levers, the holding period and the income tier, work in the same direction: more patience and lower total income in the sale year both tend to reduce the rate applied to a long-term gain.
Short-term versus long-term: a side-by-side comparison
| Feature | Short-term gain | Long-term gain |
|---|---|---|
| Holding period | One year or less | More than one year |
| Tax rate used | Your ordinary income tax rate | A separate, commonly lower rate schedule |
| Rate depends on | Your regular income tax bracket | Your total taxable income, tiered separately |
| Typical outcome | Generally more tax on the same gain | Generally less tax on the same gain |
Read this table as a map of the mechanism, not as a universal promise that long-term always costs less in every individual case, since actual brackets, rates, and your personal tax situation all affect the final number. The structural pattern it describes, that crossing the one-year line generally shifts a gain onto a more favorable schedule, holds broadly, but your own figures belong in the calculator, not assumed from a table.
A worked example: one investor, two sale dates
Make it concrete with an illustrative investor, Dana, who bought 10,000 dollars of a stock and watched it grow to 30,000 dollars, an illustrative 20,000 dollar gain. If Dana sells eleven months after the purchase, the gain is short-term, and at an illustrative 24 percent marginal rate, the tax owed is about 4,800 dollars, leaving roughly 25,200 dollars total after the sale.
If Dana instead waits two more months and sells at thirteen months, the identical 20,000 dollar gain is now long-term, and at an illustrative 15 percent rate, the tax owed is about 3,000 dollars, leaving roughly 27,000 dollars total after the sale. The stock did not need to move at all in those two months for Dana to come out roughly 1,800 dollars ahead, purely by letting the calendar finish the job the holding period started. Nothing here is a suggestion to hold a specific position for tax reasons regardless of its investment merit; it is an illustration of what the rate gap is actually worth in dollar terms on one real-sized gain.
Can you actually avoid capital gains tax
Avoiding capital gains tax entirely is uncommon for a straightforward taxable sale, but there are several broadly available, legitimate ways to reduce it. The most direct is simply holding past the one-year line before selling, covered throughout this walkthrough. Tax-loss harvesting, selling a different, underperforming investment at a loss in the same year to offset a gain elsewhere, is another common approach, subject to its own rules about repurchasing a similar investment too soon.
Holding appreciated investments inside a tax-advantaged account, such as a 401(k) or an IRA, changes the tax treatment of the growth entirely, a comparison our walkthrough on taxable accounts versus retirement accounts covers directly. And for some taxpayers, simply having a lower total taxable income in the specific year of a sale, whether through timing a sale during a lower-income year or through other deductions, can shift a long-term gain into a lower rate tier. Every one of these carries its own eligibility rules and limits that change over time, so confirm the current rules with a tax professional before building a plan around any single strategy.
Capital gains tax and your other income
Because long-term rates are tiered by total taxable income and short-term gains are simply added to ordinary income, a capital gain never exists in isolation from the rest of your tax year. A large short-term gain can push you into a higher ordinary income bracket for that portion of income, and a large long-term gain, while taxed on its own separate schedule, still counts toward the total income figure that decides which long-term rate tier applies. Our walkthrough on how to fill out a W-4 covers how ordinary income withholding interacts with your overall tax picture, which a significant capital gain can disrupt if it is not planned for in advance.
This interaction is one of the more common surprises at tax filing time: an investor who sold a large, unplanned short-term gain mid-year and did not adjust withholding or make an estimated payment can end up owing considerably more than expected the following spring, not because the capital gains calculation itself was wrong, but because the gain pushed total income into territory the year’s withholding never accounted for.
How capital losses offset gains
Not every investment sale produces a profit, and a loss is not simply a disappointment to move past, it is a tax tool. Selling an investment for less than its cost basis generally produces a capital loss, which can offset a capital gain realized elsewhere in the same tax year, short-term losses offsetting short-term gains first and long-term losses offsetting long-term gains first, with any excess generally allowed to cross over between the two categories.
If losses exceed gains for the year, a limited amount is commonly allowed to offset ordinary income as well, with any remainder generally carried forward to offset gains in future years. This is the mechanism behind tax-loss harvesting, deliberately selling a position that is down to realize the loss, often while simultaneously reinvesting in a similar, though not identical, investment to maintain market exposure. The strategy is broadly legitimate and widely used, but it depends entirely on the specific current rules for how losses offset gains and carry forward, which change and should be confirmed before relying on a specific dollar figure.
The wash sale rule: a harvesting pitfall
Tax-loss harvesting has one well-known trap: selling an investment at a loss and then buying back the same or a substantially identical investment within a short window before or after the sale generally disallows the loss for current tax purposes under what is commonly called the wash sale rule. The loss is not gone forever in that case, it is generally added to the cost basis of the replacement shares, deferring its benefit rather than eliminating it, but the immediate tax offset you were counting on for that year disappears.
The practical lesson is to harvest a loss into a genuinely different, though similarly positioned, investment rather than an identical one, and to be careful about the timing of any automatic reinvestment, such as a dividend reinvestment plan, that could unintentionally trigger a repurchase inside the restricted window without you actively deciding to buy anything.
Picking which shares you sell: specific identification versus default methods
When a position was built through multiple purchases at different times and different prices, selling only part of it raises a question this walkthrough has touched on but not fully answered: which specific shares, with which specific purchase date and which specific cost basis, counted as sold? A default method, commonly selling the earliest purchased shares first, is applied automatically unless you specify otherwise, which can inadvertently trigger long-term treatment, short-term treatment, a larger gain, or a smaller one, depending on which lot happens to go first under the default rule.
Specific identification, naming the exact lot you want to sell at the time of the trade, hands you control over that outcome instead of leaving it to a default. An investor sitting on several lots of the same stock, some held over a year and some held under, can sometimes meaningfully change the tax outcome of a sale simply by choosing which lot to sell, without changing how many total shares are sold at all. Confirm with your brokerage how to specify a lot before the trade executes, since the choice generally cannot be made retroactively after the sale settles.
Fund distributions: capital gains tax without selling anything yourself
An investor who has never sold a single share of a mutual fund can still owe capital gains tax in a given year, because many funds are required to distribute realized gains from their own internal trading to shareholders annually, and those distributed gains are generally taxable to you even if you reinvested every dollar automatically back into more fund shares. This surprises people who assume that holding and never selling means no tax event is possible.
Whether a specific fund’s distribution is taxed as short-term or long-term depends on how long the fund itself held the underlying securities it sold, not on how long you personally held fund shares, which is a distinction worth understanding before assuming your own holding period is the only one that matters. This is also one of the quieter reasons index funds with low internal turnover are often favored in taxable accounts: less internal trading generally means fewer surprise distributions.
The step-up in basis on inherited investments
Inherited investments generally follow a different cost basis rule than ones you bought yourself. Rather than inheriting the original owner’s cost basis, the basis is commonly reset, or stepped up, to the investment’s value on the date of the original owner’s death, which can substantially reduce or even eliminate the taxable gain if the heir sells soon after inheriting. A stock originally bought for 10,000 dollars and worth 80,000 dollars at the time of death would generally give the heir a basis of about 80,000 dollars, not 10,000, so selling shortly after for close to that value can trigger little or no capital gains tax on the appreciation that happened during the original owner’s lifetime.
This rule is a meaningful part of estate and inheritance planning, and it is also a reason some long-term holders deliberately choose not to sell a highly appreciated position during their own lifetime if passing it to an heir is part of the plan, since selling first would realize a gain the step-up might otherwise have avoided entirely. The specific mechanics and any limits on this treatment are set by current tax law and are worth confirming with an estate or tax professional rather than assumed from a general description.
State taxes on capital gains
Everything in this walkthrough describes federal capital gains tax, and state tax treatment is a separate question entirely. A meaningful number of states tax capital gains as ordinary income with no separate, lower long-term rate at the state level at all, which means the federal rate gap this walkthrough has focused on can shrink considerably once state tax is added to the total bill. Other states offer their own partial preferences, and a few impose no state income tax at all, which removes this layer of the calculation entirely for a resident there.
Because state rules vary this widely and change independently of federal rules, confirm your specific state’s treatment of capital gains directly rather than assuming the federal short-term versus long-term distinction this walkthrough covers also governs your state tax bill in the same proportions.
When holding longer isn’t actually worth it
Everything in this walkthrough demonstrates that crossing the one-year line generally reduces the tax rate on a given gain, but that does not mean tax treatment should be the deciding factor in every sale decision. An investment whose fundamentals have deteriorated, that no longer fits an asset allocation, or that needs to be sold for a genuine cash need does not become a better holding just because selling it a few weeks early means short-term tax treatment. The tax savings from waiting have to be weighed against the real investment risk of holding a position you would otherwise sell, not treated as an automatic override.
A useful discipline is to separate the two decisions explicitly: decide whether you want to continue holding the investment at all based on its merits, and only then, if the decision is genuinely close, let the holding period and the tax gap break the tie. Letting the tax tail wag the investment dog, holding a position you would otherwise sell purely to avoid a higher rate, has cost investors more than the rate gap itself in plenty of real cases where the investment kept falling while the calendar ran out the clock.
Capital gains versus qualified dividends: a common mix-up
Capital gains and dividends are both commonly discussed in the same breath as investment income, and the two are genuinely different, though a particular category of dividend borrows the long-term capital gains rate schedule in a way that fuels the confusion. A capital gain requires a sale. A dividend is a payment from a company or fund to you simply for holding the investment, with no sale required at all. Many dividends, called qualified dividends, are taxed using the same rate schedule as long-term capital gains, provided the underlying shares meet their own separate holding period requirement, while other dividends, called ordinary or non-qualified dividends, are taxed as ordinary income regardless of how long you held the shares.
This means a dividend can be taxed favorably without you ever selling anything, which is a separate mechanism entirely from the sale-triggered capital gain this walkthrough focuses on, even though both can appear on the same tax form and both can benefit from a similar reduced rate under the right conditions. Treating them as interchangeable when estimating a tax bill is a common source of confusion worth untangling before you assume one concept explains the other.
Estimated taxes after a large, unplanned gain
A capital gain, particularly a large short-term one, is not automatically covered by the withholding taken from a regular paycheck, because a brokerage generally does not withhold tax on an investment sale the way an employer withholds from wages. An investor who realizes a substantial gain mid-year and does nothing further about it can arrive at the following spring’s filing deadline owing a considerably larger balance than expected, sometimes along with an underpayment penalty for not having paid enough tax throughout the year.
The common fix is making an estimated quarterly tax payment covering the gain in the quarter it was realized, rather than waiting until the annual filing deadline to settle the whole amount at once. Whether a specific estimated payment is required, and how it is calculated, depends on your total income picture for the year and on current underpayment penalty rules, which makes this a conversation worth having with a tax professional promptly after a large, unplanned sale rather than one to defer until filing season.
Common mistakes with capital gains tax
A handful of errors recur often enough to name directly. The most common is estimating the one-year holding period rather than checking the exact purchase date, selling a day or two early and accidentally landing in short-term territory on a position that was clearly intended to be a long-term hold. A second is forgetting that an unrealized gain, however large on paper, has not yet triggered any tax, and panicking about a tax bill that does not exist until a sale actually happens.
A third mistake is ignoring which specific shares are being sold when a position was built up over multiple purchases at different times and different prices, since different lots can have different holding periods and different cost bases, materially changing both the gain and the rate that applies. A fourth is failing to adjust withholding or make an estimated tax payment after a large, unplanned gain, which can turn an otherwise correct tax calculation into an unpleasant surprise at filing time. A fifth is triggering a wash sale by repurchasing a nearly identical investment too soon after harvesting a loss, which quietly defers the tax benefit the sale was meant to capture. A sixth is assuming a fund you never personally traded cannot generate a taxable distribution, when an actively traded fund’s own internal turnover can hand you a tax bill in a year you placed no trades at all.
Using the calculator to compare your own sale
Every figure in the examples above, the 20,000 dollar gain, the 24 percent short-term rate, the 15 percent long-term rate, Dana’s eleven-versus-thirteen-month sale, exists to show the shape of the calculation, not to describe your actual tax situation. Put your own gain amount and your own estimated short-term and long-term rates into the calculator on this page to see exactly how much the holding period is worth in your specific case, in dollars rather than in percentages alone.
Running the numbers before a sale, rather than after, is where the calculator earns its keep. Checked ahead of time, a position sitting close to the one-year line gives you a genuine choice: sell now and accept the short-term rate, or wait out the remaining days or weeks and likely qualify for the long-term rate instead. Checked only after filing, the choice has already been made for you, and the only thing left to do is confirm the number on the form.
Keeping your own records straight
None of the strategies covered in this walkthrough, timing a sale past the one-year line, harvesting a loss, choosing a specific lot, or relying on a step-up at inheritance, work without accurate records of what you paid, when you paid it, and what you eventually sold it for. Brokerages generally report much of this automatically now, but inherited positions, shares transferred between accounts, and older holdings purchased before consistent reporting began can all have gaps that only you, or the executor of an estate, can fill in accurately.
Keeping a simple running record of purchase dates, amounts, and any basis adjustments as they happen, rather than trying to reconstruct years of history at tax time, is unglamorous but genuinely valuable the one year it actually matters, which is usually the year you least expect a sale to become complicated. A folder with trade confirmations, year-end brokerage statements, and a short note on any inherited or transferred position’s basis is a small amount of upkeep against a real risk of overpaying, or underreporting, when the actual sale eventually happens.
The bottom line
Capital gains tax applies the same basic calculation, sale price minus cost basis, regardless of how long you held an investment, but the rate that applies to the result changes sharply depending on one fact: whether you held it for a year or less, which is taxed as ordinary income, or for more than a year, which is taxed on a separate, commonly lower schedule. The gap between the two treatments can be substantial on a real-sized gain, which is exactly why checking your actual purchase date, rather than estimating it, before selling a position near the one-year line is one of the more reliably valuable habits an investor can build. Treat every rate in this walkthrough as illustrative, confirm the present brackets and thresholds with the IRS or a tax professional before filing, and put your own numbers into the calculator to see what the holding period is actually worth to you.
This explainer is educational only and is not tax, legal, or investment advice. The short-term and long-term capital gains tax rates, the income thresholds that decide which long-term tier applies, the one-year holding period threshold, and the treatment of specific asset types are all set by current tax law and change over time, so read every rate, percentage, and dollar figure in this walkthrough as an illustration of the mechanism rather than a current rule. The $20,000 gain, the 24 percent short-term rate, the 15 percent long-term rate, Dana, and every dollar amount calculated from them were chosen as round teaching numbers to keep the arithmetic legible and are not a forecast or a promise about any real sale. Before selling an investment, timing a sale around the one-year holding period, or relying on any tax-reduction strategy mentioned here, confirm the current rates and rules with the IRS and consult a qualified professional, such as a tax advisor or a fee-only fiduciary financial planner, for guidance built around your own circumstances.
Frequently asked questions
What is the difference between long-term and short-term capital gains tax?
The difference comes down to one thing: how long you held the investment before selling it. Sell within a year or less of buying and the gain is generally taxed as a short-term capital gain, at the same rates as your ordinary income. Hold for more than a year before selling and the gain is generally taxed as a long-term capital gain, at a separate, commonly lower set of rates. The underlying gain, the difference between what you sold it for and what you paid, is calculated the same way either way. Only the tax rate that applies to it changes, based purely on the holding period.
How is short-term capital gains tax calculated?
A short-term gain is added to your other ordinary income for the year, such as wages, and taxed at your regular marginal income tax rate for that income level, following the same tax brackets that apply to a paycheck. There is no separate, preferential rate for a short-term gain. A gain of 20,000 dollars taxed at an illustrative 24 percent marginal rate costs about 4,800 dollars in tax, the same as if that 20,000 dollars had arrived as additional wages instead of as an investment sale.
How is long-term capital gains tax calculated?
A long-term gain is taxed using a separate schedule of rates that are commonly lower than ordinary income tax rates, with the specific rate depending on your total taxable income for the year. On the same illustrative 20,000 dollar gain, a long-term rate of 15 percent costs about 3,000 dollars in tax, versus roughly 4,800 dollars at a 24 percent short-term rate on the identical gain, an illustrative savings of about 1,800 dollars purely from holding the investment longer before selling.
How long do I need to hold an investment for long-term capital gains tax?
The commonly cited threshold is more than one year, meaning the holding period has to exceed 365 days, not simply reach it. Selling on or before the one-year anniversary of the purchase date generally still counts as short-term, even by a single day, while selling the day after generally qualifies for long-term treatment. Because the difference in tax owed can be substantial, checking your exact purchase date against today's date before selling, rather than estimating, is worth the extra minute.
What is the capital gains tax rate on stocks?
There is no single rate. A stock sold within a year of purchase is generally taxed as a short-term gain at your ordinary income tax rate, which can run considerably higher than the long-term rates. A stock held for more than a year is generally taxed at the lower long-term capital gains rates, which are tiered based on your total taxable income for the year. The same stock, the same gain, and the same investor can face a meaningfully different tax bill purely depending on the calendar date of the sale relative to the purchase date.
How can I avoid or reduce capital gains tax?
The most direct, broadly available lever is simply holding an investment for more than a year before selling, to qualify for the generally lower long-term rate instead of the short-term rate. Beyond timing, common strategies include offsetting gains with losses from other investments, a practice called tax-loss harvesting, holding appreciated investments inside a tax-advantaged account where gains are not taxed the same way, or, for some taxpayers, simply having lower total taxable income in the year of the sale, since long-term rates are tiered by income. Every one of these carries its own rules and limits, so confirm the current ones with a tax professional before building a plan around any single strategy.
Do I owe capital gains tax if I do not sell?
Generally no. Capital gains tax applies to a realized gain, meaning you actually sold the investment and locked in the profit, not to an unrealized gain sitting on paper while you continue to hold the investment. A stock that has doubled in value but that you still own generally has not triggered any capital gains tax yet, however large the paper gain looks on a statement. The tax event is tied to the sale, which is also why the holding-period clock that decides short-term versus long-term treatment only stops running on the day you actually sell.
Does capital gains tax apply the same way to every kind of investment?
The short-term versus long-term distinction applies broadly across stocks, bonds, mutual funds, and most investment property, but some assets carry their own specific wrinkles, a primary home sale with its own exclusion rules, and certain types of investment income that follow different schedules entirely. This walkthrough focuses on the general stock and fund case, which is the most common one investors ask about, and a sale involving real estate, collectibles, or a business interest deserves its own specific check against current rules before you assume the general case applies unchanged.
