Home

Taxes & Rules

Stock and Investment Taxes: A Trader's Complete Guide

Spot the edge. Swoop in.

Every time you sell a stock at a profit, collect a dividend, exercise an option, or receive RSUs from an employer, the IRS has a rule that determines exactly how much of that gain you keep and exactly when you owe it. Those rules aren't uniform: the same dollar of investment return can be taxed at 0%, 15%, 20%, 23.8%, 37%, or even more, depending on what generated it, how long you held the asset, and what your total income looks like that year. The holding period that separates a 37% short-term rate from a 20% long-term rate can be a single day. The wash-sale rule can disallow a loss deduction with a replacement purchase you made a month before you even sold. A dividend that looks identical to a qualified one can be taxed at double the rate because of a missed holding-period test. These distinctions don't exist to punish inattentive traders — they're the architecture of a tax system that rewards long-term investing and penalizes short-term speculation — but they punish inattention all the same. This pillar page is the complete map of U.S. stock and investment taxation for the active trader, covering 2026 rates and rules, with links to fourteen focused guides underneath it.

By Swoopr Editorial Team

Published · Updated

AI-assisted content · Swoopr is responsible for the final published article.

Key Takeaways

U.S. investment taxation is a system of interconnected rules where rate, timing, and account type all interact. The same stock sale can produce a tax bill that differs by tens of thousands of dollars depending on whether you held the position for 365 days or 366, whether you reinvested in a "substantially identical" security too quickly, and whether your total income crosses one of several surcharge thresholds. Understanding the structure — not just the rates — is what makes the difference between tax planning and tax surprises.

Direct answer: U.S. stock and investment taxes operate on a two-track system. Short-term capital gains (assets held one year or less) are taxed at ordinary income rates up to 37%. Long-term capital gains (assets held more than one year) are taxed at preferential rates of 0%, 15%, or 20% depending on income. For 2026, single filers reach the 0% long-term rate at taxable income up to $49,450; married filing jointly up to $98,900. An additional 3.8% net investment income tax applies to high earners above $200,000 (single) or $250,000 (married filing jointly). Qualified dividends follow the same preferential rates as long-term gains; ordinary dividends are taxed at full ordinary income rates. The wash-sale rule, Form 1099-B reporting, cost-basis method elections, and special rules for RSUs, inherited stock, gifts, and bonds all layer on top of the core rate structure. This page covers all fourteen dimensions, with a dedicated guide for each.

Scope of This Guide

This page anchors Swoopr's stock and investment taxes cluster within the Taxes & Rules content pillar — the section of Swoopr's education library focused on the compliance and regulatory side of trading rather than strategy, charting, or fundamentals. It covers the federal tax treatment of investment income generated by U.S. taxable brokerage accounts: capital gains, dividends, equity compensation, fixed income, and the special rules that apply to inherited and gifted securities.

This guide does not cover cryptocurrency tax treatment (covered separately in Crypto Tax Records and Recordkeeping), retirement account taxation (IRAs, 401(k)s), or real estate. It focuses on the federal tax layer; state tax treatment of capital gains is covered in one of the fourteen child guides below because variation between states is substantial. Nothing here is personalized investment, legal, or tax advice; it is a structural map of the rules a retail stock investor operates under, current as of August 2026 and reflecting IRS guidance available at that date, with pointers to authoritative primary sources for anything that needs verifying against your own situation.

Every Guide in This Cluster

Every guide in the Stock and Investment Taxes cluster, in one list for quick navigation. The sections below group these by theme with a summary of each.

  1. Short-Term vs. Long-Term Capital Gains Tax Rates
  2. Qualified vs. Ordinary Dividends
  3. The Wash-Sale Rule for Stocks
  4. Stock Options and RSU Tax Treatment
  5. Tax-Loss Harvesting for Stocks
  6. Form 1099-B and Cost-Basis Reporting
  7. Inherited Stock and the Stepped-Up Basis
  8. Gifting Stock: Tax Implications
  9. The 3.8% Net Investment Income Tax (NIIT)
  10. Covered vs. Uncovered Securities: Cost-Basis Reporting
  11. ETF vs. Mutual Fund Tax Efficiency
  12. Foreign Stock Dividends and the Foreign Tax Credit
  13. State Taxes on Capital Gains
  14. Bond and Fixed-Income Taxation

Capital Gains: Rates, Brackets, and State Layer

The capital gains framework is the foundation of investment taxation. These two guides cover the federal rate structure and the state tax layer that sits on top of it — an often-overlooked variable that can swing the effective tax rate on a gain by ten percentage points or more depending on where you live.

Short-Term vs. Long-Term Capital Gains Tax Rates

The distinction between short-term and long-term capital gains is the single most impactful tax variable for an active trader. A gain on an asset held one year or less is short-term and is taxed as ordinary income at rates ranging from 10% to 37% depending on your total taxable income that year. A gain on an asset held more than one year is long-term and qualifies for preferential rates of 0%, 15%, or 20%. For 2026, the IRS has set the long-term capital gains brackets at 0% for taxable income up to $49,450 for single filers and $98,900 for married filing jointly; the 20% rate kicks in at $553,850 for single filers and $613,700 for married filing jointly, with the 15% rate filling the gap between those thresholds. These income thresholds are adjusted for inflation each year. Netting short-term gains against short-term losses, and long-term gains against long-term losses separately before any cross-category netting, is an important step in calculating what actually gets taxed and at which rate.

Read the full guide: Short-Term vs. Long-Term Capital Gains Tax Rates

State Taxes on Capital Gains

Federal capital gains rates get most of the attention, but state income taxes on investment gains range from zero — in states with no income tax such as Florida, Texas, Nevada, and Washington — to over 13% in California, which taxes capital gains as ordinary income without any preferential rate for long-term holdings. Most states that have income taxes do tax capital gains, and only a minority offer a reduced rate for long-term gains similar to the federal preferential structure. For a high-income investor in a high-tax state, the combined federal-plus-state marginal rate on a short-term gain can exceed 50% including the NIIT. State tax treatment is an often-underweighted factor in decisions about whether to move a position from one tax year to the next or to hold through a year-end to lock in long-term treatment.

Read the full guide: State Taxes on Capital Gains

Dividend Taxation: Qualified, Ordinary, and Foreign

Dividends are taxed on a fundamentally different track from capital gains, with the applicable rate depending on whether the dividend meets the definition of "qualified" under IRC §1(h)(11). These two guides cover domestic qualified and ordinary dividends, and the foreign tax credit available on dividends from international holdings.

Qualified vs. Ordinary Dividends

Qualified dividends are taxed at the same preferential 0%, 15%, and 20% rates that apply to long-term capital gains, while ordinary (non-qualified) dividends are taxed as ordinary income at rates up to 37%. To qualify, a dividend must be paid by a U.S. corporation or a qualifying foreign corporation, and the investor must have held the underlying stock for more than 60 days during the 121-day window that straddles the ex-dividend date — 60 days before through 60 days after. That holding-period test is easily missed by active traders who hold a stock through an ex-dividend date but sell quickly afterward. Dividends from REITs, money market funds, and certain preferred stocks are typically ordinary regardless of holding period. For 2026, the 0% qualified dividend rate applies to the same income thresholds as the 0% long-term capital gains rate: $49,450 for single filers and $98,900 for married filing jointly.

Read the full guide: Qualified vs. Ordinary Dividends

Foreign Stock Dividends and the Foreign Tax Credit

Dividends from foreign stocks held in a U.S. taxable account are often subject to a foreign withholding tax before they arrive in your account — commonly 15% to 30% depending on the country and whether a tax treaty applies. Those same dividends are also included in your U.S. taxable income. The foreign tax credit (Form 1116) generally allows you to offset the foreign taxes withheld against your U.S. tax liability dollar-for-dollar, up to a limit, rather than facing full double taxation. Whether a foreign dividend is "qualified" for the preferential U.S. rate depends on whether the company is incorporated in a country with an eligible treaty and whether the holding-period test is met. Dividends held in a tax-advantaged account like an IRA cannot use the foreign tax credit, which is a concrete disadvantage of holding high-dividend international stocks in those accounts.

Read the full guide: Foreign Stock Dividends and the Foreign Tax Credit

Tax Strategies: Loss Harvesting, the Wash-Sale Rule, and Fund Structure

Three of the most practically important topics in investment taxation involve how realized losses are treated, the rule that constrains when you can claim them, and how your choice of investment vehicle (ETF versus mutual fund) affects how many gains and losses you generate in the first place. These three guides cover each dimension.

The Wash-Sale Rule for Stocks

IRC §1091's wash-sale rule prevents investors from selling a security at a loss and immediately repurchasing it to capture a tax deduction while maintaining economic exposure to the same position. Specifically, a loss is disallowed if you purchase a "substantially identical" security within the 30-day window before or after the loss sale — a 61-day window in total. The disallowed loss is not permanently lost; it increases the cost basis of the replacement shares, effectively deferring the deduction until those shares are sold in a clean transaction. There are two important traps: first, the rule applies across all of your accounts and your spouse's accounts simultaneously, so a loss in a taxable account can be disallowed by a purchase in your spouse's IRA that you might not have coordinated; second, if the replacement shares land in an IRA, the deferred loss is permanently forfeited because the IRA's tax structure has no mechanism to recognize it when those shares are ultimately sold. As of 2026, the wash-sale rule does not apply to cryptocurrency, an asymmetry that creates a planning opportunity for crypto-holding investors but is under periodic legislative review.

Read the full guide: The Wash-Sale Rule for Stocks

Tax-Loss Harvesting for Stocks

Tax-loss harvesting is the practice of deliberately selling positions at a loss to generate deductible capital losses that offset capital gains — and, to a limited extent, ordinary income. Capital losses first offset capital gains of the same character (short-term losses against short-term gains, long-term losses against long-term gains), then cross-net any excess, and finally can offset up to $3,000 of ordinary income per year. Unused losses carry forward indefinitely to future years. The strategy is most powerful at year-end when current-year realized gains are known, but it can be executed throughout the year in response to specific positions that move into loss territory. The wash-sale rule is the primary constraint on harvesting: replacing a harvested position with something similar but not "substantially identical" — for example, replacing an individual stock with an ETF in the same sector, or replacing one S&P 500 ETF with a similar but non-identical index fund — is the common way to maintain exposure while keeping the deduction.

Read the full guide: Tax-Loss Harvesting for Stocks

ETF vs. Mutual Fund Tax Efficiency

ETFs and mutual funds that track the same index can produce meaningfully different tax outcomes for the investor, even when their pre-tax returns are nearly identical. Mutual funds must sell portfolio holdings whenever investors redeem shares, which can force the fund to realize capital gains that are then distributed to all remaining shareholders — including shareholders who didn't sell and didn't benefit from the appreciated position. ETFs use an in-kind creation/redemption mechanism that allows authorized participants to exchange low-basis shares directly with the fund rather than selling them, effectively flushing embedded gains out of the portfolio without triggering a taxable event. As a result, most equity ETFs distribute little or no capital gains, while comparable mutual funds may distribute significant ones in years of heavy redemption. For long-term investors holding positions in a taxable account, this structural difference in realized-gain distributions can compound into a meaningful tax drag over time, even when the headline expense ratios are similar.

Read the full guide: ETF vs. Mutual Fund Tax Efficiency

Equity Compensation: RSUs and Stock Options

Equity compensation received from an employer — RSUs, ISOs, and NQSOs — doesn't behave like investment income from purchased securities. The tax trigger, the character of the income, and the potential interaction with the alternative minimum tax all differ by instrument type.

Stock Options and RSU Tax Treatment

Restricted stock units (RSUs) are the most straightforward: the fair market value of the shares on the vest date is included in your W-2 as ordinary income, subject to income tax withholding and payroll taxes, regardless of whether you sell or hold. Your cost basis in those shares is the vest-date value, and any subsequent gain or loss when you sell is a capital gain — short-term if you sell within a year of vesting, long-term if you hold longer.

Non-qualified stock options (NQSOs) generate ordinary income at exercise equal to the spread between the exercise price and the fair market value on the exercise date. That spread is included in W-2 income and is subject to withholding. Subsequent appreciation from the exercise-date value to the sale price is a capital gain.

Incentive stock options (ISOs) are the most complex: there is no regular income tax at exercise, but the spread at exercise is an adjustment item for the alternative minimum tax (AMT), which can create a significant tax liability in the exercise year even if you haven't sold any shares. If you hold ISO shares long enough — past one year from exercise and two years from grant — the eventual gain qualifies for long-term capital gains rates. Disqualifying dispositions, selling too early, convert ISO gains into ordinary income retroactively.

Read the full guide: Stock Options and RSU Tax Treatment

Reporting and Cost Basis: 1099-B and Covered vs. Uncovered Securities

Accurate tax reporting on investment sales depends heavily on your brokerage's cost-basis records, the method you elect, and whether the IRS receives the same information your brokerage sends you. These two guides cover the reporting framework and the distinction between covered and uncovered securities that determines what your brokerage reports to the IRS.

Form 1099-B and Cost-Basis Reporting

Form 1099-B is the primary tax document for securities sales. Your brokerage sends one copy to you and one to the IRS each January for the prior tax year, detailing every sale: proceeds, cost basis where available, whether the holding period was short or long-term, and whether any wash-sale adjustments were applied. You report these sales on Form 8949 and Schedule D, which flow to your Form 1040.

The cost-basis method your brokerage uses matters significantly for active traders. FIFO (first in, first out) is the legal default: the shares you bought earliest are considered sold first. You can elect specific lot identification — choosing exactly which shares you're selling — to optimize for tax efficiency, but you must make that election before the trade settles. Average cost basis is generally only available for mutual fund shares. Changing the default method requires an affirmative election with your brokerage, and the rules for mid-year changes differ between brokerage platforms. Errors in transferred cost basis — where basis from a prior brokerage doesn't successfully carry over — are common and can cause you to overreport a gain or underreport a loss if not caught and corrected.

Read the full guide: Form 1099-B and Cost-Basis Reporting

Covered vs. Uncovered Securities: Cost-Basis Reporting

Securities are divided into "covered" and "uncovered" categories that determine how much your brokerage reports to the IRS. For covered securities — most equities acquired on or after January 1, 2011, and most mutual fund shares acquired on or after January 1, 2012 — brokerages are required to report not just proceeds but also adjusted cost basis and character (short-term or long-term) to the IRS on Box 1e of Form 1099-B. For uncovered securities, brokerages report proceeds to the IRS but are not required to report cost basis; the accuracy of the basis reported to you (but not the IRS) is your responsibility, and discrepancies are entirely on you to catch and correct before filing. The practical risk is that uncovered securities — which often arise from older positions, inherited shares, or shares transferred from a brokerage that didn't maintain adequate records — can have missing or incorrect basis in your current account, creating either an overstatement or understatement of gain when you sell.

Read the full guide: Covered vs. Uncovered Securities: Cost-Basis Reporting

Special Situations: Inherited Stock, Gifts, NIIT, and Bonds

Four categories of investment taxation operate under rules that diverge sharply from the standard capital gains framework: inherited securities that receive a stepped-up basis, securities transferred as gifts where the donor's basis and holding period carry over, investment income subject to the 3.8% net investment income tax surtax, and interest and gains from fixed-income instruments that are taxed differently depending on the type of bond. These four guides cover each.

Inherited Stock and the Stepped-Up Basis

When you inherit stock or other appreciated securities, your cost basis is generally stepped up to the fair market value on the date of the decedent's death, not the original purchase price. This means all appreciation during the original owner's lifetime escapes capital gains tax — it is excluded from your taxable gain when you eventually sell. If the decedent died holding stock worth $200 that was originally purchased for $50, your basis is $200, and selling at $200 produces no taxable gain. If the stock had declined from $50 to $30, your basis would be stepped down to $30, and a sale at any price above $30 generates a taxable gain. Holding period resets to long-term regardless of how long either party actually held the shares. Important exceptions: assets held in retirement accounts (IRAs, 401(k)s) do not receive a step-up because those accounts are tax-deferred rather than tax-exempt at sale; when shares are eventually distributed, they are taxed as ordinary income. Community property states apply step-up rules differently, often allowing the surviving spouse to step up both halves of jointly held community property rather than just the decedent's half.

Read the full guide: Inherited Stock and the Stepped-Up Basis

Gifting Stock: Tax Implications

Gifting appreciated stock to another person or to a charity has very different tax consequences depending on the recipient. When you give stock to another individual, your cost basis and holding period carry over to the recipient — they "inherit" your tax history. If your cost basis is lower than the market value at the time of the gift and the recipient later sells at a gain, they owe capital gains tax on the entire appreciation from your original basis. If the recipient sells at a loss, a special rule applies: the basis for computing a loss is the lower of your basis or the fair market value on the date of the gift, which can effectively eliminate the loss deduction entirely if the stock is underwater at the time of the gift. Gifting appreciated stock directly to a qualified charity rather than selling and donating cash is one of the most tax-efficient moves available to a charitable investor: the charity pays no capital gains tax, and you deduct the full fair market value (subject to AGI limits) without recognizing the gain yourself.

Read the full guide: Gifting Stock: Tax Implications

The 3.8% Net Investment Income Tax (NIIT)

The net investment income tax is a 3.8% surtax enacted as part of the Affordable Care Act that applies to individuals whose modified adjusted gross income (MAGI) exceeds $200,000 (single) or $250,000 (married filing jointly). The tax applies to the lesser of net investment income or the amount by which MAGI exceeds the threshold. Net investment income includes capital gains, dividends, interest, rental income, royalties, and passive activity income, but excludes wages, self-employment income, and distributions from IRAs and qualified plans. The NIIT thresholds have never been adjusted for inflation since the tax's 2013 enactment, which means they capture an increasing share of upper-middle-income taxpayers over time as incomes rise with inflation while the thresholds remain fixed. For an investor in the 20% long-term capital gains bracket who is also subject to the NIIT, the combined federal rate on long-term gains or qualified dividends is 23.8%, rising to 40.8% on short-term gains in the 37% bracket.

Read the full guide: The 3.8% Net Investment Income Tax (NIIT)

Bond and Fixed-Income Taxation

Fixed-income investments are taxed under rules that differ meaningfully from equity investments. Interest income from corporate bonds and most other taxable bonds is ordinary income, taxed at rates up to 37%, with no preferential rate equivalent to long-term capital gains. U.S. Treasury interest is exempt from state and local income tax (but not federal). Municipal bond interest is generally exempt from federal income tax and from state income tax in the state of issuance, making munis potentially tax-advantaged at both levels — though they can be subject to the AMT in certain situations and do count toward the NIIT calculation for some taxpayers. Zero-coupon bonds generate "phantom income" — the IRS requires you to recognize imputed interest each year even though you receive no cash payment until maturity. Capital gains or losses on bond sales are calculated the same way as for stocks (proceeds minus adjusted basis), with holding period determining short-term versus long-term treatment, but bonds purchased at a premium or discount have additional basis adjustment rules that can create unexpected reporting complexity.

Read the full guide: Bond and Fixed-Income Taxation

Worked Example: How Multiple Rules Hit the Same Year-End Portfolio

Hypothetical walkthrough — for education only.

The individual guides above cover each rule in isolation. This walkthrough puts several of them together in a single hypothetical year to make the interactions concrete.

The setup. A single filer with $280,000 in W-2 income holds a taxable brokerage account with a mix of positions. In December they decide to do some year-end tax management. Their situation: a $40,000 unrealized long-term gain in a tech stock held 18 months, a $12,000 unrealized short-term loss in a sector ETF held 8 months, $5,000 of qualified dividends received during the year, and an RSU vest from January of the same year at $60,000 that was included in W-2 income (ordinary income at vest, already accounted for in the $280,000).

The capital gains netting. The filer sells the tech stock ($40,000 long-term gain) and the sector ETF ($12,000 short-term loss). Short-term losses net first against short-term gains, but there are no short-term gains, so the $12,000 short-term loss offsets $12,000 of the long-term gain. Net long-term gain = $28,000. The remaining long-term gain is taxed at the 15% preferential rate (income of $280,000 plus $28,000 = $308,000 exceeds the 0% bracket, stays below the 20% threshold for single filers). Federal tax on long-term gain: $28,000 × 15% = $4,200.

The NIIT. MAGI of ~$308,000 exceeds the $200,000 NIIT threshold by $108,000. Net investment income includes $28,000 long-term gain + $5,000 qualified dividends = $33,000. The NIIT applies to the lesser of net investment income ($33,000) or the MAGI excess ($108,000) — so $33,000 × 3.8% = $1,254. Combined federal rate on the long-term gain: 15% + 3.8% = 18.8%.

The wash-sale trap. Two weeks after selling the sector ETF at a $12,000 loss, the filer purchases a "substantially identical" ETF tracking the same index from a different provider. If the IRS determines those ETFs are substantially identical (which is fact-specific and not guaranteed in either direction), the $12,000 loss is disallowed as a wash sale, the offsetting gain calculation changes, and the entire long-term gain of $40,000 is now taxable at 15% — increasing the federal tax by $12,000 × 15% = $1,800, on top of additional NIIT exposure.

What this illustrates. The wash-sale rule is the most common way year-end tax harvesting plans go wrong. The NIIT applies at an income level that is neither extremely high nor obviously "wealthy" by coastal living standards. And the interaction between which losses are short-term versus long-term materially affects the net after the netting rules are applied. Each of the linked guides below covers one dimension; the value of reading them is understanding how they interact.

Misconceptions Versus Reality

Several wrong assumptions about investment taxes are common enough to address directly.

MisconceptionReality
All dividends get the preferential 15%/20% rateOnly qualified dividends get the preferential rate; ordinary dividends from REITs, most preferred stocks, and money market funds are taxed as ordinary income up to 37%
The wash-sale rule only applies to your own taxable accountsThe rule applies across all accounts you and your spouse control, including IRAs and 401(k)s; a purchase in a spouse's IRA within the 61-day window disallows the loss and permanently forfeits the deferred basis in that IRA
Inherited stock takes your basis and holding period from the original ownerInherited stock typically receives a stepped-up basis to the date-of-death fair market value, erasing pre-inheritance appreciation, and resets the holding period to long-term automatically
ETFs and mutual funds tracking the same index have the same tax treatmentETFs' in-kind creation/redemption mechanism typically results in far fewer realized capital gain distributions to shareholders compared to equivalent mutual funds, which must sell holdings to meet redemptions
The NIIT threshold is $200,000 for everyoneThe threshold is $200,000 for single filers, $250,000 for married filing jointly, and $125,000 for married filing separately; it has not been indexed for inflation since 2013
Capital losses fully offset ordinary incomeCapital losses can only offset capital gains plus up to $3,000 of ordinary income per year; excess losses carry forward indefinitely but cannot shelter large amounts of W-2 or business income in a single year

Risks, Limitations, and Exceptions

Practical Tax Checklist for Active Traders

  1. Track holding periods on every position: know whether a position crosses the one-year mark before you sell, and plan sales around that date when the tax difference is material.
  2. Check the qualified dividend holding-period test before selling a stock you've recently held through an ex-dividend date; a sale too soon converts a 15% dividend into ordinary income retroactively.
  3. Before executing a tax-loss harvest, map the 61-day wash-sale window: 30 days before the sale, the day of, and 30 days after. Check all accounts — including your spouse's — for recent purchases of the same or substantially identical security.
  4. Verify your brokerage's default cost-basis method and consider electing specific lot identification if you have multiple lots at different basis levels; the election must be made before the trade settles.
  5. At account opening and after any security transfer, confirm that cost basis for uncovered securities has been correctly established in your brokerage's records; missing basis defaults to zero, which overstates your gain.
  6. Calculate whether your MAGI will exceed the NIIT threshold ($200,000 single / $250,000 married filing jointly) before recognizing a large gain — the 3.8% surtax can apply to gains that push you over even if your wage income alone is below it.
  7. If you hold company equity (RSUs, ISOs, NQSOs), model the tax impact before exercising or selling; ISO exercises in particular can create AMT liability that isn't apparent until year-end and may require estimated tax payments mid-year.
  8. Consider donating appreciated stock directly to charity rather than selling and donating cash; the charitable deduction is for the full fair market value, and the capital gain is never recognized.
  9. For inherited securities, request the date-of-death valuation from the executor's estate documentation and provide it to your brokerage to establish the stepped-up basis before you sell.
  10. Review Form 1099-B carefully each February before filing; cross-check cost basis and wash-sale adjustments against your own trade records, and contact your brokerage to correct any errors before submitting your return.

Frequently Asked Questions

What is the difference between short-term and long-term capital gains tax rates?

Short-term capital gains — profits on assets held one year or less — are taxed as ordinary income, at rates from 10% up to 37% depending on your total taxable income. Long-term capital gains — profits on assets held more than one year — qualify for preferential rates of 0%, 15%, or 20%, with the applicable rate determined by your taxable income and filing status. For 2026, single filers pay 0% on long-term gains if their taxable income is $49,450 or below, and married couples filing jointly pay 0% up to $98,900. The spread between an ordinary income rate and the preferential long-term rate can be substantial for higher earners, making holding period one of the most impactful variables in investment tax planning. See Short-Term vs. Long-Term Capital Gains Tax Rates for the complete 2026 bracket tables.

Do qualified dividends get taxed at a lower rate than ordinary dividends?

Yes. Qualified dividends — generally dividends paid by U.S. corporations or qualifying foreign corporations on stock you held for more than 60 days during the 121-day window surrounding the ex-dividend date — are taxed at the same preferential 0%, 15%, or 20% rates that apply to long-term capital gains. Ordinary, or non-qualified, dividends are taxed as ordinary income at rates from 10% to 37%. The distinction can be significant: a high-income investor paying 37% on ordinary income pays only 20% (plus potentially the 3.8% NIIT) on qualified dividends from the same account. See Qualified vs. Ordinary Dividends for the holding-period tests and which dividend types don't qualify.

What is the wash-sale rule and how does it affect tax-loss harvesting?

The wash-sale rule, codified in IRC §1091, disallows a loss deduction when you sell a security at a loss and buy a "substantially identical" security within 30 days before or after that sale — a 61-day window in total. The disallowed loss isn't permanently lost; it's added to the cost basis of the replacement shares, deferring recognition rather than eliminating it. However, if the replacement shares are purchased in an IRA, that addition to basis is permanently lost because the IRA's tax-advantaged structure prevents the deferred loss from ever being recognized. The rule applies across all of your taxable accounts and your spouse's accounts, but as of 2026 it does not apply to cryptocurrency. See The Wash-Sale Rule for Stocks for the full mechanics, including what "substantially identical" means in practice.

Who has to pay the 3.8% net investment income tax?

The net investment income tax (NIIT) is a 3.8% surtax that applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds a threshold: $200,000 for single filers, $250,000 for married filing jointly, and $125,000 for married filing separately. Unlike the income tax brackets, the NIIT thresholds are not adjusted for inflation — they have remained fixed since the tax was enacted in 2013 — so more taxpayers are affected each year as incomes rise. Net investment income includes capital gains, dividends, interest, rental income, and income from passive activities, but not wages or self-employment income. See The 3.8% Net Investment Income Tax (NIIT) for strategies to manage exposure.

How are RSUs taxed when they vest?

Restricted stock units (RSUs) are taxed as ordinary income at vesting, at the full fair market value of the shares on the vest date, regardless of whether you sell those shares immediately or hold them. That value is included in your W-2 and is subject to income tax withholding and payroll taxes. Any gain or loss after the vest date — calculated from the vest-date fair market value, which becomes your cost basis — is taxed as a capital gain or loss, short-term if you sell within a year of vesting and long-term if you hold beyond a year. Stock options follow a different set of rules depending on whether they are incentive stock options (ISOs) or non-qualified stock options (NQSOs), with ISOs potentially triggering the alternative minimum tax. See Stock Options and RSU Tax Treatment for the side-by-side comparison of RSU, ISO, and NQSO treatment.

What is Form 1099-B and why does it matter for cost-basis reporting?

Form 1099-B is the annual tax form your brokerage sends you and the IRS detailing every sale of securities in your taxable account during the year, including the proceeds, the cost basis (where available), and whether the gain or loss is short-term or long-term. Accurate cost-basis reporting depends on the method your brokerage uses — FIFO (first in, first out) is the default for most brokerages unless you elect another method — and on whether the security is "covered" (meaning the brokerage is required to report cost basis to the IRS) or "uncovered" (basis is reported to you but not the IRS, putting the burden on you). Errors on a 1099-B, particularly for securities transferred between brokerages, are common; catching them before you file can prevent overpaying tax. See Form 1099-B and Cost-Basis Reporting for how to read the form and what to do when the reported basis is wrong.

Can I inherit stock and avoid capital gains tax on appreciation that happened before I inherited it?

Yes, in most cases. When you inherit stock, your cost basis is generally "stepped up" to the fair market value on the date of the decedent's death, which means appreciation that occurred during the original owner's lifetime escapes capital gains tax entirely when you sell. If the stock declined in value, the basis is instead "stepped down" to the lower date-of-death value. The step-up applies to assets included in the decedent's taxable estate, and there are limited exceptions — notably, assets held in IRAs and 401(k)s do not receive a step-up in basis. See Inherited Stock and the Stepped-Up Basis for the rules, what happens in community property states, and how to document the stepped-up basis with your brokerage.

Is this page personalized tax advice?

No. This guide explains the general federal tax rules applicable to U.S. stock and investment income for educational purposes only. It is not personalized investment, legal, or tax advice, and tax rates, thresholds, and rules can change; always confirm current figures with IRS publications or a qualified tax professional before making decisions based on any specific number or rule discussed here.

Sources and Methodology

This guide describes the general structure of U.S. federal income taxation on stock and investment income based on publicly available IRS guidance, congressional legislation, and regulatory documentation as of August 2026. Key sources include:

The worked example in this guide is a hypothetical, illustrative scenario constructed for educational purposes and does not describe a specific real account, brokerage, security, or tax outcome.

This content was reviewed by the Swoopr Editorial Team in August 2026 and reflects publicly available information at that time. Tax rates, thresholds, and rules can change with legislation or IRS guidance; treat this guide as a structural framework for understanding the topic rather than a permanently current statement of every applicable rule for your specific situation.

Conclusion

Investment taxation isn't a single rule — it's a system of interacting rules where the outcome depends on the type of income, the holding period, the account type, the income level, and the sequence of transactions within a year. A trader who understands only the capital gains rates but ignores the wash-sale rule, the NIIT threshold, the holding-period test for qualified dividends, and the cost-basis method in use at their brokerage is working with an incomplete picture that regularly produces surprise tax bills. The same return, structured differently, can have a dramatically different after-tax outcome. Understanding the architecture of these rules — not just memorizing the rates — is the foundation of tax-efficient trading. Use this page as the map and each of the fourteen linked guides as the detailed guide for whichever dimension is most relevant to your current situation.

Related Reading