Capital Gains Tax Calculator
Estimate your capital gains tax on investments, real estate, or other assets. Covers both short-term and long-term rates based on your income and filing status.
This calculator computes the tax on the gain between what you paid for an asset (Purchase Price) and what you sold it for (Sale Price), applying different rate logic depending on Holding Period. Sale Price is the single biggest driver of Capital Gain, since Gain = Sale Price - Purchase Price and Sale Price moves it in a straight 1:1 line, outweighing Purchase Price's equal-but-opposite pull because the default sale price is larger. Holding Period and Filing Status never move Capital Gain itself -- it's pure arithmetic on the two prices -- but they fully determine Tax Rate: short-term gains (held under a year) are taxed as ordinary income at your current-year marginal rate via marginalFederalRate, while long-term gains use the 2026 preferential brackets in CAPITAL_GAINS_2026 (0%, 15%, or 20% by income and filing status). Filing Status is the bigger lever on Tax Rate at the default $75,000 income: married filing jointly's 0% long-term bracket runs all the way to $99,400, well above that income, while single's 0% bracket tops out at $49,700, so the same income and gain can owe 15% as a single filer and 0% as a married joint filer. Because Tax Owed is Capital Gain multiplied by Tax Rate, a filing-status swap that zeroes out the rate can swing Tax Owed by more than a price change does for long-term gains at this income -- though for short-term gains, where the rate tracks ordinary brackets more gradually, Sale Price is the more consistent driver. Sale Price dominates Net Proceeds in either case, since Net Proceeds is Sale Price minus Tax Owed and the sale price term is larger. This model doesn't account for the Net Investment Income Tax, state capital gains tax, wash sale rules, or cost basis adjustments like depreciation recapture on real estate.
Tax Disclaimer
This calculator provides estimates based on general tax rules and may not reflect your specific situation. Tax laws vary by jurisdiction and change frequently. Consult a qualified tax professional or CPA for advice tailored to your circumstances.
Inputs
Results
Capital Gain
$25,000.00
≈ 13 gaming PCs
Figures current as of 2026. Source: IRS Rev. Proc. 2025-32
How to Use This Calculator
- Enter the purchase price and sale price of the asset (stock, real estate, etc.).
- Select your holding period: short-term (under 1 year) is taxed as ordinary income; long-term (1+ years) gets preferential rates (0%, 15%, or 20%).
- Choose your filing status and enter your annual income to determine which capital gains rate applies.
- Review the estimated tax owed and net proceeds after tax.
- Use the after-tax return to evaluate the true profitability of selling the asset.
How the result changes with Sale Price
| Sale Price | Capital Gain |
|---|---|
| $1,000,000.00 | $950,000.00 |
| $3,500,000.00 | $3,450,000.00 |
| $6,500,000.00 | $6,450,000.00 |
| $9,000,000.00 | $8,950,000.00 |
What each input means
- Purchase Price
- The original cost basis of the asset.
- Sale Price
- The price you sold (or plan to sell) the asset for.
- Holding Period
- Long-term gains (held over 1 year) are taxed at lower rates.
- Filing Status
- Your tax filing status.
- Annual Income
- Your taxable income (excluding the capital gain).
How this is calculated
Formula
Capital Gain = Sale Price - Purchase Price. Long-term gains (held > 1 year) are taxed at 0%, 15%, or 20% depending on income. Short-term gains are taxed as ordinary income.Worked example, using the default values
- Identify Input Parameters4 parametersPurchase Price = 50000, Sale Price = 75000, Holding Period = 1, Filing Status = 0 = 5 input(s) provided
- Calculate Capital Gain25000 = $25,000
- Calculate Gain TypeLong-Term = Long-Term
- Calculate Tax RateTax Rate15 = 15%
Figures and sources
- 2026 federal income tax brackets (2026) — IRS Rev. Proc. 2025-32
Engine last updated . Checked against 3 independently-derived tests — how we verify calculators.
Frequently Asked Questions
Why does my filing status change the tax rate more than my income does?
Filing Status selects an entirely different long-term capital gains bracket table (CAPITAL_GAINS_2026) -- the married filing jointly 0% bracket extends to $99,400 of income, roughly double the single filer's $49,700 ceiling. At the default $75,000 annual income, that means switching filing status alone can move Tax Rate from 15% to 0%, a bigger jump than a moderate income change produces within the same bracket.
Does the tax rate change if I hold the asset longer?
Yes, dramatically. Holding Period under one year routes the gain through marginalFederalRate at your current-year ordinary income brackets (which can run well above 20% at higher incomes); one year or more instead applies the preferential long-term rates of 0%, 15%, or 20% from CAPITAL_GAINS_2026. This is why the calculator separates short-term from long-term rather than using a single flat rate.
What drives Capital Gain, and does my income affect it?
Capital Gain is simply Sale Price minus Purchase Price -- Annual Income, Filing Status, and Holding Period have zero effect on this figure, only on how much tax applies to it afterward. Sale Price moves Capital Gain more than Purchase Price does at the default values because the default sale price ($75,000) is larger than the default purchase price ($50,000), so a given percentage change represents more dollars.
Why are Purchase Price and Sale Price nearly tied on After-Tax Return?
After-Tax Return is (Net Proceeds - Purchase Price) / Purchase Price, and both prices genuinely pull it by close to the same magnitude at the default values -- Purchase Price appears both in the numerator subtraction and as the denominator, while Sale Price drives Net Proceeds almost dollar for dollar. Neither one reliably dominates the other across different price combinations, so both should be read as comparably important rather than picking one as the bigger lever.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Income Tax Calculator
Estimate your federal income tax, FICA taxes, effective tax rate, and take-home pay based on your filing status and deductions.
Investing & RetirementInvestment Return Calculator
Calculate the total and annualized return on your investment. Compare performance across different time periods.
DeFi & CryptocurrencyCrypto Tax Calculator
Calculate capital gains tax on cryptocurrency trades. Determine short-term vs long-term rates and estimate tax owed on your crypto profits.
Tax & AccountingTax Planner Calculator
Federal & state tax, capital gains, SE tax, refund estimate
Income OptimizationTax-Loss Harvesting Calculator
Estimate tax savings from selling losing investments. See how realized losses offset capital gains and ordinary income, with wash sale rule awareness.
More in Tax & Accounting.