How a simulated year flows
The exact ordering of adjustments, taxes, withdrawals, returns, rebalance.
TL;DR. Each cycle replays a historical window one year at a time. Inside a year, the simulator runs a fixed sequence of phases: initialize → apply adjustments → record taxable events → plan withdrawals → fund HSA → calculate base spending → generate cash-flow deposits → execute withdrawals → pay last year's taxes → apply portfolio returns → rebalance. When a year-N number looks surprising, the answer is almost always upstream in this list.
The phases, in order
- Initialize the year. Open new log buffers on every account, reset per-year accumulators (dividends used, payroll-deposited account IDs).
- Resolve adjustments. Figure out which Inflows and Outflows apply this calendar year. Income, spending, post-tax, HSA contributions, and Real Estate are bucketed separately so each bucket can be processed at the correct moment below.
- Record taxable events. For each income adjustment (job, pension, Social Security, other income), generate a taxable event for next year's tax bill. Job adjustments also run payroll: pre-tax 401(k)/403(b)/457(b) deferrals reduce taxable wages; FICA, deductions, and deferrals exit the household pool before surplus is computed.
- Plan withdrawals. Using your account order and any bracket-fill / ACA / IRMAA caps, decide how the year's spending plus last year's tax bill will be sourced.
- Fund HSA. Apply HSA contributions before base spending so the HSA's below-the-line tax treatment is captured for the year.
- Calculate base spending. Run your chosen spending-plan rule against the current portfolio, last year's spending, and inflation to get this year's base spending number.
- Generate cash-flow actions. Route any surplus through your cash-flow priorities: deposits, contributions, cash reserves, debt paydown, etc.
- Execute withdrawals. Actually withdraw the planned amounts from each account, recording realized gains, ordinary income, and early-withdrawal penalties as taxable events.
- Pay last year's taxes. Settle the tax bill computed from the prior year's events, including federal income, capital gains, FICA-related items, ACA reconciliation, and state taxes if configured.
- Apply portfolio returns. Grow each asset by this calendar year's historical return, applied to the post-withdrawal balance.
- Rebalance. Drift the portfolio back toward its target allocation. HSA can be excluded if configured; cash reserves are honored.
- Advance the clock. Increment
current_yearand repeat until the horizon ends or the portfolio depletes.
Related
Was this helpful?
For sim-specific issues, open Plan Diagnostics from the Proof view. For everything else, reach out to support.