Investing

Stock Average Cost Calculator

Find the weighted average cost per share after adding a new purchase to an existing stock position, including optional purchase fees.

Method reviewedAugust 8, 2026

Position details

Live estimate
Cost basisWeighted average = combined purchase cost, including entered fees, divided by total shares.

New average cost per share

$40.00

150 total shares with $6,000.00 invested.

Existing position cost
$4,200.00
New purchase cost
$1,800.00
Average cost change
-$2.00

Broker tax-lot accounting, wash-sale rules, splits, and reinvested dividends may change official tax basis.

Advertisement
GUIDE

This is a purchase-cost average for planning. A broker's official tax basis can differ because of tax lots, wash sales, splits, reinvested distributions, transfers, and adjustments.

Why the average must be weighted

Each purchase contributes both shares and dollars. A large purchase affects the combined average more than a small purchase, so averaging the quoted prices alone can be misleading.

The tool multiplies shares by cost for each block, adds optional fees, and divides the total cost by the combined number of shares.

  • Enter the existing average shown by your records or broker.
  • Include fees only when they are part of acquisition cost.
  • Use positive share quantities for an additional purchase.
  • Keep separate records when tax-lot identification matters.

Average cost versus tax basis

A displayed portfolio average is useful for tracking, but tax reporting can rely on individual lots and required adjustments. Selling shares may use specific identification, first-in-first-out, or another permitted method.

Wash-sale rules can shift a disallowed loss into the basis of replacement securities. Corporate actions and transferred positions can also change official records.

Do not confuse average cost with risk

Lowering the average cost does not reduce the number of dollars at risk or guarantee recovery. Adding to a declining investment increases exposure even when the break-even price moves lower.

Evaluate the investment decision independently from the arithmetic of the average price.

The formula used

New average cost = (existing shares × existing average + new shares × new price + fees) ÷ total shares

The calculation weights each block of shares by its purchase cost. It is not a simple average of the two share prices unless the share quantities are equal and there are no fees.

Example: averaging a position

WORKED EXAMPLE

An existing 100 shares at a $42 average represent $4,200 of cost. Buying 50 more shares at $36 adds $1,800. The combined $6,000 cost across 150 shares produces a new average of $40 per share.

Sources and further reading

We use primary educational sources to check terminology and explain how the calculation fits into real financial decisions.

IRS — Publication 550, Investment Income and ExpensesInvestor.gov — Stocks

Common questions

Understand the estimate

Can I use this after selling shares?+

The simple tool is designed for adding a purchase. Sales require knowing which tax lots were sold and can change the remaining basis differently.

Should commissions be included?+

Include acquisition fees when they form part of your cost basis under the applicable rules. Many trades now have no commission, but other fees can still apply.

Why is the result not the average of the two prices?+

Because the share quantities may differ. The calculation weights each price by the number of shares bought at that price.

Does averaging down guarantee a profit?+

No. It lowers the arithmetic average price but increases capital committed. The security can continue to lose value.

Keep planning

Related calculators

Dividend yield Dividend income Compound interest
Browse all 20 calculators →