$45.00
200
shares
$9,000.00
$9,000.00
$0.00
0
%
$45.00
$45.00
200
shares
$9,000.00
$9,000.00
$0.00
0
%
$45.00
The Stock Average Calculator computes the weighted average cost per share when you have purchased the same stock at different prices across multiple transactions. This is essential for investors who practice dollar-cost averaging or who add to positions over time, as it determines the true cost basis for profit/loss calculations and tax reporting.
When you buy shares of the same stock at different prices, your average cost is not simply the arithmetic mean of the prices. Instead, it is a weighted average that accounts for the number of shares purchased at each price point. Buying more shares at a lower price pulls the average down more than buying fewer shares.
This strategy of buying at multiple price points is called dollar-cost averaging (DCA), and it is one of the most popular investment strategies for individual investors. By investing regularly regardless of price, DCA reduces the impact of market volatility and eliminates the risk of investing a lump sum at a market peak.
For example, if you buy 100 shares at $50 and then 100 more at $40, your average cost is $45 per share (not $45 from a simple average, but the same in this case because equal quantities were purchased). If you bought 200 shares at $40 and only 50 at $50, your average would be $42, weighted toward the lower price.
The calculator supports up to three purchase lots, with the third being optional and placed in the advanced section. For positions with more than three lots, calculate the running average by using the previous average as your first entry and the new purchase as your second entry. Accurate average cost tracking is critical for tax reporting, as capital gains are calculated against your cost basis.
The weighted average formula is: Average Price = Total Cost / Total Shares, where Total Cost = (Shares₁ × Price₁) + (Shares₂ × Price₂) + (Shares₃ × Price₃), and Total Shares = Shares₁ + Shares₂ + Shares₃.
Your average price is the breakeven point — the stock needs to trade above this price for your position to be profitable. If the current market price is above your average, you have unrealized gains. Below it, you have unrealized losses.
Inputs
Results
100 shares at $50, 100 at $40 = $45 avg
Inputs
Results
Three lots: 50@$100, 150@$60, 100@$50
Stock averaging (or dollar-cost averaging) is buying the same stock at different prices over time. The average cost per share is the total money spent divided by the total shares purchased, weighted by the quantity at each price.
Averaging down can reduce your cost basis if the stock eventually recovers. However, it can also increase losses if the stock continues to decline. Only average down if your investment thesis for the company remains intact.
Use the rolling average method: enter your current total shares and average price as Purchase 1, then add the new purchase as Purchase 2. This gives the new combined average.
Your capital gain or loss is calculated as Sale Price - Average Cost per share. Accurate cost basis tracking is required for tax reporting. Most brokerages track this automatically.
FIFO (First In, First Out) sells oldest shares first, which may have a different cost basis. Average cost uses the weighted average of all shares. The IRS allows both methods for mutual funds but typically requires FIFO for individual stocks.
Yes, if a stock is rising and you believe it will continue, adding shares at higher prices (averaging up) is a valid strategy. Your average cost rises, but you increase your position in a winning stock.
By buying at multiple price points over time, you avoid the risk of investing all your money at a market peak. Your average cost tends to be lower than buying at the highest price and higher than buying at the lowest.
For precise cost basis, yes. Divide the total cost (share price × shares + commission) by the number of shares for each purchase. This gives a commission-adjusted average cost.
Your average cost per share is divided by the split ratio. In a 2-for-1 split, your $100 average becomes $50, but you now own twice as many shares. Total value is unchanged.
Yes, the average cost calculation works the same for any asset — stocks, crypto, ETFs, or commodities. Enter the number of units and price per unit for each purchase.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Investment Calculator
Investment & Retirement Calculators
Compound Interest Calculator
Investment & Retirement Calculators
Simple Interest Calculator
Investment & Retirement Calculators
CAGR Calculator
Investment & Retirement Calculators
ROI Calculator
Investment & Retirement Calculators
Stock Calculator
Investment & Retirement Calculators