The stock average calculator above blends multiple purchases of the same stock β made at different prices and on different dates β into one number: your true weighted-average cost per share. Enter each buy as a shares-and-price pair, add your current market price, and the tool instantly shows your blended cost basis, total position value, and whether you're sitting on a gain or a loss right now.
This calculator exists because most investors don't buy a stock once and never touch it again. They buy in stages β an initial position, then more on a dip, then maybe more after a pullback. Arb Digital built this tool to make that math instant, but the real value of understanding your average cost goes beyond arithmetic. It's about knowing, at any moment, exactly where your break-even point sits and whether adding to a position still makes sense.
What This Stock Average Calculator Does
Every time you buy more shares of a stock you already own, your overall cost basis shifts. If you bought your first 100 shares at $50 and later bought 50 more at $40, your average isn't simply the midpoint of $50 and $40 β it's a weighted average that accounts for how many shares you bought at each price. This calculator takes up to three (or more, conceptually) separate buy lots and computes that weighted figure for you, along with what your position is worth today and how far it's moved from your break-even.
This matters most in a strategy commonly called "averaging down" β buying additional shares of a stock after its price has fallen, in order to lower your average cost basis. Done well, it can meaningfully improve your eventual return. Done carelessly, it can turn a small mistake into a much larger one.
How to Use It
- Enter your first purchase. Shares bought and the price you paid per share.
- Enter your second purchase. Same format β if you only bought stock twice, leave the third row at 0 shares.
- Enter your third purchase if applicable, or any additional lots by adding their totals to one of the rows.
- Enter the current market price of the stock, so the tool can show your live unrealized gain or loss.
- Click Calculate Average. Your weighted average cost, total shares, total invested, and current position value all update instantly.
The Formula: How Weighted Average Cost Works
The math behind this tool is a straightforward weighted average. Multiply each buy's shares by its price to get the dollar amount spent on that lot, add all those dollar amounts together for your total invested, then add up the total shares across every lot. Divide total invested by total shares, and you have your average cost per share. It's the same calculation brokerages use to display your cost basis on statements and 1099 tax forms, and the same logic the Investopedia guide to cost basis walks through in more depth.
Unrealized gain or loss is then simple: current position value (shares times current price) minus total invested. If that number is positive, you're ahead on paper; if it's negative, the stock would need to recover to your average cost before you'd break even on the whole position.
Averaging Down: Smart Strategy or Falling Knife?
Averaging down is one of the most debated tactics in retail investing, and for good reason β it can be either genuinely smart or genuinely dangerous depending entirely on why the price fell. If a stock drops because of short-term market noise, a sector-wide sell-off, or an overreaction to news that doesn't change the underlying business, then buying more at a lower price can meaningfully improve your long-run return once the stock recovers. You end up owning more shares at a better average cost, and you need a smaller bounce to get back to even.
But if a stock drops because the business itself is deteriorating β declining revenue, a broken competitive position, mounting debt, or a permanent loss of market share β then buying more is often described as "catching a falling knife." You're not lowering your average cost on a temporarily discounted asset; you're increasing your exposure to a company that may keep declining. The price chart alone can't tell you which situation you're in. That requires actually revisiting why you bought the stock in the first place and asking honestly whether that reason still holds.
A useful discipline: before you average down, write down (even just mentally) the specific reason the stock is cheaper today than when you bought it, and whether that reason is temporary or permanent. If you can't articulate a clear, fundamentals-based answer, that's often a signal to pause rather than add.
Averaging Down vs. Dollar-Cost Averaging
It's worth distinguishing averaging down from dollar-cost averaging, since the two get conflated constantly. Dollar-cost averaging is a disciplined, scheduled strategy β investing a fixed dollar amount at regular intervals (say, monthly) regardless of price, which naturally buys more shares when prices are low and fewer when prices are high. It's a strategy decided in advance, independent of any single stock's performance, and it's widely recommended for long-term investors building retirement savings through index funds.
Averaging down, by contrast, is a reactive decision made after a stock you already own has fallen, specifically to lower your cost basis on that position. It's concentrated in a single holding rather than spread across a diversified portfolio, and it's a judgment call rather than a fixed schedule. Neither approach is universally right or wrong β but conflating them can lead to bad decisions, like treating a reactive bet on a single struggling stock with the same confidence you'd apply to a disciplined, diversified monthly investment plan.
A Worked Example: Three Buys, One Average
Say you bought 100 shares at $50 when you first opened the position. The stock later slid to $40, and you added 50 more shares. It kept sliding to $30, and you bought a third lot of 75 shares. Your total invested is (100 Γ $50) + (50 Γ $40) + (75 Γ $30), which comes out to $5,000 + $2,000 + $2,250, or $9,250. Your total shares owned across all three purchases is 225. Divide $9,250 by 225 and your weighted average cost per share is roughly $41.11 β notably lower than your original $50 entry, but higher than the current $30 or $40 prices you added at.
Now suppose the stock recovers to $35, the default "current market price" preloaded in the calculator. Your position is worth 225 Γ $35 = $7,875, against $9,250 invested β an unrealized loss of about $1,375, even though your average cost has already dropped to $41.11 thanks to the later, cheaper purchases. This is the part that surprises a lot of investors: averaging down lowers your break-even point, but it doesn't guarantee you're back in the green. You still need the stock to climb all the way to your new average cost β not just above your lowest purchase price β before the position turns profitable again.
When Averaging Down Tends to Work Better
Averaging down tends to work out better for investors who apply it selectively rather than automatically. A few patterns worth watching: the decline is tied to broad market conditions rather than anything specific to the company; the business's revenue, margins, and competitive position remain intact according to its most recent earnings reports; and the position size after averaging down still fits comfortably within your overall portfolio diversification, rather than becoming an outsized bet on a single name. Investors who treat every stock in their portfolio as a candidate for unlimited averaging down, regardless of why it fell, tend to concentrate risk exactly where it's least wanted β in their worst-performing ideas.
Arb Digital builds fast, high-converting websites and free calculators for businesses that want to earn trust before the sales pitch. Explore the rest of our toolkit below.
Try the Stock Profit Calculator All Free ToolsCommon Mistakes to Avoid
- Averaging down on a broken business. Lowering your cost basis doesn't help if the company's value keeps declining faster than your average.
- Forgetting commissions and fees. If you paid fees on each purchase, add them to your total invested for a fully accurate average.
- Confusing average cost with break-even. Your average cost per share is your break-even only before accounting for any dividends received or fees paid.
- Treating every dip as a buying opportunity. Not every price drop is temporary β some reflect genuine, lasting changes in a company's prospects.
- Losing track of position sizing. Repeatedly averaging down can quietly turn a small position into an oversized bet on a single stock.
Related Free Tools From Arb Digital
Once you know your average cost, you can plug it into our stock profit calculator to see your gain on an eventual sale, check your break-even share price including fees, calculate your total return with dividends, or estimate your compound annual growth rate over the holding period. Browse the full free online tools hub for more calculators.
Frequently Asked Questions
It's the average price you paid per share across all your purchases, weighted by how many shares you bought at each price β not a simple average of the prices themselves.
No. It only helps if the stock's decline is temporary and the underlying business still supports your original investment thesis. Averaging down on a fundamentally weakening company can increase your losses.
Dollar-cost averaging is a scheduled, fixed-amount investing strategy applied regardless of price movement. Averaging down is a reactive decision to buy more of a specific stock after it has fallen, to lower your cost basis.
Not directly β enter your total dollar amount spent per purchase (including any fees) as the "price" if you want fees reflected in your average cost.
Combine smaller lots at the same or similar prices into one row, or run the calculation in two passes β average your first three lots, then treat that blended result as one more "buy" alongside any remaining purchases.
Yes. Brokers use your cost basis to calculate capital gains or losses when you sell. Different accounting methods (average cost, FIFO, specific lot identification) can produce different taxable outcomes, so check with a tax professional for your specific situation.
This tool provides general estimates for educational purposes only and is not financial, tax, legal, or medical advice. Figures are illustrative; consult a licensed professional for decisions.