Capital Gains Tax Calculator
Calculate capital gains tax on investments. Compare short-term vs long-term rates, NIIT, and state taxes. Free capital gains tax calculator with bracket stacking.
Using $75K ordinary income, 5% state tax, no losses
Investment Details
Total profit from selling investments
How long you held the investment before selling
Your tax filing status
Tax Settings
Your Capital Gains Tax
Capital Gains Tax
$10,000
On $50,000 net gain
Effective Rate
20.0%
15.0% federal rate
Long-Term Savings
$3,698
Saved vs short-term rates
Short-Term vs Long-Term Comparison
Detailed Tax Breakdown
Embed This Calculator
Copy the code below to embed this calculator on your website.
<iframesrc="https://calcfalcon.com/embed/personal-finance/capital-gains-tax-calculator"width="100%"height="500"frameborder="0"title="Capital Gains Tax Calculator"></iframe>
Frequently Asked Questions
What is the difference between short-term and long-term capital gains?
Short-term capital gains apply to investments held less than one year and are taxed at your ordinary income tax rate (up to 37%). Long-term capital gains apply to investments held one year or longer and are taxed at preferential rates of 0%, 15%, or 20% depending on your taxable income and filing status.
What is the Net Investment Income Tax (NIIT)?
The NIIT is an additional 3.8% tax on investment income (including capital gains) for high earners. It applies when your modified adjusted gross income exceeds $200,000 for single filers, $250,000 for married filing jointly, or $125,000 for married filing separately. The tax applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold.
How does tax-loss harvesting work?
Tax-loss harvesting involves selling investments at a loss to offset capital gains. Losses first offset gains dollar-for-dollar. If your losses exceed your gains, you can deduct up to $3,000 per year ($1,500 if married filing separately) against ordinary income. Remaining losses carry forward to future tax years indefinitely.
How do capital gains brackets "stack" on ordinary income?
Long-term capital gains are taxed after your ordinary income fills up the lower brackets. For example, if you're single with $47,025 in taxable ordinary income, that fills the 0% capital gains bracket entirely. Your capital gains would then start in the 15% bracket. This is why higher ordinary income pushes your gains into higher capital gains tax brackets.
How to Use the Capital Gains Tax Calculator
Enter your capital gain amount, select your holding period and filing status, and see your estimated tax instantly. The calculator handles the complex bracket stacking that determines your actual rate.
Quick Mode
Enter your gain amount, holding period, and filing status. The calculator assumes $75,000 ordinary income, 5% state tax rate, and no capital losses.
Advanced Mode
Customize your ordinary income (which affects bracket stacking), capital losses to offset gains, and your state tax rate. See how NIIT applies if your income exceeds the threshold.
Understanding Capital Gains Brackets
Long-term capital gains have their own bracket structure (0%, 15%, 20%), but your gains "stack" on top of ordinary income. If your ordinary taxable income already fills the 0% bracket, your gains start in the 15% bracket. This is why two people with the same gain but different incomes pay different capital gains tax rates.
Key Concepts
Hold investments for at least one year to qualify for long-term rates. Use tax-loss harvesting to offset gains. Be aware of NIIT if your income is above the threshold. Capital losses exceeding gains can offset up to $3,000 of ordinary income per year, with the remainder carrying forward.
Get Free Tax Tips
Join thousands of freelancers getting actionable tax and finance tips delivered to their inbox.
Plus, download our free Freelancer Tax Cheatsheet (PDF)
Related Calculators
Self-Employment Tax Calculator
Calculate SE tax on freelance and business income
Personal FinanceFIRE Calculator
Plan your path to financial independence
FreelanceW2 vs 1099 Calculator
Compare take-home pay between employment types
FreelanceQuarterly Tax Estimator
Estimate your quarterly estimated tax payments