Intermediate · Module 6 · Lesson 29
Tax Planning
Capital Gains & Investment Taxes
Map investment taxes from basis and holding period through gain/loss netting, preferential rates, dividends, wash-sale rules, NIIT, and payment planning—without turning tax rules into trading signals.
Investment return and taxable investment income are not the same thing
Lessons 27–28 built the ordinary-income tax map and showed how credits and deductions change the result. Lesson 29 adds investment events, where a different set of classifications and rate rules can apply.
The central question is:
When an investment creates income, a sale, a gain, or a loss, which tax rules apply—and how do basis, holding period, other income, losses, dividends, wash sales, and NIIT interact?
Investment-tax framework
Investment Event → Taxable Account? → Adjusted Basis → Amount Realized → Gain/Loss → Holding Period → Short/Long Classification → Netting → Preferential Rate Layer → Dividends → Special Rules → NIIT → Payment/Recordkeeping
Tax treatment depends on what happened, where it happened, and how the event interacts with the rest of the return.
Learning outcomes
By the end of this lesson, you should be able to
- Calculate a simplified realized capital gain or loss from amount realized and adjusted basis.
- Separate unrealized appreciation from a taxable sale or exchange.
- Classify a capital event as short-term or long-term using the holding period.
- Explain how short-term and long-term gains and losses are netted.
- Apply the 2026 0%, 15%, and 20% long-term capital-gain bands as layers that interact with other taxable income.
- Use the $3,000 capital-loss deduction limit and identify remaining carryforward.
- Recognize when the wash-sale rule can prevent an expected current loss deduction.
- Distinguish ordinary dividends from qualified dividends.
- Recognize special-rate categories and mutual-fund capital-gain distributions.
- Screen for the 3.8% Net Investment Income Tax and estimated-tax review needs.
Basis comes before tax rate
When a capital asset is sold, the starting calculation is generally the difference between the amount realized and the asset’s adjusted basis. Basis often begins with cost, but gifts, inheritances, reinvested distributions, corporate actions, commissions, and other adjustments can change the number.
Simple stock example
Adjusted basis: $12,000
Amount realized on sale: $16,500
Realized capital gain: $4,500
The $16,500 of sale proceeds is not itself the taxable gain.
Investment sale proceeds are not the same as taxable gain; capital gain generally begins with the difference between amount realized and adjusted basis.
Unrealized gain vs. realized gain
Still holding
$10,000 basis → $15,000 market value
Unrealized appreciation: $5,000. A market-value increase alone generally does not create a capital-gain sale event.
Sold
$10,000 basis → $15,000 amount realized
Realized gain: $5,000 before any additional basis or transaction adjustments.
A brokerage performance screen can show a gain that has not yet become a realized taxable sale. Conversely, taxable investment income can arise without a sale—for example, through dividends or a mutual fund’s capital-gain distribution.
Holding period decides whether a capital gain is short-term or long-term
Under the general federal rule, a capital asset held for more than one year before disposition is long-term. One year or less is generally short-term. The holding period normally begins the day after acquisition and includes the sale date.
Date example
Purchase date: October 30, 2025
Sale on October 30, 2026: generally not more than one year.
Sale on October 31, 2026: generally more than one year.
Tax classification can change around the one-year boundary—but tax treatment alone should not decide whether an investment is held or sold.
Net short-term capital gains are generally taxed under ordinary graduated income-tax rates. Net long-term capital gain may qualify for lower maximum rates.
2026 long-term capital-gain bands
| Filing status | Top of 0% range | Top of 15% range | Above that |
|---|---|---|---|
| Single / most other individuals | $49,450 | $545,500 | 20% range |
| Married filing jointly | $98,900 | $613,700 | 20% range |
| Married filing separately | $49,450 | $306,850 | 20% range |
| Head of household | $66,200 | $579,600 | 20% range |
These thresholds are based on taxable income and interact with other taxable income. They are not separate “capital-gain-only income limits.”
Other taxable income fills the lower capital-gain space first
Suppose a single filer has:
- Ordinary taxable income before the gain: $45,000.
- Net long-term capital gain: $20,000.
- 2026 0% long-term capital-gain ceiling: $49,450.
Only $4,450 of room remains in the 0% band. In this simplified illustration:
| Long-term gain layer | Rate | Modeled tax |
|---|---|---|
| $4,450 | 0% | $0 |
| $15,550 | 15% | $2,332.50 |
| Total $20,000 gain | Mixed | $2,332.50 |
The 0% long-term capital-gain rate is not determined by capital gains alone; other taxable income can fill the lower tax space first.
Apply the rate stacking to the Module 6 household
After Lesson 28’s hypothetical deduction, the fictional household had approximately $110,800 of ordinary taxable income and files married filing jointly.
Now add a $20,000 net long-term capital gain. Because ordinary taxable income already exceeds the 2026 MFJ 0% capital-gain ceiling of $98,900, this gain begins in the 15% long-term capital-gain range under the simplified facts.
Net long-term capital gain: $20,000
Modeled applicable rate under these simplified facts: 15%
Simplified federal tax on the long-term gain: $3,000
This excludes NIIT, special-rate categories, state taxes, and other return interactions.
Net gains and losses before using the tax rate
Capital gains and losses are not normally taxed trade-by-trade without coordination. Short-term items are netted with short-term items; long-term items are netted with long-term items; then the resulting categories interact.
Illustrative netting
Short-term gain: +$6,000
Short-term loss: −$10,000
Net short-term result: −$4,000
Long-term gain: +$9,000
Long-term loss: −$2,000
Net long-term result: +$7,000
After the $4,000 net short-term loss offsets the $7,000 net long-term gain, the simplified remaining net capital gain is $3,000.
Net capital losses can offset limited ordinary income
If capital losses exceed capital gains, an individual can generally deduct the lesser of the remaining net loss or $3,000 against other income for the year. The limit is $1,500 for married filing separately. Excess capital loss generally carries forward.
Net capital loss after netting: $12,000
Potential current-year deduction against other income: $3,000
Potential remaining carryforward: $9,000
Actual carryforward character and computation follow Schedule D and the capital-loss carryover worksheet.
Wash sales can disrupt a simple tax-loss-harvesting plan
For stock and securities, a wash sale can occur when a loss is realized and substantially identical stock or securities are acquired within 30 days before or after the sale. The rule can also apply when substantially identical stock or securities are acquired in an IRA or Roth IRA.
Adjusted basis before sale: $10,000
Sale amount: $8,000
Apparent loss: $2,000
Substantially identical shares repurchased 10 days later.
The $2,000 loss generally cannot simply be treated as a currently deductible loss.
For a taxable replacement purchase, the disallowed loss generally adjusts the replacement shares’ basis. IRA-related wash sales can have different consequences.
A realized investment loss is not automatically deductible now; wash-sale rules can postpone or disallow the expected tax benefit when substantially identical securities are acquired around the loss sale.
Broker reporting does not necessarily identify every cross-account wash sale. Taxpayers still need complete records across taxable accounts and relevant IRA activity.
Ordinary dividends and qualified dividends can use different tax treatment
Ordinary dividends are generally ordinary income. Qualified dividends can be eligible for the same preferential 0%, 15%, or 20% maximum rates used for net capital gain when all requirements are satisfied.
For common stock, one important requirement generally involves holding the stock for more than 60 days during the 121-day period beginning 60 days before the ex-dividend date, along with the other qualified-dividend rules.
A Form 1099-DIV may report both total ordinary dividends and the portion treated as qualified dividends. “Dividend” does not automatically mean “15% tax.”
Mutual funds can create taxable capital-gain distributions without you selling shares
A taxable mutual fund can distribute capital gains realized inside the fund. The shareholder can therefore receive a taxable capital-gain distribution even if the shareholder did not personally sell fund shares.
This is why investment-tax review should include Form 1099-DIV and not only Form 1099-B or a list of personal trades.
Not every long-term capital gain is capped at 20%
Most net long-term capital gain uses the 0% / 15% / 20% structure, but special categories can have different maximum rates. Examples include:
- Collectibles gain — maximum rate can reach 28%.
- Certain taxable qualified small business stock gain — special 28% rules can apply.
- Unrecaptured Section 1250 gain from certain real property — maximum rate can reach 25%.
Lesson 29 uses a special-rate flag rather than trying to calculate these categories generically.
NIIT can add another 3.8% layer for higher-income taxpayers
The Net Investment Income Tax is 3.8% of the lesser of net investment income or modified adjusted gross income above the statutory filing-status threshold.
| Filing status | NIIT MAGI threshold |
|---|---|
| Married filing jointly | $250,000 |
| Married filing separately | $125,000 |
| Single | $200,000 |
| Head of household | $200,000 |
MFJ example
MAGI: $280,000
Net investment income: $50,000
MAGI above $250,000 threshold: $30,000
NIIT base: lesser of $50,000 or $30,000 = $30,000
3.8% NIIT = $1,140
This tax is separate from the regular income-tax calculation.
Digital assets still require basis and holding-period analysis
The IRS treats digital assets as property for federal income-tax purposes. Selling a digital asset for dollars, or exchanging it for materially different property including another digital asset, can create a gain or loss. Holding period generally determines whether a capital result is short-term or long-term when the digital asset is a capital asset.
Crypto therefore does not escape capital-gain analysis merely because it is held outside a traditional brokerage account. At the same time, do not automatically apply the stock-and-securities wash-sale section above to every digital asset; the legal classification and current rules matter.
Investment gains can create a tax-payment problem before filing season
Interest, dividends, and asset-sale gains may not have enough withholding attached to them. IRS Publication 505 says estimated tax may be required when expected tax after withholding and credits reaches the applicable thresholds.
For 2026, the general rule generally asks whether expected tax due after withholding and credits will be at least $1,000 and whether payments will be less than the smaller of the applicable current-year or prior-year safe-harbor amounts, subject to special rules.
Large realized gain? Add an estimated-tax / withholding review flag.
Lesson 31 will handle payment timing and withholding in detail. Lesson 29 simply teaches that a profitable sale can create tax liability before the return is filed.
Interactive practice · Investment Tax Map
Classify the investment event before estimating the tax layer
This is a tax-learning model, not a tax-return calculation or trading recommendation. It does not model every Schedule D rule, basis adjustment, special asset category, state tax, or tax-lot method.
Applied case: add investment events to the Module 6 household
Continue the same fictional married-filing-jointly household from Lessons 27–28.
Lesson 29 update
Ordinary taxable income before investment items: $110,800
Long-term stock gain: +$20,000
Short-term stock loss: −$4,000
Qualified dividends: $2,000
Net long-term gain after simplified interaction with the short-term loss: $16,000
Preferential-rate income to analyze: $18,000 ($16,000 net capital gain + $2,000 qualified dividends)
Because ordinary taxable income already exceeds the 2026 MFJ 0% capital-gain ceiling, the simplified preferential-rate amount begins in the 15% band.
The exact return calculation uses the IRS capital-gain and qualified-dividend worksheet mechanics. This case isolates the stacking concept.
Apply this lesson · Intermediate
Classify before calculating
Answer all four questions correctly to pass.
Quick knowledge check
- Why is the sale price not automatically the taxable gain?
- Why can the same $20,000 long-term gain face different federal capital-gain rates for two taxpayers?
- Why should capital-loss carryforwards remain in a multi-year tax file?
- Why can a mutual-fund investor owe tax on a capital-gain distribution without selling fund shares?
Show answers
1. Gain generally depends on amount realized minus adjusted basis. 2. Other taxable income and filing status determine how much preferential-rate space remains. 3. Prior-year losses can offset later gains and can retain short- or long-term character. 4. The fund itself can realize gains and distribute them to shareholders in taxable accounts.
Reliable further reading
- IRS Topic No. 409: Capital Gains and Losses — capital assets, holding periods, net capital gain, special rates, and the $3,000 loss limit.
- IRS Internal Revenue Bulletin 2025-45 — official 2026 0% and 15% capital-gain thresholds.
- IRS Publication 550: Investment Income and Expenses — dividends, qualified dividends, investment sales, wash sales, and mutual-fund distributions.
- IRS Topic No. 559: Net Investment Income Tax — 3.8% NIIT, MAGI thresholds, and net-investment-income definition.
- IRS Publication 505 (2026) — estimated-tax implications of interest, dividends, and gains.
- IRS Digital Asset FAQs — basis, disposition, and holding-period rules for digital assets.
Sources reviewed: October 25, 2026
Finlitera provides general financial education, not individualized tax, legal, accounting, or investment advice. Basis, holding period, wash-sale treatment, dividend qualification, capital-loss carryforwards, special capital-gain rates, NIIT, estimated-tax obligations, digital-asset treatment, and reporting can depend on facts not modeled here. Tax considerations alone should not determine whether an investment is bought, held, or sold.
Module 6 exercise · Step 3
Add an Investment Tax Map to the Tax Planning Case File
Use one real or fictional investment event and record the tax facts before calculating a rate.
Record:
- Asset.
- Account type.
- Purchase date.
- Sale/disposition date.
- Amount realized.
- Adjusted basis.
- Realized gain or loss.
- Short-term or long-term holding period.
- Other short-term gains/losses.
- Other long-term gains/losses.
- Capital-loss carryforward.
- Ordinary and qualified dividends.
- Capital-gain tax band.
- Wash-sale issue?
- Special-rate asset?
- NIIT screening.
- Estimated-tax / withholding review needed?
- Forms or records supporting the numbers.
Finish with: “This investment event creates ______ of realized gain/loss because amount realized is ______ and adjusted basis is ______.”
Then: “Its tax treatment depends not only on the gain itself, but also on ______, ______, and ______.”
Module 6 progression
Lesson 27 mapped ordinary-income tax layers. Lesson 28 added credits and deductions. Lesson 29 now separates investment income by basis, holding period, netting, and preferential-rate treatment. Lesson 30 will compare what changes when investments are held inside tax-advantaged accounts. Lesson 31 will coordinate withholding, estimated taxes, records, and year-round timing.
