What this Stock Profit Calculator does
The Stock Profit Calculator estimates the net profit or loss from a stock sale using four figures you provide: purchase price per share, sale price per share, number of shares, and total trading costs. It multiplies the change in price by the number of shares, then subtracts the costs you entered. A positive result means the sale price exceeded the purchase price by enough to cover those costs. A negative result means the price difference and costs together produced a loss in this calculation.
The calculator is a straightforward planning worksheet. It does not retrieve market prices, confirm a trade, or determine your full tax outcome. Enter prices in dollars per share and costs in dollars. The result, labeled Net Profit or Loss, is also shown in dollars. This makes it useful for checking a possible trade or reviewing a completed sale with figures you already have.
The estimate treats your entered trading costs as one total amount. Include the costs you want reflected in the calculation, such as commissions or other transaction charges, if applicable to your situation. The calculator cannot identify which costs apply to a particular brokerage account or transaction.
How to use the Stock Profit Calculator
Enter the purchase price and the sale price for one share. Use the actual per-share amounts when reviewing a completed transaction, or clearly identified assumptions when estimating a possible one. Then enter the number of shares included in the sale and the total trading costs in dollars.
- Purchase price per share: what you paid for each share included in this calculation.
- Sale price per share: what you received, or expect to receive, for each share.
- Number of shares: the quantity being evaluated.
- Total trading costs: the dollar amount of costs you want subtracted from the price difference.
Check that all four inputs describe the same portion of a transaction. For example, if you enter the price for one share and a share count of 25, the total costs should correspond to those 25 shares rather than to a different trade. The calculator accepts a share count of at least one and nonnegative prices and costs. Its output is rounded to two decimal places.
For a worked example, suppose you bought 10 shares at $100 each and later sold them at $120 each. If the total trading costs you enter are $5, the calculation is ($120 − $100) × 10 − $5. The price difference is $20 per share, or $200 across 10 shares. After subtracting $5, the estimated net profit is $195.00. This is an arithmetic example, not a forecast of future performance.
How the Stock Profit Calculator formula works
The formula is (sell price − purchase price) × shares − total trading costs. Subtracting the purchase price from the sale price finds the change in value for one share. Multiplying that difference by the share count gives the total price-based gain or loss for the shares entered. Subtracting total trading costs produces the calculator's estimated net result.
The calculation uses the same units throughout. Both prices are dollars per share, the quantity is shares, and the costs are dollars. Multiplying dollars per share by shares results in dollars, so subtracting dollar costs leaves a dollar amount. If the entered sale price equals the purchase price, the price difference is zero and the result is the negative of the costs entered.
The formula does not calculate a percentage return, annualized growth, or the value of an investment over time. It also does not model multiple purchases at different prices, partial sales, dividends, or reinvestment. For those situations, calculate separate lots or cash flows using records that match the transactions, and interpret the figures in the relevant context.
Use cases for the Stock Profit Calculator
This tool can help organize a basic estimate before or after a stock sale. A saver might compare a planned sale price with a purchase price to see how different assumptions affect the dollar result. Someone reviewing a completed transaction can enter the recorded prices and share count, then include costs they know. The result can also serve as a simple check against a handwritten calculation.
It can be helpful to compare a few scenarios by changing one input at a time. For example, keep the share count, purchase price, and costs fixed while trying several possible sale prices. That shows the arithmetic effect of the assumed price. It does not indicate whether that price is likely, whether a trade is suitable, or what action to take.
When comparing scenarios, write down the assumptions beside each result. In personal finance planning, a clear record can help distinguish an estimate from a completed transaction. Use consistent prices and share counts, and make sure any costs represent the same transaction being evaluated.
Other factors to consider when calculating stock profit
The calculator reflects only the inputs you provide. Your records may involve multiple purchase dates or prices, separate sales, dividends, or adjustments. A single purchase price may not represent all the shares you own. A single total cost figure may also omit charges or other transaction details. Review transaction confirmations and account statements when precision matters.
Taxes can affect the amount you ultimately keep, and tax treatment depends on details this calculator does not collect. The displayed result is therefore not a tax estimate. It is not personalized financial, investment, or tax advice. For questions about reporting a transaction or how rules apply to your circumstances, consult a qualified tax professional and relevant official guidance.
Stock prices can change, and a sale price used in an estimate may differ from the eventual execution price. The calculator does not access live prices or account data. Treat its output as a snapshot of the numbers entered, and update the inputs if the transaction details change.
Frequently asked questions
Does the result include trading costs?
Yes. Enter the total costs you want included in the “Total trading costs” field. The formula subtracts that amount after calculating the price difference across the shares. The calculator does not determine which costs apply.
Can the result be negative?
Yes. A sale price below the purchase price can produce a loss, and entered costs can also make the result negative when prices are equal or close. A negative dollar result represents the arithmetic outcome for the inputs.
Does this calculator include taxes or dividends?
No. It calculates the price difference across the entered shares and subtracts the costs you provide. It does not account for taxes, dividends, or reinvestment.
What if I bought shares at different prices?
This calculation uses one purchase price per share for all shares entered. If your shares came from multiple purchases, one input may not describe them accurately. Use transaction records and evaluate the relevant purchase lots separately as appropriate.
Is the result a prediction?
No. It is an arithmetic estimate based on the prices, share count, and costs you enter. It does not predict market prices or future performance.