Skip to main content

Stock Average Calculator

Calculate the average price per share after multiple stock purchases at different prices. Enter values for instant results with step-by-step formulas.

Skip to calculator
Finance & Investing

Stock Average Calculator

Calculate the average price per share after multiple stock purchases at different prices. See weighted average cost, unrealized gains/losses, and break-even price.

Last updated: January 2026Reviewed by NovaCalculator Finance Editorial Team

Calculator

Adjust values & calculate
#1
Shares
Price ($)
#2
Shares
Price ($)
#3
Shares
Price ($)
$110.00
Average Cost Per Share
$99.50
100 shares | Total invested: $9,950.00
Current Value
$11,000.00
Unrealized Gain
$1,050.00
Return %
10.55%
Lowest Buy
$85.00
Highest Buy
$120.00
Price Spread
$35.00

Purchase Breakdown

#1: 50 @ $100.00 (50.3%)$500.00 (10.00%)
#2: 30 @ $85.00 (25.6%)$750.00 (29.41%)
#3: 20 @ $120.00 (24.1%)-$200.00 (-8.33%)
Note: This calculator does not account for transaction fees, commissions, or taxes. Consult a tax professional for official cost basis calculations.
Your Result
Average: $99.50 | 100 shares | Gain: $1,050.00 (10.55%)
Share Your Result
Understand the Math

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.

Last reviewed: January 2026

Worked Examples

Example 1: Averaging Down on a Growth Stock

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

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%)
Expert Insights

Background & Theory

The Stock Average Calculator applies the following established principles and formulas. Finance and investing rest on the foundational concept of the time value of money: a dollar received today is worth more than a dollar received in the future, because present funds can be deployed to earn a return. This principle underlies virtually every valuation technique in modern finance. The future value of a present sum P growing at rate r over n periods is expressed as FV = P(1 + r)^n, while the present value of a future cash flow FV is PV = FV / (1 + r)^n. Compound growth amplifies returns significantly over long horizons, a dynamic often described as the eighth wonder of the world. Net Present Value (NPV) extends these mechanics to evaluate investment projects by summing the present values of all expected cash flows minus the initial outlay: NPV = sum[CF_t / (1 + r)^t] - C_0. A positive NPV indicates the project creates value above the required return. The Internal Rate of Return (IRR) is the discount rate that sets NPV to zero, providing a single percentage benchmark for project comparison. The risk-return tradeoff is the central tension of investment theory. Higher expected returns generally require accepting greater uncertainty. Harry Markowitz formalized this in Modern Portfolio Theory by demonstrating that portfolio variance can be reduced through diversification when assets are imperfectly correlated. The efficient frontier represents the set of portfolios offering the maximum return for a given level of risk. The Capital Asset Pricing Model (CAPM) extends this by introducing the market portfolio as a reference, defining expected return as E(r) = r_f + beta * (E(r_m) - r_f), where beta measures an asset's sensitivity to systematic market risk. Asset classes โ€” equities, fixed income, real assets, and alternatives โ€” differ in their return profiles, liquidity, and correlations. Strategic asset allocation determines long-run target weights based on investor objectives and risk tolerance, while tactical allocation permits short-run deviations to exploit perceived mispricings. Discount rates used in valuation models must reflect the cost of capital appropriate to the risk of the cash flows being discounted, a point stressed in corporate finance texts from Brealey, Myers, and Allen through to Damodaran.

History

The history behind the Stock Average Calculator traces back through the following developments. The formal practice of lending at interest dates to ancient Mesopotamia, where the Code of Hammurabi around 1750 BCE regulated interest rates on grain and silver loans. Banking as an institutional activity took root in medieval Italy, with merchant bankers in Florence and Venice financing trade across Europe through instruments such as bills of exchange. The Medici family operated one of the most sophisticated banking networks of the fifteenth century, pioneering double-entry bookkeeping and correspondent banking relationships. Organized equity markets emerged in the early seventeenth century. The Dutch East India Company (VOC), chartered in 1602, issued shares to the public and created the Amsterdam Stock Exchange โ€” widely regarded as the world's first formal stock exchange. The VOC allowed investors to buy and sell shares freely, establishing the template for the joint-stock company. The period also produced the Dutch tulip mania of 1636 to 1637, one of history's first recorded speculative bubbles, in which tulip bulb futures contracts reached extraordinary prices before collapsing. England's financial revolution followed in the late seventeenth century with the founding of the Bank of England in 1694 and the development of government bond markets. The South Sea Bubble of 1720 illustrated the dangers of speculative excess and contributed to early securities regulation. Throughout the eighteenth and nineteenth centuries, industrialization created enormous demand for capital, fueling the expansion of stock exchanges in London, Paris, New York, and beyond. The New York Stock Exchange, formalized in 1817, became the world's dominant equities market by the twentieth century. The Great Crash of 1929 and subsequent Great Depression prompted the US Securities Act of 1933 and Securities Exchange Act of 1934, establishing the SEC and mandatory disclosure requirements. Harry Markowitz published his landmark portfolio selection paper in 1952, launching quantitative finance. The CAPM emerged in the 1960s through work by Sharpe, Lintner, and Mossin. John Bogle launched the first retail index fund in 1976, democratizing diversified investing and challenging active management orthodoxy.

Share this calculator

Explore More

Frequently Asked Questions

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.
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.
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.
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.
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.
You may use the results for reference and educational purposes. For professional reports, academic papers, or critical decisions, we recommend verifying outputs against peer-reviewed sources or consulting a qualified expert in the relevant field.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Finance Editorial Team โ€” Reviewed against CFPB, IRS, and Federal Reserve guidance. Last reviewed: January 2026. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

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\nPurchase 2: 30 x $85 = $2,550\nPurchase 3: 20 x $120 = $2,400\nTotal cost = $5,000 + $2,550 + $2,400 = $9,950\nTotal shares = 50 + 30 + 20 = 100\nAverage price = $9,950 / 100 = $99.50\nCurrent value = 100 x $110 = $11,000\nUnrealized 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\nMonth 2: $1,000 / $45 = 22.22 shares\nMonth 3: $1,000 / $55 = 18.18 shares\nMonth 4: $1,000 / $48 = 20.83 shares\nTotal shares = 81.23\nTotal invested = $4,000\nAverage price = $4,000 / 81.23 = $49.24\nSimple price average = ($50+$45+$55+$48) / 4 = $49.50\nCurrent value = 81.23 x $52 = $4,224.09\nGain = $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.

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.

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.

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.

Can I use Stock Average Calculator on a mobile device?

Yes. All calculators on NovaCalculator are fully responsive and work on smartphones, tablets, and desktops. The layout adapts automatically to your screen size.

References

Reviewed by Sahil, Senior Finance & Tax Editor ยท Editorial policy