Capital Gains Tax Calculator

A capital gain or loss generally equals sale proceeds minus adjusted cost basis. Selling expenses such as brokerage commissions and transaction fees can reduce the amount realized, which lowers the taxable gain. Whether a gain is short-term or long-term depends on how long you held the investment: assets held for one year or less are generally short-term, while assets held for more than one year are generally long-term.

Short-term capital gains generally flow through ordinary federal income-tax brackets. Standard long-term capital gains may qualify for preferential federal rates of 0%, 15%, or 20%. The applicable long-term rate depends on your total taxable income, not solely on the size of the gain — different portions of the same gain can fall in different rate bands. Some higher-income taxpayers may also owe the Net Investment Income Tax (3.8%). Capital losses may offset capital gains and, within limits, a limited amount of ordinary income.

Special assets and transactions — including primary-home sales, rental and business property, depreciation recapture, collectibles, employee stock options, and wash sales — can require different rules. This calculator estimates a federal tax scenario for standard investment-asset sales. It does not prepare Form 8949, Schedule D, Form 8960, a federal income-tax return, or a state income-tax return, and the result is not an exact tax bill.

Tax Year and Asset

Asset type is descriptive. The standard calculation applies to all types listed.

Transaction Scope

Standard calculation applies. This calculator supports ordinary sales of stocks, ETFs, mutual funds, bonds, standard investment securities, and digital assets where you know the adjusted basis and transaction dates.

Transaction Entry Mode

How would you like to enter your transaction?

Transaction Details

Enter date in YYYY-MM-DD format.

Enter date in YYYY-MM-DD format.

Basis Entry Method
$
$
$
$
$
Sale / Proceeds
$
$
$
$
$
$

Filing Status and Other Income

Used for long-term rate thresholds, brackets, NIIT, and loss limits in Phase 2.

$

Enter estimated taxable income after deductions, excluding the capital gain or loss modeled here.

Other Current-Year Capital Activity
$
$
$
$
$

Qualified dividends share long-term capital-gain rate bands and will be used in Phase 2 stacking.

Prior-Year Capital-Loss Carryovers

Short-term and long-term carryovers retain their character. Enter them separately for an accurate Schedule D calculation.

$
$

Net Investment Income Tax Inputs (Optional)

Enter MAGI and other net investment income to estimate the 3.8% Net Investment Income Tax. Leave blank to skip NIIT estimation. The 2026 NIIT threshold is $200,000 (single/HOH), $250,000 (MFJ/QSS), or $125,000 (MFS).

$

Enter your estimated MAGI before this transaction. Leave blank to skip NIIT.

$

Other NII such as interest, dividends, and prior capital gains not from this transaction.

$

Investment expenses properly allocable to net investment income. Optional. Form 8960 may require additional adjustments not modeled here.

State and Local Tax Estimate (Optional)

States may use different definitions of basis, taxable income, capital losses, deductions, exclusions and tax rates. This manual estimate does not apply state-specific tax law. It is not an official state withholding or tax-return calculation.

What Is a Capital Gain or Loss?

A capital gain or loss is determined by a two-step calculation:

Capital gain or loss = Amount realized − Adjusted cost basis

Amount realized = Gross sale proceeds − Selling expenses

Gross sale proceeds are the total amount received before subtracting any selling costs. Selling expenses are direct costs of the disposition, such as brokerage commissions and exchange fees, that reduce the amount received. Amount realized is what remains after subtracting selling expenses from gross proceeds. Original cost is the purchase price paid. Adjusted cost basis starts with the original cost and is increased by purchase commissions, certain acquisition fees, and other capitalized costs, then reduced by return-of-capital distributions and applicable prior adjustments.

A capital gain results when the amount realized exceeds adjusted cost basis. A capital loss results when adjusted cost basis exceeds the amount realized. The taxable gain is not the full gross proceeds.

Example: A person sells an investment for $40,000 after paying $25,000 for it. They do not have a $40,000 taxable gain. The calculation uses the difference: $40,000 proceeds minus $25,000 adjusted basis equals a $15,000 gain. If there were $100 in selling expenses, the amount realized is $39,900 and the gain is $14,900.

What Is Adjusted Cost Basis?

Adjusted cost basis represents your tax investment in an asset. It begins with the original purchase price and may be increased or decreased by several types of adjustments.

Basis increases can include: purchase commissions, certain acquisition fees, additional investments in the property, certain capitalized costs, and other applicable adjustments that increase the tax cost.

Basis decreases can include: return-of-capital distributions that were not taxed when received, prior tax adjustments, certain reimbursements, and other applicable reductions.

Reinvested dividends generally create new purchases or additional tax lots — each reinvestment has its own acquisition date and its own basis equal to the amount reinvested. They generally do not simply add to the basis of the original lot without tracking the associated shares and acquisition dates. Review your brokerage records or year-end tax statements for per-lot detail.

Inherited and gifted property can have special basis rules — inherited property may use a stepped-up basis at the date of death, and gifted property can have dual-basis rules depending on whether there is a gain or loss at the time of transfer. These special rules are not fully calculated by this standard tool.

What Are Selling Expenses?

Direct costs of selling an investment may reduce the amount realized. Possible examples include brokerage commissions paid on the sale, exchange fees, transaction fees, certain legal costs directly associated with the sale, and other direct disposition expenses.

Review your brokerage statement carefully so commissions and selling expenses are not deducted twice.

Do not subtract a selling expense again when it is already reflected in Form 1099-B proceeds, brokerage-reported net proceeds, adjusted basis, or a transaction-summary amount. This calculator includes an option to mark whether expenses are already reflected in proceeds.

General financial-advisor management fees, account maintenance fees, and ongoing investment expenses are not the same as direct selling commissions. Do not add ongoing management fees to basis or deduct them from sale proceeds unless they qualify as a direct selling cost for this transaction.

Short-Term Versus Long-Term Capital Gain

The holding period determines whether a capital gain or loss is short-term or long-term:

  • A capital asset held for one year or less is generally short-term.
  • A capital asset held for more than one year is generally long-term.

Counting generally begins the day after the acquisition date. The sale date is included in the holding period. Exact acquisition and disposition dates matter — crossing into a new calendar year does not automatically create long-term treatment.

Example: Purchased January 15, 2024. One year later is January 15, 2025 — selling on that date is still short-term (exactly one year, not more than one year). Selling on January 16, 2025 or later qualifies as long-term.

Inherited property, certain gifted property, securities transactions, short sales, and other special situations may use different holding-period rules not modeled by this standard calculator.

How Short-Term Capital Gains Are Taxed

Net short-term capital gains are generally taxed through the ordinary federal income-tax brackets — the same brackets that apply to wages and most other ordinary income. A short-term gain is added to other ordinary taxable income. Different portions of the gain can fall within different ordinary tax brackets, so the entire gain is not necessarily taxed at the taxpayer's highest marginal rate.

This calculator estimates the transaction's incremental federal tax by comparing federal tax before and after the modeled transaction. Capital losses and carryovers are netted before the taxable short-term amount is determined. Short-term capital gains do not have one universal flat tax rate.

How Long-Term Capital-Gain Rates Work

Standard net long-term capital gains may be taxed at 0%, 15%, or 20% under the tax-stacking method:

  1. Ordinary taxable income fills the lower portion of taxable income.
  2. Qualified dividends and eligible net long-term capital gain are stacked above ordinary taxable income.
  3. The applicable filing-status thresholds determine how much falls within each preferential rate band.
  4. Different portions of one gain may be taxed at different rates.

A taxpayer whose income crosses the 0% threshold does not pay 15% on the entire gain — only the portion above the threshold is taxed at 15%. Standard 0%, 15%, and 20% rates apply to ordinary investment assets; they do not apply to excluded special categories such as collectibles (taxed up to 28%) or unrecaptured Section 1250 gain.

2026 Long-Term Capital-Gain Rate Bands

The table below shows the taxable-income thresholds for the 0% and 15% long-term capital-gain bands for tax year 2026. Gain above the 15% threshold enters the 20% band.

Filing StatusTop of 0% BandTop of 15% Band
Single$49,450.00$545,500.00
Married Filing Jointly / Qualifying Surviving Spouse$98,900.00$613,700.00
Married Filing Separately$49,450.00$306,850.00
Head of Household$66,200.00$579,600.00

These are taxable-income thresholds, not gain-size thresholds. Ordinary taxable income and qualified dividends can use part of the available bands. Applicable federal tax year: 2026.

Qualified Dividends and Capital Gains

Qualified dividends generally use the same preferential federal rate bands as standard net long-term capital gains. Under the stacking method, qualified dividends are placed above ordinary income first, which can reduce the amount of the 0% or 15% band available for a modeled investment gain.

Ordinary dividends are not entered in the qualified-dividend field — only dividends that qualify for the preferential rate apply. Qualified dividends must not be taxed once as ordinary income and again through the preferential-rate calculation. The calculator avoids double-counting qualified dividends. See also the Dividend Income Calculator for dividend-focused analysis.

Net Investment Income Tax (NIIT)

The Net Investment Income Tax is a separate 3.8% federal tax. It is generally calculated on the lesser of net investment income or modified adjusted gross income (MAGI) above the applicable filing-status threshold. Not every capital gain is subject to NIIT — the tax applies only when MAGI exceeds the threshold.

Filing StatusNIIT MAGI Threshold
Single$200,000
Head of Household$200,000
Married Filing Jointly$250,000
Qualifying Surviving Spouse$250,000
Married Filing Separately$125,000

These NIIT thresholds are different from ordinary federal income-tax brackets, long-term capital-gain rate thresholds, and standard-deduction amounts. Form 8960 can require additional adjustments that the simplified calculator does not fully reproduce.

Capital-Loss Netting

Short-term and long-term gains and losses are initially tracked separately. The general netting sequence:

  1. Net short-term gains and losses.
  2. Net long-term gains and losses.
  3. Offset a net loss in one category against a net gain in the other.
  4. Determine whether the final result is a net short-term gain, net long-term gain, or net capital loss.
  5. Apply capital-loss deduction and carryover rules.

Prior-year short-term and long-term loss carryovers retain their respective character. A combined carryover input is less accurate than separate short-term and long-term carryover information, because the two categories offset gains of different types and tax rates differently.

Capital Loss Against Ordinary Income

After capital losses offset capital gains, an individual may generally deduct a limited amount of net capital loss against ordinary income:

  • Up to $3,000 for most filing statuses
  • Up to $1,500 for Married Filing Separately

Additional unused loss may carry to a future tax year, retaining its short-term or long-term character. Capital-loss carryovers do not expire. The calculator's carryover estimate can be simplified when it does not have all values from the prior year's Schedule D Capital Loss Carryover Worksheet. The estimated future tax value of a carryover is not current cash proceeds from the sale.

Wash-Sale Rules

A loss on stock or securities may be disallowed when substantially identical stock or securities are acquired during the period beginning 30 days before and ending 30 days after the sale date. That period contains 61 calendar days.

The disallowed loss may be added to the replacement investment's adjusted basis, and holding-period adjustments may also apply. Determining whether investments are substantially identical can require additional analysis beyond the transaction dates alone.

This calculator provides a warning when you indicate a potential wash sale, but does not perform a complete wash-sale calculation. A potentially disallowed loss should not be treated as definitely deductible until that analysis is complete.

Net Proceeds Versus Taxable Gain

These are separate concepts:

Taxable gain = Amount realized − Adjusted basis

Cash proceeds after taxes = Gross proceeds − Selling expenses − Modeled taxes

Cost basis measures your investment in the asset — it is not itself a tax. Basis represents money you already spent, which is being returned to you tax-free as part of the proceeds. Basis should not be subtracted twice from cash proceeds. A capital-loss tax benefit is not cash received at the time of sale; it reduces tax owed on other income, which is a separate benefit from the sale proceeds themselves.

State Capital-Gains Taxes

State treatment of capital gains varies by jurisdiction. States can differ in tax rates, income definitions, capital-gain exclusions, deductions, loss treatment, carryover rules, basis adjustments, and local taxes. This calculator's state field is a manually entered estimate — it does not infer your state or tax rate from browser location, and a manually entered percentage is not an official state tax calculation. Review your state's tax instructions or consult a qualified tax professional for state-specific guidance.

Special Transactions Excluded From Standard Calculation

These transactions can use different basis, holding-period, exclusion, recapture, netting or tax-rate rules. Use the standard result only when the entered transaction falls within the calculator's supported scope.

The standard calculator does not fully calculate:

Primary-home sale exclusion (Section 121)
Rental-property gain
Business-property gain
Depreciation recapture
Unrecaptured Section 1250 gain
Section 1245 gain
Collectibles (28% rate applies)
Qualified small-business stock
Section 1256 contracts (60/40 rule)
Employee stock purchase plans
Incentive stock options
Installment sales
Wash-sale basis adjustments
Inherited-property basis rules
Gifted-property dual-basis rules
Foreign investment reporting
Like-kind exchanges
Short sales
Straddles
Partnership interests

Worked Example: Long-Term Capital Gain (2026)

These assumptions are used to illustrate how the calculation works. All values are generated by the live calculator engine. When the 2026 federal configuration changes, this example updates automatically.

Tax year: 2026
Filing status: Single
Purchase price: $25,000
Purchase commission: $50
Sale proceeds: $40,000
Selling expenses: $100
Holding period: More than one year
Other taxable income: $40,000
Qualified dividends / MAGI / NII: $0 / $40,000 / $0
Capital-loss carryover: $0
State tax: Not included
1. Adjusted basis$25,050.00
2. Amount realized$39,900.00
3. Long-term capital gain$14,850.00
4. Gain taxed at 0%$9,450.00
5. Gain taxed at 15%$5,400.00
6. Gain taxed at 20%$0.00
7. Estimated federal capital-gains tax$810.00
8. Estimated NIIT (MAGI $40,000 below $200,000 threshold)$0.00
9. Estimated net cash proceeds after modeled taxes$39,090.00
10. Effective federal tax rate on the gain5.5%

The 0% portion occurs because other taxable income ($40,000) leaves $9,450.00 of space below the 0%→15% threshold of $49,450.00. Only the remaining gain above that threshold is taxed at 15%.

Worked Example: Short-Term Capital Gain (2026)

Tax year: 2026
Filing status: Single
Purchase price: $20,000
Sale proceeds: $30,000
Selling expenses: $75
Holding period: 6 months (short-term)
Other taxable income: $50,000
State tax: Not included
Adjusted basis$20,000.00
Amount realized$29,925.00
Short-term capital gain$9,925.00
Ordinary income before the gain$50,000.00
Ordinary income after the gain$59,925.00
Federal tax before the gain (2026 single brackets)$5,752.00
Federal tax after the gain$7,895.50
Incremental federal tax attributable to this transaction$2,143.50

The $50,000 of other income already occupies the 10% and 12% brackets. The short-term gain stacks above that income, partly in the 12% bracket and partly in the 22% bracket. The entire gain is not taxed at one flat 22% rate — the effective incremental rate is 21.6%.

Worked Example: Capital Loss Netting (2026)

Lot A — LT gain: $8,000.00
Lot B — ST loss: ($10,000.00)
Filing status: Single
Other taxable income: $60,000

Step 1: Net short-term: no ST gains, $10,000 ST loss → net ST loss of $10,000.

Step 2: Net long-term: $8,000 LT gain, no LT losses → net LT gain of $8,000.

Step 3: Cross-net: $8,000 LT gain offsets $8,000 of the $10,000 ST loss → remaining net capital loss of $2,000 (retains short-term character).

Net capital gain/(loss) after netting-$2,000.00
Loss deducted against ordinary income (under $3,000 limit)$2,000.00
Remaining loss carried to future year$0.00
Estimated federal tax reduction from deduction$440.00

The estimated federal tax reduction is the difference between federal tax on $60,000 and federal tax on $58,000 using 2026 single brackets. This reduction is a future-tax benefit, not cash received from the sale itself.

Frequently Asked Questions

How do I calculate a capital gain?
A capital gain equals the amount realized minus the adjusted cost basis. The amount realized is gross sale proceeds minus direct selling expenses such as brokerage commissions and transaction fees. Adjusted cost basis starts with the purchase price and is increased by purchase commissions, certain acquisition fees, and other capitalized costs, then reduced by applicable adjustments such as return-of-capital distributions. The taxable gain is not the full sale proceeds — it is only the excess of what you received (net of selling costs) over your tax investment in the asset.
What is adjusted cost basis?
Adjusted cost basis is your tax investment in an asset. It starts with the original purchase price and may be increased by purchase commissions, certain acquisition fees, additional investments in the property, and other capitalized costs. It may be reduced by return-of-capital distributions, prior tax adjustments, and applicable reductions. Reinvested dividends generally create additional tax lots with their own acquisition dates and basis rather than adding to the original lot. Inherited and gifted property may use special basis rules not fully calculated by this standard tool.
Do selling expenses reduce a capital gain?
Yes. Direct costs of selling an investment — brokerage commissions, exchange fees, transaction fees, and similar direct disposition costs — reduce the amount realized, which lowers the taxable gain. However, do not deduct a selling expense that is already reflected in Form 1099-B proceeds, brokerage-reported net proceeds, or a transaction-summary amount. Deducting the same expense twice overstates the reduction. This calculator includes an option to mark whether selling expenses are already reflected in reported proceeds.
What is the difference between short-term and long-term gains?
A capital asset held for one year or less produces a short-term capital gain or loss. A capital asset held for more than one year produces a long-term capital gain or loss. Short-term gains are generally taxed through ordinary federal income-tax brackets. Standard long-term gains from most investment assets may qualify for preferential rates of 0%, 15%, or 20%. The lower long-term rates can significantly reduce the federal tax on an investment gain. Crossing into a new calendar year does not automatically make a gain long-term — the exact date count controls.
How is the one-year holding period counted?
Counting begins the day after the acquisition date — the day after you purchased the asset. The sale date is included in the period. For example, purchasing on January 15, 2024 means day one of the holding period is January 16, 2024. Selling on January 15, 2025 is exactly one year — still short-term. Selling on January 16, 2025 or later is more than one year — long-term. This calculator uses exact calendar date arithmetic and accounts for leap years.
Are short-term gains taxed at a flat rate?
No. Short-term capital gains are added to other ordinary taxable income and taxed through the progressive ordinary federal income-tax brackets. Different portions of the gain can fall within different brackets, so the entire gain is not necessarily taxed at your highest marginal rate. The calculator estimates incremental tax by comparing federal tax on ordinary income before and after the gain — a method that captures this bracket-by-bracket effect rather than applying one flat rate to the entire gain.
What are the 2026 long-term capital-gain tax rates?
For tax year 2026, standard long-term capital gains may be taxed at 0%, 15%, or 20% depending on filing status and taxable income. The 0% rate applies when total taxable income falls below the applicable threshold ($49,450 for single filers). The 15% rate applies to amounts between the 0% and 15% thresholds. The 20% rate applies to amounts above the 15% threshold ($545,500 for single filers). These are taxable-income thresholds, not gain-size thresholds — ordinary income fills the lower bands first.
Can part of one gain be taxed at 0% and another part at 15%?
Yes. A single long-term capital gain can span two or more rate bands. The stacking method places ordinary taxable income at the bottom, then stacks qualified dividends and long-term gain above it. If that stack crosses the 0%–15% threshold partway through the gain, the portion below the threshold is taxed at 0% and the portion above is taxed at 15%. The calculator models this allocation and shows how much of the gain falls in each band.
How do qualified dividends affect capital-gain tax?
Qualified dividends use the same preferential rate bands as long-term capital gains. Under the stacking method, qualified dividends occupy space in those bands above ordinary income. If you have significant qualified dividends, they reduce the amount of the 0% or 15% band available for your capital gain, which can result in more of the gain being taxed at a higher rate. Enter qualified dividends separately so the calculator can correctly allocate both items across the available rate bands.
What is the Net Investment Income Tax?
The Net Investment Income Tax (NIIT) is a separate 3.8% federal tax imposed on the lesser of net investment income or modified adjusted gross income (MAGI) above a filing-status threshold. For 2026 the threshold is $200,000 for single filers and head of household, $250,000 for married filing jointly or qualifying surviving spouse, and $125,000 for married filing separately. Capital gains on investment assets are generally included in net investment income. The tax is separate from the 20% capital-gain rate — both can apply in the same year.
Is NIIT the same as the 20% capital-gain rate?
No. They are separate taxes. The 20% capital-gain rate is the highest preferential rate for standard long-term gains and applies through the ordinary federal tax return. The Net Investment Income Tax (NIIT) at 3.8% is calculated separately on Form 8960. Both can apply to the same gain when MAGI is high enough. A taxpayer in the 20% long-term gain band with MAGI above the NIIT threshold could face a combined federal rate of 23.8% on the affected portion of the gain, before any state tax.
How do capital losses offset capital gains?
Short-term and long-term gains and losses are netted separately first. Then, if one category produces a net loss and the other a net gain, the loss offsets the gain. For example, a net short-term loss of $3,000 combined with a net long-term gain of $10,000 produces a net long-term gain of $7,000. Prior-year carryovers of the same character are included in the same netting step. The resulting net gain enters the rate calculation; a net capital loss is subject to the annual deduction limit.
How much capital loss can I deduct against ordinary income?
After offsetting capital gains, a net capital loss may be deducted against ordinary income up to $3,000 per year for most filing statuses, or up to $1,500 for married filing separately. The deduction reduces taxable income in the current year. Any unused loss beyond these annual limits carries forward to future years retaining its short-term or long-term character. The carryforward continues until fully used and does not expire.
What happens to unused capital losses?
Unused capital losses carry forward to future tax years. The carryover retains its short-term or long-term character from the year it originated. In each future year, the carryover is used as if it were a current-year capital loss in the same category, offsetting gains of the same character first. Carryforwards do not expire. The amount and character of your carryover should appear on Schedule D from the prior year or in your tax-preparation software.
What is a wash sale?
A wash sale occurs when you sell stock or securities at a loss and acquire substantially identical stock or securities within 30 days before or after the sale. The 61-day window (30 days before, sale date, 30 days after) is strictly applied. When the wash-sale rule applies, the loss is disallowed for the current year and is generally added to the basis of the replacement investment. Holding-period adjustments may also apply. This calculator provides a warning when you indicate a potential wash sale but does not perform a complete substantially-identical determination.
Does this calculator handle cryptocurrency sales?
The calculator can be used to estimate federal capital-gain tax on a cryptocurrency sale that is treated as property under current IRS guidance (IRS Notice 2014-21). Enter the purchase price as adjusted basis, sale proceeds, selling fees, and acquisition and sale dates. The standard holding-period and rate rules apply to most crypto transactions. However, crypto transactions can involve additional complexity such as hard forks, airdrops, staking rewards, and wash-sale rules that may evolve. Treat the result as an educational estimate and review current IRS guidance or consult a qualified tax professional for crypto-specific situations.
Does it calculate the home-sale exclusion?
No. The primary-home sale exclusion under Section 121 allows eligible taxpayers to exclude up to $250,000 of gain ($500,000 married filing jointly) from the sale of a primary residence that meets ownership and use tests. This exclusion involves complex eligibility rules including residency requirements, prior use of the exclusion, and partial exclusion calculations that the standard calculator does not model. If your transaction may involve a primary-home exclusion, use the scope question at the top of the calculator and consult IRS Publication 523 and a qualified tax professional.
Does it calculate tax on collectibles?
No. Collectibles such as art, antiques, coins, stamps, and precious metals held for more than one year are subject to a maximum federal rate of 28% — not the standard 0%/15%/20% long-term rates. The standard calculator applies only the 0%/15%/20% rate structure and does not impose the 28% collectibles rate. If you are selling a collectible, select the collectibles category in the scope question. The result shown will not correctly reflect the collectibles rate.
Does it calculate depreciation recapture?
No. When depreciation has been claimed on property — such as rental real estate or business property — a portion of the gain on sale may be recaptured as ordinary income or taxed at a special 25% unrecaptured Section 1250 rate, rather than as a standard capital gain. The calculator does not model depreciation recapture. If your transaction involves property on which depreciation was claimed, the standard result will not be correct. Review IRS Publication 544 and consult a qualified tax professional.
Does it include state capital-gains tax?
The calculator includes an optional manual state tax field where you can enter an estimated state rate or dollar amount. It does not look up official state tax rates, apply state-specific capital-gain definitions, or file a state return. States vary significantly in how they tax capital gains — some use the same rate as ordinary income, some have preferential rates, and a few have no income tax at all. The state field is a simplified estimate. Review your state's tax instructions or consult a qualified professional for accurate state tax information.
Is cost basis subtracted when calculating net proceeds?
No, and it should not be. Cost basis represents money you already invested — the sale proceeds return that investment to you tax-free. The taxable amount is only the gain above basis. If you also subtracted basis from the cash you receive, you would be counting it twice. Net proceeds equal gross proceeds minus selling expenses minus estimated taxes. Basis is not deducted again — it already defines what portion of the proceeds is not taxable gain.
Why might my brokerage basis differ from my records?
Brokerage-reported basis on Form 1099-B may differ from your records for several reasons: dividends reinvested before 2012 may not be tracked in the broker system; corporate actions such as mergers, spin-offs, or stock splits may not have been correctly applied; transfers from another institution may not include the original basis; or you may have made basis adjustments the broker was not informed of. Always verify basis against your own purchase records. If the 1099-B basis is incorrect, you may need to adjust it using Form 8949 with the appropriate correction code.
Does the calculator replace Form 8949 or Schedule D?
No. Form 8949 is used to report each capital transaction — proceeds, basis, adjustments, and gain or loss — on a federal tax return. Schedule D aggregates those results and applies the capital-loss deduction and rate calculations. This calculator provides educational estimates based on the assumptions you enter. It does not file a return, does not transmit data to the IRS, and is not a substitute for Form 8949, Schedule D, Form 8960, or professional tax preparation. Use the calculator to understand concepts and estimate scenarios, then complete and verify the actual forms.
Is this an official IRS calculator?
No. This is an independent educational calculator that uses publicly available IRS rules and threshold data. It is not affiliated with, endorsed by, or connected to the Internal Revenue Service or any government agency. Results are estimates based on user-entered assumptions and the 2026 federal rules stored in this calculator. Actual tax liability depends on your complete tax situation, other income, deductions, applicable state rules, special transaction rules, and current law. Verify important decisions with current IRS guidance and a qualified tax professional.

Privacy Notice

Calculator values are processed locally in your browser and are not intentionally transmitted to our servers. This calculator does not require or collect your name, email address, telephone number, street address, Social Security number, brokerage account number, brokerage login credentials, tax returns, Form 1099-B uploads, or bank credentials. Website hosting, consent, analytics, and advertising services may process technical information as described in our Privacy Policy.

Sources and Methodology

Methodology

  • Holding period is calculated using exact acquisition and sale dates; counting begins the day after acquisition and the sale date is included.
  • Basis and proceeds come from user-entered values; selling expenses reduce the amount realized unless marked as already reflected in proceeds.
  • Short-term gains use centralized ordinary federal brackets from taxConfig.js (same data as the Tax Estimator).
  • Long-term gains use the tax-stacking method: ordinary income below the gain, qualified dividends stacked next, then long-term gain allocated across 0%, 15%, and 20% bands.
  • Qualified dividends share preferential rate bands and are stacked before capital gain to correctly model their interaction.
  • Federal tax is calculated using a before-and-after comparison: tax on ordinary income plus the gain, minus tax on ordinary income alone.
  • NIIT is calculated separately on the lesser of net investment income or MAGI above the applicable threshold.
  • State tax is a manual estimate; no state-specific tax law is applied.
  • Capital-gain netting follows IRC §1222: short-term and long-term separately, then cross-netting.
  • Prior-year capital-loss carryovers retain their character per IRC §1212.
  • Loss carryover estimates may be simplified when prior-year Schedule D Capital Loss Carryover Worksheet values are unavailable.
  • Special transaction categories are excluded from the standard calculation.
  • Wash-sale detection is limited to a user-answered question; no automated substantially-identical determination is made.

Applicable federal tax year: 2026
Last reviewed: August 3, 2026

Related Calculators

About This Calculator

Publisher: Smart Finance Calculators Editorial Team. This page has not been reviewed by a certified public accountant, attorney, tax professional, or investment adviser.

Validation: The calculation engine is validated against the worked examples published in IRS Publication 550, the Schedule D instructions, and the Qualified Dividends and Capital Gain Tax Worksheet. Automated tests compare engine output against those published figures.

Applicable federal tax year: 2026 · Last reviewed: August 3, 2026

Disclaimer

This calculator provides an educational estimate based on user-entered information and selected federal tax-year data. It does not constitute tax, legal, investment, accounting or financial advice and does not prepare Form 8949, Schedule D, Form 8960 or a tax return. Actual basis, gain classification, capital-loss treatment, Net Investment Income Tax, state tax and special transaction rules depend on individual circumstances and current law.