What this Stock Profit Calculator does
The Stock Profit Calculator estimates the dollar profit or loss from selling a quantity of shares. It uses four figures you provide: the number of shares sold, purchase price per share, sale price per share, and total transaction costs. The result is an estimate of what remains after subtracting the costs you entered from the price change across those shares.
The formula is shares × (sale price per share − purchase price per share) − transaction costs. A positive result means the sale price produced a gain before taxes and any costs left out of your entry. A negative result means the price difference and entered costs produced an estimated loss. The result is stated in U.S. dollars because the input labels use USD. Use consistent currency units if you adapt the calculation for another currency.
This is a simple arithmetic tool for reviewing a completed or hypothetical trade. It does not use live market prices or retrieve brokerage information. It also does not estimate tax owed, annualized return, dividends, or the future value of an investment. Those questions require additional information and, in some cases, current rules or professional review.
How to use the Stock Profit Calculator
Enter the number of shares being sold, then provide the purchase and sale prices per share. Add the total transaction costs that apply to the trade. The result uses the values exactly as entered, so check that the prices refer to the same stock and that the cost total covers the transaction you want to evaluate.
- Shares sold is the quantity included in this calculation.
- Purchase price per share is the amount paid for each included share.
- Sale price per share is the amount received for each included share before costs.
- Total transaction costs is the combined amount you want deducted, such as costs shown in your own trade records.
For example, suppose an investor sells 100 shares bought at $50 each for $60 each and enters $5 in total transaction costs. The price difference is $10 per share. Multiplying $10 by 100 gives $1,000, and subtracting $5 gives an estimated net profit of $995.00. This example follows the calculator formula and does not include taxes or other unentered expenses.
If shares were bought at different prices, one purchase price may not describe the full position. Use a suitable average cost per share from reliable records, or calculate separate groups of shares when their costs differ. The calculator does not determine which tax accounting method applies.
How the Stock Profit Calculator formula works
The calculator first subtracts the purchase price per share from the sale price per share. This gives the price change per share. It multiplies that change by the number of shares to estimate the gross gain or loss across the sale. Finally, it subtracts the total transaction costs entered by the user.
In symbols, the calculation is shares × (sale price − purchase price) − transaction costs. If the sale price is higher than the purchase price, the price-change part is positive. If the sale price is lower, it is negative. Costs reduce the result in either case. A sufficiently large cost amount can turn a small price gain into a net loss.
Using the example above, the arithmetic is 100 × ($60 − $50) − $5. That becomes 100 × $10 − $5, or $1,000 − $5, which equals $995. The calculation treats the cost entry as one total amount for the selected shares. If costs are recorded separately for buying and selling, add the relevant amounts together before entering them.
The result is not a percentage return. To calculate a percentage, a person would need to compare profit with an appropriate invested amount and decide how to treat timing, cash flows, and other details. This calculator intentionally reports only a dollar estimate based on the four supplied inputs.
Use cases for the Stock Profit Calculator
A straightforward estimate can help organize personal finance records and make trade outcomes easier to review. It can be useful when checking whether a sale price has covered the original share cost and known transaction costs, or when comparing hypothetical sale prices using the same purchase details.
- Reviewing the approximate outcome of a completed stock sale.
- Comparing possible sale prices for a specific share quantity.
- Checking how entered transaction costs affect a small price gain or loss.
- Preparing a basic summary before reconciling a brokerage statement.
For a hypothetical comparison, keep the share count, purchase price, and costs the same, then change only the sale price. This shows how the arithmetic result changes with that input. It does not forecast market movement or indicate whether a particular price is likely.
For household budgeting, keep estimates distinct from confirmed proceeds. A calculator result can support recordkeeping, but the final amount credited to an account may differ because of details not represented by the inputs. Use actual trade confirmations and account statements when reconciling a transaction.
Other factors to consider when calculating stock profit
The estimate depends on the quality and scope of the values entered. Purchase cost may include adjustments or multiple purchases, and a sale may cover only part of a position. Corporate actions can also affect the number of shares or recorded cost basis. This formula does not account for those events automatically, so use records that reflect the shares actually sold.
Taxes are outside the calculation. Tax treatment can depend on jurisdiction, holding period, cost basis, account type, and other circumstances. The displayed amount should not be treated as taxable income or as a tax bill. Consult appropriate current tax guidance or a qualified professional for tax questions.
Likewise, the calculator does not include dividends, inflation, interest, borrowing costs, or opportunity cost. These may matter when evaluating an investment over time, but they are not part of this single-sale arithmetic model. Do not use the result by itself to decide whether to buy or sell a stock. Market values can change, and this tool does not assess risk, suitability, or future performance.
Frequently asked questions
Does this calculator show profit after tax?
No. It subtracts only the transaction costs you enter. It does not apply tax rates or determine tax treatment. Review current guidance for your circumstances if you need an after-tax figure.
Can the result be negative?
Yes. The result can be negative when the sale price is below the purchase price, when transaction costs exceed a small gain, or both. A negative value represents an estimated loss under the supplied inputs.
What should I include in total transaction costs?
Enter the costs you want reflected in this estimate, using the amounts shown in your own records. The calculator does not identify, look up, or assume specific brokerage charges. Avoid counting the same cost twice.
How do I handle shares bought at different prices?
Use an appropriate average purchase price per share if you have verified one for the shares being sold. Alternatively, calculate each purchase group separately and combine the results. Tax cost-basis rules may require a specific method that this calculator cannot determine.
Does this predict what I will earn in the future?
No. It calculates a result from prices and costs supplied by the user. It does not access market data, predict prices, or recommend an investment decision.