FreeByte

Average cost basis calculator

Blended price across two buys.

Built and reviewed by Dovanic, Founder and editor, FreeByteLast reviewed: 2026-08-18
$
$

Average cost

$37.88

Total shares

160

With these inputs, average cost comes to $37.88. Total shares works out to 160.

Total invested
$6,060

What moves the number · Average cost

Input−10%Now+10%
Shares bought first$37.6$37.88$38.12
Price paid$35.25$37.88$40.5
Shares bought later$38.14$37.88$37.63
Second price$36.71$37.88$39.04

Solve for an input

Whatmakesequal

Compare scenarios

Save this set of inputs, change something, then save again to compare the outcomes side by side.

Blended price across two buys.

A worked example

Starting figures

Shares bought first
100
Price paid
$42
Shares bought later
60
Second price
$31

What it returns

Average cost
$37.88
Total shares
160
Total invested
$6,060

How to read the results

With the defaults above, average cost works out at $37.88.

Related calculators