In mid-December, reviewing a brokerage account leads to calculations like these. This year you have already realized a $10,000 gain. Stock B, whose investment thesis has broken, would realize a $4,000 loss if sold now. Stock C, whose thesis is still alive, would realize a $5,000 gain. Thinking about taxes, you want to push C into a later period and leave B alone because you do not want to lock in the loss.
This lesson connects tax rules and exchange rates to the timing of a sale. It shows how much they can change the result, and decides how far that difference should enter a selling decision. It covers US rules for US persons, the general US position for investors who are not US persons, and the home-currency arithmetic that applies to anyone whose home currency is not the US dollar.
1. Know which rules apply to you, as of November 3, 2026
This lesson is general information about US rules as of November 3, 2026. It is not tax, legal or investment advice, and the rules of your country may also apply. Rules change, so check the current official text or your broker's terms before you act.
US persons (US citizens and US residents for tax purposes) pay US tax on gains from selling stock. For a nonresident alien, the IRS guide for aliens says capital gains are generally not taxable if the person was in the United States for less than 183 days during the tax year. That holds when the gains are not effectively connected with a US trade or business. If the person was in the United States for 183 days or more, the net US-source gain is taxed at 30% or a lower treaty rate. Dividends are a separate matter: they are generally taxed at 30% or a lower treaty rate, withheld at source. If you are not a US person, your home country may tax the gain under its own rules, which this lesson does not describe.
For US persons, these points from IRS publications decide most timing questions.
| Item | US rule for individuals |
|---|---|
| Long-term or short-term | Held more than 1 year: long-term. Held 1 year or less: short-term |
| Holding period | Begins the day after the trade date you bought; ends on the trade date you sold |
| Tax rates | Net short-term gains: ordinary income rates. Most net long-term gains: 0%, 15% or 20%, depending on taxable income |
| Tax year of a sale | The year of the trade date, even if the sale settles in the next year |
| Losses | Losses offset gains; up to $3,000 of a net loss a year ($1,500 if married filing separately) reduces other income, and the rest carries forward to later years |
| Wash sale | A loss is not deductible if you buy substantially identical stock within 30 days before or after the sale; the disallowed loss is added to the cost of the new shares |
Individuals with significant investment income may also owe the net investment income tax. Because the trade date decides the tax year, a sale made on the last trading day of December belongs to that year even though it settles in January.
2. Your home-currency gain depends on two exchange rates
If your home currency is not the US dollar, the gain you actually keep is measured in your home currency, and it depends on two exchange rates. Which rate and which date your tax authority uses is set by your country. The example below uses euros only as an illustration. All accounts and numbers from here on are hypothetical, and commissions and conversion costs are left out to keep the arithmetic simple.
An investor bought 200 shares of C at $100 when 1 US dollar was EUR 0.90. The cost was 200 × 100 × 0.90 = EUR 18,000. The investor sells at $125 when 1 US dollar is EUR 0.92. The proceeds are 200 × 125 × 0.92 = EUR 23,000, a gain of EUR 5,000.
The EUR 5,000 has two parts. The dollar gain of $5,000 at the selling rate is 5,000 × 0.92 = EUR 4,600. The rise in the exchange rate on the $20,000 of principal is 20,000 × (0.92 − 0.90) = EUR 400.
| Exchange rate at sale (EUR per USD) | Share price | Home-currency gain |
|---|---|---|
| 0.92 | $125 | 23,000 − 18,000 = EUR 5,000 |
| 0.85 | $125 | 21,250 − 18,000 = EUR 3,250 |
| 0.92 | $100 (unchanged) | 18,400 − 18,000 = EUR 400 |
At the same share price, a 0.07 difference in the exchange rate changes the gain by EUR 1,750. Even with no change in the share price, a rise in the exchange rate creates a home-currency gain.
That is still no reason to delay a sale to time the exchange rate. Where the rate will be in a few days is hard to know, and the stock's price risk stays with you while you wait. The exchange rate is not a reason to sell; it is used to record the home-currency result accurately after the sale.
3. For a US person, the holding period can matter more than the calendar
Now take a US person who holds C. The investor bought 200 shares at $100, the price is $125, and the gain is 200 × 25 = $5,000. The shares have been held for 11 months. Assume, only for this example, that the investor's short-term gains are taxed at 24% and long-term gains at 15%. The actual rates depend on total taxable income and filing status.
Selling now is a short-term sale: tax is 5,000 × 24% = $1,200, leaving $3,800 after tax. Waiting until the holding period passes one year makes it long-term: tax is 5,000 × 15% = $750, leaving $4,250. Waiting saves 1,200 − 750 = $450 if the price does not move.
But the price does move. If the market value falls by X dollars while waiting, the long-term after-tax result is (5,000 − X) × 0.85. It equals the $3,800 from selling now when X = 5,000 − 3,800 ÷ 0.85 = about $529.41. That is about 2.12% of the $25,000 market value. A fall of about 2% while waiting cancels the benefit. If you meant to keep holding C anyway, the long-term rate is a bonus. If you have a reason to sell now, $450 is not a reason to wait.
Moving a sale from December to January is a different question. It moves the gain into the next tax year, which delays the tax, but there is no separate annual exemption in this example that the move would use. Whether it lowers the tax depends on the investor's income and rates in each year.
4. A loss reduces tax under the loss rules, and a wash sale undoes it
Suppose the investor's $10,000 gain this year from stock A is short-term, and B's $4,000 loss would also be short-term. At the assumed 24%, tax on A alone is 10,000 × 24% = $2,400. Selling B in the same tax year makes the net gain 10,000 − 4,000 = $6,000 and the tax 6,000 × 24% = $1,440. The difference, 4,000 × 24% = $960, is what the loss saves this year.
If B is sold in January instead, this year's tax stays at $2,400. The loss is not lost: under US rules it can offset gains in the year it is realized, and a net loss above the $3,000 limit carries forward. But its effect moves a year later, and meanwhile the stock whose thesis broke is still held. Selling B in December, on a trade date within the year, lets the planned exit and the tax result point the same way.
The opposite move needs a separate judgment: selling a stock whose thesis is alive only to realize a loss. If you buy the same stock back within 30 days before or after the sale, it is a wash sale. The loss is not deductible then, and it is added to the cost of the new shares instead. The tax saved is at most the loss times your rate, and any recovery after the sale is not yours unless you buy back.
5. Do not hold a stock whose thesis broke because of tax
Now suppose that in mid-December, in month 11, C's investment thesis breaks. For example, a filing shows that the customer behind half of its revenue has ended its contract. Selling now means a short-term gain and $1,200 of tax. Waiting about a month makes it long-term with $750 of tax. Looking at tax alone, waiting is tempting.
| Timing of C's sale and market value | Gain | Tax | After-tax result |
|---|---|---|---|
| Sell now (month 11), $25,000 | $5,000 | $1,200 | $3,800 |
| Sell in month 13, value unchanged | $5,000 | $750 | $4,250 |
| Sell in month 13, value down 20% to $20,000 | $0 | $0 | $0 |
| Keep holding, value down 40% to $15,000 | −$5,000 | none | −$5,000 before any loss offset |

Even in the best case, with no price change, waiting gains $450. If the market value falls 20% after the thesis breaks, the after-tax result drops from $3,800 to $0. When the price falls, the tax falls too, but the tax saved can never exceed the rate times the fall. Everything else is your loss.
Holding on to avoid tax works the same way. The tax on a gain is only postponed until you sell. Apart from what offsetting losses and the lower long-term rate save, the tax shrinks only when the gain itself shrinks. So a stock whose thesis broke is sold as planned, whatever the tax. The range within which tax can change a decision is moving the sale date of a stock whose thesis is still alive by a few days or weeks.
6. Keep a tax field in the sell record
The order for bringing taxes and exchange rates into a selling decision can be set, for example, like this:
- If the investment thesis broke, or the exit level set in advance (Lesson 291) was reached, sell regardless of tax.
- For a losing position whose thesis broke, if gains were realized this year, sell on a trade date within the year.
- For a sale that only trims a weight while the thesis is alive (Lesson 294), compare the tax saved by moving the sale date with the price risk over that time.
- Do not set the sale date by an exchange-rate forecast; record the home-currency result with the rate your tax authority uses.
B sold, trade date December ○ (this tax year). Reason: thesis broke. Loss $4,000, realized net gain this year $6,000, tax saved about $960 at the assumed 24%. No repurchase within 30 days.
The record for this lesson is the sell record with a tax field. At every sale, write the reason, the trade date and settlement date, the tax year, the result in US dollars and in your home currency, and the year's cumulative realized result and expected tax. Fill in the reason field before the tax field.
Try it yourself
- In section 2, if the exchange rate at sale is EUR 0.95 per US dollar, what is the home-currency gain, and how much of it comes from the share price and how much from the exchange rate?
- In section 4, the investor sells B on the last trading day of December, and the sale settles in January. In which tax year does the loss count, and what is this year's tax at the assumed 24%?
- In section 5, if C's market value falls only to $24,000 by month 13, what is the after-tax result of selling then? Compare it with selling now.
- An investor sold B at a $4,000 loss on December 15 and bought the same stock back on January 5. What happens to the loss? Write the sell record line.
Answers
First, the proceeds are 200 × 125 × 0.95 = EUR 23,750, and the gain is 23,750 − 18,000 = EUR 5,750. The share-price part is 5,000 × 0.95 = EUR 4,750, and the exchange-rate part is 20,000 × (0.95 − 0.90) = EUR 1,000. Compared with a rate of 0.92, the gain is EUR 750 larger, all from the exchange rate.
Second, the trade date decides the tax year, so the loss counts in this year even though the sale settles in January. This year's net gain is 10,000 − 4,000 = $6,000, and the tax is $1,440 at the assumed 24%.
Third, the gain is 24,000 − 20,000 = $4,000 and the long-term tax is 4,000 × 15% = $600, leaving $3,400. That is $400 less than the $3,800 from selling now. A fall of only 4% was more than the about 2.12% that section 3 found would cancel the benefit of waiting.
Fourth, January 5 is 21 days after December 15, within 30 days, so it is a wash sale. The $4,000 loss is not deductible for the December sale; it is added to the cost of the shares bought on January 5. The record could read: "B sold December 15 at a $4,000 loss, bought back January 5: wash sale, loss disallowed and added to the new shares' cost. Reason for the repurchase:..." Writing the repurchase reason next to the sale shows later whether the loss sale had a reason other than tax.
