All posts

Retiring at 40: The Math Behind FIRE

May 23, 2026 · ~1484 words

Retiring at 40 requires careful planning and a deep understanding of the math behind your retirement goals. To determine how much money you need to retire at 40, you'll need to calculate your FIRE number (Financial Independence, Retire Early number), which is the amount of money you need to save in order to support your desired lifestyle in retirement.

Calculating Your FIRE Number

This can be done by multiplying your annual expenses by 25, which is based on the 25x rule (save 25 times your annual expenses). For example, if you want to spend $50,000 per year in retirement, you'll need to save $1,250,000. Here's the calculation:

  • Annual expenses: $50,000
  • Multiplied by 25: $50,000 x 25 = $1,250,000

Using the 4% rule (withdraw 4% of your portfolio per year, indexed to inflation), you can also calculate your FIRE number. The formula is: FIRE number = annual expenses / 0.04. For example:

  • Annual expenses: $50,000
  • FIRE number: $50,000 / 0.04 = $1,250,000

Sequence of Returns Risk

One of the biggest risks facing early retirees is sequence of returns risk, which refers to the risk that a market downturn will occur early in retirement, depleting your portfolio and reducing your ability to support yourself. To illustrate this risk, let's consider an example:

Suppose you retire at 40 with a portfolio of $1,000,000 and plan to withdraw $40,000 per year, adjusted for inflation. If the market returns 5% per year, your portfolio will last for 30 years. However, if the market returns -10% in the first year, your portfolio will be depleted to $900,000, and you'll need to adjust your withdrawal amount to ensure your portfolio lasts for 30 years.

Here's a 5-year interval balance table to illustrate the impact of sequence of returns risk:

  • Year 0: $1,000,000
  • Year 5 (5% returns): $1,276,281
  • Year 5 (-10% in year 1, 5% thereafter): $1,044,119
  • Year 10 (5% returns): $1,645,949
  • Year 10 (-10% in year 1, 5% thereafter): $1,234,919

Healthcare Costs in Early Retirement

Healthcare costs are a significant expense in retirement, and they can be particularly challenging for early retirees who are not yet eligible for Medicare. To plan for healthcare costs, you'll need to estimate your annual healthcare expenses and factor them into your retirement planning. For example, if you expect to pay $10,000 per year in healthcare costs, you'll need to add this amount to your annual expenses when calculating your FIRE number.

You can read more about early retirement healthcare costs and how to plan for them.

Real-World Examples

Let's consider a few real-world examples to illustrate the math behind retiring at 40. Suppose you want to spend $40,000 per year in retirement and you expect to earn a 4% real return (real return) on your portfolio. Using the 4% rule, you would need to save $1,000,000 to support your lifestyle. Here's the calculation:

  • Annual expenses: $40,000
  • Real return: 4%
  • FIRE number: $40,000 / 0.04 = $1,000,000

You can also use tools like the Freedom Calculator to model different scenarios and determine the best approach for your situation. Additionally, you can learn more about how to calculate your savings rate and savings rate and years to retirement to achieve your goals.

Ultimately, retiring at 40 requires careful planning and a deep understanding of the math behind your retirement goals. By running the numbers and considering factors like sequence of returns risk and healthcare costs, you can create a sustainable retirement plan that will support you for the long haul.

New to FIRE? See our primer at https://freedomcalc.app/what-is-fire.


Tools worth looking at

Affiliate links. We may earn a commission if you open an account, at no cost to you.

  • Empower — Free net worth tracking, portfolio analysis, and retirement planner. The dashboard serious FIRE chasers actually use.
  • Acorns — Round-ups that invest your spare change automatically. The lowest-friction way to start investing if you have been putting it off.
  • Wealthfront — Tax-loss harvesting, a 5% cash account, and direct indexing once you cross $100k. Solid robo for the set-and-forget crowd.

Frequently asked questions

How much money do I need to retire at 40?

You'll need to save around $1.5 million to $2.5 million, depending on your desired lifestyle and expenses, based on the 4% rule.

What is sequence of returns risk and how can I mitigate it?

Sequence of returns risk refers to the risk that a market downturn will occur early in retirement, depleting your portfolio. You can mitigate this risk by developing a sustainable withdrawal strategy and having a solid understanding of your portfolio's potential returns, which can be modeled using tools like the Freedom Calculator.

How much will healthcare cost in early retirement?

A 40-year-old couple can expect to pay around $12,000 per year in healthcare costs, which is a significant expense that must be factored into your retirement planning.

What is the 25x rule and how does it apply to my retirement planning?

The 25x rule states that you should save 25 times your annual expenses to support your lifestyle in retirement. For example, if you want to spend $50,000 per year in retirement, you'll need to save $1,250,000.

Keep reading

Run your own numbers

Five inputs. Your exact years-to-freedom figure.

Open calculator