Finance tools

Stock average calculator

Free stock average calculator for when you buy the same stock more than once. Enter each purchase (shares and price per share) to get your weighted average share price, often used as a simple cost basis on the position, plus total investment and optional unrealized gain or loss at a current price. See an average down example with presets, a purchase breakdown table, live formula, and CSV/PDF export — no sign-up. Not safety stock (inventory planning). Not a substitute for broker tax lots or IRS reporting.

What is a stock average price?

  • Multi-buy purchase table

  • Live weighted average

  • Unrealized gain or loss

  • CSV/PDF export

Stock average calculator formula

Weighted average cost per share

How to calculate average share price

  1. List each purchase

    For every buy, note shares (including fractional) and price per share from your broker confirmation or statement.

  2. Multiply and sum

    Multiply shares × price for each row and add the line costs to get total cost.

  3. Divide by total shares

    Divide total cost by total shares — that is your weighted average price per share.

Cost basis vs average share price

Average down calculator example

StageHoldingsTotal costAverage price
After 1st buy100 shares @ $50$5,000$50.00
After 2nd buy (avg down)150 shares (100 @ $50 + 50 @ $40)$7,000$46.67
At current price $55150 sharesCost $7,000 · Value $8,250Unrealized gain $1,250 (~17.9%)

Multiple small lots example

Average down vs dollar-cost averaging

Averaging downDollar-cost averaging (DCA)
TriggerYou buy more after a price dropFixed amount on a calendar schedule
GoalLower average cost per share on a position you already holdReduce timing risk across many buys
This toolEnter each lot — see weighted average update liveNot a DCA scheduler — enter lots manually or from statements
Risk noteCan increase exposure to a falling positionDoes not guarantee profit; reduces timing concentration

Stock average calculator in Excel or Google Sheets

Cost basis for taxes — what this tool does not do

Fractional shares and brokerage fees

ETFs, mutual funds, and crypto

Common stock average mistakes

Stock average vs safety stock and similar terms

TermMeaningUse this tool?
Stock average / average share priceWeighted average of your buy pricesYes — enter purchases above
Cost basis (informal)Often the same as average cost per share on a positionYes — with tax caveats below
Safety stockExtra inventory units (warehouses)No — safety stock calculator
Margin of safetyFair value vs market price (value investing)No — margin of safety calculator
Profit marginProfit ÷ revenue on a product or businessNo — profit margin calculator
ROI on a saleReturn after you sell vs amount investedNo — ROI calculator

Limitations

How to use this stock average calculator

Discover more calculators for time tracking, payroll, and HR.

Frequently asked questions about this stock average calculator

How do you calculate stock average price?

Average price = total cost ÷ total shares. For each buy, multiply shares × price per share and add those amounts for total cost; add the share counts for total shares. Example: 100 shares at $50 and 50 at $40 → $7,000 ÷ 150 = $46.67 per share. Use the calculator above for live results.

What is the stock average calculator formula?

Total cost = Σ (shares × price per share). Average price = total cost ÷ total shares. With a current price, unrealized gain ≈ (total shares × current price) − total cost. The on-page formula card fills in your totals automatically.

What is a cost basis calculator?

A cost basis calculator shows what you paid per share across several buys. This stock average calculator is that kind of tool: enter each purchase to get weighted average share price and total investment. It does not replace broker tax lots or IRS-adjusted basis.

Is this stock average calculator free?

Yes. The calculator, presets, purchase table, and CSV/PDF export are free with no sign-up.

Do I need an app to calculate average stock price?

No app required. Open this page in a browser on phone or desktop, enter your buys, and see the weighted average instantly. Export to a spreadsheet if you want an offline copy.

What is cost basis vs average share price?

On a position, average share price is often what people mean by informal cost basis. For taxes, adjusted cost basis on Form 1099-B can differ after splits, DRIP, wash sales, or specific-lot sales — confirm with your broker and tax advisor.

What is an average down calculator?

An average down calculator shows how a new buy below your current average changes your cost per share. Use the Average down example preset here (100 shares at $50, then 50 at $40) to see the average drop to $46.67.

What is averaging down?

Averaging down means buying more shares at a lower price than your current average, which lowers your cost per share when the new lot is priced below that average.

What is the difference between averaging down and dollar-cost averaging?

Averaging down is an extra buy after a price drop on a position you already hold. Dollar-cost averaging (DCA) is investing on a schedule. Both change your average cost over time, but the trigger is different — see the table on this page.

Does this calculator support fractional shares?

Yes. Enter decimal share amounts (for example 1.25 shares). The weighted average uses the exact quantities you provide.

Does the calculator include brokerage fees?

Not automatically. Roll commissions into the price per share for that lot (for example, add $0.05 per share when a $0.50 fee applies to 10 shares).

Is this the same as IRS cost basis?

Not always. This tool is a weighted average from your entries. IRS reporting may use specific lots or broker adjustments — see Investor.gov — cost basis for background.

Is this a safety stock calculator?

No. Safety stock is warehouse inventory buffer, not share prices. For inventory planning, use our safety stock calculator.

Is this related to margin of safety in value investing?

No. Margin of safety is how far price sits below your fair value estimate. This page averages what you paid on past buys. For MOS %, use our margin of safety calculator.

Can I use this for ETFs or crypto?

Yes for the same weighted-average math on units you bought. Tax and reporting rules vary by asset and country — this is not tax advice.

How do I calculate stock average price in Excel?

Use =SUMPRODUCT(A2:A20,B2:B20)/SUM(A2:A20) for shares in column A and prices in column B, or divide total cost by total shares. Or export CSV from this calculator and open it in Excel or Google Sheets.

Is this the same as profit margin on a stock?

No. Profit margin is profit ÷ revenue for a business. Here you are finding average purchase price across your own buys — not a company’s margin.

Can I export results to CSV or PDF?

Yes. Export CSV for Excel or Google Sheets, or PDF for a printable summary. No email required.

Do you store the numbers I enter?

No. Calculations run locally in your browser. We do not send your purchase data to a server to compute the average.