Stock Capital Gains Tax Calculator
Holding period
Long-term: 0% / 15% / 20% LTCG. Short-term: ordinary income tax rates.
Filing status
Qualified Small Business Stock (§1202)?
QSBS allows up to $10M or 10× basis exclusion if all §1202 requirements met.
Share with friends
How to use
- 1 Enter sale proceeds and original cost basis (purchase price + commissions paid). Sale-side commissions deduct from proceeds.
- 2 Choose holding period: SHORT-TERM (held ≤1 year, taxed at ordinary rates) or LONG-TERM (>1 year, 0/15/20% LTCG).
- 3 Enter your filing status and other ordinary income — long-term gains are stacked ABOVE ordinary income to determine which 0/15/20% bracket applies.
- 4 Toggle QSBS §1202 if your holding qualifies (issued by a C-corp with < $75M assets at issuance, held 5+ years for 100% exclusion). Calculator applies $15M cap or 10× basis.
- 5 Enter capital loss carryover from prior years and state tax rate. Click Calculate to see federal tax, NIIT 3.8%, state tax, total, and any remaining carryover.
About Stock Capital Gains Tax Calculator
FAQ
Q How are stock capital gains taxed in 2026?
Long-term gains (held >1 year): 0/15/20% federal LTCG rates depending on total income. Short-term (held ≤1 year): ordinary rates 10-37%. Plus 3.8% NIIT for high earners (MAGI > $200K single / $250K MFJ). State tax 0-13% additional.
Q What is QSBS and the OBBBA upgrade?
Qualified Small Business Stock under IRC §1202. OBBBA (July 4, 2025) raised the per-issuer exclusion from $10M to $15M, added a tiered holding (50%/75%/100% at 3/4/5 years), and raised the gross asset threshold from $50M to $75M. For founders, this is one of the biggest tax wins in US history.
Q How does the wash sale rule work?
IRC §1091: if you sell a security at a loss and buy a substantially identical one within 30 days BEFORE or AFTER, the loss is disallowed — added to the basis of the replacement security. Applies to spouse's and IRA accounts. Does NOT apply to cryptocurrency (a major loophole in 2026).
Q Can I deduct stock losses against W-2 income?
Yes — up to $3,000/year ($1,500 MFS) of net capital loss can offset ordinary income (W-2, business). The rest carries forward indefinitely. Combined with no wash sale on crypto and selective tax-loss harvesting, this is the most consistent annual tax shelter for investors.
Q What is tax-loss harvesting?
Selling losing positions to realize losses, then offsetting current/future gains and up to $3,000/yr ordinary income. Replace with a SIMILAR but NOT IDENTICAL security to maintain market exposure. Most beneficial December 1-31 each year. Robo-advisors automate this systematically.
Q How is NIIT calculated on stock gains?
NIIT is 3.8% × the LESSER of (a) net investment income or (b) MAGI over threshold ($200K single / $250K MFJ). It's an ADDITIONAL tax on top of LTCG/STCG. Frozen since 2013, no inflation adjustment, captures more taxpayers each year as wages rise.
Q What is the 0% capital gains rate?
Long-term capital gains are TAX-FREE federally (0% rate) if total taxable income (other income + the gain itself stacked on top) stays under $48,350 single / $96,700 MFJ in 2026. Major retirement-planning opportunity — sell appreciated stock in low-income years (sabbatical, retirement gap before SS/RMDs).
Q Should I report stock gains every year?
Yes — Form 8949 + Schedule D required for every disposition that triggers gain/loss. Brokerages issue Form 1099-B. Match the figures exactly; mismatches trigger CP2000 notices. Use specific identification to choose exact lots when selling — minimizes current-year gain.
Official resources
IRS Topic 409 — Capital Gains and Losses
Internal Revenue Service official guide to short-term vs. long-term holding periods, capital gains rates, and loss carryforward.
IRS — Section 1202 QSBS Exclusion
IRS official guidance on QSBS §1202 including the OBBBA upgrade to $15M exclusion and tiered holding.
IRS Form 8949 — Sales and Other Dispositions
Internal Revenue Service Form 8949 used to report capital asset sales with Schedule D for stock transactions.
IRS Publication 550 — Investment Income and Expenses
IRS comprehensive publication on investment income, capital gains, wash sales, and cost basis tracking.