DCA Calculator
Model weekly, bi-weekly, or monthly dollar-cost averaging against cost basis, fee drag, and lump-sum investing.
Portfolio value vs cost basis and lump sum
- Year
- Yr 5
- Ending value
- $20,751.70
- Total invested
- $16,000.00
- Lump-sum equivalent
- $25,447.66
- Total gain
- +$4,751.70 (+29.7%)
- Final portfolio value
- $20,752
- +29.7%
- Total invested
- $16,000
- 60 monthly
- Total gain
- +$4,752
- Effective CAGR
- 5.34%/yr
- Lump-sum equivalent: $25,448
- Invested principal77.1%
- Compounding gain22.9%
Parameters
Year-by-year DCA schedule
| Year | Total invested | Annual gain | Ending value | Return |
|---|---|---|---|---|
| 1 | $4,000.00 | +$253.04 | $4,253.04 | +6.3% |
| 2 | $7,000.00 | +$569.40 | $7,822.44 | +11.8% |
| 3 | $10,000.00 | +$916.52 | $11,738.96 | +17.4% |
| 4 | $13,000.00 | +$1,297.41 | $16,036.37 | +23.4% |
| 5 | $16,000.00 | +$1,715.33 | $20,751.70 | +29.7% |
Dollar-cost averaging simulation model
Each recurring contribution enters at the start of its interval and compounds at the net effective periodic rate after annual fee or volatility drag.
- Net annual return adjusts expected return for annual drag: (1 + r) * (1 - drag) - 1.
- Periodic rate converts the annual rate across 52 weekly, 26 bi-weekly, or 12 monthly purchases per year.
- Lump-Sum comparison models investing the exact same total capital on Day 1 at the same net rate.
- Effective CAGR measures annualized growth on total invested cost basis over the full duration.
Deterministic growth projection for scenario comparison; real crypto and equity markets experience drawdowns.
Seed calculators with live Data API & MCP prices
Read API documentationFetch live spot, perpetual, or macro reference prices from Darvas REST API or MCP to automate sizing and risk calculations in your own scripts.
REST API (https://api.darvas.app/v1)
curl -H "Authorization: Bearer $DARVAS_API_KEY" \
"https://api.darvas.app/v1/crypto/prices/snapshot?ticker=BTC-USDT"MCP Server (https://api.darvas.app/mcp?mode=code)
POST https://api.darvas.app/mcp?mode=code
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "execute",
"arguments": {
"code": "async () => darvas.request({ method: 'GET', path: '/crypto/prices/snapshot', query: { ticker: 'BTC-USDT' } })"
}
}
}Frequently asked questions
How does DCA compare against lump-sum investing in this simulator?
In steadily rising markets, investing the entire budget on Day 1 outperforms gradual entries because capital spends more time invested. In falling or volatile markets, DCA lowers downside exposure while building a position steadily.
Does weekly vs monthly cadence change final portfolio value?
For the same total annual contribution, differences between weekly, bi-weekly, and monthly cadence are modest. Changing the cadence here keeps your per-purchase amount fixed so you can test higher or lower contribution budgets.
Why include a fee or volatility drag input?
Exchange spreads, ETF expense ratios, and volatility drag reduce geometric compounded returns relative to headline arithmetic averages. Even a 1% drag compounds meaningfully over 10 years.
Can I use this DCA calculator for Bitcoin, ETFs, and stocks?
Yes. Use the return presets (Conservative 6%, S&P 500 10%, Growth 14%, BTC 25%) or enter any custom return assumption for equities, index ETFs, or crypto.