All tools

Average Cost Calculator

Free stock average cost calculator. Combine multiple buys to get weighted average cost basis, total invested, and P&L — built for averaging down and cost-basis tracking.

Add buys at different prices (or model averaging down) and get weighted average cost, total shares, total invested, and unrealized P&L at a mark price. The answer to “what’s my breakeven after that add?”

Purchase lots

Tip: model an average-down by adding a second lot at a lower price and watching average cost fall.

Average cost

Avg cost / share

$90.00

Your break-even before fees/taxes

Total shares
100
Total invested
$9,000.00
Market value
$9,000.00
Unrealized P&L
+$0.00 (0%)

What is an average cost calculator?

An average cost calculator (or stock cost basis calculator) tells you the true price you paid per share after several buys. Brokers show this as cost basis; traders use it to know break-even after averaging down or scaling in. Without it, people guess — and guess wrong when lot sizes differ.

Average cost formula

Average cost = Σ (shares × price) ÷ Σ shares

Example: 40 shares at $50 ($2,000) + 60 shares at $40 ($2,400) = $4,400 total ÷ 100 shares = $44 average cost. A simple average of $50 and $40 ($45) would be wrong because the lots aren't equal size.

How to use this free stock average calculator

  1. Enter each purchase as its own lot (shares + price).
  2. Click “Add another buy” to model an average-down or scale-in.
  3. Set the current / mark price to see unrealized P&L vs average cost.
  4. Planning the exit? Use the stock profit calculator with your average cost as the buy price.

Averaging down: when it helps vs hurts

Averaging down lowers break-even if the business thesis is still intact and you sized the adds with risk rules. It hurts when you're throwing good money after a broken thesis, or when the add is so large that one name dominates the portfolio. A calculator shows the math — it doesn't make the decision for you.

Size any add with the position size calculator so “buying the dip” doesn't silently double your account risk.

Average cost vs DCA

Dollar-cost averaging is a schedule (invest fixed amounts over time). Average cost is the resulting number. Our DCA calculator projects a contribution plan; this average cost tool reconstructs basis from specific lots you already bought (or plan to buy).

Deeper walkthrough: average cost basis explained.

Frequently asked questions

Related free trading tools

Explore more free calculators and simulators on Swift Penguin: stock market simulator, live stock lookup, position size calculator, risk reward calculator, compound growth projector, dividend & DRIP calculator, options profit calculator, portfolio tracker, dollar cost averaging calculator, stock profit calculator, investment return calculator, and capital gains tax calculator. Browse all free stock trading tools.

Educational calculator only — not tax or investment advice. Broker cost basis methods (FIFO, specific ID) can differ for tax lots.

Get a free share up to £100 — just sign up and deposit

Ready to put this into practice?

Trading 212 — Commission-free stocks & ETFs with fractional shares. Just sign up and deposit. Bonus shares are chosen at random and vary by region and campaign (UK/EU promos often land around £8–£25, with a max up to £100).

  • Zero-commission stock & ETF investing
  • Fractional shares from $1
  • Free share up to £100 after signup + deposit (random value; T&Cs apply)
Get your free share

Just sign up and deposit · random bonus up to £100 · capital at risk · T&Cs apply