Dollar-cost averaging vs. lump-sum calculator
calc_dcaRead-only educational calculator. Compares dollar-cost averaging versus lump-sum investing across market scenarios with configurable cadence and horizon. Returns a result from caller-supplied public inputs without changing page or account state, accessing BetterOff customer data, or providing personalized financial advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cadence | No | Contribution cadence — How often the calculator makes an equal DCA purchase. | monthly |
| endPrice | No | End price — The price used to value both strategies at the end. | |
| scenario | No | Market scenario — A simplified price path for comparison, not a market forecast. | bull |
| startPrice | No | Start price — The price used for the lump-sum purchase and the first DCA purchase. | |
| cashYieldPct | No | Annual yield on uninvested cash — Yield earned while cash waits for later DCA purchases. | |
| horizonYears | No | Horizon (years) — How long DCA takes to invest the full amount. | |
| volatilityPct | No | Illustrative path swing (%) — Controls a deterministic sine-shaped price swing. It is not statistical volatility or a forecast. | |
| feePerPurchase | No | Fee per purchase — A flat trading fee deducted from every scheduled purchase. | |
| totalInvestment | No | Total investment — The same total is invested all at once or divided across the DCA schedule. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||