How we calculate

This is how Savegoal calculates how much to save each month and how long it takes to reach your goal.

The formulas, step by step

  1. We turn the annual return r (in %) into a monthly rate:i = r / 100 / 12
  2. How much to save each month, where M is your goal, P what you start with and m the months:A = (M − P × (1+i)^m) × i / ((1+i)^m − 1)With no return (i = 0):A = (M − P) / mIt's never below 0: if you already get there, the result is 0.
  3. How long it takes, saving A each month (rounded up):meses = ln((M × i + A) / (P × i + A)) / ln(1 + i)With no return:meses = (M − P) / A
  4. Balance at month k, used for the chart:P × (1+i)^k + A × ((1+i)^k − 1) / i
  5. Savings are added at the end of each month.

Worked example

A goal of US$100,000 in 24 months, starting from US$0 and with no return:

01 · What's left for your goal

US$100,000.00

M − P = US$100,000 − US$0

02 · Monthly rate

0

i = 0 / 100 / 12

03 · Monthly savings

US$4,166.67

A = (M − P) / m = US$100,000 / 24

04 · Check: months to get there

24

⌈(M − P) / A⌉ = ⌈US$100,000 / US$4,166.67⌉

What it doesn't include

It doesn't include inflation, fees, taxes or changes in the return. It's an estimate with a fixed return.

Each formula is checked against cases worked out by hand.