Stock Calculator

Enter your number of shares, purchase price, sell price, and any buy/sell commissions to calculate your stock profit or loss. The Stock Calculator shows your net profit, return on investment, and a full cost breakdown so you know exactly what you made — or lost — on a trade.

Total number of shares bought and sold

The price you paid per share when buying

The price you received per share when selling

Brokerage fee paid when buying the shares

Brokerage fee paid when selling the shares

%

Capital gains tax rate applied to your profit (0 to skip)

Results

Net Profit / Loss

--

Total Buy Cost

--

Total Sell Revenue

--

Total Commissions

--

Estimated Tax

--

Profit After Tax

--

Return on Investment (ROI)

--

Trade Cost Breakdown

Frequently Asked Questions

How does the Stock Calculator compute profit?

The calculator subtracts your total buy cost (shares × purchase price + buy commission) from your total sell revenue (shares × sell price − sell commission). The resulting figure is your gross profit or loss before tax.

What is included in the total buy cost?

The total buy cost equals the number of shares multiplied by your purchase price per share, plus any brokerage commission you paid when placing the buy order.

How is the Return on Investment (ROI) calculated?

ROI is calculated as (Net Profit ÷ Total Buy Cost) × 100. It shows the percentage gain or loss relative to what you originally invested, including commissions.

Should I include commissions in the calculation?

Yes — commissions directly reduce your actual profit. Many brokers now offer commission-free trading, in which case you can leave those fields at zero. Including them gives you a more realistic picture of your returns.

What tax rate should I use?

Use your applicable capital gains tax rate. In the US, long-term capital gains (assets held over 1 year) are typically taxed at 0%, 15%, or 20% depending on income, while short-term gains are taxed as ordinary income. Enter 0 if you want to see pre-tax results.

Can I calculate a loss with this tool?

Yes. If your sell price is lower than your purchase price, the calculator will display a negative net profit, indicating a capital loss. This is clearly shown in the results.

Does this calculator account for stock splits or dividends?

No — this tool is designed for straightforward buy/sell profit calculations. Dividends received and stock splits would need to be factored in manually by adjusting your share count or effective prices.

What is the difference between gross profit and profit after tax?

Gross profit is your gain after commissions but before taxes. Profit after tax deducts the estimated tax (based on your entered tax rate) from the gross profit, giving you the actual money you keep.

More Finance Tools