Calculators

Stock Profit Calculator

Estimate the gross profit or loss from a stock sale after entering your purchase price, sale price, share quantity, and total trading fees. The calculation excludes taxes and other costs not entered.

Loading calculator...

What the Stock Profit Calculator does

The Stock Profit Calculator estimates the profit or loss from selling shares by comparing their purchase and sale prices, multiplying the difference by the number of shares, and subtracting the trading fees you enter. Its result is a simple dollar amount based on those figures. A positive result indicates a gain before taxes and unentered costs. A negative result indicates that the sale price difference and fees produce a loss.

The estimate uses four inputs: purchase price per share, sale price per share, shares sold, and total trading fees. Prices and fees are entered in dollars, and the share count is a whole number. The tool assumes the entered prices represent the relevant transaction prices and that the fee amount covers the costs you want included in this estimate.

This calculation helps organize basic trade arithmetic. It does not determine whether a stock is suitable for you, forecast a future price, or calculate your tax bill. It also does not account for costs that are not included in the fee input.

How to use the Stock Profit Calculator

Enter the figures for a completed or hypothetical sale. Use the per-share purchase price for the shares being sold, then enter the sale price per share and quantity. Add the total trading fees in dollars. If there are no fees to include in your estimate, enter zero.

  1. Purchase price: Enter what you paid per share for the shares in this sale.
  2. Sale price: Enter the amount received per share before subtracting fees.
  3. Shares sold: Enter the number of shares included in the transaction.
  4. Total trading fees: Enter the fees you want deducted from the price difference.

For example, suppose you bought 10 shares at $50 each and later sold them at $60 each. If the total fees were $5, the calculation is ($60 − $50) × 10 − $5. The price difference is $10 per share, which gives $100 before fees. After subtracting $5, the estimated profit is $95.00.

How the Stock Profit Calculator formula works

The formula is (sale price per share − purchase price per share) × shares sold − total trading fees. Subtracting the purchase price from the sale price gives the change in value for one share. Multiplying by the number of shares gives the total price difference for the position sold. The calculator then subtracts the fees entered.

The units remain consistent throughout. Dollars per share multiplied by shares gives dollars, and subtracting dollar-denominated fees leaves a dollar result. The calculator displays the answer to two decimal places.

A negative price difference can produce a loss even before fees. For instance, if the sale price is below the purchase price, the first part of the formula is negative. Fees lower the result further. If the sale and purchase prices are equal, the result is zero before fees and negative by the amount of the fees afterward.

Use cases for the Stock Profit Calculator

This tool can help with several basic record-keeping and planning tasks:

  • Reviewing a completed trade: Compare the entered prices and fees to see the simple gain or loss before tax considerations.
  • Checking a hypothetical sale: Try a possible sale price to understand how the arithmetic changes at different prices. This is a scenario calculation, not a prediction.
  • Comparing share quantities: See how selling a different number of shares affects the estimated dollar result, assuming the same per-share prices and fee total.
  • Organizing transaction notes: Keep the input figures together as a starting point for reconciling records with statements.

When reviewing a trade, confirm that the quantity and purchase price correspond to the shares actually sold. If shares were acquired at different prices, one average purchase price may not represent the basis used in your records or tax reporting. This calculator applies one purchase price to every share entered.

Other factors to consider when calculating stock profit

The result is limited to the information entered. Taxes can affect the amount a person ultimately keeps, and their treatment depends on individual circumstances and applicable rules. This calculator does not evaluate tax status or choose a tax-lot accounting method. Use your transaction records and authoritative tax guidance when preparing a return or assessing a tax obligation.

Trading costs can also vary by account and transaction. Include any costs you intend to reflect in the estimate in the total fees field, while avoiding double-counting amounts that are already reflected in the prices or records you use. The tool does not infer missing fees.

Finally, this is a realized trade arithmetic model when you enter an actual sale. For a hypothetical sale, it only shows what the supplied assumptions imply. Market prices can change, and the result does not account for future movements or suggest an investment decision.

Frequently asked questions

Does the calculator include taxes?

No. It subtracts only the trading fees entered. Taxes and their treatment are outside the formula, so the displayed amount is not necessarily an after-tax result.

Can I use it to estimate a loss?

Yes. Enter a sale price below the purchase price, if that matches the scenario you want to examine. The result can be negative, and entered fees reduce it further.

What if I bought shares at different prices?

The formula uses one purchase price per share for all shares in the calculation. If your shares have different acquisition prices, calculate using a suitable per-share figure for the particular shares sold, while checking your transaction records for the method applicable to your situation.

What should I enter for trading fees?

Enter the total dollar fees you want deducted for the sale estimate. If you want to include additional costs, ensure they are not already included elsewhere in the inputs. Enter zero when there are no fees to include.

Is this a forecast of future stock performance?

No. It performs arithmetic on the purchase price, sale price, share quantity, and fees supplied. A hypothetical output depends entirely on those assumptions and does not predict a market price or future return.

Written by

wsdinsider.com Editorial Team

Editorial team

Independent editorial coverage of money & business literacy.