Stock Gain Tax Calculator

Measure taxable gains after fees, offsets, dividends, and surtax. Compare short and long holding periods. See taxes, net profit, and effective burden instantly today.

Enter Transaction Details

Plotly Graph

The chart compares proceeds, basis, profit, and tax values for the current scenario.

Example Data Table

Scenario Shares Buy Price Sell Price Holding Days Loss Carryover Gain Type Estimated Tax
Growth stock sale 150 42.50 63.20 420 300.00 Long-Term 1,278.14
Swing trade exit 80 110.00 119.50 90 0.00 Short-Term 504.60
Dividend plus gain case 220 18.75 24.10 540 150.00 Long-Term 478.82

Formula Used

This calculator is generic. Actual tax treatment can vary by country, filing status, wash-sale rules, exemptions, and local reporting rules.

How to Use This Calculator

  1. Choose the currency used for the transaction.
  2. Enter shares, buy price, and sell price.
  3. Add buy and sell commissions or broker fees.
  4. Include any basis adjustments, such as reinvested amounts or corrections.
  5. Enter dividend income if you want sale and dividend taxes together.
  6. Set holding days to classify the gain as short-term or long-term.
  7. Enter capital loss carryover to reduce taxable gains.
  8. Type the applicable gain, dividend, state, and surtax rates.
  9. Click the calculate button to see detailed results above the form.
  10. Use the CSV or PDF buttons to export the current summary.

FAQs

1. What does this calculator estimate?

It estimates capital gain tax, dividend tax, total tax, after-tax profit, and after-tax cash from a stock sale using user-defined rates and adjustments.

2. How is short-term versus long-term gain decided?

The holding period controls it. Values above 365 days are treated as long-term. Values of 365 days or less are treated as short-term.

3. Why are commissions included?

Buy fees increase cost basis, while sell fees reduce proceeds. Both affect the actual gain and create a more realistic tax estimate.

4. What are basis adjustments?

Basis adjustments are extra amounts added to cost basis, such as corrected transaction costs, reinvested amounts, or other allowed adjustments.

5. Can loss carryovers reduce tax here?

Yes. The calculator subtracts the entered loss carryover from the capital gain before applying the selected tax rate, but never below zero.

6. Does this calculator support dividends?

Yes. You can enter dividend income and a dividend tax rate. The tool then adds dividend tax to the capital gain tax estimate.

7. Is this suitable for every country?

It is a flexible framework, not a jurisdiction-specific filing engine. Enter local rates carefully and confirm results with a qualified tax professional.

8. Why might my official tax result differ?

Real filings may include brackets, exemptions, wash-sale rules, rounding conventions, filing status changes, and special reporting requirements not modeled here.

Related Calculators

depreciation recapture tax calculatorcrypto capital gains calculatorbusiness asset sale tax calculatorlong term capital gains calculatorproperty capital gains calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.