Capital gains and qualified dividends tax: what this calculator estimates
This tool estimates how qualified dividends (QD) and net long-term capital gains (LTCG) can be taxed at
preferential federal rates (0% / 15% / 20%) instead of ordinary income rates. It also supports an optional
advanced block for special-rate long-term gains taxed at 25% (unrecaptured section 1250 gain) and 28%
(collectibles gain).
Educational calculator; not tax advice. This is a simplified estimator. Real tax outcomes can differ due to netting rules,
losses, other forms/credits, and additional taxes. Always verify with IRS instructions/forms.
Key IRS concepts (plain language)
-
Short-term capital gain (ST) is generally taxed at ordinary income rates (like wages).
-
Qualified dividends (a subset of dividends) can be taxed at 0% / 15% / 20% if you meet IRS requirements
(including holding-period rules).
-
Net long-term capital gain may also be taxed at 0% / 15% / 20%, depending on your filing status and your
total taxable income.
-
Preferential-rate thresholds move with inflation and sometimes law changes, so this calculator uses tax-year-specific tables.
What you should enter
The calculator needs a tax year and filing status, then separates your inputs into an ordinary portion and a
preferential portion.
-
Ordinary taxable income (direct mode): enter the part of taxable income that is taxed at ordinary rates
excluding qualified dividends and net long-term capital gains. Then enter net short-term gain (ST),
which this estimator taxes at ordinary rates.
-
Build mode (optional helper): you can build an estimate of ordinary taxable income from wages/interest/other
ordinary income, subtract a single “adjustments total,” and subtract either standard deduction or itemized total.
This is a convenience feature, not a full Form 1040 computation.
-
Qualified dividends (QD): enter the amount reported as qualified dividends.
-
Net long-term capital gain (LT): enter net LTCG (positive).
-
Advanced (optional): unrecaptured section 1250 gain (25% max) and collectibles gain (28% max). In this
calculator they must fit within the LT amount you enter.
How the “preferential rate bands” work
Preferential thresholds apply to your total taxable income. Conceptually, your ordinary income “fills up” the
lower levels first, and then your QD/LTCG portion sits on top and gets taxed at 0%/15%/20% depending on where it lands.
Notation used below:
\[
\begin{aligned}
O &= \text{ordinary portion (includes ST)}\\
Q &= \text{qualified dividends}\\
L &= \text{net long-term capital gain}\\
W &= \text{what-if additional regular LTCG}\\
T &= O + Q + L + W \quad \text{(total taxable income)}
\end{aligned}
\]
The calculator uses your tax year + filing status to fetch the preferential thresholds:
\[
\begin{aligned}
Z &= \text{0\% threshold (end of the 0\% band)}\\
F &= \text{15\% threshold (end of the 15\% band)}
\end{aligned}
\]
First, define the amount of QD/LTCG that is eligible for the regular preferential bands (0% / 15% / 20%). If you use the
advanced special-rate gains, those special-rate amounts are treated separately from the regular 0/15/20 pool.
\[
P = Q + \text{(regular LTCG)} \quad \text{(regular preferential pool)}
\]
Then the regular pool is allocated into the 0%, 15%, and 20% bands using a “capacity” idea:
how much space is left under each threshold after ordinary income is counted.
\[
\begin{aligned}
A_0 &= \min\Bigl(P,\; \max\bigl(0,\; \min(T,Z) - O\bigr)\Bigr)\\
A_{15} &= \min\Bigl(P-A_0,\; \max\bigl(0,\; \min(T,F) - O - A_0\bigr)\Bigr)\\
A_{20} &= P - A_0 - A_{15}
\end{aligned}
\]
Regular preferential tax (0% / 15% / 20%) is then:
\[
\text{Tax}_{\text{regular pref}} = 0 \cdot A_0 + 0.15 \cdot A_{15} + 0.20 \cdot A_{20}
\]
Special-rate long-term gains (25% and 28%)
If you enable the advanced block, the calculator adds:
\[
\text{Tax}_{\text{special}} = 0.25 \cdot U + 0.28 \cdot C
\]
where \(U\) is unrecaptured section 1250 gain and \(C\) is collectibles gain (as entered). The calculator then combines:
\[
\text{Tax}_{\text{preferential}} = \text{Tax}_{\text{regular pref}} + \text{Tax}_{\text{special}}
\]
Ordinary income tax portion
The calculator computes ordinary income tax on \(O\) using the ordinary income brackets for your tax year and filing status.
Conceptually, it sums each bracket slice:
\[
\text{Tax}_{\text{ordinary}} = \sum_i r_i \cdot \max\bigl(0,\; \min(O,b_{i+1}) - b_i\bigr)
\]
The final total is:
\[
\text{Tax}_{\text{total}} = \text{Tax}_{\text{ordinary}} + \text{Tax}_{\text{preferential}}
\]
What this calculator does not include (important)
- Net investment income tax (NIIT), additional Medicare taxes, or other surtaxes.
- AMT and AMT-related preferential computations.
- Capital loss limitation rules (e.g., net capital loss up to a limit) and detailed netting across categories.
- Tax credits, phaseouts, and interactions with other forms/schedules.
- Special cases like 3.8% NIIT thresholds, foreign tax credit, ACA premium tax credit, and business credits.
Where these numbers often come from
-
Qualified dividends are reported separately from ordinary dividends (often visible on Form 1040 and brokerage statements).
-
Capital gains are typically computed via Schedule D and/or Form 8949, then carried to Form 1040.
-
If you already know your taxable income and want an approximate “ordinary portion,” you can start with taxable income
and subtract QD and net LTCG, but the official worksheet instructions remain the source of truth.
Primary IRS references