How Stock Profit Math Actually Works
Three numbers move the after-tax return on a stock trade and only one of them is the price difference. Cost basis is the buy price times shares plus the buy commission, sale proceeds is the sell price times shares minus the sell commission, and the gap between them is the capital gain — which then gets taxed at one of two completely different rate structures depending on how long the position was held. The IRS draws the line at exactly one year and one day per Topic 409: hold longer and the gain qualifies for long-term capital gains rates of 0%, 15%, or 20%; sell sooner and it lands in your ordinary-income bracket alongside your wages. For a 22% bracket trader, that single-day distinction is the difference between keeping 78 cents of every dollar gained and keeping 85.
Long-Term Capital Gains Brackets for 2026
Per IRS Revenue Procedure 2025-32 (summarized by the Tax Foundation), the 2026 long-term capital gains brackets are 0% on taxable income up to $49,450 single ($98,900 married filing jointly, $66,200 head of household), 15% from there up to $545,500 single ($613,700 MFJ, $579,600 HOH), and 20% above those caps. The brackets shifted up about 2.7% from 2025 for inflation but the rate structure has been unchanged since the Tax Cuts and Jobs Act took effect in 2018. The 0% bracket is genuinely 0% federal on long-term gains for anyone whose taxable income (including the realized gain) stays under the threshold — which is more retail investors than typically realize, especially in retirement years before required minimum distributions kick in. The Net Investment Income Tax adds another 3.8% on top of these rates for high earners over $200,000 single / $250,000 MFJ; the calculator does not model NIIT but it stacks on the federal LTCG number.
Short-Term Gains and Why They Hurt
Short-term capital gains — anything held one year or less — get taxed as ordinary income, which means the marginal federal rate runs 10/12/22/24/32/35/37% depending on bracket. For a single filer earning $80,000 of taxable income in 2026, the marginal ordinary rate is 22%, while the long-term rate on the same gain would be 15%. That seven-point gap on a $5,000 short-term gain is $350 of tax avoidable just by waiting out the holding period. The math gets more pronounced at higher brackets: a 32% ordinary rate flipped to a 15% LTCG rate keeps 17 cents on every gain dollar. State tax compounds the problem in California, New York, and other high-tax states because most states tax capital gains as ordinary income with no preferential rate — California specifically pulls 9.3% off the top regardless of holding period. The calculator surfaces both scenarios when the holding toggle flips, alongside the profit margin calculator for the underlying business case and the depreciation calculator for tax-deferred equipment plays that work the opposite direction of front-loading deductions.
- • Capital gains tax basics, holding periods, and rate structure: IRS Topic 409
- • 2026 LTCG income thresholds (Rev Proc 2025-32 summary): Tax Foundation 2026 Brackets
- • Wash-sale rule and substantially identical securities: IRS Publication 550
- • Cost basis reporting and Form 8949: IRS Form 8949