Capital Gains Tax Estimator
Estimate potential federal tax on a capital gain using general long-term and short-term capital-gain concepts.
Free educational calculator • No signup required • Calculator inputs stay in your browser
This is an educational planning tool only. It is not investment advice, legal advice, tax advice, valuation advice, or transaction advice, and it does not recommend buying, selling, holding, exchanging, gifting, donating, or investing in any asset. It does not prepare a tax return, Form 8949, Schedule D, Form 4797, depreciation recapture, Section 1202 gain, installment-sale treatment, Section 1031 exchange treatment, or any state tax calculation.
Short-Term vs. Long-Term Capital Gains
Short-term capital gains generally apply to assets held for one year or less and are generally taxed as ordinary income. Long-term capital gains generally apply to assets held for more than one year and may receive preferential federal tax rates.
What Is Cost Basis?
Cost basis generally begins with what you paid for an asset and may be adjusted for certain improvements, reinvested distributions, fees, depreciation, and other tax events. Your actual basis may differ from the purchase price.
What About Capital Losses?
Capital losses generally offset capital gains. If losses exceed gains, the amount that may reduce ordinary income is generally limited each year, with unused losses potentially carried forward subject to applicable rules.
Official IRS Sources
- IRS Topic No. 409, Capital Gains and Losses
- IRS Schedule D, Capital Gains and Losses
- IRS Form 8949, Sales and Other Dispositions of Capital Assets
- IRS Publication 550, Investment Income and Expenses
- IRS Publication 544, Sales and Other Dispositions of Assets
- IRS Net Investment Income Tax
Capital-gains settings last reviewed: August 11, 2026.
Common Capital-Gains Tax Mistakes
- Using sale proceeds instead of gain
- Forgetting transaction costs and basis adjustments
- Assuming all gains are taxed at one rate
- Confusing taxable income with gross income
- Ignoring capital losses or loss carryovers
- Forgetting possible Net Investment Income Tax
- Ignoring depreciation recapture on rental or business property
- Assuming cryptocurrency, collectibles, real estate, or business assets receive ordinary stock-like treatment
- Ignoring state tax
- Making an investment decision based only on a tax estimate
Need Help Planning for a Sale or Investment Gain?
HW & Associates CPA PLLC can help clients evaluate tax projections, estimated-tax payments, capital-gain timing, business-asset sales, investment-income planning, and related tax considerations.
Schedule a Tax Planning ConsultationEducational use only. This calculator provides a simplified, general estimate of potential federal tax related to a capital gain or loss based solely on the information entered by the user and selected tax-year settings. It is not tax, legal, accounting, financial, investment, valuation, securities, real-estate, or transaction advice. It does not prepare or file a tax return, Form 8949, Schedule D, Form 4797, or any other tax form, and it does not determine, guarantee, or eliminate any tax liability, interest, penalty, tax savings, investment outcome, or transaction result.
Capital-gain taxation can be affected by holding period, cost basis, wash-sale rules, capital-loss carryovers, depreciation recapture, Section 1231 rules, Section 1250 rules, Section 1202 rules, collectibles rules, primary-residence exclusions, installment sales, like-kind exchanges, Net Investment Income Tax, alternative minimum tax, state and local taxes, filing status, deductions, credits, other income, and changes in law. The calculator does not account for every rule, exception, or tax interaction. Consult a qualified tax professional before selling, exchanging, gifting, donating, purchasing, or otherwise disposing of any asset.
Use of this calculator or website does not create a CPA-client, accountant-client, attorney-client, fiduciary, investment-adviser, broker, real-estate, securities, or other professional relationship with HW & Associates CPA PLLC. A professional relationship begins only when HW & Associates CPA PLLC accepts an engagement and the parties execute an applicable engagement agreement.
Do not enter Social Security numbers, employer identification numbers, brokerage account numbers, wallet addresses, property addresses, bank-account details, payment-card information, tax returns, transaction documents, or other sensitive information. Calculator inputs and results are processed locally in the visitor’s browser and are not intentionally saved or transmitted by this calculator.
