SimpleTaxCalculator — Capital Gains Tax Calculator

Capital Gains Tax Calculator

Estimate your U.S. federal capital gains tax on investments and asset sales.

Enter your sale details

Special rules apply to certain assets and holding periods.
For example, eligible brokerage commissions or selling expenses.
Enter taxable income excluding this capital gain, after deductions. This helps estimate your applicable tax rate.

Your estimated result

Estimated federal capital gains tax $3,000
Capital gain before losses$19,500
Taxable gain after losses$19,500
Estimated tax rate on gain15.0%
Estimated proceeds after tax$46,500
Estimated gain after tax$16,500

Estimate includes federal tax on the gain only, not your total tax bill.

Important: This is an educational estimate of federal tax on a typical capital gain. It does not include state or local taxes, the Net Investment Income Tax, special rates for collectibles or real estate depreciation, qualified small business stock exclusions, wash-sale adjustments, or all capital-loss carryover rules. The calculation assumes the other taxable income you enter is already calculated correctly and that the gain qualifies for the selected holding-period treatment. Actual liability can differ. See the IRS capital gains guidance.

Capital Gains Tax Calculator – Estimate Your Investment Taxes

A Capital Gains Tax Calculator helps estimate the U.S. federal income tax you may owe when you sell investments or other capital assets for a profit. The tax depends on how much you earn from the sale, your original purchase cost, eligible selling expenses, available capital losses, your other taxable income, and how long you held the asset.

Use the calculator above to estimate federal capital gains tax for the selected tax year and filing status. It provides an educational estimate, not a final tax assessment.

What Is Capital Gains Tax?

Capital gains tax is the tax that may apply when you sell a capital asset for more than its adjusted cost basis. Capital assets can include stocks, bonds, mutual funds, and certain other investments or property.

The difference between the amount received from a sale and the asset's cost basis is generally the capital gain or loss. Eligible selling costs and adjustments may affect the calculation.

Example of a Capital Gain

Suppose you purchased shares for $30,000 and later sold them for $50,000. Your eligible selling expenses were $500.

Capital Gain = Sale Price − Purchase Cost − Selling Expenses

$50,000 − $30,000 − $500 = $19,500

Your estimated capital gain before applying available capital losses is $19,500.

How Does the Capital Gains Tax Calculator Work?

The calculator uses the information you enter to estimate the federal tax attributable to your capital gain. It considers the tax year, filing status, holding period, sale price, purchase cost, selling expenses, other taxable income, and capital losses.

1. Calculate the Capital Gain

The calculator first subtracts the original purchase cost and eligible selling expenses from the sale price.

Capital Gain = Sale Price − Purchase Cost − Selling Expenses

2. Apply Available Capital Losses

Capital losses entered into the calculator are deducted from the calculated gain to estimate the remaining taxable gain.

Taxable Gain = Capital Gain − Capital Losses

The calculator does not allow the result to fall below zero.

3. Determine the Holding Period

The holding period affects which federal tax rates are used:

  • Short-term capital gains: Gains on assets held for one year or less. The calculator estimates these using ordinary federal income tax brackets.
  • Long-term capital gains: Gains on assets held for more than one year. The calculator estimates these using the 0%, 15%, and 20% federal rate thresholds.

4. Consider Other Taxable Income

Your other taxable income helps determine where the additional gain falls within the applicable tax brackets or long-term capital gains thresholds. This is why the calculator asks for taxable income excluding the gain.

5. Estimate Federal Capital Gains Tax

For short-term gains, the calculator compares estimated ordinary income tax before and after adding the gain. For long-term gains, it applies the selected long-term capital gains thresholds to the taxable gain.

Estimated Tax on Short-Term Gain

Tax on Other Income + Gain − Tax on Other Income

Estimated Tax on Long-Term Gain

Tax calculated using the applicable 0%, 15%, and 20% thresholds

Short-Term vs. Long-Term Capital Gains Tax

The holding period is an important factor in determining how capital gains are taxed in the United States.

Short-Term Capital Gains

Short-term gains generally arise when an asset is held for one year or less before being sold. They are generally taxed at ordinary federal income tax rates.

Long-Term Capital Gains

Long-term gains generally arise when an asset is held for more than one year. The federal rates commonly used for qualifying long-term gains are 0%, 15%, and 20%, depending on taxable income and filing status.

Important: Special rules and rates may apply to certain assets and transactions.

How to Use the Capital Gains Tax Calculator

Follow these steps to estimate your federal capital gains tax:

  1. Select the tax year: Choose 2025 or 2026 from the tax year dropdown.
  2. Choose your filing status: Select Single, Married Filing Jointly, Married Filing Separately, or Head of Household.
  3. Select the holding period: Choose short-term or long-term based on how long you held the investment.
  4. Enter the sale price: Add the amount you received from selling the asset.
  5. Enter the purchase cost: Provide the original cost of acquiring the asset.
  6. Add selling expenses: Include eligible selling costs and adjustments.
  7. Enter other taxable income: Use taxable income excluding the capital gain.
  8. Enter available capital losses: Add the losses you want to apply against the gain.
  9. Calculate your estimate: Select Calculate Tax or review the automatically updated results.

Understanding Your Calculator Results

  • Estimated Federal Capital Gains Tax: The estimated federal tax attributable to the gain entered.
  • Capital Gain Before Losses: The gain after purchase cost and selling expenses, before applying capital losses.
  • Taxable Gain After Losses: The remaining gain after subtracting the capital losses entered.
  • Estimated Tax Rate on Gain: The estimated tax divided by the taxable gain.
  • Estimated Proceeds After Tax: Sale price less selling expenses and estimated federal tax.
  • Estimated Gain After Tax: Taxable gain after subtracting the estimated federal capital gains tax.

Factors That Can Affect Capital Gains Tax

Filing Status

Your filing status affects the income thresholds used to estimate federal ordinary income tax and long-term capital gains tax.

Taxable Income

Other taxable income can affect the rate applied to an additional capital gain. Higher taxable income may cause some or all of a long-term gain to fall into a higher capital gains rate threshold.

Capital Losses

Eligible capital losses may offset capital gains. However, actual loss deductions and carryover treatment depend on IRS rules and the taxpayer's circumstances.

Type of Asset

Some assets may receive different tax treatment. Collectibles, certain real estate gains, depreciation-related gains, and qualifying small business stock may involve special rules not covered by this calculator.

Frequently Asked Questions (FAQs)

1. What is a Capital Gains Tax Calculator?

A Capital Gains Tax Calculator is an online tool that estimates the federal tax attributable to a gain from selling an investment or other capital asset. It uses sale price, purchase cost, selling expenses, holding period, filing status, other taxable income, and available capital losses.

2. How is capital gains tax calculated in the USA?

Capital gains tax generally depends on the gain after eligible cost-basis adjustments and losses, the holding period, and your taxable income. Short-term gains are generally taxed at ordinary income rates, while qualifying long-term gains may be taxed at 0%, 15%, or 20%.

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

Short-term capital gains generally apply to assets held for one year or less and are taxed at ordinary federal income tax rates. Long-term capital gains generally apply to assets held for more than one year and may qualify for the 0%, 15%, or 20% federal rates.

4. What are the federal long-term capital gains tax rates?

Qualifying long-term capital gains generally use federal rates of 0%, 15%, and 20%. The applicable threshold depends on the tax year, filing status, and taxable income. Certain assets and transactions may have different tax treatment.

5. Does my income affect capital gains tax?

Yes. Your other taxable income helps determine which ordinary income or long-term capital gains tax thresholds apply to the additional gain. Enter your taxable income excluding the capital gain in the calculator.

6. Can capital losses reduce capital gains tax?

Eligible capital losses can generally offset capital gains. The calculator subtracts the amount of capital losses you enter from the calculated gain. Actual deductions, limitations, and carryover rules may require additional tax calculations.

7. Are selling expenses included in capital gains calculations?

Eligible selling expenses may reduce the amount realized from a sale and therefore affect the capital gain. Enter applicable selling costs and adjustments in the calculator. Not every expense qualifies, so check the relevant IRS rules.

8. Does this calculator include state capital gains tax?

No. This calculator estimates federal capital gains tax only. State and local tax treatment varies, and those amounts are not included in the results.

9. Does the calculator include the Net Investment Income Tax?

No. The calculator does not include the Net Investment Income Tax (NIIT). Certain taxpayers may owe this additional federal tax depending on their income and investment income.

10. What happens if I sell an investment at a loss?

This calculator is designed to estimate tax on a gain. If your purchase cost and selling expenses exceed your sale price, it displays an error rather than calculating a capital loss. Actual capital loss treatment depends on applicable tax rules.

11. Is the Capital Gains Tax Calculator accurate?

The calculator provides an estimate based on the information entered and the tax rates programmed for the selected year. It does not cover every tax rule, adjustment, exclusion, or special asset category. Consult IRS guidance or a qualified tax professional for your actual tax position.

12. Which tax years can I calculate?

The calculator currently provides selections for the 2025 and 2026 tax years. Select the relevant year before entering your details. Tax thresholds and rates can change from year to year.

Important Things to Remember

Capital gains tax is not determined only by the profit from selling an asset. The holding period, taxable income, filing status, eligible expenses, capital losses, and type of asset can all affect the final tax calculation.

Keep records of your purchase price, sale price, eligible expenses, and investment transactions. These records can help you calculate your adjusted cost basis and report capital gains or losses correctly.

Disclaimer: This Capital Gains Tax Calculator is provided for educational and informational purposes only. It estimates typical U.S. federal capital gains tax and does not include state or local taxes, Net Investment Income Tax, special asset rates, all exclusions, wash-sale adjustments, or every capital-loss rule. Actual tax liability may differ based on your circumstances and current IRS requirements. This tool does not provide tax, legal, or financial advice. Review the IRS Capital Gains and Losses guidance or consult a qualified tax professional.

Leave a Reply

Your email address will not be published. Required fields are marked *