LowercaseOnline โ€” Free Online Text Tools

Capital Gains Tax Estimator

Estimate your federal capital gains tax on stock sales โ€” short-term vs. long-term โ€” based on 2024 tax brackets.

Estimates are for federal tax only. State taxes vary and are not included. Consult a tax professional for advice specific to your situation.
โ€”
Gross Proceeds
โ€”
Cost Basis
โ€”
Capital Gain / Loss
โ€”
Est. Federal Tax Owed
โ€”
Net Proceeds After Tax
โ€”
Effective Tax Rate on Gain
2024 Long-Term Capital Gains Tax Brackets
Filing Status0% Rate Up To15% Rate Up To20% Rate Above
Single$47,025$518,900$518,900+
Married Filing Jointly$94,050$583,750$583,750+
Head of Household$63,000$551,350$551,350+
Short-Term vs. Long-Term โ€” Tax Comparison
Holding PeriodTax TypeYour Estimated RateTax on This GainNet Proceeds

Short-Term vs. Long-Term Capital Gains

If you hold an asset for one year or less, profits are taxed as ordinary income โ€” the same rate as your salary (10%โ€“37%). Hold for more than one year and you qualify for preferential long-term rates of 0%, 15%, or 20%.

2024 LTCG Rates Explained

Single filers pay 0% on long-term gains if total taxable income is under $47,025. The rate jumps to 15% up to $518,900, and 20% above that. Most middle-income investors pay 15%.

Net Investment Income Tax (NIIT)

High earners may owe an additional 3.8% NIIT on investment income. This applies to singles earning above $200,000 and married couples above $250,000 (these thresholds are not inflation-adjusted). Combined with the 20% LTCG rate, top earners can face a 23.8% federal rate on gains โ€” plus state taxes.

Tax-Loss Harvesting

If you have unrealized losses in other positions, selling them can offset your capital gains dollar-for-dollar. Up to $3,000 in net losses can also offset ordinary income per year, with the remainder carried forward to future years.