{
  "id": "retirement",
  "version": "01f8ca2d965d",
  "status": "published",
  "name": "Retirement Calculator",
  "question": "How much do I need for retirement?",
  "summary": "Computes the savings you need at retirement for the income you want, what your savings and contributions grow to by then, the extra monthly saving that closes a gap, and how long the money lasts.",
  "category": "finance",
  "subcategory": "retirement",
  "url": "https://www.acalculator.org/finance/retirement-calculator",
  "markdown": "https://www.acalculator.org/finance/retirement-calculator.md",
  "kind": "schedule",
  "method": "Saving years: each month the balance grows by (1 + R)^(1/12) − 1, then the saving is added. Retirement: W = (income − Social Security and pensions) × (1 + inflation)^(years to retirement), taken at the start of each month and raised by inflation each year; savings needed = W × a × Σ ((1 + inflation) ÷ (1 + R₂))^k, with a the value of 12 start-of-month payments of 1.",
  "assumptions": [
    "Returns stay the same every year. Real returns go up and down, and a bad year early in retirement matters most.",
    "Your saving is added at the end of each month and rises at the start of each new year. Withdrawals are taken at the start of each month and rise with inflation each year.",
    "The income you want and your Social Security and pensions are in today’s money and rise with inflation.",
    "Taxes, fees and required minimum distributions are not included.",
    "This is an estimate for planning, not financial advice."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "age": {
        "title": "Your age now",
        "description": "Your age today, in whole years.",
        "type": "integer",
        "minimum": 18,
        "maximum": 90
      },
      "retire": {
        "title": "Age you retire",
        "description": "The age you stop saving and start living on your savings.",
        "type": "integer",
        "minimum": 19,
        "maximum": 100
      },
      "until": {
        "title": "Plan for money until age",
        "description": "The age your savings should last to.",
        "type": "integer",
        "minimum": 20,
        "maximum": 120
      },
      "savings": {
        "title": "Savings now",
        "description": "What you have saved for retirement today, in every account together.",
        "type": "number",
        "x-unit": "USD",
        "minimum": 0,
        "maximum": 10000000000
      },
      "save": {
        "title": "You save",
        "description": "What you add to your retirement savings, per month or per year. A yearly amount is split into 12.",
        "type": "number",
        "x-unit": "USD",
        "x-period": "month",
        "minimum": 0,
        "maximum": 100000000
      },
      "raise": {
        "title": "Raise your saving each year by",
        "description": "The percent your saving goes up at the start of each new year, for example with pay raises.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 20
      },
      "rate": {
        "title": "Yearly return before retirement",
        "description": "The yearly return on your savings until you retire. It stays the same every year.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 30
      },
      "rateafter": {
        "title": "Yearly return in retirement",
        "description": "The yearly return on what is left once you retire. It stays the same every year.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 30
      },
      "inflation": {
        "title": "Inflation",
        "description": "How fast prices rise each year. Your income need grows at this rate.",
        "type": "number",
        "x-unit": "percent",
        "minimum": 0,
        "maximum": 20
      },
      "income": {
        "title": "Income you want in retirement",
        "description": "The income you want each month (or year) in retirement, in today’s money.",
        "type": "number",
        "x-unit": "USD",
        "x-period": "month",
        "minimum": 0,
        "maximum": 100000000
      },
      "other": {
        "title": "Social Security and pensions",
        "description": "Income you expect from Social Security, pensions and other sources in retirement, in today’s money. Your savings pay the rest.",
        "type": "number",
        "x-unit": "USD",
        "x-period": "month",
        "minimum": 0,
        "maximum": 100000000
      }
    }
  },
  "outputs": {
    "need": {
      "label": "You need at retirement",
      "description": "The savings at your retirement age that pay the income you want (less Social Security and pensions), rising with inflation, until the age you plan to.",
      "format": "money"
    },
    "projected": {
      "label": "You will have at retirement",
      "description": "Your savings now plus your saving, grown at the return before retirement, when you retire.",
      "format": "money"
    },
    "short": {
      "label": "Shortfall",
      "description": "How much less you will have than you need. Shown only when you are short.",
      "format": "money"
    },
    "spare": {
      "label": "More than you need",
      "description": "How much more you will have than you need. Shown only when you are not short.",
      "format": "money"
    },
    "extra": {
      "label": "Save this much more each month",
      "description": "The extra monthly saving (in year 1, rising like your saving) that closes the shortfall by your retirement age.",
      "format": "money"
    },
    "firstWithdrawal": {
      "label": "First monthly withdrawal",
      "description": "The income you want less Social Security and pensions, grown by inflation to your retirement age.",
      "format": "money"
    },
    "needToday": {
      "label": "You need, in today’s money",
      "description": "The savings you need at retirement ÷ (1 + inflation) to the power of the years until then.",
      "format": "money"
    },
    "outAge": {
      "label": "Your savings run out at age",
      "description": "Your retirement age plus the months with a withdrawal ÷ 12. Shown when the money runs out.",
      "format": "number"
    },
    "left": {
      "label": "Left at the age you plan to",
      "description": "Your savings at the end of the plan, when they last. Shown when the money lasts.",
      "format": "money"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "age": 35,
      "retire": 67,
      "until": 90,
      "savings": 50000,
      "save": 500,
      "raise": 0,
      "rate": 6,
      "rateafter": 5,
      "inflation": 3,
      "income": 5000,
      "other": 0
    },
    "outputs": {
      "need": 2835674.6292928993,
      "projected": 882847.0465471627,
      "short": 1952827.5827457365,
      "extra": 1743.0429123953634,
      "firstWithdrawal": 12875.413778425564,
      "needToday": 1101197.4753170428,
      "outAge": 73.16666666666667
    },
    "text": "To retire at 67 on the income you want, you need about $2,835,674.63; on your plan you will have $882,847.05."
  },
  "examples": [
    {
      "given": {
        "age": 40,
        "retire": 48,
        "until": 49,
        "savings": 0,
        "save": 250,
        "rate": 3.81512925609634,
        "rateafter": 0,
        "inflation": 0,
        "income": 0
      },
      "expect": {
        "projected": 27938.201924850277
      },
      "source": "OpenStax, Contemporary Mathematics, section 6.6 \"Methods of Savings\", Example 6.59 (https://openstax.org/books/contemporary-mathematics/pages/6-6-methods-of-savings): $27,938.20 after 8 years; (1 + 0.0375 ÷ 12)^12 − 1 = 3.8151…% a year"
    },
    {
      "given": {
        "age": 60,
        "retire": 65,
        "until": 70,
        "savings": 100000,
        "save": 1000,
        "rate": 0,
        "rateafter": 0,
        "inflation": 0,
        "income": 3000,
        "other": 1000
      },
      "expect": {
        "need": 120000,
        "projected": 160000,
        "spare": 40000,
        "left": 40000,
        "firstWithdrawal": 2000
      },
      "source": "hand calculation in content.mdx: (3,000 − 1,000) × 12 × 5 = 120,000; 100,000 + 1,000 × 60 = 160,000; OpenStax, Contemporary Mathematics, section 6.6 (https://openstax.org/books/contemporary-mathematics/pages/6-6-methods-of-savings) at 0%"
    },
    {
      "given": {
        "age": 30,
        "retire": 40,
        "until": 50,
        "savings": 0,
        "save": 1000,
        "rate": 0,
        "rateafter": 0,
        "inflation": 0,
        "income": 2000
      },
      "expect": {
        "need": 240000,
        "projected": 120000,
        "short": 120000,
        "extra": 1000,
        "outAge": 45
      },
      "source": "hand calculation in content.mdx: 2,000 × 12 × 10 = 240,000; 120,000 ÷ 120 months = 1,000; 120,000 ÷ 2,000 = 60 months"
    },
    {
      "given": {
        "age": 35,
        "retire": 67,
        "until": 90,
        "savings": 50000,
        "save": 500,
        "rate": 6,
        "rateafter": 5,
        "inflation": 3,
        "income": 5000
      },
      "expect": {
        "need": 2835674.6292928816,
        "projected": 882847.046547166,
        "short": 1952827.5827457155,
        "extra": 1743.0429123953404,
        "firstWithdrawal": 12875.413778425564,
        "outAge": 73.16666666666667
      },
      "source": "month by month as in content.mdx; Python 3 cross-check (docs/progress/WP-51/retirement_check.py) sums every month"
    }
  ],
  "sources": [
    "OpenStax, Contemporary Mathematics, section 6.6 \"Methods of Savings\" (future value of an ordinary annuity, Example 6.59). https://openstax.org/books/contemporary-mathematics/pages/6-6-methods-of-savings",
    "U.S. Securities and Exchange Commission, Investor.gov, Compound interest calculator (monthly deposits and yearly growth). https://www.investor.gov/financial-tools-calculators/calculators/compound-interest-calculator",
    "Social Security Administration, my Social Security (your benefit estimates). https://www.ssa.gov/myaccount/",
    "U.S. Bureau of Labor Statistics, Consumer Price Index (inflation). https://www.bls.gov/cpi/"
  ],
  "related": [
    "401k",
    "retirement-withdrawal",
    "retirement-income"
  ],
  "changelog": []
}
