Stock Average Calculator
Bought the same stock at different prices? Add each buy below to find your weighted average cost per share, total shares, and total invested. Enter a current price to see your profit or loss.
How to calculate your stock average
- Add a row for each buy with the number of shares and the price you paid.
- Optionally enter the current share price to value the position.
- Read off your average cost, total shares, total cost, and unrealized gain or loss.
Examples
Two buys at different prices
Buy 1: 10 shares at $100. Buy 2: 20 shares at $50.
Total 30 shares, $2,000 invested, average cost $66.67 per share.
Valuing the position
Same 30 shares at an average of $66.67, current price $80.
Market value $2,400, unrealized gain $400 (+20%).
Frequently asked questions
How is the average stock price calculated?
It is a weighted average: total money spent divided by total shares bought. Bigger buys move the average more than smaller ones, so it is not a simple average of the prices.
What is cost basis?
Cost basis is what you paid in total for your shares, including the average price per share. It is the figure you compare against the current price to measure gain or loss, and the number used for capital gains tax.
What is dollar cost averaging?
Dollar cost averaging means investing a fixed amount at regular intervals regardless of price. You buy more shares when the price is low and fewer when it is high, which can smooth your average cost over time. This tool shows the average that results from any set of buys.
What does averaging down mean?
Averaging down is buying more shares after the price falls to lower your average cost. Add the new lower-priced buy as another row and the average updates so you can see the new break-even price.
Is my data private?
Yes. Every calculation runs in your browser. Your share counts and prices are never sent to a server or stored.
Does it include brokerage fees or taxes?
Not automatically. To fold in commissions, add them to a buy's price. The unrealized gain shown is before fees and taxes.
Related tools
ROI Calculator
Calculate return on investment online. Enter the cost and final value to get your ROI percentage, net profit and an annualized return over any period.
Dividend Yield Calculator
Calculate dividend yield from a share price and annual dividend, then see the annual and monthly income your holding would generate.
CAGR Calculator
Calculate the compound annual growth rate of an investment. Enter the beginning value, ending value and number of years to get CAGR instantly.
401(k) Calculator
Project your 401(k) balance with employer match. Enter salary, contribution, match and return to see your contributions, the match and growth over time.
Amortization Schedule Calculator
Build a full loan amortization schedule. Enter the amount, rate and term to see each month's payment, principal, interest and balance, plus total interest.
Annuity Calculator
Calculate the present and future value of an annuity. Enter a payment, rate per period and number of periods for ordinary or annuity due timing.