GALAXY OF TOOLS

CRYPTO SECTOR

DCA Calculator (Dollar-Cost Averaging)

See units bought, average cost and value of regular buys over your own price series, compared with a lump sum.

%
Separate with commas, spaces or new lines. Lines like 2026-01-01,43500 work too — the last number on each line is used. Up to 1,000 prices.
—
—Total invested
—Units bought
—Average cost per unit
—Profit / loss
—Lump sum at first price
—DCA minus lump sum
Portfolio value
  • DCA value
  • Lump sum value
  • Invested so far
Price vs your average cost
  • Price
  • Average cost

Purchase table

Informational only, not investment advice. Results depend entirely on the prices you enter or simulate; past or simulated prices do not predict future returns. Taxes and spreads are not included unless you add them to the fee.

Runs entirely in your browser. Nothing you enter or upload is sent to a server.

DCA calculator: what regular buying would have done

Dollar-cost averaging (DCA) means investing the same amount at regular intervals — say $100 of bitcoin every month — instead of one large purchase. Because a fixed amount buys more units when the price is low and fewer when it is high, your average cost per unit ends up below the simple average of the prices you paid. This DCA calculator shows exactly how that plays out for any price series: how many units you would hold, your average cost, the final value and the profit or loss, side by side with investing the same total as a lump sum at the first price.

You can paste real historical prices (from an exchange export or a spreadsheet) or generate a simple simulated series with a trend and random volatility to see how DCA behaves in rising, falling and choppy markets. A chart, a purchase-by-purchase table and a CSV export make the result easy to check. In India the same idea is known as rupee-cost averaging and is how a mutual fund SIP works.

Everything is computed in your browser from the numbers you provide; no prices are downloaded. The results are informational only and not investment advice.

How to use the DCA Calculator

  1. Enter the Amount per buy, the Currency and any Fee per buy your exchange charges (as a percentage).
  2. Choose Paste prices and paste the price at each purchase date, oldest first — or choose Simulate a series and set the number of buys, start and end price, volatility and a seed.
  3. Read the final value, total invested, units, average cost and profit, and how DCA compares with a lump sum.
  4. Check the two charts: portfolio value over time, and the price against your running average cost.
  5. Scroll the purchase table or press Download CSV to keep the numbers.

DCA Calculator features

Your prices, not ours

Paste any series — daily, weekly or monthly closes for any coin or stock. Dated CSV lines are understood.

Reproducible simulation

A linear trend plus Gaussian noise from a seeded generator; the same seed always gives the same path, so comparisons are fair.

Lump sum comparison

The same total invested on day one at the first price, after the same fee, valued at the last price.

Fee-aware

A percentage fee is deducted from every buy, which matters for small, frequent purchases.

Two charts and a table

Value vs invested vs lump sum, and price vs average cost, plus a full table and CSV.

The maths behind dollar-cost averaging

Each buy of amount A at price pi purchases A ÷ pi units (less any fee). After n buys you hold Σ A ÷ pi units for n × A invested, so your average cost is n ÷ Σ(1 ÷ pi) — the harmonic mean of the prices, which is always less than or equal to their arithmetic mean.

Worked example: $100 at prices 10, 20, 5 and 10 buys 10 + 5 + 20 + 10 = 45 units for $400, an average cost of $8.89 even though the average price was $11.25. At the final price of 10 the holding is worth $450 (+12.5%). A $400 lump sum at the first price would have bought 40 units worth $400, so here DCA came out $50 ahead — because the price dipped in the middle.

DCA vs lump sum: when each wins

  • In a market that mostly rises, a lump sum invested early usually ends ahead, because more money is exposed to the rise for longer.
  • In a market that falls and then recovers, DCA tends to win: it keeps buying cheaply during the dip.
  • In a market that falls and stays down, DCA loses less than a lump sum, but it still loses.
  • The main benefit of DCA is behavioural: it removes the need to time the market and spreads the regret of a bad entry.
  • Simulations with the same trend but different seeds show how much of the outcome is luck of the path — try several.

Related calculators

For staking yield on the coins you accumulate, see the staking rewards calculator; for providing them as liquidity, the impermanent loss calculator. For a single trade’s profit use the crypto profit calculator, and for mutual fund SIPs at a constant assumed return, the SIP calculator. To value one past purchase between two dates, use the bitcoin investment calculator.

DCA Calculator FAQ

How does a DCA calculator work?

It divides the fixed amount by each price to get the units bought at every interval, adds them up, and values the total at the last price. The average cost is total invested divided by total units.

Is DCA better than investing a lump sum?

Not always. Historically lump sums often win in rising markets, while DCA wins when prices dip after you start. Use the comparison here with real or simulated prices to see both.

Where do I get historical prices to paste?

Most exchanges and charting sites let you export daily or weekly closes as CSV. Paste the closing price column, or whole “date,price” lines, oldest first.

Does the DCA calculator include fees and taxes?

It deducts a percentage fee you choose from every buy. Taxes, spreads and withdrawal fees are not included; add an estimate to the fee if you want them reflected.

Why is my average cost lower than the average price?

Because a fixed amount buys more units at low prices. The average cost is the harmonic mean of the prices, which is always at or below the arithmetic mean.

Is this investment advice?

No. It is a calculator for the prices you give it. Crypto assets are volatile and you can lose money with any strategy.

You might also need