CAPITAL GAINS TAX CALCULATOR

Capital Gains Tax Calculator — Estimate Your 2025 Tax Bill

Free capital gains tax calculator for US investors. Estimate short-term and long-term tax on stocks, real estate, crypto, and more using 2025 IRS rates, filing status, capital loss carryover, and the 3.8% Net Investment Income Tax.

1. Investment Details

Original cost including commissions and fees.
Net amount received after selling fees.
Long-term gains qualify for lower 0/15/20% rates.
Collectibles may be taxed at 28% instead of 20%.

2. Tax & Adjustments

Your taxable income before this gain. Used to determine your bracket.
Rates and thresholds vary by year.
Prior-year losses available to offset this gain.

3. Reference & Notes

CAPITAL GAINS TAX ANALYSIS

Investment Profit Tax Calculation

Reference: CGT-2026-001
Date:
Purchase Price $10,000.00
Sale Price $25,000.00
Holding Period Long-Term
Capital Gain $15,000.00
Applicable Tax Rate 15.00%
Federal Tax Owed $2,250.00
NIIT (3.8%) $0.00
Total Tax $2,250.00

Capital Gains Breakdown

Cost Basis $10,000.00
Net Proceeds $25,000.00
Taxable Gain $15,000.00
After-Tax Proceeds $22,750.00

Tax Rate Details

Gain Type Long-Term
Marginal Bracket 22%
Effective Tax Rate 15.00%

Capital Gains Tax Formula

Capital Gain = Sale Price − Purchase Price

$25,000.00 − $10,000.00 = $15,000.00

Federal Tax = Taxable Gain × Applicable Rate

$15,000.00 × 15.00% = $2,250.00

Notes

Capital gains tax analysis for investment portfolio

This calculation is for informational and educational purposes. Tax rates and thresholds are based on 2025 IRS data. Actual tax liability depends on your complete return. Consult a licensed tax professional.
Prepared By
Date
GUIDE

How to Use This Capital Gains Tax Calculator

This free capital gains tax calculator — also called an investment tax calculator or stock profit tax calculator — estimates how much federal tax you owe when you sell an appreciated asset. Enter your cost basis, net proceeds, holding period, income, and filing status; the tool applies the current IRS long-term rates (0%, 15%, 20%) and the 3.8% Net Investment Income Tax where applicable. To estimate income tax on wages, use the Income Tax Calculator; to compare retirement account treatments, use the Roth vs Traditional IRA Calculator.

1

Enter Investment Details

Purchase price, sale price, holding period (short or long), and asset type.

2

Add Tax Information

Annual taxable income, filing status, tax year, and capital loss carryover.

3

Review Results

Capital gain, applicable rate, federal tax owed, NIIT, and total tax.

4

Analyze Breakdown

Marginal bracket, effective rate, and after-tax proceeds.

5

Save, Print or Export

Save a draft, print results, or download a PDF of the analysis.

CAPITAL GAINS EDUCATION

What Does a Capital Gains Tax Calculator Calculate?

A capital gains tax calculator projects the federal tax due on the profit from selling an investment. It distinguishes short-term gains (held ≤ 1 year, taxed at ordinary income rates up to 37%) from long-term gains (held > 1 year, taxed at preferential 0%, 15%, or 20% rates), and layers on the 3.8% Net Investment Income Tax when income crosses the threshold[citation:1][citation:6].

Key capital gains calculations

  • Capital Gain: Sale price minus adjusted cost basis.
  • Taxable Gain: Capital gain minus any capital loss carryover applied.
  • Applicable Tax Rate: 0%, 15%, or 20% for long-term; marginal ordinary rate for short-term.
  • Federal Tax Owed: Taxable gain × applicable rate.
  • NIIT (3.8%): Additional tax when MAGI exceeds $200K (single) or $250K (MFJ).
  • After-Tax Proceeds: Net sale proceeds minus total tax owed.
  • Effective Tax Rate: Total tax divided by capital gain.

Who should use this capital gains tax calculator?

  • Stock Investors: Estimate tax before selling appreciated shares.
  • Real Estate Sellers: Plan for tax on property gains (excluding primary-home exclusion).
  • Cryptocurrency Traders: Model tax on crypto disposals (treated as property).
  • Active Traders: Estimate short-term tax on frequent trading.
  • Financial Planners: Show clients the tax impact of different selling strategies.
METHODOLOGY

Capital Gains Tax Calculator Methodology

MoneyTool uses the 2025 IRS long-term capital gains brackets and ordinary income brackets to compute federal tax. NIIT is applied when modified AGI crosses the statutory threshold[citation:1][citation:3][citation:6].

1. Capital gain calculation

Capital Gain = Net Sale Proceeds − Adjusted Cost Basis

Cost basis includes the original purchase price plus commissions and fees. Net proceeds are the sale price minus selling costs.

2. Capital loss offset

Taxable Gain = max(0, Capital Gain − Capital Loss Carryover)

Losses offset gains dollar-for-dollar. Excess losses above gains can offset up to $3,000 of ordinary income annually, with the remainder carried forward.

3. Long-term capital gains rates (2025)

For 2025, long-term rates are 0%, 15%, or 20% based on taxable income[citation:1][citation:2]:

  • 0%: Up to $48,350 (single), $96,700 (MFJ), $48,350 (MFS), $64,750 (HOH)
  • 15%: $48,351–$533,400 (single), $96,701–$600,050 (MFJ), $48,351–$300,000 (MFS), $64,751–$566,700 (HOH)
  • 20%: Above those thresholds

4. Short-term capital gains rates

Short-term gains are added to ordinary income and taxed at the resulting marginal rate — 10%, 12%, 22%, 24%, 32%, 35%, or 37% for 2025.

5. Net Investment Income Tax (NIIT)

NIIT = 3.8% × min(Net Investment Income, MAGI − Threshold)

Thresholds: $200,000 (single), $250,000 (MFJ), $125,000 (MFS), $200,000 (HOH). NIIT applies on top of regular capital gains tax[citation:6][citation:3].

Important assumptions

  • Federal tax only — state and local taxes not modeled.
  • Standard deduction assumed to be absorbed by ordinary income.
  • Collectibles taxed at 28% rate are approximated (rate override on 20% bracket).
  • No AMT, no QSBS exclusion, no opportunity zone deferral.
  • Educational estimate only — consult a tax professional.
E-E-A-T & SOURCES

Capital Gains Tax Information, Sources & Editorial Review

MoneyTool separates calculation results from tax education and personalized advice. The calculator uses 2025 IRS thresholds; external guidance should be verified with authoritative sources.

Author and editorial responsibility

Methodology reviewed by the MoneyTool Finance Expert Team, a group of accountants, CPAs, and personal-finance analysts who maintain MoneyTool's calculator library and financial education content.

Last reviewed: | 2025 IRS capital gains brackets

Next review: When IRS publishes new inflation-adjusted thresholds or tax law changes.

Authoritative U.S. tax resources

  • Internal Revenue Service (IRS) — Topic 409: IRS Capital Gains and Losses is the official IRS explanation of capital gains, holding periods, and rates[citation:1].
  • IRS — Publication 550: Investment Income and Expenses covers cost basis, wash sales, and capital gains reporting.
  • IRS — Publication 544: Sales and Other Dispositions of Assets details gain/loss calculation rules.
  • IRS — Net Investment Income Tax: NIIT Overview explains the 3.8% surtax thresholds and computation[citation:6].
  • Congressional Research Service: CRS Reports provides legislative analysis of capital gains tax policy.
  • Tax Foundation: Tax Foundation publishes federal and state capital gains rate data and economic analysis.
  • U.S. Securities and Exchange Commission (SEC): Investor.gov provides investor education on taxes and investing.
BEST PRACTICES

Tips for Capital Gains Tax Planning

Capital gains tax is manageable with planning. These strategies can reduce your bill legally and efficiently.

Hold for Long-Term

Long-term gains are taxed at 0/15/20% vs. ordinary rates up to 37%. Holding just over one year can save thousands.

Harvest Losses

Sell underperforming assets to realize losses that offset gains. Watch the 30-day wash-sale rule.

Manage Your Bracket

If near a 0% or 15% threshold, spreading sales across tax years can keep more gain in the lower bracket.

Use Tax-Advantaged Accounts

Hold high-turnover investments in IRAs and 401(k)s to defer or eliminate capital gains tax entirely.

Track Cost Basis

Reinvested dividends and commissions increase basis, reducing taxable gain. Keep accurate records.

Consider QSBS

Qualified Small Business Stock can exclude up to 100% of gain if held 5+ years. Consult a tax advisor[citation:9].

RELATED CALCULATORS

Explore More Tax Calculators

Complete your financial planning with our suite of tax calculators:

FAQ

Frequently Asked Questions About Capital Gains Tax

What is capital gains tax?

Capital gains tax is a federal tax on the profit from selling a capital asset such as stocks, bonds, real estate, or cryptocurrency. The rate depends on your holding period (short-term ≤ 1 year vs long-term > 1 year), your taxable income, and your filing status[citation:1].

What are the 2025 long-term capital gains tax rates?

For 2025, long-term capital gains tax rates are 0%, 15%, or 20% depending on taxable income. The 0% bracket applies up to $48,350 (single), $96,700 (married filing jointly), $48,350 (married filing separately), and $64,750 (head of household)[citation:1][citation:2].

How are short-term capital gains taxed?

Short-term capital gains (assets held one year or less) are taxed at ordinary income tax rates, which range from 10% to 37% for 2025. They are added to your ordinary income and taxed at your marginal bracket[citation:2].

What is the Net Investment Income Tax (NIIT)?

The NIIT is an additional 3.8% tax on net investment income, including capital gains, when modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). It applies on top of regular capital gains rates[citation:6][citation:3].

Can I offset capital gains with capital losses?

Yes. Capital losses offset capital gains dollar-for-dollar. If losses exceed gains, up to $3,000 of net losses can be deducted against ordinary income annually, with the remainder carried forward to future tax years.

Do states tax capital gains?

Most states tax capital gains as ordinary income. Nine states have no capital gains tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington (for most), and Wyoming. California and New York have the highest rates[citation:6].

Is this capital gains tax calculator free?

Yes. MoneyTool provides this capital gains tax calculator free for educational and planning use.

LEGAL

Capital Gains Tax Calculator Disclaimer