Capital Gains Tax Calculator
Federal tax on your investment gains.
Investment Details
2026 Long-Term Capital Gains Rates
Single: 0% (≤$48,350) · 15% (≤$533,400) · 20% (above)
MFJ: 0% (≤$96,700) · 15% (≤$600,050) · 20% (above)
HOH: 0% (≤$64,750) · 15% (≤$566,700) · 20% (above)
MFS: 0% (≤$48,350) · 15% (≤$300,000) · 20% (above)
Tax Calculation
Capital Gain
$15,000
Tax Rate
15.0%
Long-term rate
Federal Tax Owed
$2,250
Net Proceeds (after tax)
$22,750
Effective Rate on Gain
15.0%
- Your Net Proceeds$22,750 (65%)
- Capital Gains Tax$2,250 (6%)
- Original Cost Basis$10,000 (29%)
Federal tax only. Does not include state capital gains tax or the 3.8% Net Investment Income Tax (NIIT) that applies above $200,000/$250,000 income.
What the Capital Gains Tax Calculator Does
This calculator estimates the federal tax on the profit from selling an investment, such as shares, a fund or other property. You enter what you paid, what you sold for, your other income, your filing status and how long you held the asset. It is a rough first estimate for someone planning a sale, not a substitute for a tax return.
What to Enter
| Field | What it means |
|---|---|
| Purchase Price (Cost Basis) | What you paid for the asset. Cost basis is the tax term for your starting cost, which is the amount your profit is measured from. Tip: Purchase fees and commissions are normally part of your basis. Add them here, because the calculator has no separate field for them. |
| Sale Price | What you sold, or plan to sell, the asset for. Tip: Subtract selling costs yourself before entering this figure. |
| Annual Income (other income, not including gain) | Your income for the year apart from this sale, before deductions. It assumes it, together with your filing status, to place your gain among the tax rates that apply to you. Tip: Enter your other income before deductions. The calculator allows for the standard deduction itself. If you itemize, your real result may differ. |
| Filing Status | Single, Married Filing Jointly, Married Filing Separately or Head of Household. Each has its own income thresholds. |
| Holding Period | Long-Term (more than 1 year) or Short-Term (1 year or less). Long-term gains get the lower 0%, 15% or 20% rates. Short-term gains are taxed like wages. |
How to Read the Results
- Capital Gain: Your profit on the sale. If you sold at a loss, it shows $0.
- Tax Rate: The highest rate that reaches your gain. Part of the gain may be taxed at lower rates.
- Federal Tax Owed: The estimated federal tax on the gain.
- Net Proceeds (after tax): The cash left from the sale after the estimated federal tax. It is not your profit, because it still includes the money you originally paid.
- Effective Rate on Gain: The federal tax owed as a percentage of the gain. It can be lower than the Tax Rate shown.
Worked Example
You are a single filer with $80,000 of other income. You sell an investment you bought for $10,000 and held for more than a year. The sale price is $25,000.
- Purchase Price (Cost Basis): $10,000
- Sale Price: $25,000
- Annual Income: $80,000
- Filing Status: Single
- Holding Period: Long-Term (>1 year)
- Capital Gain: $15,000.
- Tax Rate: 15.0%. Federal Tax Owed: $2,250.
- Net Proceeds (after tax): $22,750.
- Effective Rate on Gain: 15.0%.
Result: The calculator shows $2,250 of federal tax and $22,750 of net proceeds. Switching the holding period to Short-Term changes the Tax Rate to 22.0%, the federal tax to $3,300 and the net proceeds to $21,700.
How the Result Changes
| Other income | Long-term tax | Long-term effective rate | Short-term tax | Short-term effective rate | Short-term net proceeds |
|---|---|---|---|---|---|
| $20,000 | $0 | 0.0% | $1,630 | 10.9% | $23,370 |
| $40,000 | $0 | 0.0% | $1,800 | 12.0% | $23,200 |
| $50,000 | $83 | 0.5% | $1,800 | 12.0% | $23,200 |
| $64,450 | $2,250 | 15.0% | $3,095 | 20.6% | $21,905 |
| $80,000 | $2,250 | 15.0% | $3,300 | 22.0% | $21,700 |
| $100,000 | $2,250 | 15.0% | $3,300 | 22.0% | $21,700 |
| $150,000 | $2,250 | 15.0% | $3,600 | 24.0% | $21,400 |
| $250,000 | $2,250 | 15.0% | $4,800 | 32.0% | $20,200 |
| $400,000 | $2,250 | 15.0% | $5,250 | 35.0% | $19,750 |
| $600,000 | $3,000 | 20.0% | $5,250 | 35.0% | $19,750 |
Common Mistakes
Reading net proceeds as profit
Net proceeds still include the money you originally paid. In the example, $22,750 comes back to you, but your after-tax profit is $12,750.
Getting the holding period wrong
Long-term means you held the asset for more than one year. Exactly one year or less is short-term. In the example, the same sale shows $2,250 of tax as long-term and $3,300 as short-term. Selling a few days early can be costly.
Treating the federal figure as the full bill
Many states tax capital gains too, and higher earners can owe the 3.8% Net Investment Income Tax. The calculator shows neither.
Leaving out fees
Commissions and other costs of buying or selling can change your real gain. The calculator has no fee fields, so adjust the purchase and sale prices yourself.
Assuming the thresholds are current
The long-term rate thresholds shown on the page are for tax year 2025. Thresholds for 2026 are not included. The standard deduction and the ordinary income brackets for Single and Married Filing Jointly are tax year 2026 figures. Check the IRS figures for the year you actually sell.
Underestimating your other income
Your other income changes the result a lot. In the table, the same $15,000 gain shows $0 of long-term tax at $40,000 of other income and $2,250 at $80,000.
What This Calculator Does Not Include
- Federal tax only. State and local taxes, and the 3.8% Net Investment Income Tax, are not included.
- Losses. A loss is shown as a $0 gain. The calculator does not offset it against other gains or income, or carry it forward.
- Mixed years. The long-term rate thresholds are tax year 2025. The standard deduction and income brackets for Single and Married Filing Jointly are tax year 2026. Married Filing Separately and Head of Household income brackets use tax year 2025 values.
- Special cases with their own rules are not covered: the exclusion on a home sale, collectibles, depreciation on rental property, and assets held in retirement accounts.
- Itemized deductions, tax credits, trading fees and inflation are not included.
Sources
Frequently Asked Questions
Capital Gains Tax Guides
Related Calculators
Financial Disclaimer: The calculations provided by CalcVerify are for informational and educational purposes only. Results are estimates based on the information you provide and standard financial formulas. These calculations are not a substitute for professional financial advice. Tax figures reflect the tax year shown on each calculator and may not reflect the most recent changes in law. Interest rates and market returns used in examples are illustrative only. Please consult a qualified financial advisor, tax professional, or mortgage broker before making significant financial decisions.
Want to learn more?
Browse all our taxes guides →Results are estimates for informational purposes only. Not financial advice. Full disclaimer