Skip to content

Stock Average Cost Calculator

Enter the shares you own and the total amount invested, then the current price. The calculator gives average cost per share, market value, unrealized profit or loss, and return on cost. Add a planned purchase to see how the new shares change the average. It is a position-level estimate, not a tax-lot report.

Updated 2026-11-18 Editorial estimate Calccc Editorial Team Free · No sign-up
$

Total purchase cost including commissions, not the current market value.

$
Advanced options
$
Scenarios A/BSave two input sets and compare the results. Stored only in this browser.
AEmpty
BEmpty

Your inputs stay in this browser. No account, no uploads.

Professional worksheet

Detailed schedule & assumptions

Inputs used, method, sensitivity, and any year-by-year table. The summary above stays compact; the audit lives here.

Professional worksheet

Inputs, scope, and sensitivity

Inputs used

Advanced inputs used

Method and scope

Result audit

MetricValue

Sensitivity check

CaseInputResult

A one-variable sensitivity check, holding every other input constant. It is not a forecast.

What this calculator does

Average cost is the total amount you paid for a position divided by the number of shares. It is not the current price, and it is not the same as the tax cost basis your broker reports if you use specific-lot identification. The average is still useful: it tells you the break-even price for the position and how a new purchase would move it. This calculator also shows the market value and unrealized gain or loss, so you can separate the quality of the position from the size of the position. Adding shares at a lower price lowers the average but increases the amount at risk; the calculator shows both effects rather than presenting a lower average as automatically good.

How to use it

  1. Enter the number of shares currently held.
  2. Enter the total amount invested, including purchase commissions.
  3. Enter the current market price per share.
  4. Optionally add the shares and price of a planned purchase.
  5. Compare the current average with the new average and the unrealized result.

How it works

Average cost = total amount invested ÷ shares owned. Market value = shares × current price. Unrealized profit or loss = market value − total amount invested. Return on cost = profit ÷ total amount invested. New average = (current cost + additional shares × additional price) ÷ (current shares + additional shares). In the default case, $5,000.00 invested in 100 shares gives a $50.00 average and a 20.0% return at $60.00 per share.

Example calculations

Example 1: 100 shares, $5,000 invested, $60 current price

The average cost is $50.00 per share. At $60.00, the position is worth $6,000.00, a gain of $1,000.00 or 20.0% on cost.

Example 2: Adding 50 shares at $40 to 200 shares costing $8,000

The current average is $40.00. Buying 50 shares at $40 adds $2,000.00 and brings the average to $40.00 across 250 shares. The lower average does not erase the loss on the original 200 shares; it changes the break-even price for the whole position.

Example 3: 50 shares costing $7,500 at a $90 price

The average is $150.00 and the current value is $4,500.00, a gain of $-3,000.00 or -40.0%. A high average cost relative to the current price is a useful warning, but it says nothing about whether the company is a good investment now.

What the result means

Average cost answers a bookkeeping question, not an investment question. A stock trading below your average is not automatically cheap, and a stock above it is not automatically expensive. The average also depends on how you handle dividends, splits, and commissions: a split changes the share count and the per-share average but not the total cost, while reinvested dividends add to cost basis. For taxes, use the cost basis method your broker reports; average cost is one allowed method for mutual funds but not always for stocks. The IRS and Investor.gov explain cost basis and the difference between realized and unrealized gains.

Common mistakes

  • Dividing total cost by the current price instead of the number of shares.
  • Leaving purchase commissions out of the cost basis.
  • Forgetting that a stock split changes the share count and per-share average.
  • Averaging down without checking whether the investment case still holds.
  • Treating the average cost as the tax basis when using specific-lot identification.

Assumptions and limits

  • Total cost includes all purchases and commissions but not reinvested dividends.
  • The current price is a single market price, not a bid-ask or after-hours quote.
  • No stock splits, mergers, or spin-offs occurred in the period.
  • The additional purchase uses the stated price with no commission.
  • The result is before taxes, fees, and currency conversion.

Frequently asked questions

What is the difference between average cost and cost basis?

Average cost is total cost divided by shares. Cost basis is the tax value of the shares you sell, which can be averaged or identified by specific lot. They are the same only if you use average cost for the entire position.

Does buying more lower my risk?

It lowers the average price if you buy below it, but it increases the amount invested. Risk depends on the position size and the company, not the average alone. Size the position before averaging down.

How do dividends affect average cost?

Cash dividends generally do not change cost basis. Reinvested dividends buy additional shares and add to the total cost, which changes the average. Return-of-capital distributions can reduce basis.

How does a stock split affect the average?

A 2-for-1 split doubles the shares and halves the per-share average, while total cost stays the same. The market value is unchanged immediately after the split.

Can I use average cost for taxes?

The rules depend on the security and your jurisdiction. Average cost is common for mutual funds, while stocks often allow specific-lot identification. Follow your broker's reporting and consult a tax professional.

Why is my broker's average different from this number?

Your broker may include reinvested dividends, exclude certain fees, use a different lot method, or update the average only after settlement. Reconcile the statement before relying on either figure for taxes.

Sources

This calculator is an educational position estimate, not investment or tax advice. It does not recommend buying, holding, or selling a security. Prices, cost-basis rules, splits, and taxes vary; use your broker's records and a qualified tax professional for filings.

2026 update

How to use the professional output

This page is not just a formula box. The result is designed to be checked, compared, and taken away.

  • Professional worksheet. The result includes the inputs used, the method and scope, and a one-variable sensitivity check for finance calculators.
  • A/B scenarios. Save two input sets in the browser and compare the primary, secondary, and breakdown figures side by side.
  • Print / PDF and CSV. Print a branded worksheet, or export the year-by-year table when the calculator produces one.
  • Quote differences. The section below explains why a bank, lender, broker, or provider can quote a different number.

The formulas and assumptions above still govern the number. The worksheet makes the estimate auditable; it does not make it a lender quote, tax return, or personalized advice.

Before you use a quote

Why your bank, lender, or provider’s number may differ

This calculator gives you a transparent estimate. A bank, lender, broker, fund provider, or tax authority can quote a different number because its inputs, fees, underwriting, and timing are different.

What changes the quote

  • Fees. Providers may charge fees that are not part of the headline rate.
  • Eligibility. Credit, income, collateral, and provider rules change the offered terms.
  • Taxes and insurance. These are often quoted separately and may not be included.
  • Timing. Rates, prices, and eligibility rules can change after the quote.

How to compare offers

  1. Compare the APR and total cost, not only the monthly payment.
  2. Ask for a written quote or Loan Estimate with all fees itemized.
  3. Use the same loan amount, term, date, and assumptions for every offer.
  4. Check what is excluded: taxes, insurance, closing costs, maintenance, or provider fees.
  5. Keep an emergency reserve; the lowest payment is not always the safest choice.

Reference: CFPB Loan Estimate explainer.

Calccc Editorial Team · Updated 2026-11-18

Prepared by Calccc Editorial Team as an educational estimate. This page is not a licensed professional review and is not financial, medical, legal, or tax advice.

Editorial estimate prepared by the Calccc Editorial Team; not a licensed professional review.