How do you calculate stock profit?
Stock profit is net proceeds minus cost basis. Cost basis equals purchase price times shares plus buy fees. Net proceeds equals sale or current price times shares minus sell fees.
Return math
Enter what you paid, what you sold for (or today's price), the number of shares and any fees to get your stock gain or loss, percentage return and break-even sale price. Add dividends received to see your total gain, and dates to see an annualized return.
Want how a ticker performed between two dates from price history instead? Use the Stock Return Calculator.
Free calculator
Ticker lookup only preloads the sale/current price. Purchase price, shares, fees, dividends, and dates stay manual.
Profit = net proceeds - cost basis
Return % = profit / cost basis
Break-even = (cost basis + sell fees) / shares
Total gain = profit + dividends received
Annualized return appears only when the sale date is after the purchase date and the cost basis is positive.
The calculator compares what you paid for a position with what the position is worth at a sale or current price. Fees are included so the result reflects the full cash cost and net proceeds you entered. Dividends are kept separate: the trading gain or loss is the price result after fees, and the total gain adds the dividends on top.
Cost basis = purchase price x shares + buy fees
Net proceeds = sale price x shares - sell fees
Profit = net proceeds - cost basis
Break-even sale price = (cost basis + sell fees) / shares
Total gain = profit + dividends received
Break-even after dividends = (cost basis + sell fees - dividends) / shares
Annualized return = (net proceeds / cost basis)^(365 / days held) - 1
Share profit with fees: you buy 50 shares at $100 and sell at $125, paying $10 on each side. Cost basis is $5,010 and net proceeds $6,240, so the stock gain is $1,230, about 24.6% on your cost basis, and the break-even sale price is $100.40.
If those shares also paid $100 of dividends while you held them, the total gain is $1,330 and the break-even price after dividends falls to $98.40, because the dividends already returned part of your cost.
Stock loss example: you buy 100 shares at $50 and sell at $42, again with a $5 fee each way. Cost basis is $5,005 and net proceeds $4,195, a loss of $810 or about 16.2%. You would have needed to sell at $50.10 just to break even.
Review AIQ Score, valuation, quality, momentum, risk and technical evidence.
Explore stock researchCompare factor evidence and risk context before treating a gain or loss as the whole story.
Compare stocksConnect price moves to trend, momentum, RSI, moving averages and volatility evidence.
Browse stock signalsRelated tools are selected for the stock profit calculator workflow.
Measuring an investment over time? Use actual prices and dividends.
Calculate stock returnBought the same stock at several prices? Find your true average cost.
Calculate average priceWork out how many shares fit your risk per trade.
Size the next positionStock profit is net proceeds minus cost basis. Cost basis equals purchase price times shares plus buy fees. Net proceeds equals sale or current price times shares minus sell fees.
Yes. Buy fees are added to cost basis and sell fees are subtracted from proceeds, so the profit or loss reflects the fee inputs you enter.
Annualized return appears only when valid purchase and sale dates are entered, the sale date is after the purchase date, and the cost basis is positive.
Yes. Enter the current price as the sale/current price to calculate an unrealized gain or loss scenario.
Only if you enter them. The trading gain or loss is the price result after fees. Enter the total cash dividends you received and the calculator also shows a total gain including that income and a lower break-even price.