UtilityToolsLab

© 2026 UtilityToolsLab. Built and maintained by the UtilityToolsLab Team.

Free eBooks·About·Changelog·Privacy Policy·Terms of Service·Report a bug
HomeDeFi & TokenomicsDCA Simulator

Related Tools

Token SupplyVesting PlannerImpermanent LossAPY/APR ConverterStaking RewardsLP Share Calc

Crypto DCA Simulator

Simulate a Dollar-Cost Averaging strategy for crypto: enter start and end prices, periods and investment amount to see cost basis, portfolio value and P&L.

You Might Also Like

All DeFi & Tokenomics

Token Supply

Convert ERC-20 token amounts to the base-unit integer a contract call takes and back, and measure any holding against total supply. BigInt-exact.

Vesting Planner

Turn an allocation, cliff and vesting period into a dated unlock schedule with a cumulative curve and CSV export. Handles both cliff conventions.

Impermanent Loss

Model the impermanent loss from a 50/50 liquidity pool as one token's price moves, entirely in your browser, with dollar amounts, not just percent.

APY/APR Converter

Convert APY to APR or APR to APY across 8 compounding frequencies. Shows the formula, result, and a full comparison table. Includes continuous compounding.

Dollar-cost averaging beats most market-timing strategies not because it finds the best entry — it doesn't — but because it removes the need to find one. Buying a fixed dollar amount at regular intervals means you acquire more coins when prices are low and fewer when prices are high, which pushes the average cost basis below the arithmetic mean of the prices you bought at.

Set a starting price, an ending price, how many periods you want to simulate, and how much you invest each period. Load Sample runs 12 monthly $100 BTC purchases from $30,000 to $65,000: total invested $1,200, average cost basis roughly $43,600, and a portfolio worth about $2,055 at the final price — a gain of $855 on $1,200 in. The simulation also shows how the same $1,200 would have done as a lump sum on day one, so you can compare both strategies directly. Nothing is sent to a server; all arithmetic runs in your browser.

The Formula: How DCA Cost Basis Is Calculated

  • Price interpolation: each period's price is linearly interpolated between the start and end price, so the simulation is fully deterministic — no randomness, no live data feed.
  • Coins per period: each purchase buys investmentAmount ÷ periodPrice coins. The per-period row shows exactly how many coins each purchase adds.
  • Average cost basis: total invested ÷ total coins accumulated. In a rising market the DCA average sits below the simple average of prices because more coins are purchased at the earlier, lower prices.
  • Lump-sum comparison: the same total investment made entirely at the starting price. The "vs Lump Sum" figure tells you which strategy would have performed better at the current price you enter.

Worked Example: ETH Bear Market

Click Load Sample twice to reach the ETH bear market scenario: 24 weekly $50 purchases from $2,000 down to $900. Total invested is $1,200. Because you buy more ETH at every price drop, the average cost basis lands well below $1,450 (the arithmetic midpoint). If ETH recovers to $900 at the end, you are near break-even; if it recovers higher, DCA outperforms the equivalent lump-sum entry at $2,000. Set the current price field to any recovery value to model the exit.

Accuracy Limits and Input Constraints

Periods are capped at 1,000 to keep the table responsive; the schedule shows the first 24 rows for long runs. Coin amounts are displayed to 8 decimal places for sub-cent holdings, matching Bitcoin's satoshi precision. The lump-sum comparison always uses period-1's interpolated price as the entry point, not a separate input. If you want to model a specific lump-sum entry price, set the start price to that value. Fractional periods are not supported; enter a whole number.

DCA Summary — 12 monthly purchases

Total Invested

$1,200.00

12 × $100.00

Total BTC

0.026759

BTC accumulated

Avg Cost Basis

$44,844.21

per BTC

Portfolio Value

$1,739.35

at $65,000/coin

Profit / Loss

+$539.35

+44.95%

vs Lump Sum

$860.65

Lump sum wins

Purchase Schedule
PeriodPrice (USD)BTC BoughtCumulative CoinsCumulative Invested
1$30,000.000.003333330.00333333$100.00
2$33,181.820.003013700.00634703$200.00
3$36,363.640.002750000.00909703$300.00
4$39,545.450.002528740.011626$400.00
5$42,727.270.002340430.013966$500.00
6$45,909.090.002178220.016144$600.00
7$49,090.910.002037040.018181$700.00
8$52,272.730.001913040.020094$800.00
9$55,454.550.001803280.021898$900.00
10$58,636.360.001705430.023603$1,000.00
11$61,818.180.001617650.025221$1,100.00
12$65,000.000.001538460.026759$1,200.00