How the US taxes profit on assets you sell, why the holding period matters, and how losses can soften the bill.

In the United States, capital gains tax applies to the profit made when you sell an asset for more than you paid for it. Shares are the everyday example, and property is another.
Only the gain is taxed, not the full sale price. If you bought something for one amount and sold it for more, the tax looks at the difference between the two figures.
Nothing is owed while you simply hold the asset, however much its value rises on paper. The tax only enters the picture when a sale actually happens and the profit becomes real.
This is why two investors can own identical shares, worth exactly the same amount, and face completely different tax positions. The one who sells has a gain to report. The one who keeps holding has nothing to report at all, at least not yet. The decision of when to sell is therefore partly a tax decision, whether the seller thinks of it that way or not.
The deciding question is how long the asset was held before the sale. If you held it for a year or less, the gain is short term, and it is taxed like ordinary income, at the same rates as wages.
If you held it for more than a year, the gain is long term, and it is taxed at lower rates. Those rates are 0, 15 or 20 percent, depending on income, so two people selling the same asset for the same profit can owe different amounts.
This difference is deliberate. It rewards patience, and it means the date of purchase matters almost as much as the price. Selling just before the one year mark and just after it can lead to very different bills.
Not every sale makes a profit. Losses on sales can offset gains, reducing the total amount that is taxed. A loss on one asset can be set against a gain on another, so the year is looked at as a whole rather than sale by sale.
Some parts of life have their own special rules. Your home is treated differently from other property, and retirement accounts follow rules of their own, so neither should be judged by the general pattern described here.
This article covers the general shape only: profit is what is taxed, the holding period decides the treatment, and losses can soften the result. Anyone facing a large sale should check how the special rules apply to their own situation.
Capital gains sit outside the United States income calculator, which covers wages and salary. Open the calculator.