Capital Gains Tax Calculator
Estimate the potential federal tax impact of selling an investment or other capital asset at a gain. Use the calculator to compare sale proceeds with your cost basis, distinguish between short-term and long-term gains, and explore how different assumptions may affect the estimated tax.
What this calculator helps you review
Capital gains planning starts with understanding how much of a sale represents gain and how the holding period may affect its tax treatment. This calculator helps organize those pieces so you can evaluate a potential sale before treating the entire sale price as taxable profit.
- Estimate your capital gain Compare sale proceeds with the asset’s cost basis to identify the gain represented in the scenario.
- Review holding period Distinguish between short-term and long-term scenarios when the calculator supports different tax treatment.
- Estimate potential tax See how the taxable gain may translate into an estimated federal capital gains tax under the assumptions entered.
- Compare sale scenarios Test different sale prices, basis amounts, or holding-period assumptions before making broader planning decisions.

The amount you receive from a sale is not automatically the amount of taxable gain. Cost basis, eligible adjustments, holding period, losses, and other tax rules can materially affect the final taxable amount.
This calculator is most useful when you want to estimate the tax effect of a potential or completed sale before incorporating it into your broader tax plan.
- stock or investment sale scenarios
- short-term versus long-term gain planning
- reviewing sale price and cost basis
- estimating the potential after-tax impact of a gain
Estimate Federal Tax on an Investment Gain
Enter your purchase basis, sale proceeds, filing status, taxable ordinary income, and holding period to estimate federal tax on the gain.
Enter Your Capital Gain Details
Use your estimated cost basis and sale proceeds, then identify whether the gain is short-term or long-term and enter taxable ordinary income for the year.
Holding period changes the tax treatment
Short-term gains are generally taxed using ordinary income tax rates, while most long-term gains can qualify for the federal 0%, 15%, or 20% capital-gains rate structure.
Other taxable income affects the long-term rate
Long-term capital gains stack on top of other taxable income. That means one gain can span more than one capital-gains rate band.
Capital Gain Formula Basics
Estimated Federal Capital Gains Tax
Use the supporting results below to review the gain amount, effective tax rate, and rate treatment estimated from the information entered.
Depending on your other taxable income and filing status, part of a long-term gain may fall in the 0% band while another portion falls in the 15% or 20% band.
When you choose short-term, the calculator estimates the additional ordinary federal income tax created by adding the gain to the taxable income entered.
What these results mean
The calculator subtracts cost basis from sale proceeds to determine the gain. Long-term gains are allocated across the 2026 federal capital-gains bands based on filing status and other taxable income; short-term gains are estimated using ordinary-income brackets.
Special capital-gain rules are not included
This simplified estimator does not calculate the 3.8% Net Investment Income Tax, state taxes, collectibles rates, unrecaptured Section 1250 gain, qualified small-business-stock rules, capital-loss carryovers, or every Schedule D adjustment.
What Your Capital Gains Tax Estimate Means
Your result is based on the difference between the sale amount and the cost basis represented in the calculator, along with the holding-period and tax assumptions used. The most useful way to read the result is to separate the gain itself from the estimated tax applied to that gain.
Estimated Capital Gain
This is the amount by which the sale proceeds exceed the cost basis represented in the calculation. It is the gain being evaluated for tax purposes, not the full sale price.
Cost Basis
Cost basis generally reflects what you paid for the asset, subject to any adjustments included in the calculation. A higher valid basis reduces the gain being measured, while a lower basis increases it.
Estimated Capital Gains Tax
This is the projected federal tax associated with the gain under the calculator’s assumptions. It is a planning estimate rather than a guaranteed filing result.
Holding Period Can Matter
Short-term and long-term gains can receive different federal tax treatment. The result should be interpreted using the holding-period assumption selected in the calculator rather than assuming every gain is taxed the same way.
Sale Proceeds Are Not the Same as Taxable Gain
Selling an asset for $20,000 does not automatically mean you have a $20,000 taxable gain. The gain is generally based on the difference between the sale proceeds and the applicable cost basis, subject to relevant tax rules.
Other Gains, Losses, and Tax Rules May Change the Final Outcome
Capital losses, other investment transactions, special asset rules, additional taxes, and your broader income situation may affect the amount ultimately reported on a tax return.
How to interpret your capital gains estimate
Review the calculation in sequence so you understand what produced the projected tax rather than focusing only on the final dollar amount.
Confirm that the sale amount reflects the transaction or scenario you actually want to evaluate.
Make sure the basis assumption is appropriate because it directly affects the estimated gain.
Verify whether the scenario is being treated as short-term or long-term when that distinction applies.
Consider the estimated tax alongside the gain to understand how much of the gain may remain after the projected federal tax.
Capital gains taxation can be affected by factors that a simplified calculator may not capture, including capital losses, transaction-specific basis adjustments, special asset categories, net investment income tax, state taxes, and your overall taxable income. Use the estimate for scenario planning and verify tax-sensitive decisions with current official guidance.
How Capital Gains Tax Estimates Can Support Planning
Capital gains planning is easier to understand when you separate the sale price, cost basis, gain, holding period, and estimated tax. These examples show how changing one part of the transaction can affect the planning result.
Estimating the Gain on a Stock Sale
An investor is considering selling shares and wants to understand how much of the sale represents gain before thinking about the potential tax.
The tax calculation is based on the estimated $6,000 gain under the calculator’s assumptions, not on the full $18,000 received from the sale.
Comparing Short-Term and Long-Term Scenarios
An investor is close to a holding-period threshold and wants to compare how different tax treatment could affect the estimated after-tax result.
Run both scenarios using the same gain amount and appropriate holding-period assumptions. The estimated tax may differ because short-term and long-term gains can receive different federal tax treatment.
Testing a Different Sale Price
An investor wants to compare two possible sale prices to see how a larger realized gain could change the projected tax impact.
The first scenario produces a $7,000 gain and the second a $12,000 gain before other adjustments. Comparing both helps show how the larger sale gain may affect estimated tax and after-tax proceeds.
What these examples demonstrate
Capital gains tax planning is not simply about multiplying the sale price by a tax rate. The taxable gain depends on the relationship between proceeds and cost basis, while the holding period and broader tax situation can affect how that gain is treated.
Useful scenarios to compare
- different potential sale prices
- short-term versus long-term treatment
- different valid cost-basis assumptions
- estimated gain before and after projected federal tax
These scenarios demonstrate the mechanics of capital gains planning and are not predictions of actual tax liability. Real transactions may involve basis adjustments, capital losses, special asset rules, net investment income tax, state taxes, and other factors that can change the final result.
Use Your Capital Gains Estimate to Plan the Bigger Tax Picture
A capital gains estimate can help you think through more than the tax on one transaction. It can also help you compare sale timing, understand after-tax proceeds, and identify situations where other tax factors deserve a closer look.
Potential Tax Before a Sale
Estimate the federal tax impact of a possible sale before you finalize the transaction so the projected gain and tax are part of your planning rather than an afterthought.
Short-Term vs. Long-Term Timing
Compare scenarios when holding period may affect tax treatment and consider whether the timing of a sale changes the estimated after-tax outcome.
After-Tax Sale Proceeds
Look beyond the gross sale amount by estimating the gain and potential federal tax so you have a clearer view of what may remain after the projected tax impact.
Cost-Basis Review
See how the basis used in the calculation affects the estimated gain and identify why accurate purchase and adjustment records can matter when planning a taxable sale.
Multiple Sale Scenarios
Compare different potential sale prices, gain amounts, or transaction assumptions to understand how each scenario may affect estimated federal capital gains tax.
Year-End Tax Preparation
Incorporate realized gains into broader tax planning so investment sales are considered alongside income, withholding, estimated payments, and other tax items.
Questions this calculator can help you explore
Test realistic scenarios when you are evaluating a potential sale or reviewing a transaction that has already occurred.
Tax impact can be important, but it is only one factor in a sale decision. Investment objectives, risk, diversification, cash needs, capital losses, transaction costs, and other financial considerations may also matter. This calculator supports tax scenario planning and does not provide a recommendation to buy, hold, or sell an investment.
Who Can Benefit From a Capital Gains Tax Estimate?
This calculator is designed for people who want a clearer estimate of the potential federal tax impact of realizing a capital gain. It is most useful when you already have a reasonable sale value, cost-basis estimate, and holding-period assumption to test.
This calculator may be a good fit if you want to:
- estimate the gain created by a potential or completed asset sale
- compare sale proceeds with an estimated cost basis
- review short-term versus long-term tax scenarios
- estimate the potential federal tax and after-tax impact of a gain
You may need more specialized tax help if you have:
- multiple gains and losses that must be netted together
- complex basis adjustments, inherited assets, gifts, or specialized property
- transactions that may involve net investment income tax or other special rules
- a situation requiring detailed federal, state, or professional tax analysis
Capital gains taxes are only one consideration when evaluating an asset sale. Investment goals, diversification, risk, cash needs, transaction costs, losses, and other financial circumstances may also matter. Use this calculator for tax scenario planning rather than as a recommendation to buy, hold, or sell an investment.
Continue Your Planning Beyond This Calculator
Use these Calculators Today planning centers to move from a single tax estimate into broader financial planning, calculator-based analysis, and step-by-step educational guidance.

Financial Planning Bundle Center
Explore grouped financial planning resources designed to help you work through broader goals with related tools, guides, and planning materials in one place.
Explore the Bundle Center
Financial Planning Calculator Center
Browse Calculators Today financial calculators across multiple planning areas when you want to compare scenarios, estimate outcomes, and explore related financial decisions.
Explore the Calculator Center
Financial Planning Guide Center
Find practical financial planning guides that explain core concepts, planning steps, and decision points in a clear format you can use alongside the calculator network.
Explore the Guide CenterChoose the Bundle Center for grouped planning resources, the Calculator Center for additional scenario tools, or the Guide Center when you want deeper educational support before making your next financial decision.
Common Questions About Tax Planning Calculators
These calculators are designed to support estimation, comparison, and year-round planning. The answers below explain how to use them responsibly and what to keep in mind when reviewing the results.
Are the results from these tax calculators exact?
No. Results are planning estimates based on the information you enter and the assumptions built into the calculator. Actual tax outcomes can differ because of credits, adjustments, special income rules, filing details, and other factors.
Can I use these calculators before tax season?
Yes. They can be especially useful during the year when you want to test income changes, review withholding, estimate quarterly payments, compare deductions, or prepare for a possible refund or balance due.
Do these calculators replace tax-preparation software or professional advice?
No. They are intended for education and planning. They do not prepare a tax return, verify eligibility for every credit or deduction, or replace official tax forms, current IRS guidance, or advice from a qualified tax professional.
Why should I test more than one tax scenario?
Income, withholding, deductions, investment gains, self-employment earnings, and other circumstances can change during the year. Comparing realistic scenarios can help you understand a range of possible outcomes instead of relying on one estimate.
Do these calculators include every federal, state, and local tax rule?
No. Each calculator focuses on a specific planning question and may simplify certain tax rules. State and local taxes, specialized federal provisions, and uncommon situations may require separate analysis.
How should I use a tax calculator result in my financial planning?
Use the estimate as a starting point for decisions such as budgeting, withholding reviews, quarterly payment planning, refund expectations, or year-end preparation. Revisit the calculation when your income or tax situation changes.
Tax calculators are most valuable when they help you compare realistic scenarios, identify areas that deserve attention, and prepare before filing. Always review the assumptions behind the result and use current official tax guidance when more detail is needed.
Authoritative Tax Planning Resources
Tax rules and filing requirements can change. Use these government and public-service resources when you need current guidance, official tax information, taxpayer assistance, or more detailed explanations beyond a calculator estimate.
Internal Revenue Service — Tax Withholding
Review official federal withholding information, including how paycheck withholding works and when the IRS Tax Withholding Estimator may be useful.
Visit IRS Withholding ResourcesIRS — Self-Employed Individuals Tax Center
Find official information about self-employment tax obligations, annual filing, estimated quarterly payments, and reporting business income.
Visit the IRS Tax CenterTaxpayer Advocate Service
Explore taxpayer-rights information and resources for filing problems, refunds, credits, notices, payment issues, and unresolved IRS concerns.
Visit Taxpayer Advocate ServiceUSAGov — Federal Taxes
Use the federal government’s public information hub for guidance on filing taxes, refunds, withholding, forms, tax assistance, and state or local tax resources.
Explore USAGov Tax ResourcesSocial Security Administration — FICA & SECA Taxes
Learn how Social Security and Medicare taxes apply to employee wages and self-employment earnings, including the distinction between FICA and SECA taxes.
Visit Social Security GuidanceInvestor.gov — Tax Questions
Review investor-focused information about tax questions involving securities, including why capital gains and losses should ultimately be verified through IRS guidance.
Visit Investor.govCalculators Today tools are designed for education and scenario planning. When a decision depends on current filing requirements, tax rates, credits, deductions, payment rules, or eligibility standards, verify the details with the appropriate official source.
Tax Planning Tools for Your Next Step
Move from a single calculator estimate into a more organized tax-planning process with these Calculators Today resources for preparation, scenario tracking, and deeper year-round planning.

Tax Planning Starter Checklist
Use a structured checklist to organize the basic information, documents, and planning questions that can help you prepare for tax decisions throughout the year.

Tax Planning Snapshot Spreadsheet
Create a simple tax-planning snapshot by organizing key income, withholding, and planning figures in one place so you can review your situation more systematically.

Tax Planning Guide
Go deeper into tax-planning concepts, preparation steps, and decision points with a guide designed to help you connect calculator estimates with broader year-round planning.
Start with the checklist when you need organization, use the spreadsheet when you want to track and compare figures, or move to the guide when you want a more complete tax-planning framework.
Keep Building Your Tax Planning Strategy
Continue with the full Tax Planning calculator collection when you want another estimate or comparison, or return to the Tax Planning hub when you want calculators, articles, digital tools, and broader educational resources in one place.
Calculators Today tax tools are designed for education, estimation, and scenario planning. Use current official tax guidance when a decision depends on specific filing rules, eligibility requirements, or tax-law details.












