Position Math

Calculators › Trading

Average Down / Cost Basis Calculator

Add every purchase — share counts, prices and fees — and get your blended average cost and the price you break even at.

Your lots

avg_cost = Σ(qty·price + fee) / Σqty

Your blended position

Total quantity
Total invested (incl. fees)
Average cost / unit
Break-even price (fee-adjusted)
Break-even already includes the fees you typed in. To actually profit you need a price above it.

How it works

What this calculator does

When you buy more of a position you already hold at a lower price, your average cost per share changes. This tool blends every purchase — share counts, prices and fees — into a single weighted-average cost basis and the price at which the combined position breaks even.

The formula

It uses a units-in model: you enter the number of shares bought at each price.

avg cost = Σ(quantity × price + fee) / Σ quantity

The fee-inclusive break-even price is the same figure once commissions are spread across all shares held.

Worked example

You bought 100 shares at $50, then add 100 shares at $30, paying $5 commission on each order. Total cost is (100×50 + 5) + (100×30 + 5) = 5005 + 3005 = 8010 across 200 shares, so your average cost is 8010 / 200 = $40.05. The stock now only needs to reach $40.05, not the original $50, to break even.

What it deliberately does not do

It will not tell you whether averaging down is wise — adding to a losing position increases your exposure if the price keeps falling. It uses the prices you type, not live market data, and it is for education, not investment advice.

Frequently asked questions

What does averaging down mean?
Averaging down is buying more of an asset you already own after the price has dropped, which lowers your average cost per share. It also increases the total money at risk in that position.
How do I calculate my new average cost after buying more?
Add up the total dollars spent (including fees) across every purchase and divide by the total number of shares: Σ(qty × price + fee) / Σ qty. This tool does it across multiple buys for you.
What's the difference between averaging down and dollar-cost averaging?
Averaging down uses share counts (units-in) and is usually a reaction to a falling price. DCA invests a fixed dollar amount on a schedule (dollars-in) regardless of direction. Use the DCA calculator for the dollars-in version.
Does a lower average cost mean I'm making money?
No. It only lowers the price you need to break even. You still hold a paper loss until the market price rises above your new average cost.
Should I average down on a losing trade?
That's a risk decision this tool can't make for you. Averaging down concentrates more capital into one position; if the price keeps dropping, your losses grow faster. The result is an estimate, not investment advice.

Related calculators

Information tool only. Every result is deterministic arithmetic (for the simulator, a probability estimate) from the numbers you enter. No live data, no account connection, nothing stored. This is not investment, trading, tax, or financial advice — verify against your own broker or prop firm before acting.
Disclosure. Some outbound links may be affiliate or partner links; they never change how a tool computes.
Position Math · updated 2026-06-27 · all calculators
Information tool only — not investment, trading, tax, or financial advice. All computation runs in your browser.