Loan-to-Invest Calculator
Finance kits
Compare borrowing a lump sum to invest at once against dollar-cost averaging — see the break-even return rate and the gap in annualized returns.
Two assets, one question: how much in each? Set their return and volatility, and let the simulation find your optimal split.
Capital & horizon
Asset A
Asset B
Optimize for
Picks the split with the best return per unit of risk (CAGR ÷ volatility). Usually an interior blend, since diversification lowers risk faster than it lowers return.
Ending wealth by allocation
Based on 168000 simulated paths. A simplified lognormal model — not a forecast. Real markets have fatter tails and shifting correlations; treat these as rough odds, not promises.
Pick any two tickers and a start month to see what the five split ratios actually did — the Monte Carlo above says "what might happen", this says "what did".
Data as of 2026-07-04 (Yahoo Finance monthly).
Replay result 1999-04 → 2026-06
Actual portfolio growth per split
The replay uses real (partly synthetic-backfilled) monthly adjusted prices — dividends and splits included; trading costs, taxes, spreads and FX are not. Prices come from Yahoo Finance via automated processing and may contain errors or gaps; synthetic-backfill segments are estimates that can deviate from actual performance, so treat the results as indicative only. Past performance does not predict future returns.
This is a free side project I built in my spare time. If it saved you time or helped you think through a decision, buying me a coffee keeps the lights on!
Jump into a pre-filled mix, then tweak every number to fit your own holdings.
Why does the classic 60/40 work? Monte-Carlo the median return and downside of different stock/bond splits to find the allocation that fits your risk.
Nasdaq 100 (QQQ) returns more but swings harder; S&P 500 (SPY) is steadier. Instead of choosing, compute the best blend and its downside risk.
Young, long horizon, can stomach big swings? Model a Nasdaq-100-plus-semiconductors growth mix over 25 years to see the upside — and the cost — of going aggressive.
All-in on US stocks, or spread some abroad? Monte-Carlo the downside of concentration vs geographic diversification to find your global allocation.
Built by indigo.la.ringo · AppicLab ·
More small utilities from AppicLab
Finance kits
Compare borrowing a lump sum to invest at once against dollar-cost averaging — see the break-even return rate and the gap in annualized returns.
Finance kits
Enter your savings, expenses, and return rate to calculate when you can reach Financial Independence (FIRE).
Finance kits
Check your financial fitness with four key ratios — debt-to-asset, current ratio, emergency fund and debt-service (DSR) — and estimate how much more you can safely borrow to invest.
The Portfolio Allocation Optimizer answers a question every two-fund investor faces: how much should go in each? Enter the expected return (CAGR) and volatility for two assets, set how correlated they are, and it runs thousands of Monte Carlo paths across every split from 0% to 100% — then highlights the mix that maximizes your chosen objective, whether that's risk-adjusted return, the median outcome, or the worst-case floor. Because the two assets rarely move in lockstep, a blend often beats betting everything on either one.
About the Author
indigo.la.ringo
A software engineer chasing the slash-career dream. Was trying to figure out my relationship with the world — now being forced to figure out my relationship with AI. Lately, obsessed with figuring out the relationship between people and money. Either way, whatever answer I land on, it's fine.