Stock Profit Calculator (with dividends + taxes)
Enter shares, buy/sell prices, commissions, dividends received, and your capital-gains tax rate. The calculator returns total gain, tax owed, and after-tax net.
- After-tax profit
- 2,589.76
- ROI (after tax)
- 17.27%
- Total cost
- 15,000
- Gross proceeds
- 18,000
- Capital gain
- 3,000
- Dividends
- 250
- Total gain (pre-tax)
- 3,250
- Tax owed
- −660.24
How it works
What goes into stock-trade profit
Stock profit has three main components: capital gain (sell price minus buy price, times shares, minus commissions), dividends received during your holding period, and the tax owed on the combined gain. Most calculators only compute one of these — we compute all three for an accurate after-tax result.
Commissions: many US brokers offer $0 stock trades now, but ETFs, options, mutual funds, and international stocks may still carry fees. Japanese SBI/Rakuten Securities charge ~¥0-275 per trade depending on tier. Always check your broker's fee schedule.
Tax rate: long vs short term
United States: short-term (held < 1 year) capital gains taxed at ordinary income rate (10-37%). Long-term (held ≥ 1 year) capital gains taxed at 0%, 15%, or 20% depending on income. Qualified dividends use long-term rates; non-qualified use ordinary income rates.
Japan: typically 20.315% (15% income tax + 5% local tax + 0.315% reconstruction surtax) for both capital gains and dividends in standard taxable accounts. NISA accounts (TUMI-nuri-style) are tax-free up to certain limits.
EU and UK rates vary widely (UK has CGT allowance, then 10/20%; Germany has 25% flat tax). Consult your country's specific rules — this calculator just applies whatever rate you enter.
What this calculator doesn't model
Bid-ask spread costs: buying at the ask and selling at the bid means a tiny implicit cost per trade. For liquid large-caps it's negligible (cents on $100); for illiquid small-caps it can be 0.5-2%. Use realistic execution prices.
Currency conversion: if you bought USD stocks with JPY, your return is also affected by USD/JPY moves between buy and sell. We don't compute FX — just enter the prices in your home currency at the time of each trade.
Wash sale rules (US): if you repurchase substantially the same security within 30 days of a loss, the loss is disallowed for tax purposes. This calculator doesn't track wash sales — consult a CPA for complex situations.
Frequently asked questions
›Does this work for ETFs and mutual funds?
Yes — same math. Funds may distribute dividends and capital gains; enter both amounts in the dividends field, or use a separate calculation per source if rates differ.
›What about reinvested dividends (DRIP)?
Each reinvestment is treated as a new tax lot in most jurisdictions. This calculator assumes a single buy/sell — for DRIP, run multiple calculations or use brokerage tax statements.
›Why does the calculator apply tax to losses too?
It doesn't — we only apply tax when capital gain or dividends are positive. A loss reduces total tax owed in many countries, but the rules vary so we leave loss treatment to manual handling.
›What's a 'capital gains tax allowance'?
Some countries (UK, France, etc.) offer a tax-free allowance per year before capital gains tax kicks in. Subtract your allowance from gain before applying the tax rate, or model it as a lower effective rate.
›Should I include broker subscription fees?
Subscription/account fees are usually deductible from total return but not specific to a trade. Subtract from the after-tax profit if your broker charges them.
›How is this different from the crypto calculator?
Stocks pay dividends; crypto generally doesn't. Crypto uses fee % (varies by trade size); stocks usually use flat commission. The math is similar but inputs differ.
›Can ROI be negative?
Yes. If sell price + dividends < buy price + commissions + tax (the rare case where dividend tax exceeds dividend income), ROI is negative.
›Does the data leave my browser?
No. Calculation runs locally; nothing is sent to a server.
Related tools
Last updated: