Capital Gains Tax Calculator
receipt_longInvestment Details
paymentsTax Breakdown
tips_and_updates Tips
- • Hold investments for at least 1 year + 1 day to qualify for long-term rates
- • Tax-loss harvesting: offset gains with realized losses to reduce tax
- • 0% LTCG bracket exists for low-to-middle earners — useful for retirees
- • NIIT (3.8%) applies above $200k single / $250k married — plan around it
- • Real estate primary home: $250k single / $500k married exclusion
- • Wash sale rule: can't claim loss if you rebuy same security within 30 days
- • Crypto is taxed like property, not currency — every trade is a taxable event
- • Hold tax-inefficient assets (REITs, bonds) in IRAs to avoid annual tax drag
How to Use This Calculator
Enter purchase + sale price
How much you paid and what you sold for.
Set holding period in months
12+ months qualifies for long-term rates.
Choose filing status + income
Determines which LTCG bracket applies.
Add fees and state rate
Optional but improves accuracy.
Review tax breakdown
See federal, state, NIIT, and net profit after tax.
The Formula
Long-term gains (1+ year holding) get the lowest tax rates — 0% if you're in low tax brackets, 15% for most taxpayers, 20% for very high earners. Short-term gains (under 1 year) are taxed at your ordinary income rate, which can be much higher. This is why long-term investing is tax-efficient.
Net Gain = (Sale Price − Purchase Price − Fees); Tax = Net Gain × Federal Rate + Net Gain × State Rate + NIIT (if applicable)
lightbulb Variables Explained
- Net Gain Profit after deducting purchase cost and selling fees
- Federal Rate 0/15/20% LTCG, or 10-37% ordinary STCG
- State Rate Varies by state (0% in TX/FL, 13.3% in CA)
- NIIT 3.8% extra for MAGI over $200k single / $250k married
tips_and_updates Pro Tips
Hold investments for at least 1 year + 1 day to qualify for long-term rates
Tax-loss harvesting: offset gains with realized losses to reduce tax
0% LTCG bracket exists for low-to-middle earners — useful for retirees
NIIT (3.8%) applies above $200k single / $250k married — plan around it
Real estate primary home: $250k single / $500k married exclusion
Wash sale rule: can't claim loss if you rebuy same security within 30 days
Crypto is taxed like property, not currency — every trade is a taxable event
Hold tax-inefficient assets (REITs, bonds) in IRAs to avoid annual tax drag
Frequently Asked Questions
Related Tools
View all Financial View all arrow_forwardTags
Data sourced from trusted institutions
All formulas verified against official standards.