Free calculatorLive resultsSteps and sourcesEmbed on your site, free

Averaging Stocks Calculator

Stock Average Calculator works out Average price per share and Total shares from Purchases, Total commission and fees and Current price (optional). The default figures on this page give average price per share of 166.6667 USD; change any entry and the result, the working and the sources update together.

Average price per share
166.6667 USD
Stock Average Calculator
Total shares
30.0000
Total cost
5,000.00 USD
Break-even price including fees
166.6667 USD
Number of purchases
2
Summary
30 shares costing 5000 average 166.6667 per share.
Worked out from IRS Publication 550, Investment Income and Expenses - cost basis of stock and 1 other source.

Your figures

Updates as you type
One purchase per line, quantity first: "10 @ 100" or "10, 100".
Given, the position value and the unrealised gain or loss are worked out.

How this is worked out

4 steps
  1. Money spent: 10 x 100 + 20 x 200 = 5000.
  2. Shares: 10 + 20 = 30.
  3. Weighted average = 5000 / 30 = 166.666667.
  4. No commission, so break-even equals the average price.
Purchasestable
10 @ 100 = 1000, 20 @ 200 = 4000

Its 5 worked examples are re-run on every release, last on 15 September 2026. What changed

Sources and references

2 sources
IRS Publication 550, Investment Income and Expenses - cost basis of stock
The basis of shares acquired in separate purchases is the total cost including commissions; the average basis per share is that total divided by the number of shares.
CFA Institute, Quantitative Methods: weighted mean
A weighted mean weights each observation by its quantity, which is why an average price must be weighted by shares.

Keep this result

Save it, change one figure, then compare the two

The calculation stays free. Save this scenario, adjust one assumption, save that too, and put them side by side to see exactly what the change costs you. A free account keeps 5 scenarios and 2 comparisons; Personal makes both unlimited and adds exports and private links. Nothing is saved unless you press Save.

1 · Calculate2 · Save3 · Compare4 · Export5 · Share
Open workspace

What the Stock Average Calculator calculates

The weighted average cost per share across several purchases: total money spent divided by total shares, so a larger purchase pulls the average further than a small one (10 at $100 plus 20 at $200 averages $166.67, not $150). Commission is added to the cost rather than the price, and the break-even price and any unrealised gain against a current price are reported alongside.

How to use this Stock Average Calculator

Enter Purchases, Total commission and fees and Current price (optional). Average price per share updates as you type, and “Use a worked example” loads checked figures you can adjust. Change one figure at a time to see what drives the result.

How the result is worked out

Open “How this is worked out” beside the result for the step-by-step calculation behind Average price per share, Total shares and Total cost.

The method follows IRS Publication 550, Investment Income and Expenses - cost basis of stock and CFA Institute, Quantitative Methods: weighted mean.

Ten at 100 and twenty at 200 example

With Purchases: 10 @ 100 20 @ 200, the calculator returns Average price per share: 166.666667, Total shares: 30, Total cost: 5000. This example is checked against an independent source in the test suite.

What you can compare

Change one input at a time to see how it affects Average price per share, Total shares and Total cost. The inputs you can vary are Purchases, Total commission and fees and Current price (optional).

Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.

Embed this calculator on your website

Copy this code into any page. The calculator appears with the figures currently entered, sizes itself to fit, and a small credit line links back here. Free, no account, no ads inside it, no tracking of your readers. Set your own figures and fixed fields; Personal removes the credit line, sets your colour and shows you which sites use it.

Preview

See something wrong? Report a problem with this calculator

Frequently asked questions

What is the 7% rule in stocks?

On the figures this page opens with, the average price per share is 166.6667 USD. No single number fits everyone: it follows Purchases, Total commission and fees and Current price (optional), so enter your own above and the answer updates as you type.

How to do averaging in stocks calculator?

The weighted average cost per share across several purchases: total money spent divided by total shares, so a larger purchase pulls the average further than a small one (10 at $100 plus 20 at $200 averages $166.67. Open “How this is worked out” beside the result to see each step for your own figures.

What is the best stock average down calculator?

The weighted average cost per share across several purchases: total money spent divided by total shares, so a larger purchase pulls the average further than a small one (10 at $100 plus 20 at $200 averages $166.67. On this page it is computed from Purchases, Total commission and fees and Current price (optional) and shown as Average price per share, Total shares and Total cost.

How do you calculate the average stock?

It needs Purchases, Total commission and fees and Current price (optional). Nothing else is required, and the figures stay in your browser.

What information do I need for the Stock Average Calculator?

You need Purchases, Total commission and fees and Current price (optional). The page opens with default figures that give average price per share of 166.6667 USD, so you can see the scale before entering your own.

What does this Stock Average Calculator show?

It shows Average price per share, Total shares, Total cost, Break-even price including fees, Number of purchases, Value at the current price, Unrealised gain or loss and Purchases, with the working and any warnings for your entries.

Related calculators

View all related calculators12 more