Misunderstanding Tax Treatment
Misunderstanding Tax Treatment
You sell a stock at a loss, intending to deduct the loss. But you buy it back 3 weeks later, triggering the wash-sale rule, which disallows the loss. You miss the deduction. Or you inherit shares and don't know about the step-up in basis, so you overpay tax years later. Or you hold a foreign stock and don't know about the 15% dividend withholding.
Key takeaways
- Short-term gains (held <1 year) are taxed at your ordinary income rate (up to 37%); long-term gains (held >1 year) are taxed at 0%, 15%, or 20%—plan holding periods accordingly
- The wash-sale rule disallows a loss if you buy the same security within 30 days before or after the sale; the disallowed loss raises the cost basis of the new purchase
- Cost basis is critical: if you don't track it correctly, you may overpay tax or under-pay and face an audit later
- Inherited accounts receive a "step-up" in basis to the date-of-death value, which eliminates embedded gains for tax purposes; this is hugely valuable and often missed
- Foreign securities may have withholding taxes on dividends; some are recoverable as credits, others are not
The short-term / long-term distinction
The tax code defines investment gains based on holding period:
Short-term capital gains: Assets held 1 year or less.
- Taxed at your ordinary income tax rate
- For a high earner: 37%
- For a middle-income investor: 22% or 24%
- For a low-income saver: 10% or 12%
Long-term capital gains: Assets held more than 1 year.
- Taxed at preferential rates: 0%, 15%, or 20%
- Most middle-class investors: 15%
- A $10,000 gain that's long-term costs $1,500 in tax; the same gain as short-term costs $2,400–$3,700
The implication: holding an asset for 13 months instead of 11 months can save thousands in tax. This is not tax avoidance; it's tax planning.
Many first-time investors don't think about this. They sell a stock at a gain after 11 months because the gain is realized, not understanding they could have waited 2 months and saved 15–20% of the gain to taxes.
The wash-sale trap
You bought $5,000 of XYZ stock. It falls to $3,500. You sell, realizing a $1,500 loss. You intend to deduct this loss against other gains.
But you still like XYZ. You think it's undervalued. Two weeks later, you buy $3,500 of XYZ again.
The IRS has a rule for this: the wash-sale rule. It says: if you sell a security at a loss and buy the same security (or a substantially identical one) within 30 days before or after the sale, you cannot deduct the loss. Instead, the disallowed loss is added to the cost basis of the new purchase.
So in your case:
- Sale: $5,000 cost, $3,500 proceeds, $1,500 loss (disallowed)
- New purchase: $3,500 in proceeds, plus $1,500 disallowed loss = $5,000 new cost basis
- Your new XYZ position has a $5,000 cost basis, even though you only paid $3,500
This seems unfair—you paid $3,500, but your cost basis is $5,000. But the IRS's logic is: you're not truly realizing the loss, just deferring it. When you eventually sell the new position, the cost basis will reflect the original loss.
Where investors get caught: they sell at a loss to realize a deduction, then immediately rebuy because they think the stock is cheap. Boom. Wash sale. The deduction is lost. And they don't realize it until tax-filing time.
The fix: if you want to realize a loss, don't buy the same security again for at least 31 days. Or buy a similar but not identical security (e.g., a broad market ETF instead of the individual stock).
The cost basis nightmare
Cost basis is the original purchase price. When you sell, your gain is (sale price) minus (cost basis). If you don't track cost basis, you overpay tax or underestimate your gain.
Scenario 1: You inherit 100 shares of Apple from your parents. They bought at $50 per share in 2005. Apple is now $190. If you don't know the $50 basis, you might think your gain is $140 per share. But your cost basis should be stepped up to the date-of-death value, $190. So when you sell, you have no gain.
Scenario 2: You buy $500 of a stock in January, $500 in March, $500 in May—three purchases at different prices. You sell 700 shares. Which ones did you sell? The IRS requires you to specify: FIFO (first in, first out), LIFO, average cost, or specific ID. If you don't specify, the IRS defaults to FIFO. But you might want average cost (which minimizes tax) or specific ID (which lets you sell the highest-cost shares, minimizing gain). Missing this choice can cost hundreds or thousands in tax.
Scenario 3: You sell a mutual fund and don't track the cost basis because the fund was purchased 10 years ago and reinvested dividends along the way. The cost basis is actually the original investment plus all reinvested dividends. Your broker should have this on record, but if you can't find it, reconstructing it is expensive.
Many brokers now provide cost-basis information automatically, but it's not always correct (especially for inherited accounts or transferred accounts from other brokers). Verify it.
The step-up in basis
This is one of the most valuable tax breaks available, and it's often missed.
When you inherit a security, your cost basis is "stepped up" to the fair market value on the date of the owner's death. This means all pre-death gains are erased for tax purposes.
Example: Your parent bought Apple stock for $10,000 in 1990. It's now worth $500,000. They die. You inherit it. Your cost basis is $500,000 (the date-of-death value), not $10,000. If you sell immediately for $500,000, you have zero gain and zero tax.
This is enormously valuable. It's one reason why buy-and-hold is tax-efficient: if you hold until death, the heirs owe zero tax on the appreciation. But many heirs don't understand this and pay unnecessary capital gains tax.
The step-up applies to most inherited assets (stocks, bonds, real estate) but NOT to IRAs or 401(k)s, which have their own inheritance rules (no step-up; the heir pays income tax on distributions).
Foreign withholding taxes
You buy a foreign stock that pays dividends. The foreign government withholds a tax (typically 15%) before sending the dividend to you. This withholding is permanent—you don't get it back.
However, if you hold the stock in a taxable U.S. account, you can sometimes claim a foreign tax credit on your U.S. tax return to offset the withholding. If you hold it in a retirement account (Roth IRA, 401(k)), you usually cannot claim the credit. The withholding is permanent.
This has real implications. Suppose you buy a foreign dividend-paying ETF in a taxable account and in a Roth IRA with the same $10,000. The foreign dividend is $100, less 15% withholding = $85 received. In the taxable account, you can claim a foreign tax credit for the $15, reducing your U.S. tax liability by $15 (or some portion, depending on your situation). In the Roth, you can't claim the credit; the $15 is gone. So the Roth holding is less efficient.
For this reason, tax-efficient investing places foreign tax-inefficient securities in taxable accounts and uses the foreign tax credit to minimize overall tax.
Many first-time investors don't know this and end up with foreign stocks in Roth IRAs, which is the opposite of optimal.
Tax-loss harvesting for first-time investors
Tax-loss harvesting is the practice of selling a security at a loss to realize a deductible loss, then buying a similar (but not identical) security to maintain exposure.
Example: You own VTI (total US stock market ETF) at a loss. You sell it, realizing a $2,000 loss. You immediately buy VTSAX (Vanguard's mutual fund version of the same index) to maintain stock exposure. The wash-sale rule doesn't apply because VTI and VTSAX are not identical (one is an ETF, one is a mutual fund). You harvest the loss and keep the exposure.
For a high-income earner in a high tax bracket, this can save thousands per year. For a first-time investor earning $60,000 per year, the tax benefit is smaller. But it's still worth doing once per year: scan your portfolio in December for losses, sell them, and buy similar alternatives.
The tax-treatment decision tree
Related concepts
Next
Understanding tax treatment prevents surprises at filing time. But the real foundation of accurate taxes is precise record-keeping: tracking cost basis for every purchase, every dividend reinvestment, every transfer. Failing to do this creates a nightmare years later when selling.