SnapTool Logo
SnapToolSnap. Solve. Done.

Capital Gains Tax Calculator

Estimate your estimated federal and state capital gains tax liabilities for stocks, crypto, real estate, or other investments. Renders a complete take-home profit breakdown instantly.

Last Updated: May 2026
Live Interactive Calculator
i

FTC Affiliate Disclosure: This calculator is supported by our readers. Some links on this page may be affiliate recommendations. We may receive commissions if you choose to sign up or purchase a service, at no additional cost to you. This does not impact the independence or accuracy of our calculations.

Transaction Details

Ordinary Income & Filing Status

Wages, business profits, interest, etc. used to set your tax bracket.

Capital Gains Tax Estimate

Net Capital GainsProfit after transaction fees
$68,000
Estimated Tax BurdenCombined Federal, State & NIIT Taxes
$10,20015.0% Combined Effective Rate
Net Take-Home CashGains minus all estimated taxes
$57,800

Detailed Tax Component Breakdown

Tax TypeTax Liability
Federal Capital Gains Tax$10,200
State Capital Gains Tax$0
Total Estimated Tax$10,200

Understanding Capital Gains Taxes in the United States

When you sell an investment or asset for more than you paid for it, the resulting profit is subject to capital gains tax. Whether you are trading stocks, investing in cryptocurrency, selling real estate, or liquidating a business, understanding how these taxes are computed is essential for calculating your actual net profit.

This calculator is designed to provide a highly accurate estimate of your combined tax burden, including federal capital gains tax, state-level capital gains tax, and the federal Net Investment Income Tax (NIIT) surcharge for high earners.

Long-Term vs. Short-Term Gains: The One-Year Rule

The single most important factor determining your capital gains tax rate is the holding period:

  • Short-Term Capital Gains (≤ 1 Year): If you sell an asset after holding it for one year or less, your profit is treated as ordinary income. It is stacked on top of your salary and taxed at your marginal federal ordinary income tax bracket (ranging from 10% to 37%).
  • Long-Term Capital Gains (> 1 Year): If you hold your asset for even one day longer than a year, your profits qualify for lower progressive capital gains tax rates (0%, 15%, or 20%). The threshold for these brackets depends on your overall taxable income.

Calculating Your Net Taxable Gain (Cost Basis)

Your taxable capital gain is not simply the selling price. It is calculated as:

Taxable Gain = Selling Price - Purchase Price (Cost Basis) - Transaction Fees

Transaction fees include broker commissions, exchange transaction fees, escrow costs, and legal fees incurred during the purchase or sale. Reducing your taxable gains by including these fees ensures you only pay taxes on your actual, net realized profits.

Avoiding Surcharges: The 3.8% NIIT

The Net Investment Income Tax (NIIT) is a 3.8% tax created by the Affordable Care Act that targets investment income for high earners. It is triggered when your Modified Adjusted Gross Income (MAGI) exceeds $200,000 for single filers or $250,000 for married couples filing jointly. The tax applies to the lesser of your net investment income or the amount your MAGI exceeds the threshold. Our calculator automatically applies this formula to protect you from unexpected IRS surcharges.

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?

The difference depends entirely on how long you held the asset before selling it. Short-term capital gains apply to assets held for one year or less and are taxed at standard federal ordinary income tax rates (up to 37%). Long-term capital gains apply to assets held for more than one year and benefit from reduced progressive rates of 0%, 15%, or 20%.

What is the Net Investment Income Tax (NIIT)?

The NIIT is a 3.8% federal tax surcharge on investment income (including capital gains) for high-earning individuals. It applies to single filers with a Modified Adjusted Gross Income (MAGI) exceeding $200,000, married couples filing jointly exceeding $250,000, and married couples filing separately exceeding $125,000.

How are capital gains taxed at the state level?

Most US states tax capital gains as ordinary income, meaning they apply their standard state income tax brackets or flat rates directly to your capital gains. A few states (like California) have no special rates for long-term gains, while other states (like Texas, Florida, and Nevada) have no state income tax at all, meaning you pay 0% state tax on your gains.

Can I deduct my transaction fees from my taxable gains?

Yes! Transaction fees, broker commissions, legal fees, and marketing costs associated with buying or selling an asset are subtracted directly from your selling price to calculate your net proceeds, reducing your overall cost basis and lowering your tax liability.

How can I reduce my capital gains tax liability legally?

Effective strategies include: (1) Holding assets for more than one year to qualify for long-term rates; (2) Utilizing tax-loss harvesting to offset gains with capital losses; (3) Contributing to tax-advantaged accounts like IRAs, HSAs, or 401(k)s; (4) Investing in Qualified Opportunity Zones; and (5) Utilizing the Section 121 primary residence exclusion if selling a home.

Share Feedback or Report an Issue

Help us improve this tool. Report bugs, suggest features, or request data updates!