Average cost basis Educational
Enter your buys and sells: average cost, unrealised gain, realised gain and how many shares to buy to lower your average.
Open the calculatorAll 38 calculators
When to use it
You hold shares bought at different prices and need your average cost for tax reporting or to see your gain.
What you enter
| What you enter | Starting value |
|---|---|
| Current price ($) | 41 |
| Target average ($, 0 = none) | 43 |
Example with the starting values
These results were produced by the calculator itself with the values above. Change any input to see your own numbers.
| Result | Value |
|---|---|
| Shares held | 160.00 |
| Average cost per share | $45.19 |
| Total cost (book) | $7,229.99 |
| Value at current price | $6,560.00 |
| Unrealised gain or loss | $-669.99 (-9.3%) |
| Realised gain or loss | $230.00 |
| Shares to buy to reach your target | 175 ($7,175) |
Illustration with made-up inputs, not a forecast.
Good to know
Keep your statements: tax requires the adjusted cost base (ACB). Buying fees add to the cost. Foreign-currency securities are converted at the rate on the transaction day.
Questions and answers
What does the Average cost basis calculator do?
Enter your buys and sells: average cost, unrealised gain, realised gain and how many shares to buy to lower your average.
When should I use it?
You hold shares bought at different prices and need your average cost for tax reporting or to see your gain.
What do I need to enter?
Current price ($) · Target average ($, 0 = none)
What does it show with its starting values?
With the starting values it shows, for example: Shares held: 160.00; Average cost per share: $45.19; Total cost (book): $7,229.99. These numbers are an illustration, not a forecast or a recommendation.
Is it free, and are my numbers sent anywhere?
It is free and does not need an account. The calculation runs in your browser and the values you type stay on your device: nothing is sent to BourseBuddy.
Keep going
Last reviewed 2026-11-22. Educational tool that uses assumptions you set. It is not financial, tax or legal advice.