# Dollar-cost averaging calculator > How do changing prices affect regular purchases? Compare three equal purchases at changing prices with one purchase at the first price. Model three equal investments at different prices. See units bought, average cost, current value and a same-start lump-sum comparison, with fractional units. - Page: https://how.box/dca/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/dca/?investment={investment}&price_one={price_one}&price_two={price_two}&price_three={price_three}¤t_price={current_price}¤cy={currency} - `investment` (number 0.01 to 1e8): Investment each period. money Example: `100`. - `price_one` (number 0.000001 to 1e8): First purchase price. money Example: `10`. - `price_two` (number 0.000001 to 1e8): Second purchase price. money Example: `5`. - `price_three` (number 0.000001 to 1e8): Third purchase price. money Example: `10`. - `current_price` (number 0 to 1e8): Valuation price. money Example: `10`. - `currency` (AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLE, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UYW, UZS, VES, VND, VUV, WST, XAF, XCD, XCG, XDR, XOF, XPF, XSU, YER, ZAR, ZMW, ZWG or ZWL): Currency. Example: `EUR`. Example answer: https://how.box/dca/?investment=100&price_one=10&price_two=5&price_three=10¤t_price=10¤cy=EUR A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `dca_calculate`: Model three equal investments at different prices. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"dca_calculate","arguments":{"investment":100,"price_one":10,"price_two":5,"price_three":10,"current_price":10,"currency":"EUR"}}}` - GET: https://how.box/mcp/run/dca_calculate?investment=100&price_one=10&price_two=5&price_three=10¤t_price=10¤cy=EUR ## How it works Dollar-cost averaging invests equal amounts at regular intervals. Enter three purchase prices in chronological order. Each fixed payment buys more units at lower prices and fewer at higher prices. For equal payment A and prices p₁, p₂ and p₃, total units U = A/p₁ + A/p₂ + A/p₃. Average cost is 3A/U, not the arithmetic mean of the prices. Three payments of 100 at prices 10, 5 and 10 buy 40 units at an average cost of 7.5. The comparison invests all 3A at the first price and values both portfolios at the same valuation price. It assumes the full amount was available at the start and gives no interest to uninvested cash. Fractional purchases are allowed. No price forecast is made. Fees, taxes, dividends, spreads and currency conversion are excluded. The comparison can favor either approach and does not guarantee a profit. ## FAQ **Why is average cost different from average price?** You buy different numbers of units at each price. Total money divided by total units weights the purchases correctly. **Can I enter weekly rather than monthly prices?** Yes. Use any three equally spaced purchase dates and the same investment on each. **Does the lump-sum comparison assume all cash was available?** Yes. Without that assumption it is not a like-for-like alternative. **Can the investment lose money?** Yes. A valuation price below your average cost produces a loss. **Is dollar-cost averaging better than investing everything at once?** Neither always wins. It buys more units when prices are low, but a lump sum invested early gains more when prices keep rising. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)