Track US stock returns

Average cost and profit from stocks

Calculate average cost from your trades, or separate share-price and exchange-rate effects on profit and loss.

This currency applies only to Average Cost mode, with no exchange-rate conversion

Accuracy warning: Calculation issues have been found with very small or large values, and malformed CSV imports may produce incorrect data or results. Other values may also be affected. No input range has been proven safe. Independently verify results against broker records or another method before relying on them for trading, accounting, or tax.

When enabled, records and inputs are saved automatically only in this browser, without server transmission. Others using the same browser may see them, and clearing site data may remove them.

Disabling or deleting saved data stops retention and removes the stored copy while keeping data on the current page. Clear data resets the form and lists, saving the reset state if retention remains enabled.

Saving is not enabled

Add item

USD
USD

Average cost of remaining shares

—

Average cost per share

Number of shares remaining
—
Total cost of remaining shares
—
Realized profit or loss
—

Trade records

Transaction history

Calculate in the order in which items are added.

There are no items yet.Add a purchase before adding a sale
CategoryNumber of sharesPrice per shareFeeTotal received or paidManage

Things to know

Average cost follows the transactions you enter, with the average cost basis reduced when shares are sold. Price and currency attribution includes an interaction effect because both can change together. These figures are not an official tax cost basis.

CSV accepts decimal numbers, including scientific notation such as 1e-6. Numeric fields cannot be blank. Values that convert to infinity or zero despite a nonzero input are rejected. A failed import leaves your existing entries in place. This check does not guarantee accurate calculations for every accepted value.

CSV files and all data are processed in the browser without uploading, and stored locally only when retention is enabled