Plan your Canadian retirement in minutes. Model CPP, OAS, GIS, pensions, and tax — then run Monte Carlo simulations and historical backtests — all in your browser, privately.
Everything runs locally in your browser. Your scenarios are stored in localStorage only — nothing is sent to a server.
Most Canadian retirement planners live in Excel spreadsheets or cost hundreds. RE:tired is free, open-source, and runs entirely on your computer — no servers, no fees, no data harvesting. Whether you're a couple with DB pensions or self-employed with a TFSA, you can stress-test your plan in minutes.
- Accounts: RRSP, RRIF, TFSA, taxable (with ACB), cash cushion
- Government benefits: CPP, OAS, GIS (income-tested and tax-aware)
- Pensions: defined-benefit and bridge/temporary pensions, per-pension CPI indexing
- Spending phases: desired after-tax spending (today's dollars), with optional go-go / slow-go / no-go reductions
- Spouse: model a second, independent projection combined into a household verdict
- Deterministic projection — year-by-year balances, withdrawals, income tax, CPP / OAS / GIS / pension income from today to your max age
- Verdict cards — wealth at retirement, depletion age, withdrawal rate, and ON TRACK / SHORTFALL status, updated live as you change inputs
- Tax model — 2026 federal + provincial brackets, Ontario surtax, Quebec abatement; optional indexation to CPI
- Monte Carlo — randomized return/volatility futures with success-rate bands
- Historical backtest — replay your plan against real Canadian return series since 1970
- One-time flows — house sale (inflow) or major purchase (outflow)
- Export/import scenarios as JSON
- Shareable links (no server)
- Print a one-page summary
npm install
npm run devVisit http://localhost:5173
- Personal Profile — age, retirement age, max age, province
- Account Balances — current balances in each account
- Contribution Rates — annual additions until retirement
- Government Benefits — CPP start age & monthly amount; OAS start age & years in Canada
- Pensions (optional) — add a DB or bridge pension
- Spending Phases — desired after-tax spending, with optional later-life reductions
See the verdict cards update live. Run Monte Carlo for success probability, or Backtest to see how the plan would have fared historically.
npm run build # multi-file site -> dist/ (GitHub Pages, base /retired/)
npm run build:single # ONE self-contained HTML -> dist-single/ (works from file://)
npm run build:all # bothThe single-file build inlines every asset (JS, CSS, favicon) into one HTML file you can open directly from disk or pass around as an attachment.
The projection engine and tax/GIS logic are covered by Vitest:
npm test # run the engine/library test suites once
npm run test:watch # re-run on changeTests live beside the code as src/**/*.test.ts and run in Node — they gate the CI deploy, so a failing test blocks the site from publishing.
├── src/
│ ├── components/ # TopHeader, SidebarForm, MetricCards, ScheduleTable,
│ │ # MonteCarloChart, BacktestPanel, PrintSummary, Help/Settings…
│ ├── lib/
│ │ ├── retirementEngine.ts # the drawdown engine
│ │ ├── canadianTax.ts # 2026 federal + provincial tax, CPP/OAS/GIS/RRIF
│ │ ├── monteCarlo.ts # Monte Carlo simulation
│ │ ├── historicalReturns.ts # backtest return series
│ │ ├── appConfig.ts # tax tables + engine config (editable in Settings)
│ │ └── … # scenario storage, share links, agent ingest
│ ├── lib/*.test.ts # Vitest suites for the engine, tax/GIS, strategies, storage
│ ├── test/helpers.ts # shared fixtures (base inputs, test config)
│ ├── App.tsx
│ └── main.tsx
├── .github/workflows/deploy.yml # tests + Pages deploy + tagged releases
└── vite.config.ts # multi-file (/retired/) vs single-file builds
Releases are built by GitHub Actions. Push a version tag and the workflow deploys the site to Pages and attaches both build flavours to a GitHub Release:
git tag -a v0.1.0 -m "..."
git push origin main
git push origin v0.1.0- Monte Carlo assumes normal distribution of returns; real markets exhibit fat tails
- GIS clawback is simplified to federal rules; provincial variations not yet modeled
- Inflation indexation is approximate for all benefits and tax brackets
- No support for US cross-border or non-resident scenarios
See ROADMAP.md for planned improvements and explicit non-goals.
The drawdown engine was originally built on retirement_drawdown_simulator_canada by danielabar — a Canadian retirement stress-tester modelling RRSP / taxable / TFSA withdrawals with Canadian taxes, CPP/OAS, and RRIF rules. (The upstream repository carried no LICENSE file at the time it was incorporated, checked 2026-08-23.)
Built with React 19, Vite, TypeScript, Tailwind CSS, and Lucide icons — largely pair-programmed with an AI assistant.
MIT — see LICENSE.
For education and exploration only — estimates only, not financial, tax, or investment advice. Consult a qualified professional before acting on any projection.