Stock Average Down Calculator — Cost Basis Tool
Find your average cost per share after buying stock at different prices and dates, with total shares and break-even price.
Reviewed for accuracy by Sahil, Senior Finance & Tax Editor
Stock Average Down Calculator — Cost Basis Tool
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Average Price = Total Cost / Total Shares = Sum(Shares_i x Price_i) / Sum(Shares_i)
Worked example — Average price: $99.50 | Current value: $11,000 | Unrealized gain: $1,050 (+10.55%)
Formula
Average Price = Total Cost / Total Shares = Sum(Shares_i x Price_i) / Sum(Shares_i)
Where Shares_i and Price_i represent the number of shares and price per share for each individual purchase transaction. This is a weighted average that gives larger purchases proportionally more influence on the final average. The result equals your break-even price.
Worked Examples
Example 1: Averaging Down on a Growth Stock
Problem:You bought 50 shares at $100, then 30 more at $85 during a dip, then 20 more at $120 after a bounce. Current price is $110. What is your average cost and profit/loss?
Solution:Purchase 1: 50 x $100 = $5,000 Purchase 2: 30 x $85 = $2,550 Purchase 3: 20 x $120 = $2,400 Total cost = $5,000 + $2,550 + $2,400 = $9,950 Total shares = 50 + 30 + 20 = 100 Average price = $9,950 / 100 = $99.50 Current value = 100 x $110 = $11,000 Unrealized gain = $11,000 - $9,950 = $1,050 (+10.55%)
Result:Average price: $99.50 | Current value: $11,000 | Unrealized gain: $1,050 (+10.55%)
Example 2: Dollar Cost Averaging Monthly
Problem:You invested $1,000 per month for 4 months at prices of $50, $45, $55, and $48. Current price is $52.
Solution:Month 1: $1,000 / $50 = 20 shares Month 2: $1,000 / $45 = 22.22 shares Month 3: $1,000 / $55 = 18.18 shares Month 4: $1,000 / $48 = 20.83 shares Total shares = 81.23 Total invested = $4,000 Average price = $4,000 / 81.23 = $49.24 Simple price average = ($50+$45+$55+$48) / 4 = $49.50 Current value = 81.23 x $52 = $4,224.09 Gain = $224.09 (+5.60%)
Result:Average price: $49.24 | 81.23 shares | Current value: $4,224 | Gain: $224 (+5.60%)
Frequently Asked Questions
What is a stock average price and why does it matter?
The average stock price, also known as the cost basis or average cost per share, is the weighted average price you paid across all your purchases of a particular stock. It is calculated by dividing the total amount invested by the total number of shares owned. This number matters because it determines your break-even point and your profit or loss when you sell. For tax purposes, the IRS uses your cost basis to calculate capital gains or losses. If you bought 100 shares at $50 and later bought 50 more shares at $40, your average price is not simply $45 but rather (100 x $50 + 50 x $40) / 150 = $46.67 per share. Knowing your exact average price helps you make informed decisions about when to buy more or sell.
How does dollar cost averaging work?
Dollar cost averaging (DCA) is an investment strategy where you invest a fixed dollar amount at regular intervals regardless of the share price. When prices are high, your fixed amount buys fewer shares; when prices are low, the same amount buys more shares. Over time, this naturally results in a lower average cost per share compared to buying all shares at once, especially in volatile markets. For example, investing $500 per month over 6 months at prices of $100, $80, $90, $110, $70, and $95 would purchase 5, 6.25, 5.56, 4.55, 7.14, and 5.26 shares respectively, totaling 33.76 shares for $3,000, giving an average of $88.87 per share versus the simple price average of $90.83. DCA reduces the risk of investing a large sum at a market peak.
Should I average down on a losing stock?
Averaging down means buying additional shares of a stock that has declined in price to lower your average cost basis. This strategy can be profitable if the stock eventually recovers above your new lower average price. However, averaging down on a fundamentally deteriorating company is one of the most common and costly mistakes individual investors make. Before averaging down, honestly assess whether the price decline is temporary market noise or reflects genuine problems with the business such as declining revenue, mounting debt, or competitive threats. Professional investors follow a rule: only average down if you would buy the stock at the current price even if you did not already own shares. Never average down simply because you are emotionally attached to your original investment thesis or afraid to admit a mistake.
How do stock splits affect my average price?
Stock splits change your share count and price per share proportionally but do not change your total cost basis or investment value. In a 2-for-1 forward split, your shares double and the price per share halves, so your average cost per share also halves. If you owned 100 shares at an average of $200 (total cost $20,000) and the stock splits 2-for-1, you now own 200 shares at an average of $100 (total cost still $20,000). Reverse splits work the opposite way: a 1-for-10 reverse split means 1,000 shares at $1 become 100 shares at $10. Most brokerage platforms automatically adjust your cost basis after a split, but it is wise to verify the adjustment manually. Fractional shares resulting from odd-lot splits are typically paid out as cash by the company.
How does the cost basis work for tax reporting?
Your cost basis is the total amount you paid for an investment, including any commissions or fees, and is used to calculate taxable capital gains or deductible losses when you sell. The IRS allows several methods for determining cost basis when you have made multiple purchases at different prices. The average cost method takes the total cost divided by total shares and is commonly used for mutual funds. The FIFO (First In, First Out) method assumes you sell the oldest shares first. The specific identification method lets you choose which specific shares to sell for optimal tax outcomes. For stocks held in brokerage accounts, FIFO is the default method if you do not specify otherwise. Choosing specific identification gives you the most flexibility to minimize taxes by selecting high-cost shares when prices are up or low-cost shares to minimize gains.
What is the difference between average cost and FIFO for taxes?
Average cost and FIFO can produce very different tax outcomes depending on your purchase history and sale price. With average cost, every share sold is treated as having the same cost basis regardless of when it was purchased. With FIFO, the first shares you bought are assumed to be the first sold, which in a rising market means selling your cheapest shares first and realizing larger gains. For example, if you bought 100 shares at $50 then 100 shares at $80 and sell 100 shares at $90, FIFO gives you a gain of $40 per share (sold the $50 shares), while average cost gives a gain of $25 per share (average cost $65). In a declining market, FIFO can produce larger losses that offset other gains. Specific identification offers the most control, but requires tracking individual lots and designating which shares you are selling at the time of sale.
How do dividends affect my cost basis?
Regular cash dividends do not change your cost basis because they are treated as income and taxed in the year received. However, if you reinvest dividends through a DRIP (Dividend Reinvestment Plan), each reinvested dividend creates a new purchase lot at the current market price with its own cost basis. Over years of reinvesting, you may have dozens or hundreds of small purchase lots at various prices, which significantly complicates your average price calculation and tax reporting. For example, a stock paying quarterly dividends with DRIP creates 40 separate purchase lots over 10 years, each with different purchase dates and prices. Most brokerages track this automatically, but it is critical to keep records because if you transfer shares to a new broker, the cost basis information may not transfer correctly.
How many shares should I buy when averaging down?
The number of shares to buy when averaging down depends on how much you want to reduce your average price and how much additional capital you are willing to risk. A common approach is to buy enough shares to bring your average price to a specific target level. The formula is: Additional Shares = (Current Shares x (Current Average - Target Average)) / (Target Average - Current Market Price). For example, if you own 100 shares at an average of $50 and the stock is now $35, buying 100 more shares at $35 gives you 200 shares at an average of $42.50. Buying 200 more shares at $35 gives you 300 shares at $40. However, the more you invest in a declining stock, the greater your total risk if the stock continues to fall. Never invest more than you can afford to lose in any single position.
What is a weighted average versus a simple average?
A simple average just adds up all the purchase prices and divides by the number of purchases, treating each purchase equally regardless of size. A weighted average accounts for how many shares were bought at each price, giving larger purchases more influence on the final average. The weighted average is the correct method for calculating stock average cost because it reflects your actual total investment. For example, buying 10 shares at $100 and 90 shares at $50 gives a simple average of $75 but a weighted average of $55. The weighted average accurately reflects that 90 percent of your shares cost $50 while only 10 percent cost $100. Always use the weighted average (total cost divided by total shares) for investment decisions and tax calculations, never the simple average of purchase prices.
How do I calculate my break-even price after multiple purchases?
Your break-even price is exactly equal to your weighted average cost per share, which is the total amount invested divided by the total number of shares owned. If the current stock price is above your break-even price, you have an unrealized profit. If it is below, you have an unrealized loss. To calculate, sum up the cost of each purchase (shares times price for each transaction) and divide by the total shares across all purchases. For example, three purchases of 50 shares at $100 ($5,000), 30 shares at $85 ($2,550), and 20 shares at $120 ($2,400) give you 100 total shares costing $9,950, so your break-even price is $99.50. The stock must trade above $99.50 for you to sell at a profit. Transaction fees and commissions should be added to the total cost for a more accurate break-even calculation.
References
Background & Theory
History
Reviewed for accuracy by Sahil, Senior Finance & Tax Editor · Editorial policy
Related Calculators
🧮Bond Yield to Maturity Calculator
Calculate bond yield to maturity with inputs, formulas, and instant results.
🧮Investment Return Calculator
Calculate investment return with inputs, formulas, and instant results.
🧮Bond Yield Calculator
Calculate current yield, yield to maturity, and yield to call for fixed income investments.
🧮DCA Investment Calculator
Project the future value of recurring investments using dollar-cost averaging with year-by-year portfolio growth and total gains.
🧮Bond Duration Convexity Calculator
Calculate bond duration convexity with inputs, formulas, and instant results.
🧮Bond Price Calculator
Calculate bond price with inputs, formulas, and instant results.
🧮Portfolio Rebalance Calculator (3-Asset)
Enter current and target allocations for stocks, bonds, and cash to see exact buy/sell amounts, drift, and turnover.
🧮Inflation Adjusted Return Calculator
Calculate inflation adjusted return with inputs, formulas, and instant results.