No tool matches “”

Try a format (“webp”, “mp3”) or a verb (“merge”, “compress”).

Loading index

↵to open

Calculators · Updated November 11, 2026 · Reviewed by FormatFlow Editorial

Stock Average Cost Calculator

You can calculate the average cost per share across several stock purchases, including optional fees, and compare it with a current price you enter to see market value, unrealized profit or loss and return percentage.

Runs in your browserFree · No sign-up · No watermark
Stock cost basisRuns in your browser
Loading the tool…

Everything runs locally in this tab. No file is uploaded while the tool loads.

Use this tool as a step in a repeatable browser pipeline.

Add to Workflow

This tool runs in your tab. Nothing is uploaded and no copy is stored.

How files are handled

Key facts

Category
Calculators
Processing
In your browser — nothing is uploaded
Input formats
Share purchases
Output format
Average cost and P/L
Maximum size
Bound by the memory available to your browser tab
Requirements
Chrome, Edge, Firefox or Safari · JavaScript enabled
Price
Free, no account, no watermark
Last updated
Nov 11, 2026

SummaryStock Average Cost Calculator is a free online calculators tool. You can calculate the average cost per share across several stock purchases, including optional fees, and compare it with a current price you enter to see market value, unrealized profit or loss and return percentage. When you buy the same stock at different prices, the average cost per share is the total amount paid divided by the total number of shares. It is the reference point for judging a position: a price above it means the holding is worth more than it cost, a price below it means the opposite. Long positions often accumulate across several purchases, so building the average from each lot is more accurate than averaging two prices by eye. It runs in your browser — nothing is uploaded. It accepts Share purchases and produces Average cost and P/L.

At a glance

Works with
Stock cost basis
Processing
In your browser
Price
Free, no account
Updated
November 11, 2026
All Calculators

About Stock Average Cost Calculator

When you buy the same stock at different prices, the average cost per share is the total amount paid divided by the total number of shares. It is the reference point for judging a position: a price above it means the holding is worth more than it cost, a price below it means the opposite. Long positions often accumulate across several purchases, so building the average from each lot is more accurate than averaging two prices by eye.

This calculator collects share counts, price per share and optional fees into a weighted average cost, then compares it with a current price you supply. It is not financial advice, it uses only the numbers you enter, and there are no live prices, dividends or exchange rates. Taxes and fees are excluded unless you enter a fee field, and the tool tracks an open position rather than realized sales.

What this tool does

The details that matter when you use Stock Average Cost Calculator for real work.
  • Multiple purchase rows

    Add one row per purchase with shares, price per share and an optional fee per lot, or paste the same data as CSV.

  • Fees in the cost basis

    An optional fee on each row is added to that lot's cost, so the average cost per share reflects what you actually paid.

  • Weighted average cost

    Total cost divided by total shares gives the average cost per share, weighted by the size of each purchase.

  • Market value and unrealized P/L

    Enter a current price to see the position's market value, unrealized profit or loss and return percentage.

  • CSV paste

    Paste rows as shares, price, fee — one purchase per line — to fill the table without retyping each field.

  • Input validation

    Negative shares or prices, missing values and fees below zero are reported per row instead of producing a misleading average.

How to use Stock Average Cost Calculator

No account, no installation — the whole job happens in this browser tab.
  1. 01

    Add your purchases

    Use the Add row button or paste CSV lines such as 100,10 and 50,12,1 into the import box.

  2. 02

    Enter shares, price and fee

    Fill in the number of shares, the price per share and an optional fee for each lot, in the same currency.

  3. 03

    Add the current price

    Enter a current price per share if you want market value, unrealized P/L and return percentage; leave it empty for the average cost only.

  4. 04

    Read the results

    Review total shares, total cost and average cost per share, then the market value, unrealized P/L and return percentage.

  5. 05

    Copy or reset

    Copy the saved values or reset the table to start a different position.

How this tool works

Works with
Stock cost basis
Processing
Client-side, in your browser. Nothing is uploaded.
Requirements
Chrome, Edge, Firefox or Safari · JavaScript enabled

Limitations worth knowing

  • Not financial advice; it is an informational average cost and unrealized P/L tool using only the values you enter.
  • No live prices, dividends or exchange rates, and no taxes or costs unless a fee field is filled in.
  • Weighted average of entered lots only; sales, realized gains, FIFO/LIFO and corporate actions are not modelled.
  • All rows must use one currency and price convention; the tool does not convert between currencies.

Privacy and file handling

Every calculation runs in your browser with plain JavaScript. The share counts, prices and fees you enter are never uploaded, stored or logged, and no request is made to a server while you use the calculator.

Read the full privacy policy

Stock Average Cost Calculator FAQ

Short, direct answers to the questions people ask before using this tool.
What is the average cost per share?
It is the total amount you paid for a position, including any fees you enter, divided by the total number of shares. Each purchase contributes in proportion to its size, so 100 shares at 10 and 50 shares at 12 average to about 10.67 per share.
How are fees counted in the average cost?
A fee on a purchase row is added to that lot's cost before the total is divided by the share count. Fees are optional and only affect the result when you type them, so the calculator does not assume a commission schedule or a platform fee.
Is the profit or loss realized or unrealized?
Unrealized. The calculator compares the current value of the shares you still hold with their cost basis; it does not model sales, so it cannot report realized gains or the tax consequences of selling.
Does the calculator use live stock prices?
No. It never fetches quotes, dividends or market data from a server. You enter the current price yourself, which also keeps your position data in the browser and makes the result a snapshot rather than a live valuation.
Which cost basis method does it use?
A single weighted average of all lots you enter. It does not apply FIFO, LIFO or specific-lot identification, so use a different record-keeping tool if your tax reporting requires one of those methods.
Should I enter every purchase or only recent ones?
Enter every lot whose shares you still hold. The average cost describes only the rows supplied, so omitting an earlier purchase changes the average. If you sold part of the position, adjust the rows to the shares you have now or keep the sale outside this tool.
What if I leave the current price empty?
The calculator still returns total shares, total cost and average cost per share. Market value, unrealized P/L and return percentage need a current price, so they appear only after you enter one.
Are dividends and taxes included?
No. Dividends are not added to the return, and taxes on gains or transactions are not modelled. The result is a price-based unrealized comparison, not an after-tax or total-return figure, and it is not financial advice.

Background reading

Format guides that explain the trade-offs behind Stock Average Cost Calculator.