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
- Gross Purchase = Shares × Buy Price per Share
- Adjusted Basis = Gross Purchase + Buy Fees + Additional Basis Adjustments
- Gross Sale = Shares × Sell Price per Share
- Net Proceeds = Gross Sale − Sell Fees
- Capital Gain = Net Proceeds − Adjusted Basis
- Taxable Capital Gain = max(Capital Gain − Loss Carryover, 0)
- Gain Tax Rate = Short-Term Rate or Long-Term Rate + State Rate + Surtax Rate
- Capital Gain Tax = Taxable Capital Gain × Gain Tax Rate
- Dividend Tax = Dividend Income × (Dividend Rate + State Rate + Surtax Rate)
- Total Tax = Capital Gain Tax + Dividend Tax
- Pre-Tax Profit = Capital Gain + Dividend Income
- After-Tax Profit = Pre-Tax Profit − Total Tax
- After-Tax Cash Received = Net Proceeds + Dividend Income − Total Tax
- Effective Tax Rate = Total Tax ÷ Pre-Tax Profit × 100
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
- Choose the currency used for the transaction.
- Enter shares, buy price, and sell price.
- Add buy and sell commissions or broker fees.
- Include any basis adjustments, such as reinvested amounts or corrections.
- Enter dividend income if you want sale and dividend taxes together.
- Set holding days to classify the gain as short-term or long-term.
- Enter capital loss carryover to reduce taxable gains.
- Type the applicable gain, dividend, state, and surtax rates.
- Click the calculate button to see detailed results above the form.
- 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.