CalcStocks
Investing maths, shown in full
EN

DCA Calculator

Work out what investing a fixed amount at regular intervals turns into — the value, the units bought, and the average price you end up paying. Then see the same total invested all at once instead, with the money you have not deployed yet earning interest while it waits.

Dollar-cost averaging vs lump sum, same money Average cost per unit shown Interest on the waiting cash included
Your plan
$

Buying more often changes very little. Buying at all is what matters.

$

Anything already invested on day one, before the recurring contributions begin.

Assumptions

These are your assumptions, not forecasts. Change them and the whole page updates as you type.

%

Treated as an effective annual rate. 7% means the asset actually gains 7% over a year, not 7% divided into twelve.

$

Price of one share, unit or coin today. It does not change the money — it is what makes the average cost you pay visible.

%

Only used for the lump sum comparison, where money you have not invested yet sits in savings. This is the input the comparison lives or dies on.

Value of the plan at the end

$0

You put in $0 and gained $0

Average cost per unit
$0
Units bought
0
Ending unit price
$0
Return on the money invested
0%

The same money, invested all at once

Both columns commit the identical total. The left one feeds it in gradually and holds the remainder in cash at the rate you set; the right one invests everything on day one. The cash line is why the two columns do not simply differ by time in the market.

Spread out (DCA)All at once
Total committed$0$0
Average cost per unit$0$0
Invested portfolio$0$0
Cash still in hand$0$0
Total at the end$0$0

The gap between the two is $0 — what this decision is worth on your assumptions.

How cheaply you would have had to buy

Spreading the money out only wins if it buys at a lower average price than investing today would have. This is that threshold — computed exactly, with no invented crash scenario. The gap is the fall a real market would have to deliver while you were still buying.

Average price needed to draw level
$0
Average price this plan pays
$0
Gap to close
0%

Working

Year by year

The simulation runs at your chosen frequency and is summarized here once a year. Watch the average cost drift up behind the price — that gap is dollar-cost averaging doing what it does.

Year Total invested Units Average cost Unit price Value

This projects a plan in nominal terms, with no fees and no tax. To take the same contributions further — fee drag, tax, inflation-adjusted values, the true internal rate of return, and an optional withdrawal phase — the compound interest calculator picks up from here with your figures already filled in.

Continue in the compound interest calculator

How to use it

1

Describe the plan

How much you invest, how often, and for how long. The answer is already on screen before you touch anything — change the numbers and it moves as you type.

2

Set the return honestly

The expected annual return is the one assumption that dominates everything else. Nobody knows it. Try a pessimistic figure alongside your optimistic one and see how much of the result was the plan and how much was the guess.

3

Price the waiting cash

If you have a lump sum today, the money you have not invested yet is earning something. Put that rate in. It is the difference between a real comparison and a foregone conclusion.

4

Read the break-even

Not “which wins” — they are the same money, so on a rising market the answer never changes. Read how far the price would have to fall while you were still buying before spreading it out paid off.

The formula behind the projection

A recurring investment plan is an annuity. Each contribution compounds for however many periods are left after it goes in, so the whole plan has a closed form — the calculator simulates it purchase by purchase and the two agree to the cent.

FV = P(1+i)^n + C × [((1+i)^n − 1) ÷ i], where i = (1+r)^(1/k) − 1

P is the starting balance, C the amount you invest each period, n the number of periods, k the periods per year, and r the expected annual return. Contributions are treated as end-of-period, matching the compound interest calculator on this site.

Why 7% here is not 7% everywhere

The annual return you enter is treated as an effective annual rate, so the per-period rate is its geometric root. Many calculators use r divided by 12 instead, which quietly turns a 10% assumption into 10.47% a year. Over ten years of monthly contributions that shortcut adds about 1.2% to the final figure for no reason. This one does not take it.

How to calculate your dollar-cost average

This is the arithmetic behind the name, and it is the answer to “how do I calculate my DCA”. It does not require a calculator at all — it is one division.

Average cost per unit = total invested ÷ total units bought

On the default plan, $60,000 spread over 120 monthly purchases buys 434.77 units, so the average cost is $138.00 — against an ending price of $196.72. Because each fixed payment buys more units when the price is low and fewer when it is high, the average lands below the simple average of the prices you paid at. That is the whole mechanism, and it is why the strategy is named after it.

Dollar-cost averaging vs lump sum investing

Here is the thing most calculators hide. If you assume a single constant positive return, investing everything today wins automatically — every dollar is in the market strictly longer, and there is no path on which that reverses. Presenting that as a finding is arithmetic with the answer written in advance. The comparison only becomes a real question once you account for where the uninvested money sits, and for the possibility that the price falls while you are still buying.

The cash you are holding is not free

If you have a lump sum today and choose to feed it in over time, the remainder is in savings earning something. Raise that rate and the gap narrows; set it equal to the expected return and the gap disappears entirely. That is the honest summary of this decision: you are comparing the expected return of the asset against the return on cash, for the average length of time the money waits.

If the money arrives with your paycheck, there is no decision

The comparison assumes you hold the full amount today and choose how to deploy it. Most people do not — the money arrives monthly, and investing it as it arrives is not a strategy chosen over lump sum, it is the only option, and it is the right one. In that case read the projection at the top and treat the comparison below as background.

Using it for Bitcoin and other crypto

The math is asset-agnostic: contributions, a price, and a rate of return. Nothing about it assumes equities, so it works as a Bitcoin or crypto DCA calculator provided you set an expected return you can defend — which for a volatile asset is a much harder claim to make than for a broad index. Volatility is exactly the condition under which spreading purchases out helps most, and it is also the condition under which any single expected return is least meaningful. Treat the output as one scenario, not a projection.

What this deliberately does not do

It does not backtest against real historical prices. Several tools on this search do, and it is a genuinely useful thing to want. This site holds no market data and does not fetch any, so rather than fake it against a stale snapshot the calculator stays forward-looking and says so. For real historical S&P 500 and Bitcoin series, go to a source that maintains them properly.

Worked examples

Four scenarios that show what the comparison is actually sensitive to.

  • The default plan. $500 a month for 10 years at 7% ends at $85,526 on $60,000 contributed — a gain of $25,526, at an average cost of $138.00 a unit against a closing price of $196.72.
  • A realistic deployment window. You have $60,000 today and feed it in over 12 months instead of 10 years: $5,000 a month, 7% expected, 4% on the cash. All at once ends at $64,200; spread out ends at $63,209. The decision is worth $991 — 1.7% of the pot, not the fortune a ten-year window implies.
  • The same window, told as a break-even. On that 12-month plan you would need an average purchase price of $102.08 to draw level, and the plan pays $103.71. The market would have to fall about 1.6% while you were buying. That is a coin flip, which is the honest description of this decision over a short window.
  • When cash pays as well as the market. Set the cash rate to 7% with a 7% expected return and the gap closes to zero exactly. Nothing else changes. That is the clearest statement of what you are really deciding.
  • Frequency barely matters. $500 monthly and $115.38 weekly are the same $6,000 a year, and after 10 years they differ by about $186 — two tenths of one percent. Choose whichever you will actually keep up.

Questions about dollar-cost averaging

The questions people actually search for, answered without a sales pitch.

DCA basics

What is dollar-cost averaging?

Investing a fixed amount of money at fixed intervals, regardless of price. Because the amount is fixed rather than the number of units, a low price buys more units and a high price buys fewer, so the average price you pay comes out below the simple average of the prices along the way. Every payroll-deducted retirement contribution is dollar-cost averaging, whether or not anyone calls it that.

How do I calculate my DCA?

Divide the total amount you have invested by the total number of units you own. If you put in $200 a month for three months and bought at $50, $40 and $62.50, you spent $600 and own 4 + 5 + 3.2 = 12.2 units, so your dollar-cost average is $49.18. Note that it is below $50.83, the plain average of the three prices — that difference is the averaging effect, and it appears whenever the price moves at all.

How much should I DCA per month?

Whatever you can sustain through a bad year without stopping, which is a budgeting question rather than a market one. The calculator is more useful run backwards: put in the figure you are considering, look at the ending value, and adjust until the result is worth the sacrifice. A smaller amount you keep paying for twenty years beats a larger one you abandon in year three, and consistency is the only part of this you control.

What is the best DCA method?

Automatic, on a fixed date, into something broad and cheap, and left alone. The interesting finding from running the numbers is how little the choices people agonize over actually matter: frequency changes the ten-year result by a fraction of a percent, and the timing within the month by less. What matters is the amount, the length of time, and not interrupting it.

How do I work out the CAGR of a DCA plan?

You cannot use the simple start-to-end CAGR formula, because the money did not all arrive at the start. Each contribution was invested for a different length of time, so the correct figure is the internal rate of return — the single rate that makes all the cash flows balance. The compound interest calculator on this site computes exactly that and reports it as an effective annual rate; the link under the table carries this plan into it.

Is daily or weekly DCA better than monthly?

Barely distinguishable. Switching the default plan from monthly to weekly changes the ten-year result by about $186 on $85,526, and daily would move it less still. More frequent buying does slightly smooth the price you pay, but the effect is swamped by the return assumption and by whether you keep contributing at all. Pick the frequency that matches when you get paid.

Your plan

What return should I put in?

Something you would defend out loud. For a broad developed-market equity index, long-run nominal returns have historically been in the high single digits before inflation, which is where the 7% default comes from — it is a convention, not a forecast. The honest use of this field is to run it twice: once at the figure you hope for and once several points lower, and see how much of your plan depended on the optimistic guess.

Does the starting unit price change the answer?

Not to the money. Halve it and you buy twice as many units at half the price, and the value is identical to the cent — there is a test asserting exactly that. It exists so the average cost per unit and the unit count are meaningful figures rather than abstractions, since the average price is what the phrase dollar-cost averaging is actually referring to.

What is the starting balance for?

Money already invested on day one, before the recurring contributions begin. It compounds for the full period rather than being fed in gradually. Leave it at zero if you are starting from nothing; set it if you are adding a monthly plan on top of an existing holding.

Can I use this as a DCA calculator for the S&P 500, VOO or QQQ?

Yes, with the caveat that it projects forward from an assumption rather than replaying what those funds actually did. Enter the index level or the ETF share price as the starting unit price and the long-run return you want to assume. If what you want is the historical record — what monthly investing in VOO since 2015 would really have produced — that is a backtest against real price data, which this calculator deliberately does not do.

Does it work for mutual funds and index funds?

Yes, and fractional units make it a better fit there than for individual shares — fund purchases are not rounded to whole units, which is what the calculator assumes. For an individual stock bought in whole shares the results will be slightly optimistic, because a real broker leaves a small cash remainder each time that this model puts to work immediately.

DCA vs lump sum

Is lump sum investing better than dollar-cost averaging?

If you hold the money today and markets rise more often than they fall, then usually yes — and the reason is unglamorous: money invested earlier is invested longer. The size of the edge depends almost entirely on how long you would have taken to deploy and what the cash earns meanwhile. Over a twelve-month window at current cash rates it is worth a couple of percent, not a fortune. Spreading it out is not irrational; you are buying a smaller worst case, and paying a known price for it.

Where does “lump sum wins two-thirds of the time” come from?

Vanguard's study Cost averaging: invest now or temporarily hold your cash?, which compared immediate investment against twelve-month averaging across historical US, UK and Australian data and found immediate investment ahead in roughly two-thirds of periods. It is quoted constantly and rarely explained. The mechanism is the one modeled here: markets rose in most periods, so the money held back missed the rise while earning a cash return instead.

Why does the comparison always favor investing all at once?

Because a single constant expected return contains no falling market for averaging to exploit. This is worth being blunt about: any calculator that compares DCA against lump sum from one return input has already decided the answer, and several of the popular ones present that as a result. The two things that make it a real question are the return on the cash you are holding — set it equal to the expected return and the gap vanishes — and the break-even price below, which tells you how far the market would have to fall for the other answer to be right.

What does the cash rate do to the comparison?

It is the single most important input in the lower half of the page and the one no competing calculator offers. Money you have not deployed is not sitting in a drawer; it is earning something. At a 0% cash rate the default plan's gap is $32,503. At 4% it falls to $17,037. At 7%, matching the expected return, it is exactly zero. The decision is essentially a bet on the gap between the two rates.

What is the break-even average price?

The average purchase price at which spreading the money out would have drawn exactly level with investing it today. It is solved in closed form rather than by inventing a crash, so it does not depend on any scenario. Compare it with the average price your plan actually pays: the gap between them is how far the market would have to fall while you were still buying. An earlier version of this page instead reported a break-even crash depth, and that was removed — bending the price path into a V does not merely lower prices, it also defers the growth to the second half, and that artifact drove almost the entire answer.

I get paid monthly. Should I even be comparing against a lump sum?

No, and this is the most common way the comparison is misread. It assumes you are holding the whole amount today and choosing how to release it. If the money arrives with your salary there is no lump sum to invest — investing each paycheck as it lands is simply investing at the first opportunity, which is the same principle that makes lump sum win. Read the projection at the top; the comparison below is context, not a verdict on what you are doing.

Scope and limits

Can I use this as a Bitcoin DCA calculator?

The math does not care what the asset is — set the starting unit price to the current Bitcoin price and enter an expected annual return. The difficulty is not the calculator, it is the input: any single expected return for an asset that has repeatedly halved and repeatedly tripled is a much weaker claim than the same figure for a broad equity index. Volatility is both the reason averaging into crypto appeals and the reason a single-rate projection tells you least there. If you want the historical record of Bitcoin DCA, you want a backtest against real price history, which this is not.

Does it backtest real historical prices?

No. This site holds no market data and fetches none, on purpose — a calculator quietly serving a stale price snapshot is worse than one that says what it does not know. Everything here projects forward from assumptions you can see and change. For actual historical series, use a source that maintains them.

Are fees and taxes included?

Not on this page. Commissions are assumed to be zero, and no tax is deducted on the way in or out. For an ongoing plan those two are not small over decades, which is why the compound interest calculator carries an explicit fee drag and tax rate. The link under the year-by-year table hands this plan straight to it with your figures already filled in.

Are the results adjusted for inflation?

No — every figure here is nominal. A $85,526 balance in ten years does not buy what $85,526 buys today, and at 3% inflation it is worth about $63,600 in today's money. Rather than duplicate the machinery, this page keeps to nominal and the compound interest calculator reports both nominal and real.

Is anything I type stored or sent anywhere?

No. The entire calculation runs in your browser. There is no account, no server call when you change a figure, and nothing you enter leaves the page — the Copy link button encodes your inputs into the URL so you can share or bookmark a scenario, and that link is the only place they ever go.

Method and limitations

The plan is simulated one purchase at a time at your chosen frequency, not approximated annually. The expected annual return is treated as an effective annual rate and converted to a per-period rate geometrically, so 7% a year means 7% a year; contributions are end-of-period, matching the compound interest calculator on this site. Units bought each period are the contribution divided by that period's price, and the average cost is the total invested divided by the units owned. The lump sum column commits the identical total on day one; the DCA column holds the remainder in cash at the rate you set, drawing each contribution from it, and reports the leftover interest separately rather than folding it into the portfolio. The break-even average price is solved in closed form from the equality of the two outcomes. The arithmetic is checked against independently written closed-form formulas in the site's test suite.

Returns are a single constant rate, so no real price path, volatility or sequence-of-returns risk is modeled — and for the lump sum comparison that is the central limitation, since a falling market is precisely the case in which averaging helps. Figures are nominal, before inflation. Commissions, spreads and taxes are assumed to be zero, and fractional units are assumed to be available. No live or historical market data is used. Built and maintained by CalcStocks; nothing here is investment advice.

Contact

Found a bug, disagree with a formula, or want a calculator that is not here yet? Tell us.

Your message is emailed to us and not stored in a database. Please do not include account numbers, passwords or other sensitive details.