For CPAs, Enrolled Agents and tax preparers
A ProfitWeave LLC company
Calculators / Capital Gains
Federal and state · Tax years 2026 and 2027
Capital Gains Calculator
Answer "how much tax will I owe if I sell?" in one screen. The calculator figures the federal and state tax a stock or investment sale adds to the client's return, and what the timing options are worth.
Tax on the sale
—
Federal
—
State
—
Cash after tax
—
The sale and its tax
The tax caused by this sale, on top of the client's other income.
| Line | Amount |
|---|---|
| Calculating |
Ways to lower it
The same gain under other timing or residency.
| Option | Tax on the gain | Saved |
|---|---|---|
| Calculating |
Selling part of the position
Tax at smaller sale sizes, to find where a bracket or the net investment income tax begins.
| Gain realized | Federal | State | Total tax | Rate |
|---|---|---|---|---|
| Calculating |
Points to review
Planning items that apply to this sale.
- Calculating
Assumptions
- Federal: long-term gains and qualified dividends are taxed at 0%, 15% and 20% on top of ordinary income, using the 2026 and 2027 thresholds. Short-term gains are ordinary income. The 3.8% net investment income tax applies above $200,000 of modified AGI ($250,000 joint, $125,000 separate).
- The tax on the sale is the difference between the full return with the sale and the same return without it, so it includes the effect of the gain on brackets and on the net investment income tax.
- California: 2026 tax rate schedules and standard deduction, used for both years. Gains are taxed as ordinary income. Other states are estimated at the flat rate entered.
- Splitting the sale assumes the same income and tax tables in both years.
- Not modeled: collectibles and Section 1250 rates, qualified small business stock, installment sales, AMT, and the effect of higher income on credits and Medicare premiums.
Send this to your client as a branded report
Pro plans add your logo and firm name and export a PDF.