STOCK TITAN

Cost Basis & Stock Average Calculator

Average Cost Basis Across Multiple Stock Purchases

Calculate your stock cost basis across multiple purchases, including fractional shares, to find your weighted average share price, break-even point and total investment. The Average down tab works the other way round and shows how many shares at a given price bring your average to a target, and a ticker fills in the latest price shown on the stock’s page, or its last close when no recent price is available, so you can see the position’s gain or loss at that price.

Quick Example

You buy 100 shares at $50, then 50 more shares at $40 when the price dips. Your average cost becomes $46.67 per share rather than $45, because you own more shares at the higher price. If the stock recovers to $50, you profit on all 150 shares. Starting again from the 100 shares at $50, getting the average down to $45 with one buy at $40 takes 100 shares, a $4,000 purchase.

Enter your purchases

Add each transaction to calculate your average

Fills in the latest price shown on the stock’s page, or its last close when no recent price is available, and values your position at it. In Average down it also becomes the buy price, which you can type over.

Shares Price ($)

Results

Your average price calculation

Enter your stock purchases and click calculate to see your average price.

Total Shares 0
Total Investment $0.00
Average Price $0.00

Averaging Down Strategy

Understanding cost averaging in the stock market

Why does average price matter?

Your average purchase price (cost basis) determines your break-even point, the price at which you neither profit nor lose before fees or taxes. Every time you buy more shares at a different price, your cost basis shifts. Knowing this number helps you understand the position accurately.

For example, if you buy 100 shares at $50 and later 200 shares at $35, your average drops to $40 per share. The stock only needs to recover to $40 for you to break even before fees and taxes, not back to $50. This is why tracking your true cost basis matters more than remembering individual purchase prices.

When should I average down on a stock?

Averaging down means buying more shares after a price drop, which lowers your weighted average price if the later purchase price is below your current cost basis. The calculator shows the math, but it does not decide whether adding to a position is appropriate.

Before adding to a losing position, compare the new average price with your risk plan, portfolio size, and the latest company information. A lower price can improve the arithmetic of the position, but it can also reflect real deterioration in the business or market outlook.

How does a stock average calculator work?

A stock average calculator uses weighted average math: average price = total cost ÷ total shares. It multiplies each purchase price by the number of shares bought, adds every purchase cost together, then divides that combined cost by the total shares owned.

This method handles uneven purchases correctly. A 500-share order has five times the weight of a 100-share order, so the larger trade has a larger effect on your average share price.

Average down vs. dollar-cost averaging

Average down calculations focus on what happens when you add shares below your current average price. Dollar-cost averaging is broader: it usually means investing a set amount on a schedule regardless of short-term price movement.

If you want to model scheduled contributions over time, use the DCA Calculator. If you want the average price of actual share purchases, this stock average calculator is the right tool.

How many shares do I need to buy to average down?

The answer depends on the shares you already hold and on two gaps: how far your current average sits above the target, and how far the target sits above the price you would buy at. Written out, shares to buy = shares held × (current average − target) ÷ (target − buy price). With 100 shares at a $50 average, a $45 target and a $40 buy price, that is 100 × $5 ÷ $5 = 100 shares, a $4,000 purchase, and the 200 shares then cost $9,000 between them, which is $45.00 each.

The closer the buy price gets to the target, the more shares it takes, and a buy price at or above the target never gets there, since the new average always lands somewhere between your current average and the price you pay. The Average down tab above runs the same formula on your own numbers, and a ticker fills in the latest price shown on the stock’s page as the buy price (its last close when no recent price is available) if you would like to start from there.

Your Privacy is Protected

The calculations run in your browser, and the page keeps the numbers you enter in its own address so you can bookmark or share the result. That address reaches our server like any page request when the page is reloaded or a shared link is opened, so standard web server logs may record it. A ticker lookup sends the ticker symbol and none of your figures to fetch the latest price shown on the stock’s page (or its last close when no recent price is available), and like every request on the site it also carries your session cookie if you are signed in. We do not save calculator entries to a portfolio or an account.

Math In Your Browser Lookup Sends No Figures No Saved Calculator Data

For informational and educational purposes only, not investment advice.