Build your retirement plan for free.Explore Plan Builder →

Stock Calculator

Enter shares, purchase price, sell price, broker commissions, and capital gains tax rate to calculate stock trade net profit, ROI, capital gains tax, break-even price, total cost basis, total commissions, trade cost and profit breakdown, and profit sensitivity by sell price.
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter the number of shares and trade prices

    Set Number of Shares, Purchase Price ($), and Sell Price ($) for the trade you want to evaluate.

  2. 2

    Enter commissions and their calculation types

    Enter buyCommission and sellCommission, then choose $ Fixed or % Rate separately for Buy Commission Type and Sell Commission Type.

  3. 3

    Set the estimated tax rate and review the results

    Enter CGT Rate (%) to estimate tax on positive gross profit. Review net profit, return on investment, cost basis, sale revenue, and break-even price.

Example Calculation

An investor buys 15 shares at $500 each, then sells them at $580. The buy commission is $5 fixed, the sell commission is $6 fixed, and the assumed capital gains tax rate is 10%.

Number of Shares

15

Purchase Price ($)

500

Sell Price ($)

580

buyCommission

5

sellCommission

6

CGT Rate (%)

10

Buy Commission Type

$ Fixed

Sell Commission Type

$ Fixed

Results

Net Profit

$1,070.10

Return on Investment

14.26%

Gross Profit

$1,189.00

Capital Gains Tax

$118.90

Total Cost Basis

$7,505.00

Break-Even Price

$500.73

Total Sale Revenue

$8,694.00

Price Change

16.00%

Insights card shows the trade’s return after the entered commissions and estimated tax.

Tips

A $540 sale price produces $530.10 net profit

Change Sell Price ($) from $580 to $540 while keeping the other inputs unchanged. The calculator’s net profit falls to $530.10 after the same fixed commissions and 10% estimated tax.

A 1% commission on each side costs more than the fixed fees

Change both commission types to % Rate and enter 1 for each. On these trade sizes, the buy fee becomes $75 and the sell fee becomes $87, compared with the original $5 and $6 fixed fees.

A 20% tax assumption reduces the net result

Change CGT Rate (%) from 10 to 20. With the same positive gross profit, estimated tax doubles from $118.90 to $237.80.

What this stock calculator estimates

This stock calculator estimates a trade’s profit after entered buy and sell commissions, then applies a user-supplied tax rate to positive gross profit. It also reports return on the total purchase cost, the break-even sale price, and the stock’s price change. It does not calculate an investor’s complete tax liability or account for dividends, currency conversion, or other trading costs.

How the stock-trade calculation works

Buy cost = Shares × Purchase price
Total cost = Buy cost + Buy commission
Sale revenue after commission = (Shares × Sell price) − Sell commission
Gross profit = Sale revenue after commission − Total cost
Estimated tax = max(Gross profit, 0) × CGT rate
Net profit = Gross profit − Estimated tax
ROI = (Net profit ÷ Total cost) × 100

For the example, the shares cost 15 × $500 = $7,500. Adding the $5 buy commission gives a total cost of $7,505. Sale proceeds are 15 × $580 = $8,700; after the $6 sell commission, revenue is $8,694. Gross profit is $8,694 − $7,505 = $1,189. Estimated tax is $1,189 × 10% = $118.90, leaving $1,070.10 net. ROI is $1,070.10 ÷ $7,505 × 100 = 14.26%.

The displayed break-even price includes the buy commission and the entered sell commission: ($7,505 + $6) ÷ 15 = $500.73 per share. If you select percentage-based commissions, fees change with trade value; check that the displayed break-even estimate fits your fee structure.

How the sale price changes the result

The table keeps 15 shares, a $500 purchase price, $5 and $6 fixed commissions, and a 10% tax assumption.

Sell price Price change Gross profit Estimated tax Net profit
$510 2.00% $139.00 $13.90 $125.10
$540 8.00% $589.00 $58.90 $530.10
$580 16.00% $1,189.00 $118.90 $1,070.10

A higher sale price increases profit, but your actual after-tax return can differ from this table if your applicable tax rate or cost basis differs. In the United States, the IRS distinguishes short-term and long-term capital gains based on how long an asset was held; the IRS capital gains guidance describes the general rules. The calculator’s CGT Rate (%) is a single estimate, not a determination of that treatment.

When to use a different calculator

Before using the net result for a tax decision, check your brokerage statement for adjusted basis, transaction costs, and the date you acquired the shares. Taxable gains and losses can require details this calculator does not request.

Frequently Asked Questions

How does this calculator find stock-trade profit?

It subtracts purchase cost and buy commission from sale proceeds after the sell commission. If the resulting gross profit is positive, it applies the entered CGT Rate (%) to estimate tax and subtracts that amount to produce net profit.

How is the break-even sale price calculated?

1. Add the share purchase cost and buy commission. 2. Add the sell commission. 3. Divide the total by the number of shares. With percentage-based sell commissions, the calculator uses the entered sell commission amount in the same break-even calculation, so treat that displayed figure as an estimate when using percentage fees.

Does this result equal my taxable capital gain?

Not necessarily; the calculator uses a simplified trade calculation and does not determine your tax basis or tax treatment. In the United States, holding period affects whether a gain is generally short-term or long-term, and other tax rules can apply; see the IRS capital gains and losses guidance.

Are commissions included in the return on investment?

Yes, the calculator adds the buy commission to total cost and subtracts the sell commission from sale revenue before calculating profit and ROI. It does not include other possible costs such as account fees, exchange fees, or the cost of financing.

What happens if the trade loses money?

The calculator reports a negative gross and net profit but sets estimated capital gains tax to zero. It does not determine whether a loss is deductible or how it can be used on a tax return.

Does a 10% CGT rate apply to every stock investor?

No, the rate is only an input assumption and is not a universal capital-gains tax rate. Tax treatment depends on your jurisdiction, holding period, income, account type, and other circumstances; use tax rules that apply to your situation rather than treating this estimate as a filing calculation.