Calcipedia

Stock Calculator

Calculate profit or loss, percentage return, total cost, and total revenue from a stock trade's buy price, sell price, and share count.

Last updated

Also in Saving & Investing

529 Calculator After-tax Cost of Debt Calculator Altman Z-Score Calculator Annuity Calculator APR to APY Calculator APY Calculator Basis Point Calculator Black Scholes Calculator Bond Convexity Calculator Bond Current Yield Calculator Bond Equivalent Yield Calculator Bond Price Calculator Bond Yield Calculator Bond YTM Calculator Budget Calculator CAGR Calculator Call Option Calculator Capital Gains Yield Calculator Carried Interest Calculator CD Calculator College Cost Calculator Compound Growth Calculator Compound Interest Calculator Compound Interest Rate Calculator Cost of Capital Calculator Cost of Equity Calculator Coupon Payment Calculator Coupon Rate Calculator Credit Spread Calculator Crypto Profit Calculator Current Ratio Calculator DCF Calculator Debt Service Coverage Ratio Calculator Debt to Asset Ratio Calculator Debt to Equity Calculator Debt-to-Capital Ratio Calculator Defensive Interval Ratio Calculator Discount Rate Calculator Dividend Calculator Dividend Discount Model Calculator Dividend Payout Ratio Calculator Dividend Yield Calculator Dollar Cost Averaging Calculator DRIP Calculator DuPont Analysis Calculator Earnings per Share Calculator Earnings Per Share Growth Calculator EBITDA Multiple Calculator Economic Value Added Calculator Effective Annual Yield Calculator Effective Duration Calculator Effective Interest Rate Calculator Enterprise Value Calculator Equivalent Rate Calculator EV to Sales Calculator Expense Ratio Calculator FIRE Calculator Forward Premium Calculator Forward Rate Calculator Free Float Calculator Future Value Calculator Futures Contracts Calculator Graham Number Calculator Interest Calculator Interest Coverage Ratio Calculator Interest Rate Calculator Intrinsic Value Calculator Inventory Turnover Calculator Investment Calculator LGD Calculator Liquid Net Worth Calculator Margin Call Calculator Margin Interest Calculator Margin of Safety Calculator Market Capitalization Calculator Maturity Value Calculator Maximum Drawdown Calculator Millionaire Calculator Money Market Account Calculator Moving Average Calculator NAV Calculator Net Worth Calculator Operating Cash Flow Ratio Calculator Options Profit Calculator Options Spread Calculator PEG Ratio Calculator Portfolio Beta Calculator Position Size Calculator Present Value Calculator Price to Book Ratio Calculator Price to Cash Flow Ratio Calculator Price to Earnings Ratio Calculator Price to Sales Ratio Calculator Put Call Parity Calculator Quick Ratio Calculator Real Rate Of Return Calculator Residual Income Calculator Retention Ratio Calculator Return on Assets Calculator ROI Calculator ROIC Calculator Savings Calculator Savings Goal Calculator Savings Plan Calculator Stock Profit Calculator Stock Split Calculator Sustainable Growth Rate Calculator Tax Equivalent Yield Calculator Times Interest Earned Ratio Calculator Unlevered Beta Calculator Yield to Call Calculator Yield to Maturity Calculator

You may also need

← All Saving & Investing calculators

Investing

Stock profit calculator: buy, sell, and calculate your return

Calculate the profit or loss from a stock trade by entering the buy price, sell price, and number of shares. See total cost, total revenue, dollar profit/loss, and percentage return at a glance.

How stock profit is calculated

The calculation is straightforward: multiply the price difference by the number of shares. A positive result is profit; negative is a loss.

Percentage return divides the profit by the total cost, showing the return relative to the amount invested — useful for comparing trades of different sizes.

Formula

Two core outputs from three inputs.

Profit/Loss = (Sell Price − Buy Price) × Shares

Positive = profit, negative = loss.

% Return = ((Sell Price − Buy Price) / Buy Price) × 100

Percentage gain or loss relative to the purchase price.

Worked example

An investor buys 100 shares at 50 and sells at 65. Profit = (65 − 50) × 100 = 1,500. Return = 15/50 × 100 = 30%.

Limitations

Does not include brokerage commissions, fees, slippage, or taxes. Does not account for dividends received during the holding period. For a complete return picture, add dividend income and subtract all transaction costs.

Frequently asked questions

Does this include fees and commissions?

No. This calculates the gross profit/loss from price movement only. To get your net return, subtract any brokerage commissions, exchange fees, and taxes from the result.

How do I account for dividends?

Add any dividends received during the holding period to the profit figure. Total return = capital gain + dividends received − costs.

Is the percentage return annualised?

No. This is the total return over the holding period, regardless of duration. To annualise, you would need the holding period length and use compound annual growth rate (CAGR) arithmetic.

Can I use this for short selling?

For a short sale, enter the short sale price as the buy price and the cover price as the sell price. A profit occurs when the cover price is lower than the short price.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.