Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Dollar Cost Averaging Calculator

  • Free
  • Runs in your browser
  • No account needed

Enter the dollar amount per purchase and a list of prices. The tool instantly shows average cost per share, total invested, units bought, simple average price, value at last price and gain. Example: $100 buys 4 units at $25.

Average cost per share
$39.30
Total invested
$500.00
Shares or units bought
12.7222
Simple average of the prices
$42.00
Value at the last price
$572.50
Gain or loss
14.5%
Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the Dollar Cost Averaging Calculator

This calculator computes dollar cost averaging from a fixed amount per purchase and an ordered list of purchase prices. You use it by picking a currency, typing the amount invested each time, and entering the prices in order. The tool runs in your browser and updates results instantly as you type; nothing is uploaded to a server and it works offline once the page loads. Results show total invested, units bought, average cost per unit, the simple average of the prices, the value at the last price and gain or loss. The method treats each trade as amount divided by price, so your average cost equals total invested divided by total units. You can copy results or share a link that reopens the page with your numbers. This page focuses on the price-list DCA math rather than projecting future returns.

How to use it

  1. 1Choose a currency from USD, GBP, EUR, NGN, AED, SAR or INR.
  2. 2Enter the amount you invest each time.
  3. 3Paste or type the purchase prices in order, separated by commas or spaces.
  4. 4Watch the results update instantly as you type; copy or share the link to reopen your numbers.
Advertisement

Worked example

Input: Currency USD, Amount invested each time = 100, Prices = 50, 25, 40. Units: 100/50 = 2, 100/25 = 4, 100/40 = 2.5. Total invested = 300. Total units = 8.5. Average cost = 300 / 8.5 = $35.29. Simple average price = (50+25+40)/3 = $38.33. Value at last price = 8.5 * 40 = $340. Gain = $340 - $300 = $40.

The formula

For each purchase i: units_i = amount / price_iTotal units = sum(units_i)Total invested = amount * nAverage cost per unit = total invested / total unitsSimple average = sum(price_i) / nValue at last price = total units * price_nGain or loss = value at last price - total investedNote: for equal-dollar buys this average cost is the weighted harmonic mean of the prices, and it is always at or below the simple average of the prices

Source: Investor.gov - Dollar Cost AveragingVanguard - Cost Averaging vs Invest Now research summary. Last checked 7 November 2026.

What it is good for

  • Instant browser calculation that updates as you type.
  • Keeps all data in your browser; nothing is uploaded.
  • Shows exact units bought and average cost using real trade prices.
  • Does not include per-trade fees, taxes or dividends.
  • No automatic historical price import or forward return projection.
Advertisement

Questions people ask

What exactly does this calculator compute?

It sums units bought for each trade where units = amount / price. Then it reports total invested, total units, average cost per unit, simple average price, current value at the last price and gain or loss.

Is the average cost the same as the simple average of prices?

No. The average cost equals total invested divided by total units. For equal-dollar buys, that value is the weighted harmonic mean, so it will be at or below the simple average of the prices.

Can I include fees or taxes in the calculation?

Not directly. The tool does not add per-trade fees or tax rules. To include fees, subtract them from each amount before computing units.

Does this tool project future returns?

No. This tool uses actual prices you enter and shows current value at the last price. It does not assume a constant annual return or forecast future value.

Can I use this for stocks and crypto?

Yes. The calculator works for any asset where you supply prices and a fixed dollar amount per purchase. Make sure you enter the prices in the same currency you choose.

How do I save or share my numbers?

You can copy results to the clipboard or click the share link to create a URL that reopens the page with your inputs and results.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement