WorldTickers

INVESTING

Stock Average Calculator — Calculate Average Cost Per Share

By Worldtickers ·

Use our free stock average calculator to find your weighted average cost per share across multiple purchases at different prices. Includes dollar-cost averaging, averaging down, formula, worked examples, and practical tips.

This stock average calculator — calculate average cost per share tool focuses on use our free stock average calculator to find your weighted average cost per share across multiple purchases at different prices. Includes dollar-cost averaging, averaging down, formula, worked examples, and practical tips. Use it to compare investment returns, income, risk, compounding, and portfolio assumptions while changing price, yield, time, allocation, or contribution inputs.

Stock Average Calculator

Multiple Purchases

Add a row for every time you bought shares. Decimal share counts are supported for fractional-share purchases.

What Is Stock Averaging?

Stock averaging is the practice of calculating your average cost per share when you have bought the same stock at different prices and in different quantities. Every time you purchase additional shares, your overall cost basis shifts — and knowing your true average cost is essential for evaluating whether you are in profit, sizing positions, and making informed sell decisions.

There are two main contexts where stock averaging matters. The first is dollar-cost averaging, an intentional strategy where you invest a fixed dollar amount at regular intervals. Because you buy more shares when the price is low and fewer when it is high, your average cost per share tends to be lower than the average of the prices you paid. The second is averaging down, where you deliberately buy more shares after a price decline to reduce your break-even point. Both approaches change your cost basis, and this calculator computes the result instantly.

Understanding your average cost is also critical for tax purposes. When you sell shares, your capital gain or loss is measured against your average cost basis, not the price of any single purchase. Our cost basis calculator provides a deeper dive into tracking your total investment cost for tax and reporting purposes.

How to Use This Calculator

This calculator is straightforward to use. For each purchase you have made, enter the price per share and the number of shares you bought. You can add as many purchases as you need — the calculator handles two, five, or twenty transactions with equal ease.

Step by Step

Start by entering your first purchase: the price you paid per share and how many shares you bought. Click "Add Purchase" to enter your next buy. Repeat for every purchase you have made. The calculator automatically computes your total shares, total cost, and weighted average cost per share as you go.

Reading the Results

The average cost per share is your break-even price — the price at which you would neither gain nor lose money if you sold all your shares today (excluding commissions and taxes). If the current market price is above your average cost, you are in profit. If it is below, you are at an unrealized loss. The total cost shows how much capital you have deployed, and the total shares shows your complete position size.

Fractional Shares

You can enter fractional share quantities such as 2.5 or 0.75. This is useful for brokerages that support fractional share trading or when you are calculating averages for mutual fund purchases where you invest a dollar amount rather than whole shares.

The Formula Explained

The stock average formula is a weighted average: Average Cost = Total Cost / Total Shares. In expanded form: Average Cost = (Price₁ × Shares₁ + Price₂ × Shares₂ + ... + Priceₙ × Sharesₙ) / (Shares₁ + Shares₂ + ... + Sharesₙ).

For example, suppose you made three purchases of a stock: 100 shares at $50, 50 shares at $40, and 75 shares at $45. Your total cost is (100 × $50) + (50 × $40) + (75 × $45) = $5,000 + $2,000 + $3,375 = $10,375. Your total shares are 100 + 50 + 75 = 225. Your average cost per share is $10,375 / 225 = $46.11. Notice that this is not the simple average of $50, $40, and $45 (which would be $45.00) — the weighted average is higher because you bought more shares at the higher $50 price.

This same formula applies whether you are averaging two purchases or twenty. The key insight is that each purchase contributes proportionally to the final average based on how many shares it represents, not just what price was paid. See our ROI calculator to evaluate your return once you know your average cost.

Real-World Examples

Example 1: Averaging Down After a Drop

You bought 200 shares of Company X at $60 per share (total: $12,000). The stock dropped to $45, so you bought 100 more shares (total: $4,500). Your total cost is now $16,500 for 300 shares. Average cost: $16,500 / 300 = $55.00. You lowered your break-even from $60 to $55 — the stock now only needs to recover to $55 for you to break even, rather than $60.

Example 2: Dollar-Cost Averaging Into an ETF

You invest $500 every month into an S&P 500 ETF. In January the price is $400 so you buy 1.25 shares. In February it rises to $500 so you buy 1.00 share. In March it drops to $450 so you buy 1.11 shares. Over three months you spent $1,500 and own 3.36 shares. Average cost: $1,500 / 3.36 = $446.43 — lower than the simple average of $450 because you bought more shares when the price was low.

Example 3: Multiple Buys at Rising Prices

You bought 50 shares at $30, then 50 shares at $35, then 50 shares at $40. Total cost: $1,500 + $1,750 + $2,000 = $5,250. Total shares: 150. Average cost: $5,250 / 150 = $35.00. Even though you paid as high as $40, your equal-sized purchases produce an average that sits exactly in the middle of the price range.

Tips and Limitations

Averaging Down Is Not Always Wise

Averaging down only makes sense if the stock's decline is temporary and its long-term thesis is intact. If the company is facing fundamental problems — declining revenue, regulatory risk, or loss of competitive advantage — averaging down means allocating more capital to a deteriorating position. Always ask why the stock fell before adding more.

Watch Your Position Sizing

Repeatedly averaging down can cause a single stock to grow into an outsized portion of your portfolio. A position that was 5% of your portfolio can quietly become 15% or 20% after several averaging-down purchases. Diversification matters — check that no single holding dominates your portfolio.

Commissions and Fees Are Excluded

This calculator computes the raw average cost per share. Brokerage commissions, SEC fees, and other transaction costs are not included. For most investors these are small relative to the share price, but they do affect your true cost basis — factor them in manually if precision matters.

Selling Does Not Change Your Average

If you sell some of your shares, the average cost per share of the remaining shares stays the same. The average only changes when you make new purchases. This is important for tax-lot accounting — understand whether your broker uses FIFO, LIFO, or specific identification when determining which shares you sold.

Frequently Asked Questions

What is a stock average calculator?

A stock average calculator computes your average cost per share when you have purchased the same stock at different prices and quantities. Instead of manually tracking each purchase and dividing total cost by total shares, you enter each buy transaction and the calculator instantly computes the weighted average price you paid per share.

How do I calculate my average stock price?

Add up the total amount you spent on all purchases (price per share multiplied by number of shares for each buy) and divide by the total number of shares you own. This calculator automates that process — simply enter each purchase's price and share count and it computes the weighted average for you.

What is dollar-cost averaging?

Dollar-cost averaging (DCA) is an investment strategy where you invest a fixed dollar amount at regular intervals regardless of the stock price. When the price is high you buy fewer shares; when it is low you buy more. Over time this tends to produce a lower average cost per share than buying the same number of shares each time, because you automatically buy more when prices are depressed.

What is averaging down?

Averaging down means buying more shares of a stock after its price has fallen, which lowers your average cost per share. If you bought 100 shares at $50 and the price drops to $40, buying another 100 shares at $40 brings your average cost from $50 to $45. Averaging down can be a smart move if the stock's fundamentals remain strong, but it also concentrates more capital in a declining position.

Is averaging down a good strategy?

It depends. If the stock's decline is temporary and the company's long-term fundamentals remain intact, averaging down can reduce your break-even price and increase potential gains when the stock recovers. However, if the decline reflects deteriorating fundamentals, averaging down means throwing more money at a losing position. Always assess why the stock fell before deciding to average down.

Does this calculator handle fractional shares?

Yes. You can enter fractional share quantities such as 2.5 or 0.75 shares. The calculator divides your total cost by the exact number of shares — including fractions — to give you the precise average cost per share.

How is weighted average different from a simple average?

A simple average adds up all the purchase prices and divides by the number of purchases, treating each buy equally. A weighted average accounts for how many shares you bought at each price, giving more weight to larger purchases. If you bought 500 shares at $10 and 50 shares at $50, the weighted average is $13.64, while the simple average is $30. The weighted average reflects your actual cost basis.

Can I use this calculator for crypto or forex?

Yes. The math is identical regardless of the asset. Enter the price and quantity for each purchase and the calculator works out your average cost per unit for any tradeable asset — stocks, ETFs, cryptocurrencies, forex pairs, or commodities.

What happens to my average when I sell some shares?

Selling shares does not change your average cost per share for the remaining shares. If you bought 200 shares at an average of $25 and sell 100, your average cost stays at $25 for the remaining 100 shares. The average only changes when you make new purchases.