Skip to content
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

Result

+$1,500.00

Profit of 30% on 100 shares.

Profit You gained $1,500.00 (30% return).
Total cost
$5,000.00
Total revenue
$6,500.00
Return
30%
Shares
100
← 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.

Core formula

Two core outputs from three inputs. This stock profit calculator formula explanation shows how the entered values flow into the main result and the supporting figures the calculator returns.

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

Positive = profit, negative = loss. This is the specific relationship the calculator applies when building the result.

% 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%. The example section should make the workflow concrete, so this page keeps the arithmetic tied to a plausible scenario rather than leaving the result as an abstract formula.

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.

Also in Saving & Investing

🇺🇸 403(b) Calculator 🇺🇸 529 Plan Calculator AFFO Calculator After-tax Cost of Debt Calculator Altman Z-Score Calculator Annuity Calculator APC Calculator Appreciation Calculator Basis Point Calculator Beta Stock Calculator Bitcoin ETF Calculator Black Scholes Calculator Bond Calculator Budget Calculator CAGR Calculator Call Option Calculator Capital Gains Yield Calculator CAPM Calculator Carried Interest Calculator Cash Back Calculator 🇺🇸 CD Calculator CD Ladder Calculator Cell Phone Plan Calculator College Cost Calculator College Value Calculator Compound Interest Calculator Cost of Capital Calculator Cost of Equity Calculator 🇺🇸 Cost of Living Comparison Calculator Covered Call Calculator Credit Spread Calculator Cross Price Elasticity Calculator Current Ratio Calculator DCF Calculator Debt Service Coverage Ratio Calculator Debt to Asset Ratio Calculator Debt to Equity Ratio 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 Dream Come True Calculator DRIP Calculator DuPont Analysis Calculator Earnings per Share Calculator Earnings Per Share Growth Calculator EBITDA Multiple Calculator Economic Value Added Calculator Effective Annual Rate Calculator Effective Duration Calculator Effective Interest Rate Calculator Enterprise Value Calculator Equivalent Rate Calculator EV to Sales Calculator Expected Utility Calculator Expense Ratio Calculator FIRE Calculator Fixed Deposit (FD) Calculator Forex Compounding Calculator Forward Premium Calculator Forward Rate Calculator Free Float Calculator Future Value Calculator Futures Contracts Calculator Graham Number Calculator Hedge Ratio Calculator Index Return Calculator Interest Calculator Interest Coverage Ratio Calculator Interest Rate Calculator Intrinsic Value Calculator Inventory Turnover Calculator Investment Calculator Investment Fee Calculator Investment Return Calculator Jensen's Alpha Calculator LGD Calculator Liquid Net Worth Calculator Long-Term Care Calculator Lottery Annuity Calculator Margin Call Calculator Margin Interest Calculator Margin of Safety Calculator Market Capitalization Calculator Maturity Value Calculator Maximum Drawdown Calculator 🇺🇸 Mega Millions Payout Calculator Million to Billion Converter Millionaire Calculator MIRR Calculator Money Counter Money Market Account Calculator Money Weight Calculator Moving Average Calculator MVA Calculator NAV Calculator Net Worth Calculator Operating Cash Flow Ratio Calculator Opportunity Cost Calculator Optimal Hedge Ratio Calculator Options Profit Calculator Options Spread Calculator PayPal Fee Calculator PEG Ratio Calculator 🇺🇸 Pennies to Dollars Calculator Portfolio Beta Calculator Position Size Calculator 🇺🇸 Powerball Calculator Present Value Calculator Price Elasticity of Demand Calculator Price Elasticity of Supply 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 Residual Income Calculator Retention Ratio Calculator Return on Capital Employed Calculator Rule of 72 Calculator Sabbatical Calculator Savings Calculator Savings Goal Calculator Savings Interest Rate Calculator Savings Plan Calculator Scrap Gold Calculator Scrap Silver Calculator Sinking Fund Calculator SIP Calculator Stock Average Calculator Stock Profit Calculator Stock Split Calculator Sustainable Growth Rate Calculator Tax Equivalent Yield Calculator Unit Price Calculator Unlevered Beta Calculator US Income Percentile Calculator Value at Risk Calculator Wedding Budget Calculator Zakat Calculator

You may also need

Related

More from nearby categories

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